document.write('<Div id="Xnc_Emot" Style="POSITION:absolute;Z-INDEX: 99;"></Div>');


function DispMagicEmot(EmotID){
	
var now=new Date(); 
var abc=now.getSeconds()%10

	MagicEmotUrl = "year/" + abc + ".swf";
	var obj = document.getElementById("Xnc_Emot");
		obj.innerHTML = '<Div style="padding:0;position:relative;"><Div style="padding:0;position:absolute;z-index:1;"><OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="450"><PARAM NAME=movie VALUE="'+ MagicEmotUrl +'"><PARAM NAME=quality VALUE=high><param name="flashvars" value="autoplay=1&id=1234567_flash&startCallBack=ACT.ad&endCallBack=ACT.ab&content= " /><PARAM NAME=play VALUE=true><param name="wmode" value="transparent"><embed src="' + MagicEmotUrl +'" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="550" height="450" flashvars="autoplay=1&id=1234567_flash&startCallBack=ACT.ad&endCallBack=ACT.ab&content= "></embed></OBJECT></Div><img src="year/blank.gif" style="padding:0;position:absolute;width:550;height:450;left:0;top:0;z-index:2;cursor:hand;" Onclick="document.getElementById(\'Xnc_Emot\').innerHTML=\'\';" Alt="点击隐藏烟花"  oncontextmenu="self.event.returnValue=false"></Div>';
		obj.style.top = (document.body.scrollTop+((document.body.clientHeight-450)/2))+"px";
		obj.style.left = (document.body.scrollLeft+((document.body.clientWidth-600)/2))+"px";
		obj.style.display = 'inline';
}

function initEcAd() {
document.all.AdLayer1.style.posTop = -200;
document.all.AdLayer1.style.visibility = 'visible'
document.all.AdLayer2.style.posTop = -200;
document.all.AdLayer2.style.visibility = 'visible'
MoveLeftLayer('AdLayer1');
MoveRightLayer('AdLayer2');
}
function MoveLeftLayer(layerName) {
var x = 5;
var y = 432;// 左侧广告距离页首高度
var bdy = (document.documentElement && document.documentElement.clientWidth)?document.documentElement:document.body;
var diff = (document.body.scrollTop + y - document.all.AdLayer1.style.posTop)*.40;
var y = bdy.scrollTop+bdy.offsetHeight - 130;
eval("document.all." + layerName + ".style.posTop = parseInt(y)");
eval("document.all." + layerName + ".style.posLeft = x");
setTimeout("MoveLeftLayer('AdLayer1');", 20);
}
function MoveRightLayer(layerName) {
var x = 7;
var y = 450;// 右侧广告距离页首高度
var bdy = (document.documentElement && document.documentElement.clientWidth)?document.documentElement:document.body;
var diff = (document.body.scrollTop + y - document.all.AdLayer2.style.posTop)*.40;
var y = bdy.scrollTop+bdy.offsetHeight - 120;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posRight = x");
setTimeout("MoveRightLayer('AdLayer2');", 20);
}

document.write("<div id=AdLayer1 style='position: absolute;visibility:hidden;z-index:1'><div align=center></div></div>"
+"<div id=AdLayer2 style='position: absolute;visibility:hidden;z-index:1'><DIV  style=\"DISPLAY: block; FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='year/play.png',sizingMethod='scale'); WIDTH: 106px; HEIGHT: 115px;cursor: hand;\"></DIV></div>");
initEcAd()
