// position
var marginTop = 330
var marginLeft = 2
var adRightWidth = 98

var adLeftSrc = "show";
var adRightSrc = "show";

var navUserAgent = navigator.userAgent

function load(){
	judge();
	move();
}

function move() {
	judge();
	setTimeout("move();",300)
}

// set position
function judge(){
	if (navUserAgent.indexOf("Firefox") >= 0 || navUserAgent.indexOf("Opera") >= 0) {
		if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adLeftHeight - marginTop + 'px';}
		if (adRightSrc != "") {
			document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adRightHeight - marginTop + 'px';
			document.getElementById("adRightFloat").style.left = ((document.body.clientWidth > document.documentElement.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
		} 
	}
	else{// ie
		if (adLeftSrc != "") {
			document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + marginTop + 'px';
			document.getElementById("adLeftFloat").style.left = marginLeft + 'px';
		}
		if (adRightSrc != "") {
			document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + marginTop + 'px';
			document.getElementById("adRightFloat").style.left = ((document.documentElement.clientWidth == 0)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
		}
	}
}
load();
function closeDL(){
	ifCouplet=false;
	document.getElementById('adLeftFloat').style.visibility='hidden';
	document.getElementById('adRightFloat').style.visibility='hidden';
}