
function setVariables(){
	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=".left=";
		v=".top=";
		dS="";
		sD=".style";
		y="document.body.scrollTop";
		x="document.body.scrollLeft";
		iW="document.body.clientWidth";
		iH="document.body.clientHeight"
	}
	object="logo";
	checkLocationA()
}
var movex=0,movey=0,xdiff=0,ydiff=0,ystart=0,xstart=0;

function checkLocation(){
   var innerX,innerY,yy,xx,yyoriginal,ydiff,xdiff,V,N;
	//innerX=eval(iW)-50; // place to the right
	innerX=0; // place to the right
	// innerX=20 // controls the horizontal from the left side of the page

	//innerY=eval(iH)-35; // place at the bottom
	innerY=0; // place at the bottom
	// innerY=20 // controls the verticle from the top of the page
	if (document.layers){innerY-=10;innerX-=10}
	yy=eval(y);
	yyoriginal=yy;  //neu matti	
	xx=eval(x);

	if (yy>50) yy=yy-48;	  //neu matti	

	ydiff=ystart-yy;
	xdiff=xstart-xx;


	if ((ydiff<(-1))||(ydiff>(1))) movey=Math.round(ydiff/4),ystart-=movey;		// dividiert durch 4 scrollt schneller als durch 10, matti
	if ((xdiff<(-1))||(xdiff>(1))) movex=Math.round(xdiff/10),xstart-=movex;

	if (yyoriginal<=50) ystart=0;  //neu matti	

	N=(document.layers)?1:0
	V=(N) ? 4:5;
	if (V==4){
		eval(dS+object+sD+v+(ystart+innerY));
		eval(dS+object+sD+h+(xstart+innerX));
		//eval(dS + objectX + sD + v + y);
	}
	else{
		object=document.getElementById('logo');
		//object.style.top=ystart+innerY-30+"px";
		//object.style.left=xstart+innerX-30+"px";
		object.style.top=ystart+innerY+"px";
		object.style.left=xstart+innerX+"px";
	}
	setTimeout("checkLocation()",10);
}

function checkLocationA(){ystart=eval(y);xstart=eval(x);}
var v,h,dS,sD,y,x,iW,iH,object;
setVariables();
checkLocation();

