﻿var adNum = 2, adHeight = 80;
function movead()
{
	document.getElementById("leftmove").style.top = document.body.scrollTop + document.body.clientHeight - (adHeight * adNum + 160);
	document.getElementById("leftmove").style.left = document.body.scrollLeft + 20;
	document.getElementById("rightmove").style.top = document.body.scrollTop + document.body.clientHeight - (adHeight * adNum + 160);
	document.getElementById("rightmove").style.left = document.body.scrollWidth-80;
}
if (typeof(isIE) == "undefined")
	var isIE = (window.ActiveXObject) ? true : false;
if(isIE)
{
    document.body.onscroll=movead;
}
else
{
	document.getElementById("leftmove").style.position = "fixed";
	document.getElementById("rightmove").style.position = "fixed";
}

movead();
