// JavaScript Document

var myWin = null;
		function gen_popup(theUrl, theTitle, theDim) {
			if ((! myWin) || (myWin.closed)) {
				if (! theDim) {
					theDim = 'width=300,height=220,left=0,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,';
				}
				myWin = window.open(theUrl, theTitle, theDim);
				myWin.opener = window;
			} else {
				myWin.location = theUrl;
				myWin.focus();
				myWin.opener = window;
			}
		}

var myPopupWin = null;
function open_popup(theUrl, width, height, scrollbars) {
	if ((! myPopupWin) || (myPopupWin.closed)) {
		theDim = 'width='+width+',height='+height+',left=5,top=5,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scrollbars+',resizable=yes,';
		myPopupWin = window.open(theUrl, '', theDim);
		myPopupWin.opener = window;
	} else {
		myPopupWin.location = theUrl;
		myPopupWin.focus();
		myPopupWin.opener = window;
	}
}

sfHover = function() {

	var sfEls = document.getElementById("mnav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
	
	
		sfEls[i].onmouseover=function() {
			this.className+=" current sfhover";
			formFix("on");
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("current sfhover\\b"), "");
		    formFix("off");
		}
	}
}

function formFix(action) {
	//var inputs = document.getElementsByTagName("input");
	var selects = document.getElementsByTagName("select");
	//var textareas = document.getElementsByTagName("textarea");
	
	for (var i=0; i<selects.length; i++) {
		if(action=="on") {
			selects[i].style.visibility = "hidden";
		} else {
			selects[i].style.visibility = "visible";
		}
	}
}

window.onload = sfHover;

function whyPopUp() {
 TheWin = window.open('', 'Why', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=350,height=270');

TheWin.document.write('<!DOCTYPE html PUBLIC "-\/\/W3C\/\/DTD XHTML 1.0Transitional\/\/EN" "http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd"><html xmlns="http:\/\/www.w3.org\/1999\/xhtml">');
TheWin.document.write('<head><title>Popup<\/title><\/head><body style="background-color: #fff;" bgcolor="#FFF">');
TheWin.document.write('<strong>A SPECIAL NOTE TO PARENTS:<\/strong><br><p>We respect the privacy of all of our online users, especially children. We do not intend to collect personally identifiable information from children under 13. Our policy is intended to adhere to the Childrens Advertising Review Unit (CARU) privacy guidelines.<\/p><p>We encourage parents to monitor, supervise and join their children in online activities.<\/p><\/body><\/html>');
TheWin.focus();
}
function openVideo(address){
	var openWindow = window.open(address,"","fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=480,height=360,left=250,top=250")
openWindow.focus();
}
