function openpopWindow (theURL, width, height, winName) {
    if (navigator.appName == 'Netscape' && parseInt(navigator.appVersion) < 4){
        width = parseInt(width) + 20;
        height = parseInt(height) + 20;
    }

    str = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+width+",height="+height;
    nWin = window.open(theURL,winName,str);
    if ( navigator.appName == 'Netscape' ) {
	 nWin.focus();
    }
}

function externalURL(theUrl) {
    openpopWindow("external.htm?"+escape(theUrl),500,350,"goodbye");
}


     
function openWindow5(url){
	
	window.name = 'main';
	//w = width
	//h = height
	//s = scrollbars
	leftW = (screen.width-350)/2;
	topH = (screen.height-500)/2;
		features = "titlebar=0,location=0,directories=0,menubar=0,scrollbars=1,status=0,toolbar=0,resizable=1,height=500,width=350,left="+leftW+",top="+topH
		winpops = window.open(url,"remote",features);
}
		 
function openWindow6(url){
	window.name = 'main';
	//w = width
	//h = height
	//s = scrollbars
	leftW = (screen.width-760)/2;
	topH = (screen.height-300)/2;
		features = "titlebar=10,location=1,directories=0,menubar=1,scrollbars=1,status=0,toolbar=1,resizable=1,height=300,width=700,left="+leftW+",top="+topH
		winpops = window.open(url,"remote",features);
}

function popup(url,w,h,s){
	window.name = 'main';
	//w = width
	//h = height
	//s = scrollbars
	leftW = (screen.width-760)/2;
	topH = (screen.height-300)/2;
		features = "titlebar=10,location=1,directories=0,menubar=1,scrollbars=1,status="+s+",toolbar=1,resizable=1,height="+h+",width="+w+",left="+leftW+",top="+topH
		winpops = window.open(url,"remote",features);
}

//Dropdown menus
sfHover = function() {
	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"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//end Dropdown menus