
var imgwidth=new Array();
var imgheight=new Array();
var imgpath=new Array();
var imgurl=new Array();
var NUM,i,aOUT;

NUM=1;



//左上
//imgwidth[1]='160';imgheight[1]='150';
//imgpath[1]='http://www.hzlottery.com/guanggao/20100623.gif';
//imgurl[1]='http://www.hzlottery.com/content.asp?Id=2303';



//右上
imgwidth[1]='150';imgheight[1]='148';
imgpath[1]='http://www.hzlottery.com/guanggao/20100623.gif';
imgurl[1]='http://www.hzlottery.com/content.asp?Id=2303';




//左下
//imgwidth[2]='100';imgheight[2]='100';
//imgpath[2]='http://www.hz66.com/2009/guanggao/2010/czxj.jpg';
//imgurl[2]='http://www.hzlottery.com/tcgg/czxj/1.html';

////右下
//imgwidth[1]='100';imgheight[1]='100';
//imgpath[1]='http://www.hz66.com/2009/guanggao/whdjc.gif';
//imgurl[1]='http://ad.hz66.com/cyds/';




////
////擎天柱左
//imgwidth[4]='100';imgheight[4]='300';
//imgpath[4]='/2009/images/2009/2008by.swf';
//imgurl[4]='flash';
//////
////////擎天柱右
//imgwidth[1]='150';imgheight[1]='290';
//imgpath[1]='/swf/Adtop-3.swf';
//imgurl[1]='flash';





//弹出窗口

//var pop_heigh=200 ; //窗体高度
//var pop_width=300 ; //窗体宽度
//var pop_url="http://zt.hz66.com/wrypc/pop.asp" ;//链接地址
//var pop_name="污染源普查"; //窗口标题
//window.open(pop_url,pop_name,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+pop_width+",height="+pop_heigh+",screenX=5,screenY=5");




for(i=1;i<=NUM;i++){
if(imgurl[i]=='flash'){
aOUT="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0' id=sus"+i+" style='POSITION:absolute;' height="+imgheight[i]+" width="+imgwidth[i]+" border=0><param name=movie value='"+imgpath[i]+"'></object>";
}else{
aOUT="<DIV id=sus"+i+" style='POSITION:absolute;WIDTH:"+imgwidth[i]+"px;HEIGHT:"+imgheight[i]+"px'><A href='"+imgurl[i]+"' target=_blank><IMG src='"+imgpath[i]+"' height="+imgheight[i]+" width="+imgwidth[i]+" border=0></A><br align='right'><span onclick=\"hidead('sus"+i+"')\" ' class='s4' style='cursor:hand'>关闭</span></DIV>";
}


document.write(aOUT);
}
var Scrollimg=new Array();
var lastScrollY=new Array();




//左上
//Scrollimg[2]=document.all.sus2;
//lastScrollY[2]=0;
//Scrollimg[2].style.top=40;
//Scrollimg[2].style.left=10;

//右上
Scrollimg[1]=document.all.sus1;
lastScrollY[1]=0;
Scrollimg[1].style.top=40;
Scrollimg[1].style.right=10;

//左下
//Scrollimg[2]=document.all.sus2;
//lastScrollY[2]=0;
//Scrollimg[2].style.top=document.body.clientHeight-145;
//Scrollimg[2].style.left=10;


//右下
//Scrollimg[1]=document.all.sus1;
//lastScrollY[1]=0;
//Scrollimg[1].style.top=document.body.clientHeight-145;
//Scrollimg[1].style.right=10;


////擎天柱左
//Scrollimg[4]=document.all.sus4;
//lastScrollY[4]=0;
//Scrollimg[4].style.top=document.body.clientHeight/2-165;
//Scrollimg[4].style.left=10;
////////擎天柱右
//Scrollimg[1]=document.all.sus1;
//lastScrollY[1]=0;
//Scrollimg[1].style.top=document.body.clientHeight/2-165;
//Scrollimg[1].style.left=document.body.clientWidth-110;





function changePosition(tag)
{
	diffY = document.body.scrollTop;
	percent = .1 * (diffY - lastScrollY[tag]);
	if(percent > 0)
		percent = Math.ceil(percent);
	else
		percent = Math.floor(percent);
	Scrollimg[tag].style.pixelTop += percent;
	lastScrollY[tag] = lastScrollY[tag] + percent;
}
function hidead(obj)
{
document.getElementById(obj).style.display="none";
}


//滚动速度
for(i=1;i<=NUM;i++) window.setInterval("changePosition("+i+")",10);



function closead(){
sus4.style.visibility='hidden';
sus5.style.visibility='hidden';
}