<!-- Begin
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 = ".pixelLeft=";
v = ".pixelTop=";
dS = "";
sD = ".style";
y = "document.body.scrollTop";
x = "document.body.scrollLeft";
iW = "document.body.clientWidth";
iH = "document.body.clientHeight";
}
xyz = 500;
innerX = eval(iW) - 115;
innerY = eval(iH) - 110;
object = "layerBannerHomeXZ01";
checkLocationA();
}
movex = 0;
movey = 0;
xdiff = 0;
ydiff = 0;
ystart = 0;
xstart = 0;

function getLeft(MyObject){
	if(MyObject!=undefined){
		if (MyObject.offsetParent) { return (MyObject.offsetLeft + getLeft(MyObject.offsetParent)); }
		else{ return (MyObject.offsetLeft); }
	}
}

function checkLocation() {
	yy = eval(y);
	xx = eval(x);
	ydiff = ystart - yy;
	xdiff = xstart - xx;

	var heightLogo = 90;//altura do inicio da pagina até o final do logo
	var nDifLogo = ( yy<=heightLogo ? 0 : heightLogo);
	
	if ((ydiff < (-1)) || (ydiff > (1))) movey = Math.round(ydiff / 10), ystart -= movey;
	if ((xdiff < (-1)) || (xdiff > (1))) movex = Math.round(xdiff / 10), xstart -= movex;
		//var nX = getLeft(document.getElementById('objLogoID'))+10;
		//eval(dS + object + sD + v + (ystart +95 - nDifLogo)); //eval(dS + object + sD + v + (ystart + innerY));
		//eval(dS + object + sD + h + (nX)); //eval(dS + object + sD + h + (xstart + innerX));
		if(document.getElementById(object)!=undefined){
			var nX = screen.width/2; 
			var nXobj = document.getElementById(object).offsetWidth/2;
			nX = parseInt(nX-nXobj);
			
			
			document.getElementById(object).style.pixelLeft = (nX);
			document.getElementById(object).style.pixelTop = (ystart +95 - nDifLogo);
			setTimeout("checkLocation()", 10);
		}
}

function checkLocationA() {
ystart = eval(y);
xstart=eval(x);
}

function switchLogo(abc) {
if (abc == "menu") {
eval(dS + object + sD + v + 0);
eval(dS + object + sD + h + (-200));
object = abc;
}
else xyz = setTimeout("delayLogo()", 2000)
}

function delayLogo() {
eval(dS + object + sD + v + 0);
eval(dS + object + sD + h + (-200));
object = 'layerBannerHomeXZ01';
}
// End -->
