/***************************************************************************************
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='images/slide_home.jpg'; //the path to your panorama-pic
//if you have troubles with NN & large pics try using a .gif instead of a .jpg
imwid=1504; //the width of your pic
imhei=142; //the height of your pic
poslef=0; //the left position of the panorama on your page
postop=150; //the top position of the panorama on your page
panwid=1000; //the width of the shown area
panhei=142; //the height of the shown area
//if it differs from the image-height, the image gets scaled in length and height
//*****additional parameters*****
speed=20; //timeout between moves; set it lower to increase speed
move=1; // 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;

function Browser () {
	this.MSIE=(navigator.userAgent.indexOf('MSIE')>=0); 
	this.Ns=(!this.MSIE)&&((navigator.userAgent.lastIndexOf(')')==(navigator.userAgent.length-1)||(navigator.userAgent.indexOf('Netscape')>=0)));
	if (navigator.userAgent.indexOf('5.')>=0) this.ver=5;
	else if (navigator.userAgent.indexOf('4.')>=0) this.ver=4;
	else if (navigator.userAgent.indexOf('3.')>=0) this.ver=3;
	else if (navigator.userAgent.indexOf('2.')>=0) this.ver=2;
	else this.ver=6;
}

var Brows = new Browser;

function sr(){
  if (Brows.MSIE)
  {
  	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 (Brows.MSIE)
  {
	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 (Brows.MSIE)
  {
if (document.getElementById && !document.all){document.write('<div id="kill-scrollbars" style="position:relative">');}
}
//***************************************************************************************

