// JavaScript Document

function setVariables() 
{
if (document.all) 
{  // Internet Explorer 4.x , 5.x and 6.x
	h = ".pixelLeft=";
	v = ".pixelTop=";
	dS = "";
	sD = ".style";
	y = "document.body.scrollTop";
	x = "document.body.scrollLeft";
	iW = "document.body.clientWidth";
	iH = "document.body.clientHeight";
}

else if (document.layers) 
{ // Navigator 4.x
	v = ".top=";
	h = ".left=";
	dS = "document.";
	sD = "";
	y = "window.pageYOffset";
	x = "window.pageXOffset";
	iW = "window.innerWidth";
	iH = "window.innerHeight";
}

else if (document.getElementById) 
{ // Netscape 6
	v = ".top=";
	h = ".left=";
	dS = "document.getElementById('";
	sD = "').style";
	y = "window.pageYOffset";
	x = "window.pageXOffset";
	iW = "window.innerWidth";
	iH = "window.innerHeight";
}

else 
{ // andere browsers
	document.write('&nbsp;');
}
//xyz=500;

object="myframe";
checkLocationA()
}

movex=0,movey=0,xdiff=0,ydiff=0,ystart=0,xstart=0;
var minus;
function checkLocation()
{
	// innerX - Represents the distsnce in pixels counting from right to left...
	///innerX=eval(iW)-600;
	innerX=-0;
	// innerY - Represents the distance in pixels counting from bottom to top...
	innerY=eval(iH)-0;
	
	if (document.all)
	{
		innerX=0;
		document.body.clientHeight
		minus = 55; 
	}
	else
	{
		minus = 56;
	}

	yy=eval(y);
	xx=eval(x);
	ydiff=ystart-yy;
	xdiff=xstart-xx;
	if ((ydiff<(-1))||(ydiff>(1))) 
	{
		movey=Math.round(ydiff/1);
		ystart-=movey;
	}
    
	eval(dS+object+sD+v+( ystart+eval(iH)-minus));
	eval(dS+object+sD+h+(xstart+innerX));
	setTimeout("checkLocation()",1);
}

function checkLocationA()
{
	ystart=eval(y);
	xstart=eval(x);
}
