/***************************************************************************************
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*****
impad='panorama/accueil.jpg'; //the path to your panorama-pic
imwid=1680; //the width of your pic
imhei=198; //the height of your pic
poslef=80; //the left position of the panorama on your page
postop=230; //the top position of the panorama on your page
panwid=400; //the width of the shown area
panhei=198; //the height of the shown area
//*****additional parameters*****
buttl='panorama/gauche.gif'; //path to the left-button (if you use your own pics)
buttr='panorama/droite.gif'; //path to the right-button (if you use your own pics)
center='panorama/center.gif';
centerw=189;
centerh=60;
buttw=33;
butth=50; //height of a button
speed=50; //timeout between moves; set it lower to increase speed
move=5; // movement at one step in pixel
//*****nothing more to do, have fun :)
tim=0;noscroll=true;
imw=imwid*panhei/imhei;imh=panhei;imstart=panwid/2-imw*1.5;
jumpa=panwid/2-imw*2.5;jumpwida=imw-move;
jumpb=panwid/2-imw/2;jumpwidb=imw+move;
conwid=buttw+(5*1);contop=postop+(imh*1)+(10*1);
conlefa=poslef+(72*1);conlefb=conlefa+(222*1);
conlec=poslef+(105*1);

function sr(){
	if(!noscroll){
	now=parseFloat(document.getElementById("pano").style.left);
  if (now<=jumpa){now+=jumpwida;} else{now-=move;}
  document.getElementById("pano").style.left=now;
	tim=setTimeout("sr()",speed);}}

function sl(){
	if(!noscroll){
	now=parseFloat(document.getElementById("pano").style.left);
  if (now>=jumpb){now-=jumpwidb;} else{now+=move;}
  document.getElementById("pano").style.left=now;
	tim=setTimeout("sl()",speed);}}

function stop(){clearTimeout(tim); 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='panorama'>");
document.write("<div id='pano' style='position:absolute; left:"+imstart+"px; top:0px; width:"+imw*3+"px; height:"+imh+"px; z-index:2; visibility:visible;'>");
document.write("<table><tr><td nowrap><img src='"+impad+"' width="+imw+"px height="+imh+"px><img src='"+impad+"' width="+imw+"px height="+imh+"px><img src='"+impad+"' width="+imw+"px height="+imh+"px></td></tr></table>");
document.write("</div></div>");
document.write("<div id='left'><a href='javascript://' onmouseover='noscroll=false; sl()' onmouseout='stop()'><img src='"+buttl+"' width="+buttw+"px height="+butth+"px border='0';></a></div>");
document.write("<div id='center'><img src='"+center+"' width="+centerw+"px height="+centerh+"px border='0';></div>");
document.write("<div id='right'><a href='javascript://' onmouseover='noscroll=false; sr()' onmouseout='stop()'><img src='"+buttr+"' width="+buttw+"px height="+butth+"px border='0';></a></div>");
document.write("<style>");
document.write("#panorama {position:absolute; left:"+poslef+"px; top:"+postop+"px; width:"+panwid+"px; height:"+panhei+"px; z-index:1; clip:rect(0px,"+panwid+"px,"+panhei+"px,0px); overflow:hidden;}");
document.write("#center {position:absolute; left:"+conlec+"px; top:"+contop+"px; width:"+conwid+"px; z-index:1; text-align:center;}");
document.write("#left {position:absolute; left:"+conlefa+"px; top:"+contop+"px; width:"+conwid+"px; z-index:1; text-align:right;}");
document.write("#right {position:absolute; left:"+conlefb+"px; top:"+contop+"px; width:"+conwid+"px; z-index:1; text-align:left;}");
document.write("</style>");