
document.write("<!--<div id='logo' style='position:absolute; visibility:show; left:0px; top:0px; z-index:2'>")
document.write("<a href='FCSched.htm'><img src='/images/2009Highlandgames_Small.jpg' width='183' height='259' border='0' /></a>")
document.write("")
document.write("")
document.write("")
document.write("")
document.write("")
document.write("</div>-->")



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";
	objectWidth=183;
	objectHeight=259;
	checkLocationA()
}
var movex=0,movey=0,xdiff=0,ydiff=0,ystart=0,xstart=0;

function checkLocation(){
	innerX=eval(iW)-20; // place to the right
	//innerX=0; // place to the right

	innerY=eval(iH)-18; // place at the bottom
	//innerY=0; // place at the bottom

	if (document.layers){innerY-=10;innerX-=10}
	yy=eval(y);
	xx=eval(x);

	ydiff=ystart-yy;
	xdiff=xstart-xx;


	if ((ydiff<(-1))||(ydiff>(1))) movey=Math.round(ydiff/10),ystart-=movey;		// dividiert durch 4 scrollt schneller als durch 10, matti
	if ((xdiff<(-1))||(xdiff>(1))) movex=Math.round(xdiff/10),xstart-=movex;

	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.left=xstart+innerX-objectWidth+"px";
		object.style.top=ystart+innerY-objectHeight+"px";
		//object.style.top=ystart+innerY+"px";
		//object.style.left=xstart+innerX+"px";
	}
	setTimeout("checkLocation()",10);
}

function checkLocationA(){ystart=eval(y);xstart=eval(x);}
setVariables();
checkLocation();



