DOM = (document.getElementById) ? true : false;

NS4 = (document.layers) ? true : false;

IE = (document.all) ? true : false;

IE4 = IE && !DOM;

NS = (navigator.appName=="Netscape") ? true : false;

NS6 = NS && DOM;

MAC = (navigator.appVersion.indexOf("Mac") != -1);

 

function preload(imgObj,imgSrc) {

	if (document.images) {

		eval(imgObj + 'On = new Image()')

		eval(imgObj + 'On.src = imgSrc + "roll.gif"')

		eval(imgObj + 'Off = new Image()')

		eval(imgObj + 'Off.src = imgSrc + ".gif"')

	}

}



function img_act(imgName) {

	if (document.images) {

		document[imgName].src = eval(imgName + "On.src");

	}

}



function img_inact(imgName) {

	if (document.images) {

		document[imgName].src = eval(imgName + "Off.src");

	}

}



function changeImages() {

	if (document.images) {

    	for (var i=0; i<changeImages.arguments.length; i+=2) {

      		document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");

    		}

		}

}



preload("logo","/images/logo")

//nav

preload("mainmenu_1","/images/mainMenu_1")

preload("mainmenu_2","/images/mainMenu_2")

preload("mainmenu_3","/images/mainMenu_3")

preload("mainmenu_4","/images/mainMenu_4")

preload("mainmenu_5","/images/mainMenu_5")



function openWindow(windowURL,windowName,windowWidth,windowHeight,scroll,center) {

	newWindow = window.open(windowURL,windowName,'width='+windowWidth+',height='+windowHeight+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollbars='+scroll+',resizable=0');

	newWindow.focus(); 

   if (center) {

      newWindow.moveTo((screen.width-windowWidth)/2,(screen.height-windowHeight)/2)

   }

}



function navChange(obj) {

   location.href = obj.value;

}



var MM_contentVersion = 6;

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 MM_PluginVersion = words[i]; 

  }

  var MM_FlashCanPlay = MM_PluginVersion >= MM_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('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');

  document.write('</scr' + 'ipt\> \n');

}

