var imgheight;
var imgleft;
var isNS = (document.layers) ? true : false;
window.screen.width > 800 ? imgheight=20 : imgheight=20;
window.screen.width > 800 ? imgleft=0 : imgleft=0;

// 左上漂浮位置
function myLeftload()
{
	if(isNS) {
		document.getElementById("myleft").pageY = pageYOffset + window.innerHeight - imgheight;
		document.getElementById("myleft").pageX = imgleft;
		leftmove();
	}
	else { // IE6
		document.getElementById("myleft").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight - 310;
		document.getElementById("myleft").style.left=imgleft;
		leftmove();
	}
}
function leftmove()
{
	if(isNS) {
		document.getElementById("myleft").top = pageYOffset + window.innerHeight - imgheight;
		document.getElementById("myleft").left = imgleft;
		setTimeout("leftmove();", 90);
	}
	else { // IE6
		document.getElementById("myleft").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight - 410;
		document.getElementById("myleft").style.left = imgleft;
		setTimeout("leftmove();", 90);
	}
}

if(isNS) {
	document.write("<layer id='myleft' top='200' width='100' height='200'>");
	document.write("<a href=\"#\" onmousedown=\"Clk(this, 'job_float');\" target=\"_blank\"><img src=''  border='0'></a><Br><br>");
	document.write("<a href=\"#\" onmousedown=\"Clk(this, 'job_float');\" target=\"_blank\"><img src=''  border='0'></a>");
	document.write("</layer>");
	myLeftload();
}
else {//这里是显示广告链接
	document.write("<div id='myleft' style='position: absolute; width: 80px; top: 80px; left: 1px; visibility: visible; z-index: 1;'>");
	document.write("<a href=\"http://www.00808.com/style/info/self8.asp\" target=\"_blank\"><img src='http://www.xkxz.com/gg_images/zuo.gif'  border='0' width=100 height=300></a>");
	document.write("");
	document.write("</div>");
	myLeftload();
}



var imgheight;
var imgright;
document.ns = navigator.appName == "Netscape";
window.screen.width > 800 ? imgheight=90 : imgheight=90;
window.screen.width > 800 ? imgright=window.screen.width-10-120 : imgright=window.screen.width-10-120;
//// 右上漂浮位置
function myRightload()
{
	if(navigator.appName == "Netscape") {
		document.getElementById("myright").pageY = pageYOffset + window.innerHeight - imgheight;
		document.getElementById("myright").pageX = imgright;
		rightmove();
	}
	else {
		document.getElementById("myright").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight - 310;
		document.getElementById("myright").style.left = imgright;
		rightmove();
	}
}
function rightmove()
{
	if(document.ns) {
		document.getElementById("myright").top = pageYOffset + window.innerHeight - imgheight;
		document.getElementById("myright").left = imgright;
		setTimeout("rightmove();", 80);
	}
	else {
		document.getElementById("myright").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight - 410;
		document.getElementById("myright").style.left = imgright;
		setTimeout("rightmove();", 80);
	}
}

if(navigator.appName == "Netscape") {
	document.write("<layer id='myright' style='position: absolute; width: 100; top: 270px; right:7px; visibility: visible; z-index: 1;'>");
	document.write("<a href=\"http://www.onidc.cn/style/info/self4.asp\" target=\"_blank\"><img src='http://www.xkxz.com/gg_images/you.gif'  border='0'></a>");
	document.write("</layer>");
	myRightload();
}
else {//IE
	document.write("<div id='myright' style='position: absolute; width: 100; top: 100px; right:1px; visibility: visible; z-index: 1;'>");
	document.write("<a href=\"http://www.onidc.cn/style/info/self4.asp\" target=\"_blank\"><img src='http://www.xkxz.com/gg_images/onidc.gif'  border='0'></a>");
	document.write("");
	document.write("</div>");
	myRightload();
}