preloadImages = function(imglist) {
	var imgs = new Array();
	var count;
	if (document.images) {
		for (count=0; count<imglist.length; count++) {
			imgs[count]=new Image(); imgs[count].src=imglist[count];
		}
	}
}

sfHover = function(idList) {
	var count;
	for (count=0; count<idList.length; count++) {
		var sfEls = document.getElementById(idList[count]).getElementsByTagName('LI');
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=' sfhover';
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(' sfhover\\b'), '');
			}
		}
	}	
}

var newwindow = '';
function popitup(url, version) {
	if (!newwindow.closed && newwindow.location) {
		newwindow.location.href = url;
	} else {
		var windowHeight= '640';
		var windowWidth= '810';
		
		if(version == 'xxl') {
			windowHeight= "840";
		}
		
		newwindow = window.open(url,'name','height=' + windowHeight + ',width=' + windowWidth + ',resizable=yes,scrollbars=yes,status=no');
		
		if (!newwindow.opener) {
			newwindow.opener = self;
		}
	}
	
	if (window.focus) {
		newwindow.focus()
	}
	
	return false;
}

