function setVariables(){
	y1=10;ob=1;max=10 // this max sets the distance from the top of the page
	if (navigator.appName == "Netscape") {
		v=".top=";h=".left=";dS="document.";sD="";
		y="window.pageYOffset";x="window.pageXOffset";iW="window.innerWidth";iH="window.innerHeight"
	}
	else {
		h=".pixelLeft=";v=".pixelTop=";dS="";sD=".style";
		y="document.body.scrollTop";x="document.body.scrollLeft";iW="document.body.clientWidth";iH="document.body.clientHeight"
	}
	object="object1";
	checkLocationA()
}

movex=0,movey=0,xdiff=0,ydiff=0,ystart=0,xstart=0


function checkLocation(){
	//  innerX=eval(iW)-115 // place to the right
	innerX=5 // controls the horizontal from the left side of the page
	//  innerY=eval(iH)-35 // place at the bottom
	innerY=eval(iH)-110 // controls the verticle from the top of the page
	if (document.layers){
		innerY-=10;innerX-=10
	}
	yy=eval(y);
	xx=eval(x);
	ydiff=ystart-yy;
	xdiff=xstart-xx;
	if ((ydiff<(-0.01))||(ydiff>(0.01)))
		movey=Math.round(ydiff/10),ystart-=movey
	if ((xdiff<(-0.01))||(xdiff>(0.01))) 
		movex=Math.round(xdiff/10),xstart-=movex
	N=(document.layers)?1:0
	V=(N) ? 4:5
	if (V==4){
		object="object1"
		eval(dS+object+sD+v+(ystart+innerY+10));
		object="object2"
		eval(dS+object+sD+v+(ystart+innerY+spread+10));
	}
	else{
		object=document.getElementById('object1')
		object.style.top=ystart+innerY+45
		object=document.getElementById('object2')
		object.style.top=ystart+innerY+spread
	}
	setTimeout("checkLocation()",10)
}


function checkLocationA(){
	ystart=eval(y)+5;
	xstart=eval(x)+5;
}

spread=40


function scrollOn(){
	items=2
	if (ob<=items){
		objectX="object"+ob;
		y1+=10;
		N=(document.layers)?1:0
		V=(N) ? 4:5
		if (V==4){
			eval(dS + objectX + sD + v + y1);
		}
		else{
			object=document.getElementById(objectX)
			object.style.top=y1
		}
		if (y1<max) 
			xx=setTimeout ("scrollOn()",20)
		else 
			y1=10, max+=spread, ob+=1, xx=setTimeout("scrollOn()",20) // this max sets the spacing
	}
	if (ob>1){
		clearTimeout(xx);checkLocation();
	}
}

function over(index) {
	if (index == 1)
		document.getElementById("button1").src = "button/anihome.gif";
	if (index == 2)
		document.getElementById("button2").src = "button/anibio.gif";
	if (index == 3)
		document.getElementById("button3").src = "button/Members.gif";
	if (index == 4)
		document.getElementById("button4").src = "button/aninew.gif";
	if (index == 5)
		document.getElementById("button5").src = "button/anitermine.gif";
	if (index == 6)
		document.getElementById("button6").src = "button/anisetlist.gif";
	if (index == 7)
		document.getElementById("button7").src = "button/anilinks.gif";
	if (index == 8)
		document.getElementById("button8").src = "button/Crew.gif";
	if (index == 9)
		document.getElementById("button9").src = "button/Kontakt.gif";
	if (index == 10)
		document.getElementById("button10").src = "button/anigallery.gif";
	if (index == 11)
		document.getElementById("button11").src = "button/anigbuch.gif";
	if (index == 12)
		document.getElementById("button12").src = "button/anishop.gif";
	if (index == 13)
		document.getElementById("button13").src = "button/aninews.gif";

}

function out(index) {
	if (index == 1)
		document.getElementById("button1").src = "button/Home.gif";
	if (index == 2)
		document.getElementById("button2").src = "button/Biographie.gif";
	if (index == 3)
		document.getElementById("button3").src = "button/Members.gif";
	if (index == 4)
		document.getElementById("button4").src = "button/News.gif";
	if (index == 5)
		document.getElementById("button5").src = "button/Termine.gif";
	if (index == 6)
		document.getElementById("button6").src = "button/Setlist.gif";
	if (index == 7)
		document.getElementById("button7").src = "button/Links.gif";
	if (index == 8)
		document.getElementById("button8").src = "button/Crew.gif";
	if (index == 9)
		document.getElementById("button9").src = "button/Kontakt.gif";
	if (index == 10)
		document.getElementById("button10").src = "button/Gallery.gif";
	if (index == 11)
		document.getElementById("button11").src = "button/Gaestebuch.gif";
	if (index == 12)
		document.getElementById("button12").src = "button/Shop.gif";
	if (index == 13)
		document.getElementById("button13").src = "button/Newsletter.gif";
}
