// JavaScript Document
<!--
  
window.onerror = null;
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS4 = (bName == "Netscape" && bVer >= 4);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 var NS5 = (bName == "Netscape" && bVer == 5);
//------------------C U S T O M I S E------------------------
 var time_duration = 0; //Scroll delay in milliseconds
 var begin_pos = 0; //Start position of scroll hint
//-----------------------------------------------------------
var i=begin_pos;
var j=i; 
var scroll_length =  12730; //The scroll length (full - 3243) 2546
var scroll_Rlength = 0;  //The scroll length
var original_time=time_duration;
if (NS4 || IE4 || NS5) {
 if(navigator.appName == "Netscape" && parseInt(navigator.appVersion) < 4) {
 layerStyleRef="layer.";
 layerRef="document.layers";
 styleSwitch="";
 }else{
 layerStyleRef="layer.style.";
 layerRef="document.all";
 styleSwitch=".style";
 }
 }  

//SCROLL RIGHT
function right_scroll(layerName)
{

 if (NS4 || IE4 || NS5)
 {
   
   if(i>(begin_pos-scroll_length))
   {
	//alert(i);
    eval(layerRef+'["'+layerName+'"]'+
    styleSwitch+'.visibility="visible"');
    eval(layerRef+'["'+layerName+'"]'+ styleSwitch+'.left="'+(i)+'"');
    i--;
    j--;
   }
   else
   {
	i=j=0;
   }
  if(i==j)
  {
   setTimeout("right_scroll('"+layerName+"')",time_duration);
  }
 }
}

function scroll_out()
{
 time_duration=100000000;
}

function reset()
{ 
 time_duration=original_time;
}

//SCROLL LEFT
function left_scroll(layerName)
{
//alert ("Left Scroll");

 if (NS4 || IE4 || NS5)
 { 
   if(i<(begin_pos+scroll_Rlength))
   {
    eval(layerRef+'["'+layerName+'"]'+ styleSwitch+'.visibility="visible"');
    eval(layerRef+'["'+layerName+'"]'+ styleSwitch+'.left="'+(i)+'"');
    i++;
    j++;
   }
  if(i==j)
  {
   setTimeout("left_scroll('"+layerName+"')",time_duration);
  }
 }
}

// set position
function setPosition(){
	
	iWidth = (!navigator.appName=="Netscape")?window.innerWidth:document.body.clientWidth; 
	iHeight = (!navigator.appName=="Netscape")?window.innerHeight:document.body.clientHeight; 
	//alert(iWidth);
	//alert(iHeight);
	if((iWidth-1280) % 2 == 0){
	
	x=1280;
	}else
	{
	x=1280;
	}
	 
	if(iWidth>1280){
	 if(!navigator.appName=="Netscape"){
	  pos= (iWidth-x) / 2;
	 }else{
	  pos= (iWidth-x) / 2;
	 }
	}else
	{
	 pos= 0;
	}
	//alert(pos);
		document.getElementById('Container').style.left=pos+0;
}
//-->




