/***************************************************************************************
Copyright (C) 2001 ab_ditto
This script is made by and copyrighted to ab_ditto at back.to/ab or ab_ditto@hotmail.com
This may be used freely as long as this msg is intact!
***************************************************************************************
excepted from this copyright is the (seperatly marked) NN6 "scrollbarkiller" by Eddie Traversa
***************************************************************************************/
//*****parameters to set*****
impad1='./pics/stadium.jpg'; //the path to your panorama-pic
//if you have troubles with NN & large pics try using a .gif instead of a .jpg
imwid1=17675; //the width of your pic
imhei1=360; //the height of your pic
poslef1=150; //the left position of the panorama on your page
postop1=0; //the top position of the panorama on your page
panwid1=700; //the width of the shown area
panhei1=195; //the height of the shown area
//if it differs from the image-height, the image gets scaled in length and height
//*****additional parameters*****
buttl1='./pics/left.gif'; //path to the left-button (if you use your own pics)
buttr1='./pics/right.gif'; //path to the right-button (if you use your own pics)
buttw1=20; //width of one button
butth1=15; //height of a button
speed1=50; //timeout between moves; set it lower to increase speed
move1=5; // movement at one step in pixel
//*****nothing more to do, have fun :)
tim1=0;noscroll=true;
imw1=imwid1*panhei1/imhei1;imh1=panhei1;imstart1=panwid1/2-imw1*1.5;
jumpa1=panwid1/2-imw1*2.5;jumpwida1=imw1-move1;
jumpb1=panwid1/2-imw1/2;jumpwidb1=imw1+move1;
conwid1=buttw1+(5*1);contop1=postop1+(imh1*1)+(10*1);
conlefa1=poslef1+(panwid1/2)-conwid1;conlefb1=poslef1+(panwid1/2);

function sr1(){
	if(!noscroll){
	now=parseFloat(document.getElementById("panostadium").style.left);
  if (now<=jumpa1){now+=jumpwida1;} else{now-=move1;}
  document.getElementById("panostadium").style.left=now;
	tim=setTimeout("sr1()",speed);}}

function sl1(){
	if(!noscroll){
	now=parseFloat(document.getElementById("panostadium").style.left);
  if (now>=jumpb1){now-=jumpwidb1;} else{now+=move1;}
  document.getElementById("panostadium").style.left=now;
	tim=setTimeout("sl1()",speed);}}

function stop(){clearTimeout(tim1); noscroll=true}
//***************************************************************************************
//NN6 "scrollbarkiller" by Eddie Traversa
if (document.getElementById && !document.all){document.write('<div id="kill-scrollbars" style="position:relative">');}
//***************************************************************************************
document.write("<div id='stadium'>");
document.write("<div id='panostadium' style='position:absolute; left:"+imstart1+"px; top:0px; width:"+imw1*3+"px; height:"+imh1+"px; z-index:2; visibility:visible;'>");
document.write("<table><tr><td nowrap><img src='"+impad1+"' width="+imw1+"px height="+imh1+"px><img src='"+impad1+"' width="+imw1+"px height="+imh1+"px><img src='"+impad1+"' width="+imw1+"px height="+imh1+"px></td></tr></table>");
document.write("</div></div>");
document.write("<div id='left1'><a href='javascript://' onmouseover='noscroll=false; sl1()' onmouseout='stop()'><img src='"+buttl1+"' width="+buttw1+"px height="+butth1+"px border='0';></a></div>");
document.write("<div id='right1'><a href='javascript://' onmouseover='noscroll=false; sr1()' onmouseout='stop()'><img src='"+buttr1+"' width="+buttw1+"px height="+butth1+"px border='0';></a></div>");
document.write("<style>");
document.write("body { margin-left:0; margin-right:0; margin-top:0; margin-bottom:0;width:100%;height:100%;overflow:hidden;}");
document.write("#stadium {position:absolute; left:"+poslef1+"px; top:"+postop1+"px; width:"+panwid1+"px; height:"+panhei1+"px; z-index:1; clip:rect(0px,"+panwid1+"px,"+panhei1+"px,0px); overflow:hidden;}");
document.write("#left1 {position:absolute; left:"+conlefa1+"px; top:"+contop1+"px; width:"+conwid1+"px; z-index:1; text-align:right;}");
document.write("#right1 {position:absolute; left:"+conlefb1+"px; top:"+contop1+"px; width:"+conwid1+"px; z-index:1; text-align:left;}");
document.write("</style>");