function startMenu(){
	setVariables();
	scrollOn();	
}

function setVariables(){
	y1=220;ob=1;max=220 // 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=26 // controls the horizontal from the left side of the page

//  innerY=eval(iH)-35 // place at the bottom
	innerY=16 // controls the verticle from the top of the page 16
	if (document.layers){
		innerY-=10;innerX-=10
	}
	yy=eval(y);
	xx=eval(x);
	ydiff=ystart-yy;
	xdiff=xstart-xx;

	if ((ydiff<(-0.1))||(ydiff>(0.1))) movey=Math.round(ydiff/10),ystart-=movey
	if ((xdiff<(-0.1))||(xdiff>(0.1))) movex=Math.round(xdiff/10),xstart-=movex
	if(ystart<204){
		ystart=204;
	}


	N=(document.layers)?1:0
	V=(N) ? 4:5
	if (V==4){
		object="object1"
		eval(dS+object+sD+v+(ystart+innerY+10));
		eval(dS+object+sD+h+(xstart+innerX+10));
//eval(dS + objectX + sD + v + y);
	}else{
		object=document.getElementById('object1')
		object.style.top=ystart+innerY + "px";
		object.style.left=xstart+innerX + "px";
	}
	setTimeout("checkLocation()",10)
}

function checkLocationA(){
	ystart=eval(y)+5;
	xstart=eval(x)+5;
}
spread=40
function scrollOn(){
	items=1
	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 + "px";
		}
//eval(dS + objectX + sD + v + y);

		if (y1<max) xx=setTimeout ("scrollOn()",20)
		else y1=-500, max+=spread, ob+=1, xx=setTimeout("scrollOn()",20) // this max sets the spacing
	}
	if (ob>1){
		clearTimeout(xx);
		checkLocation();
	}
}
