<!--var minspeedH = 2;var maxscrollspeedH = 4;var scrollspeedHvar acceleratingH = false;var decceleratingH = false;var accelerationH = .2;var deccerationH = .2;var rewindSpeed = 50;var scrollingH = false;var currentDirectionH = null;var myScrollObj;var thelengthH = 3450;var continueAnim;var rewind;var delayRewind;var callAnim = null;var defaultDelay = 500;var newPosition;function getStyle(elem,name) {	if(elem.style[name]) {		return elem.style[name];			} else if (elem.currentStyle) {		return elem.currentStyle[name];			} else if (document.defaultView && document.defaultView.getComputedStyle) {		name = name.replace(/([A-Z])/g, "-$1");		name = name.toLowerCase();		var s = document.defaultView.getComputedStyle(elem,"");		return s && s.getPropertyValue(name);	} 		else			return null;}function posX (elem) {	return parseInt(getStyle(elem,"left"));}function animate () {	externalLinks();	var mainNav = document.getElementById("mainNav");	myScrollObj = mainNav.getElementsByTagName("ul")[0];	var left = getStyle(myScrollObj, "left");	var visibleWidth = getStyle(myScrollObj, "width");	var offsetWidth = getStyle(myScrollObj, "offsetWidth");	//var offsetWidth = myList.offsetWidth;	myScrollObj.onmouseover = killScrollH;	myScrollObj.onmouseout = invokeAnim;	//alert("WIDTH " + visibleWidth + " OFFSET WIDTH " + offsetWidth);	//myList.style. left = "-200px";		checkHScroll();	}function startScroll() {	//alert("MOUSEOVER" + this);	//this.style.left = "-100px";}function stopScroll() {	//alert("MOUSEOVER" + this);	//this.style.left = "-100px";}function checkHScroll() {		if(!scrollingH) {		scrollingH = true		acceleratingH = true		decceleratingH = false;		scrollspeedH = minspeedH	} else {		if (recursiveScrollH){			clearInterval(recursiveScrollH);			 		}		acceleratingH = true		decceleratingH = false;			}		scrollHorizontal(-1)	}function scrollHorizontal(directionH) {	if(scrollspeedH == null) {		//accelerating = true		//scrollspeed = minspeed	}		if(acceleratingH) {		if (scrollspeedH < maxscrollspeedH) {			scrollspeedH = scrollspeedH + accelerationH		} else {			acceleratingH = false			scrollspeedH = maxscrollspeedH		}	}		if(decceleratingH) {			if (scrollspeedH > 0) {			scrollspeedH = scrollspeedH - deccerationH		} else {					decceleratingH = false			scrollspeedH = 0			killScrollH()			return		}			}		newPosition = parseInt(getStyle(myScrollObj, "left"))+(scrollspeedH * directionH)	//alert("CHECK OBJECT LEFT: " + newPosition);//myScrollObj.style.left);	//return;	if ( newPosition < thelengthH*-1) {		continueAnim = false;		//alert("NEW POSITION IS NOW " + newPosition + ":" + thelengthH*-1);		newPosition = thelengthH * -1;			} else {		continueAnim = true;	}		if (newPosition>0) {	//newPosition = newPosition - (thelengthH/2)	}		newPostionToString = newPosition + "px";		myScrollObj.style.left=newPostionToString	if(continueAnim) {		recursiveScrollH=setTimeout("scrollHorizontal(" + directionH + ")",50);	} else {		killScrollH();		delayRewind = setTimeout("startRewind()", 5000);			}		}function startRewind() {	rewind = setInterval("rewindMe()",20);}function stopHScroll() {	acceleratingH = false	decceleratingH = true}function killScrollH()  {	if (recursiveScrollH){		clearTimeout(recursiveScrollH);		if(callAnim) { clearTimeout(callAnim); }		delayAnim = null;		recursiveScroll = null		decceleratingH = false		scrollspeedH = null		scrollingH = false			}}function rewindMe() {	if(newPosition < 0) {		newPosition += rewindSpeed;	} else {		newPosition = 0;		clearInterval(rewind);		 invokeAnim(null,3000);	}	updatePosition(newPosition);}function invokeAnim() {	// IF CALLED BY OBJECT ONMOUSEOUT THEN FIRST ARGUMENT IS THE ONMOUSEOUT OBJECT	// A REFERENCE TO THE EVENT OBJECT NOT AN OBJECT PASSED	var _ms;	if(arguments.length == 2) {		_ms = arguments[1];	} else {		_ms = defaultDelay;	}	callAnim = setTimeout("checkHScroll()", _ms);}function updatePosition (newPosition) {	newPositionToString = newPosition + "px";		myScrollObj.style.left=newPositionToString;			 }function setExLinksAttributes(a){		//a.style.background = "url(/images/external.png) center right no-repeat"	a.target = "_blank"	a.title = "link leaves this website: opens in a new window"	a.style.paddingRight = "13px";	return a;}window.onload = animate;//-->