﻿var result;var data=new Array();data[0]='<div id="cflash"><ul id="cflash_box"><li style="DISPLAY: block" class="switch_item current-li"><a href="http://www.szbl.cc/single/12215.html"><img alt="深圳巴黎婚纱 婚博会" src="/fck_upload//day_120222/201202220535313849.jpg" width="1280" height="388" /></a></li><li style="DISPLAY: block" class="switch_item current-li"><img alt="深圳婚纱摄影：皇家花园" src="/fck_upload//day_120215/201202150223366673.jpg" width="1280" height="388" /></li><li style="DISPLAY: block" class="switch_item current-li"><img alt="深圳婚纱摄影：巴黎婚纱团购 6999" src="/fck_upload//day_111117/201111171053349912.jpg" width="1280" height="388" /></li><li style="DISPLAY: block" class="switch_item current-li"><a href="http://www.szbl.cc/News/Info/05102736812.html"><img alt="蝴蝶树写真馆 518 春" src="/fck_upload//day_120203/201202030443451689.jpg" width="1280" height="388" /></a></li><li style="DISPLAY: block" class="switch_item current-li"><img alt="深圳婚纱礼服：蒂芬妮礼服只需380元起" src="/fck_upload//day_111024/201110241123402736.jpg" width="1280" height="388" /></li><li style="DISPLAY: block" class="switch_item current-li"><img alt="深圳 婚纱摄影 深圳巴黎婚纱 婚纱照 样片展示" src="/fck_upload//day_120215/201202150209452420.jpg" width="1280" height="388" />&nbsp;</li><li style="DISPLAY: block" class="switch_item current-li"><img alt="深圳 婚纱摄影 深圳巴黎婚纱 婚纱照 样片展示" src="/fck_upload//day_111024/201110240100473325.jpg" width="1280" height="388" />&nbsp;</li><li style="DISPLAY: block" class="switch_item current-li"><img title="深圳 婚纱摄影 深圳巴黎婚纱 婚纱照 样片展示" alt="" src="/fck_upload//day_111024/201110240102499214.jpg" width="1280" height="388" /></li></ul><ul id="cflash_index"><li class="cflash_li cflash_on">1</li><li class="cflash_li">2</li><li class="cflash_li">3</li><li class="cflash_li">4</li><li class="cflash_li">5</li><li class="cflash_li">6</li><li class="cflash_li">7</li><li class="cflash_li">8</li></ul></div>';function SelectAd(){var sum=5;var weight=new Array();weight[0]=5;var m=0;var rndNum=Math.random()*sum;for(var i=0;i<=weight.length;i++){m+=weight[i];if(m>=rndNum){result=data[i];break;};if(i==weight.lengh){i=0;}}};SelectType(1);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(4,data.length);break;}};function Banner(){document.write('<div id="Push_BannerAdLayer_21" style="width:1280px; height:388px;overflow: hidden;" >'+result+'</div>');};function Scroll(){document.write('<div id="Push_ScrollLayer_21" style="position:absolute;z-index:1000;">'+result+'</div>');var obj=document.getElementById("Push_ScrollLayer_21");this.MoveLayer=function(){obj.style.top=document.body.scrollTop+obj.offsetHeight;obj.style.left=document.body.scrollLeft+obj.offsetWidth;};window.onscroll=this.MoveLayer;};function Double(){document.write('<div id="Push_DoubleLayer_21_1" style="left:22px;position:absolute;top:69px;">'+result+'<br><a href="#" onclick="Close();"><img border="0" src="/Webadmin/images/ico/close.gif" /></a></div>');document.write('<div id="Push_DoubleLayer_21_2" style="right:22px;position:absolute;top:69px;">'+result+'<br><a href="#" onclick="Close();"><img border="0" src="/Webadmin/images/ico/close.gif" /></a></div>');var obj1=document.getElementById('Push_DoubleLayer_21_1');var obj2=document.getElementById('Push_DoubleLayer_21_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_21" style="position:absolute;z-index:1000;visibility: visible;">'+result+'</div>');var initXPos=Math.random()*document.body.clientWidth;var initYPos=Math.random()*document.body.clientHeight;var step=2;var delay=10;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_21");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;obj.style.top=initYPos+document.body.scrollTop;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){for(var i=0;i<sum;i++){document.write(data[i]);if(i==per||per==0){document.write("<br />");}}}
