
// Defaults the Section so it can hide the subnav
defaultSection = new Object();
defaultSection.Declared = false;
function setDefault(Section){
	defaultSection.PageName = Section;
	defaultSection.Declared = true;
	
	
}



	
	





function toggleMenu(currMenu) {
        if (document.getElementById) {
        thisMenu = document.getElementById(currMenu).style
        if (thisMenu.display == "block") {
        thisMenu.display = "none"
}
        else {
        thisMenu.display = "block"
}
      return false
}
        else {
      return true
	}
}

/*end down menus */


function Launch(URL)
	{
		var Width = (screen.width-(screen.width/50)); 
		var Height = (screen.height-(screen.height/10));
	    var params = ('toolbar=no,scrollbars=Yes,left=0,top=0,resizable=yes,width=' + Width + ',height=' + Height);
		pop = window.open(URL, 'newWindow', params);
		pop.focus();
	}
	
	
// begin Flash detect code 
var contentVersion = 7;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var PluginVersion = words[i]; 
	    }
	var FlashCanPlay = PluginVersion >= contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if ( FlashCanPlay ) {
		
		// window.alert(Width + ' ' + Height);
		
} else{
if (window.confirm("You need a Flash 6 Player to view this site. Click OK to get the Free Macromedia Flash 5 player")) 
{
		var Width = (screen.width-(screen.width/50)); 
		var Height = (screen.height-(screen.height/10));
	    var params = ('toolbar=no,scrollbars=yes,resizable=yes,width=' + Width + ',height=' + Height);
window.open("http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash", "newWindow", params)
			}
		else {
			alert("Sorry, you can't view everything on this site unless you get a Flash 6 player. See you then.")
		}

}


  // -->
  

