<!--
	//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', 'branding_4', 'branding_5', 'branding_6', 
		'branding_7', 'branding_8', 'branding_9', 'branding_10');
		
	// 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 = 4000;
		
	// 'back' and 'next' functions
	function getBackNext(moveID) {
		var cur = x;
		if (moveID == 2) {
			x++;
			if (x == 11) {
				x = 10;  /* WE'VE REACHED THE END */
			} else {
				new Effect.Move(divs_to_fade[cur], { x: -690, y: 0, mode: 'absolute', transition: Effect.Transitions.sinoidal });
				new Effect.Move(divs_to_fade[x], { x: 0, y: 0, mode: 'absolute', transition: Effect.Transitions.sinoidal });
				if (x == 10) {
					document.getElementById('btnarrowright').style.backgroundImage = "url(images/brandingarea/btn_arrow_right_end.jpg)";
				} else {
					document.getElementById('btnarrowright').style.backgroundImage = "url(images/brandingarea/btn_arrow_right.jpg)";
					document.getElementById('btnarrowleft').style.backgroundImage = "url(images/brandingarea/btn_arrow_left.jpg)";
				}
			}
		} else if (moveID == 1) {
			x--;
			if (x < 0) { 
				x = 0;  /* WE'VE REACHED THE END */
			} else {
				new Effect.Move(divs_to_fade[cur], { x: 690, y: 0, mode: 'absolute', transition: Effect.Transitions.sinoidal });
				new Effect.Move(divs_to_fade[x], { x: 0, y: 0, mode: 'absolute', transition: Effect.Transitions.sinoidal });
				if (x == 0) {
					document.getElementById('btnarrowleft').style.backgroundImage = "url(images/brandingarea/btn_arrow_left_end.jpg)";
				} else {
					document.getElementById('btnarrowleft').style.backgroundImage = "url(images/brandingarea/btn_arrow_left.jpg)";
					document.getElementById('btnarrowright').style.backgroundImage = "url(images/brandingarea/btn_arrow_right.jpg)";
				}
			}
		}
		startPage();
}
	// the function that performs the fade
	function swapFade() {
		var cur = x;
		x++;
		if (x == 11) {  /* WE'VE REACHED THE END - RESET SCREENS */
			x = 0;
			new Effect.Move(divs_to_fade[0], { x: 0, y: 0, mode: 'absolute', transition: Effect.Transitions.sinoidal });
			new Effect.Move(divs_to_fade[1], { x: 690, y: 0, mode: 'absolute', transition: Effect.Transitions.full });
			new Effect.Move(divs_to_fade[2], { x: 690, y: 0, mode: 'absolute', transition: Effect.Transitions.full });
			new Effect.Move(divs_to_fade[3], { x: 690, y: 0, mode: 'absolute', transition: Effect.Transitions.full });
			new Effect.Move(divs_to_fade[4], { x: 690, y: 0, mode: 'absolute', transition: Effect.Transitions.full });
			new Effect.Move(divs_to_fade[5], { x: 690, y: 0, mode: 'absolute', transition: Effect.Transitions.full });
			new Effect.Move(divs_to_fade[6], { x: 690, y: 0, mode: 'absolute', transition: Effect.Transitions.full });
			new Effect.Move(divs_to_fade[7], { x: 690, y: 0, mode: 'absolute', transition: Effect.Transitions.full });
			new Effect.Move(divs_to_fade[8], { x: 690, y: 0, mode: 'absolute', transition: Effect.Transitions.full });
			new Effect.Move(divs_to_fade[9], { x: 690, y: 0, mode: 'absolute', transition: Effect.Transitions.full });
			new Effect.Move(divs_to_fade[10], { x: 690, y: 0, mode: 'absolute', transition: Effect.Transitions.sinoidal });
			document.getElementById('btnarrowleft').style.backgroundImage = "url(images/brandingarea/btn_arrow_left_end.jpg)";
			document.getElementById('btnarrowright').style.backgroundImage = "url(images/brandingarea/btn_arrow_right.jpg)";
			
			clearInterval(timerID);
		} else {
			new Effect.Move(divs_to_fade[cur], { x: -690, y: 0, mode: 'absolute', transition: Effect.Transitions.sinoidal });
			new Effect.Move(divs_to_fade[x], { x: 0, y: 0, mode: 'absolute', transition: Effect.Transitions.sinoidal });
			if (x == 10) {
				document.getElementById('btnarrowright').style.backgroundImage = "url(images/brandingarea/btn_arrow_right_end.jpg)";
			} else {
				document.getElementById('btnarrowright').style.backgroundImage = "url(images/brandingarea/btn_arrow_right.jpg)";
				document.getElementById('btnarrowleft').style.backgroundImage = "url(images/brandingarea/btn_arrow_left.jpg)";
			}
		}
}
	// the onload event handler that starts the fading.
	function startPage() {
		timerID = setInterval('swapFade()',wait);
}
//-->
<!--
  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'); });
//-->
<!--
	//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();	
	}
//-->
