﻿// ROLLOVER FUNCTIONS
//-----------------------------------------------------------------------------
sfHover = function() {
	// menu
	if (document.getElementById("nav")) {
		var sfEls = document.getElementById("nav").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"), "");
			}
		}
	}
	// sub nav menu
	if (document.getElementById("subNav")) {
		var subEls = document.getElementById("subNav").getElementsByTagName("LI");
		for (var i=0; i<subEls.length; i++) {
			subEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			subEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);




// END MENU
//-----------------------------------------------------------------------------

function openHTML( pageToLoad, winname, width, height, center) {
		self.name = "winMain";
		xposition=0; yposition=0;
		if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
			xposition = (screen.width - width) / 2;
			yposition = (screen.height - height) / 2;
		}
		args = 'width=' + width + ',height=' + height + ',location=0,menubar=0,resizable=1,';
		args = args + 'scrollbars=1,status=0,titlebar=0,toolbar=0,hotkeys=0,screenx=' + xposition + ',';
		args = args + 'screeny=' + yposition + ',left=' + xposition + ',top=' + yposition;
	
		window.open( pageToLoad,winname,args);
}

