<!--
	//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 button state
	function changeState(sID) {
		var curScreen = (sID);
		var lastScreen = document.frmLastScreen.lastScreen.value;
		if (curScreen >= 4) {
			curScreen = 0
		}
		//alert(curScreen);
		document.frmLastScreen.lastScreen.value = curScreen;
		document.getElementById('btnbrand' + curScreen).style.backgroundImage = "url(images/brandingarea/btn_brand_" + curScreen + "_alt.gif)";
		document.getElementById('btnbrand' + lastScreen).style.backgroundImage = "url(images/brandingarea/btn_brand_" + lastScreen + ".gif)";
}
	// 'play' function
	function getBackNext() {
		var cur = x;
		x++;
		changeState(x);  /** DEV **/
		if (x == 4) { /* PHYSICAL NUMBER OF SCREENS */
			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;
		changeState(divID);  /** DEV **/
		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++;
		changeState(x);  /** DEV **/
		if (x == 4) {  /* PHYSICAL 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;
}
//-->
<!--
  menuHover = function(nav) {
    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("\\s?sfhover\\b"), "");
      }
    }

    var listItem = document.getElementById(nav).getElementsByTagName('ul');
    for(var i=0;i<listItem.length;i++) {
      listItem[i].onmouseover=function() {
        var changeStyle = this.parentNode.getElementsByTagName('a');
        changeStyle[0].className+=" active";
      }

      listItem[i].onmouseout=function() {
        var changeStyle = this.parentNode.getElementsByTagName('a');
        changeStyle[0].className=this.className.replace(new RegExp("\\s?active\\b"), "");
      }
    }
  }

  function addEvent( obj, type, fn ) {
    if ( obj.attachEvent ) {
      obj['e'+type+fn] = fn;
      obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
      obj.attachEvent( 'on'+type, obj[type+fn] );
    } else
      obj.addEventListener( type, fn, false );
    }
  function removeEvent( obj, type, fn ) {
    if ( obj.detachEvent ) {
    obj.detachEvent( 'on'+type, obj[type+fn] );
    obj[type+fn] = null;
    } else
      obj.removeEventListener( type, fn, false );
    }

  addEvent(window, 'load', function () { menuHover('menu'); });
  //addEvent(window, 'load', function () { menuHover('nav2'); });
//-->
<!--
	//TABBED BOXES
	function changeTabsOn(tab) {
	document.getElementById(tab).style.backgroundPosition = "0 0";
}
	function changeTabsOff(tab) {
	document.getElementById(tab).style.backgroundPosition = "0 -20px";
}
	function showTab(tabfront, tabbehind) {
	document.getElementById(tabfront).style.display = "block";
	document.getElementById(tabbehind).style.display = "none";
}
//-->
<!--
	//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();	
	}
//-->