
var xPos1=50,yPos1=0,step1=1,height1=0,Hoffset1=0,Woffset1=0,yon1=0,xon1=0;

function changePos1()
{
	width1=document.body.clientWidth;
	height1=document.body.clientHeight;
	Hoffset1=document.getElementById("img1").offsetHeight;
	Woffset1=document.getElementById("img1").offsetWidth;
	document.getElementById("img1").style.left=xPos1+document.body.scrollLeft;
	document.getElementById("img1").style.top=yPos1+document.body.scrollTop;
	yPos1=yon1?yPos1+step1:yPos1-step1;
	yPos1<0&&(yon1=1,yPos1=0);
	yPos1>=height1-Hoffset1&&(yon1=0,yPos1=height1-Hoffset1);
	xPos1=xon1?xPos1+step1:xPos1-step1;
	xPos1<0&&(xon1=1,xPos1=0);
	xPos1>=width1-Woffset1&&(xon1=0,xPos1=width1-Woffset1);
}

function MoveLogo(strPic)
{
//	document.write('<OBJECT id=img1 width=100 height=100 style=display:none;position:absolute;z-index:1000 type=text/x-scriptlet data="about:<body><div>'+strPic+'</div></body>"></OBJECT>');
	document.write('<div id=img1 style=position:absolute;z-index:1000>'+strPic+'</div>');
	document.getElementById("img1").style.top=yPos1;
	setInterval('changePos1()',16);
}






