<!--
	//BRANDING AREA ROTATOR
	// this array consists of the id attributes of the divs we wish to alternate between
	divs_to_fade = new Array('branding_0', 'branding_1', 'branding_2', 'branding_3');
		
	// the starting index in the above array. It should be set to the value of the div which doesn't have the CSS Display property set to "none"
	x = 0;
	
	// the number of milliseconds between swaps.  Default is five seconds.
	wait = 6000;
	
	// change flash nav color
	function changeColor(sID) {
		if (sID == 3) { 
			document.getElementById('btnbrand1').style.backgroundImage = "url(images/btn_brand_1_dk.gif)";
			document.getElementById('btnbrand2').style.backgroundImage = "url(images/btn_brand_2_dk.gif)";
			document.getElementById('btnbrand3').style.backgroundImage = "url(images/btn_brand_3_dk.gif)";
			document.getElementById('btnbrand4').style.backgroundImage = "url(images/btn_brand_4_dk.gif)";
			document.getElementById('btnplay').style.backgroundImage = "url(images/btn_play_dk.gif)";
			document.getElementById('btnpause').style.backgroundImage = "url(images/btn_pause_dk.gif)";
		} else {
			document.getElementById('btnbrand1').style.backgroundImage = "url(images/btn_brand_1.gif)";
			document.getElementById('btnbrand2').style.backgroundImage = "url(images/btn_brand_2.gif)";
			document.getElementById('btnbrand3').style.backgroundImage = "url(images/btn_brand_3.gif)";
			document.getElementById('btnbrand4').style.backgroundImage = "url(images/btn_brand_4.gif)";
			document.getElementById('btnplay').style.backgroundImage = "url(images/btn_play.gif)";
			document.getElementById('btnpause').style.backgroundImage = "url(images/btn_pause.gif)";
		}
}
	// 'play' function
	function getBackNext() {
		var cur = x;
		x++;
		changeColor(x);
		if (x == 4) {
			x = 0;  /* (x == 'LAST SCREEN') THEN FORWARD TO 1ST */
		} 
		Effect.Fade(divs_to_fade[cur], { duration:1, from:1.0, to:0.0 });
		Effect.Appear(divs_to_fade[x], { duration:1, from:0.0, to:1.0 });
		startPage();
}
	// go to specific screen
	function getDiv(divID) {
		var cur = x;
		// change flash nav color
		changeColor(divID);
		if (cur != divID) {
		Effect.Fade(divs_to_fade[cur], { duration:1, from:1.0, to:0.0 });
		Effect.Appear(divs_to_fade[divID], { duration:1, from:0.0, to:1.0 });
		}
		x = divID;
}
	// the function that performs the fade
	function swapFade() {
		Effect.Fade(divs_to_fade[x], { duration:1, from:1.0, to:0.0 });
		x++;
		changeColor(x);
		if (x == 4) {  /* NUMBER OF SCREENS */
			x = 0;
			clearInterval(timerID);
		}
		Effect.Appear(divs_to_fade[x], { duration:1, from:0.0, to:1.0 });
}
	// the onload event handler that starts the fading.
	function startPage() {
		timerID = setInterval('swapFade()', wait);
}
	// reset branding area on page onload 
	function pgReset() {
		document.frmLastScreen.lastScreen.value = 0;
}
//-->
<!--
    //ROLL OVER FOR IE 6
    //startList = function() {
    function startList() {
    if (document.all&&document.getElementById) 
    {
    	navRoot = document.getElementById("nav");
    	for (i=0; i<navRoot.childNodes.length; i++) 
    	{
    		node = navRoot.childNodes[i];
    		if (node.nodeName=="LI") 
    		{
    			node.onmouseover=function() 
    			{
    				this.className+=" over";
    			}
				node.onmouseout=function() {
				this.className=this.className.replace(" over", "");
				}
			}
		}
		//2ND NAVIGATION BAR
		//navRoot2 = document.getElementById("nav2");
		//for (i=0; i<navRoot2.childNodes.length; i++)
    	//{
    		//node = navRoot2.childNodes[i];
    		//if (node.nodeName=="LI") 
    		//{
    			//node.onmouseover=function()
    			//{
    				//this.className+=" over";
    			//}
				//node.onmouseout=function() {
				//this.className=this.className.replace(" over", "");
				//}
			//}
		//}
	}
}
	//window.onload=startList;
//-->
<!--
	//OPEN POP-UP W/URL
	function PopWin(NewLocation, LocationLink, WVal, HVal) {
	window.open(NewLocation + "?url=" + LocationLink, "NewWindow", "width=" + WVal 
	+ ",height=" + HVal + ",scrollbars=yes,status=no,toolbar=no");	
}
//-->
<!--
	//OPEN POP-UP
	function PopWinAlt(NewLocation, WVal, HVal) {
	window.open(NewLocation, "NewWindow", "width=" + WVal 
	+ ",height=" + HVal + ",scrollbars=yes,status=no,toolbar=no");	
}
//-->
<!--
	//GO TO NEW LOCATION IN PARENT WINDOW
	function GoTo(NewLocation) {
	self.opener.open(NewLocation);
	parent.close();	
	}
//-->
<!--
	//VALIDATE REQUIRED FORM FIELDS
	function CheckForm() {
	var name = document.frmContact.Name.value;
	var company = document.frmContact.Company.value
	var email = document.frmContact.Email.value;
	var emailchar = document.frmContact.Email.value.indexOf("@");
	var phone = document.frmContact.Phone.value;
	
	if (name == "")
	{
	alert ("Please provide your Full Name.");
	document.frmContact.Name.focus();
	return (false);
	}
	if (company == "")
	{
	alert ("Please provide your Company Name.");
	document.frmContact.Company.focus();
	return (false);
	}
	if ((email == "") || (emailchar == -1)) 
	{
	alert ("Please provide a valid Email Address.");
	document.frmContact.Email.focus();
	return (false);
	}
	if (phone == "")
	{
	alert ("Please provide your Telephone Number.");
	document.frmContact.Phone.focus();
	return (false);
	}
	return (true);
}
//-->
<!--
	//CHANGE LOCATION DETAIL IMAGE
	function changeImage(imgID) {
	var currentID = document.currentLocation.currentID.value;
	if (imgID != currentID) {
		// new image fades in	
		//Effect.Appear('locationdetail' + imgID, { duration:1, from:0.0, to:1.0 });
		document.getElementById('locationdetail' + imgID).style.display = "block";
		document.getElementById('loctxthoriz' + imgID).style.display = "block";	

		// current image fades out
		//Effect.Fade('locationdetail' + currentID, { duration:1, from:1.0, to:0.0 });
		document.getElementById('locationdetail' + currentID).style.display = "none";
		document.getElementById('loctxthoriz' + currentID).style.display = "none";
		
		document.currentLocation.currentID.value = imgID;
	}
}
	//RESET LOCATION DETAIL IMAGE
	function returnImage() {
	var currentID = document.currentLocation.currentID.value;
	document.getElementById('locationdetail' + currentID).style.visibility = "hidden";
	document.getElementById('locationdetail1').style.visibility = "visible";
	document.currentLocation.currentID.value = "1";
}
//-->