// Counter
var nLeft = 0;
 
// Start and Stop
var run;
 
// Scroll up
function goLeft()
{
  // If nLeft < 0 scroll
  if(nLeft < 0)
  {
    var objDiv =document.getElementById("outer"); 
    nLeft=nLeft+4;
    objDiv.style.left=nLeft+'px';
        
        // Dont stop scrolling, if the mouse is over the scrollbutton
    if (run) 
		  setTimeout("goLeft();", 10);
   }
}
 
// Scroll down
function goRight()
{
  var visibleWidth=document.getElementById('scrollBody').clientWidth;
  // Height of div
  var nWidth = '-1660';
  
    // If nLeft >= height scroll
    if(nLeft >= parseInt(nWidth)+visibleWidth)
  {
    var objDiv =document.getElementById("outer");
    nLeft=nLeft-4;
    objDiv.style.left=nLeft+'px';
        // Dont stop scrolling, if the mouse is over the scrollbutton
        if (run)
         setTimeout("goRight();", 10);
  }
}
 
// Buttons
function initBodyScrollers(){
  var visibleWidth=(document.getElementById('scrollBody').clientWidth>1000?document.getElementById('scrollBody').clientWidth:1000);
  var cookie=readCookie("style");
  if ((cookie && cookie!='Standard')){
	document.getElementById('outer').style.position='relative';
	document.getElementById('scrollBody').style.width='auto';
	document.getElementById('outer').style.width='auto';
	document.getElementById('outer').style.left=0;
	document.getElementById('scrollerLeft').style.visibility='hidden';
	document.getElementById('scrollerRight').style.visibility='hidden';
  } else if ((navigator.appName == "Microsoft Internet Explorer" && !window.XMLHttpRequest) || navigator.userAgent.match(/Mobile/i) != null){
	return false;
  } else if (visibleWidth<1660){
	document.write('<style type="text/css">@media screen{')
	document.write('#scrollBody { width:' + visibleWidth + 'px; overflow:hidden;}');
	document.write('#outer { position:absolute; width:1660px; left:'+((visibleWidth-1660)/2)+'px;}');
	document.write('#scrollerLeft,#scrollerRight { visibility:visible}');
	document.write('}</style>');
	nLeft=(visibleWidth-1660)/2;
  }
}

function reload(){
  if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion < "7") return false;
  window.location.href = window.location.href;
}
