var result;var data=new Array();data[0]='<a href="#" target="null"><img src="/sites/default/UserFiles/image/yushudizheng(1).gif" width="1002px" height="82px" alt="0" border="0px" /></a>';var weight=new Array();var max_index=0;weight[0]=1;function SelectAd(){var m = weight[0];var max_index=0;for (var i = 1; i <= weight.length; i++) {if (weight[i]>m) {max_index=i;m=weight[i];};result=data[max_index]; }};SelectType(0);function SelectType(type){SelectAd();switch(type){case 1:Banner();break;case 2:Double();break;case 3:Scroll();break;case 4:RndFloat();break;case 5:Matrix(0,1);break;}};function Banner(){document.write('<div id="Push_BannerAdLayer_5848cdd2-0909-4f92-9465-6eebeae8a129" style="width:1002px; height:82px;clear:both;overflow: hidden;" >'+result+'</div>');};function Scroll(){document.write('<div id="Push_ScrollLayer_5848cdd2-0909-4f92-9465-6eebeae8a129" style="position:absolute;z-index:1000;">'+result+'<br/><a onclick="HiddenDiv(\'Push_ScrollLayer_5848cdd2-0909-4f92-9465-6eebeae8a129\')"><span style="color: rgb(0, 0, 0);">×关闭浮动窗口</span></a></div>');var obj=document.getElementById("Push_ScrollLayer_5848cdd2-0909-4f92-9465-6eebeae8a129");this.MoveLayer=function(){obj.style.top=document.documentElement.scrollTop+obj.offsetHeight+'px';obj.style.left=document.documentElement.scrollLeft+'px';};window.onscroll=this.MoveLayer;};function Double(){document.write('<div id="Push_DoubleLayer_5848cdd2-0909-4f92-9465-6eebeae8a129_1" style="left:22px;position:absolute;top:69px;">'+result+'<br><a href="#" onclick="Close();"><img border="0" src="/sites/default/skins/skin1/images/close.gif" /></a></div>');weight[max_index]=-1; SelectAd();document.write('<div id="Push_DoubleLayer_5848cdd2-0909-4f92-9465-6eebeae8a129_2" style="right:22px;position:absolute;top:69px;">'+result+'<br><a href="#" onclick="Close();"><img border="0" src="/sites/default/skins/skin1/images/close.gif" /></a></div>');var obj1=document.getElementById('Push_DoubleLayer_5848cdd2-0909-4f92-9465-6eebeae8a129_1');var obj2=document.getElementById('Push_DoubleLayer_5848cdd2-0909-4f92-9465-6eebeae8a129_2');this.Close=function(){obj1.style.display='none';obj2.style.display='none';};var lastScrollY=0;this.Show=function(){var diffY;if(document.documentElement&&document.documentElement.scrollTop){diffY=document.documentElement.scrollTop;}else if(document.body){diffY=document.body.scrollTop;};var percent=.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);obj1.style.top=parseInt(obj1.style.top)+percent+"px";obj2.style.top=parseInt(obj2.style.top)+percent+"px";lastScrollY=lastScrollY+percent;};window.setInterval("this.Show()",1);};function RndFloat(){document.write('<div id="Push_FloatLayer_5848cdd2-0909-4f92-9465-6eebeae8a129" style="position:absolute;z-index:1000;visibility: visible;">'+result+'<br/><a onclick="HiddenDiv(\'Push_FloatLayer_5848cdd2-0909-4f92-9465-6eebeae8a129\')"><span style="color: rgb(0, 0, 0);">×关闭浮动窗口</span></a></div>');var initXPos=Math.random()*document.body.clientWidth;var initYPos=Math.random()*document.body.clientHeight;var step=2;var delay=30;var clientHeight=0;var clientWidth=0;var objHeight=0;var objWidth=0;var curYPos=0;var curXPos=0;var pause=true;var interval;var obj=document.getElementById("Push_FloatLayer_5848cdd2-0909-4f92-9465-6eebeae8a129");obj.style.top=initYPos;this.changePos=function(){clientWidth=document.body.clientWidth;clientHeight=document.body.clientHeight;objHeight=obj.offsetHeight;objWidth=obj.offsetWidth;obj.style.left=initXPos+document.body.scrollLeft+'px';obj.style.top=initYPos+document.body.scrollTop+'px';if(curYPos){initYPos=initYPos+step;}else{initYPos=initYPos-step;};if(initYPos<0){curYPos=1;initYPos=0;};if(initYPos>=(clientHeight-objHeight)){curYPos=0;initYPos=(clientHeight-objHeight);};if(curXPos){initXPos=initXPos+step;}else{initXPos=initXPos-step;};if(initXPos<0){curXPos=1;initXPos=0;};if(initXPos>=(clientWidth-objWidth)){curXPos=0;initXPos=(clientWidth-objWidth);}};this.start=function(){obj.visibility="visible";interval=setInterval("this.changePos()",delay);};this.pause_resume=function(){if(pause){clearInterval(interval);pause=false;}else{interval=setInterval("this.changePos()",delay);pause=true;}};obj.onmouseover=this.pause_resume;obj.onmouseout=this.pause_resume;window.onload=this.start;};function Matrix(per,sum){var length=data.length;for(var i=0;i<sum;i++){document.write(data[i%length]);if((i+1)%per==0){document.write("<br />");}}}function HiddenDiv(id){document.getElementById(id).style.display='none';};