/*jplp*/
function plp(){}plp.prototype={plp_init:function(c,k,d,i,h,j,g,n,b){var m=c.substr(c.length-4,c.length).toLowerCase()==".swf",a=document.createElement("div"),e=0;a.id=d;a.style.position="absolute";if(n=="")a.style.left=j+"px";else a.style.right=j+"px";b=typeof b=="undefined"?"block":b;document.body.appendChild(a);if(m){var f=new sinaFlash(c,"",i,h,"7","",false,"high");f.addParam("wmode","transparent");f.addVariable("adlink",escape(k));f.write(d);a.innerHTML+="<div style='font-size:12px;text-indent:5px;'><a href='javascript:void(0);' target='_self' style='color:#000;text-decoration:none;display:"+b+"' onclick=\"document.getElementById('"+d+"').style.display='none' \">关闭</a></div>"}else a.innerHTML='<a href="'+k+'" target="_blank"><img src="'+c+'" width="'+i+'" height="'+h+"\" border=\"0\"></a><div style='font-size:12px;text-indent:5px;'><a href='javascript:void(0);' target='_self' style='color:#000;text-decoration:none;display:"+b+"' onclick=\"document.getElementById('"+d+"').style.display='none' \">关闭</a></div>";var l=function(){var b;if(document.documentElement&&document.documentElement.scrollTop)b=document.documentElement.scrollTop;else if(document.body)b=document.body.scrollTop;percent=.1*(b-e);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);g=parseInt(g)+percent+"px";a.style.top=g;e=e+percent};window.setInterval(l,1)},dl_init:function(r,s,q,t,g,f,m,j,b,c,a,k,l,n,o){var h=0;a=typeof a=="undefined"?"block":a;var u=function(){var a;if(document.documentElement&&document.documentElement.scrollTop)a=document.documentElement.scrollTop;else if(document.body)a=document.body.scrollTop;percent=.1*(a-h);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.getElementById(b).style.top=parseInt(document.getElementById(b).style.top)+percent+"px";document.getElementById(c).style.top=parseInt(document.getElementById(c).style.top)+percent+"px";h=h+percent};txt1="<div id='"+b+"' style='left:0;position:absolute;top:"+t+"px; width:"+g+"px;height:"+f+"px;z-index:9999999;'><div style='font-size:12px;text-indent:5px;'><a href='javascript:void(0);' target='_self' style='color:#000;text-decoration:none;display:"+a+"' onclick=\"document.getElementById('"+b+"').style.display='none' \">×</a></div><a href='"+q+"' target='_blank'><img style='position:absolute;z-index:99;' id='"+k+"' src='"+s+"' width='"+m+"' height='"+j+"' style='border:none;' /></a><img style='position:absolute;z-index:98;' src='"+r+"' width='"+g+"' height='"+f+"' id='"+n+"' style='border:none;' /></div><div id='"+c+"' style='right:0;position:absolute;TOP:"+t+"px; width:"+g+"px;height:"+f+"px;z-index:9999999;'><div style='font-size:12px;padding-right:5px;text-align:right;'><a href='javascript:void(0);' target='_self' style='color:#000;text-decoration:none;display:"+a+"' onclick=\"document.getElementById('"+c+"').style.display='none' \">×</a></div><a href='"+q+"' target='_blank'><img style='position:absolute;z-index:99;right:0;' id='"+l+"' width='"+m+"' height='"+j+"' src='"+s+"' style='border:none;' /></a><img style='position:absolute;z-index:98;right:0;' src='"+r+"' width='"+g+"' height='"+f+"' id='"+o+"' style='border:none;' /></div>";document.write(txt1);var d=document.getElementById(k),e=document.getElementById(l),v=document.getElementById(n),w=document.getElementById(o),i=function(){d.style.visibility="hidden";e.style.visibility="hidden"},p=function(){d.style.visibility="visible";e.style.visibility="visible"};v.onmouseover=function(){p()};d.onmouseout=function(){i()};w.onmouseover=function(){p()};e.onmouseout=function(){i()};setTimeout(i,3e3);d.style.visibility="visible";e.style.visibility="visible";window.setInterval(u,1)},fdtlBottom_init:function(c,h,f,e,d,i,b){var j=c.substr(c.length-4,c.length).toLowerCase()==".swf",a=document.createElement("div"),k=document.documentElement.clientWidth,l=0;a.id=f;a.style.width=e;a.style.height=d;a.style.position="absolute";a.style.zIndex=1e6;a.style.left=(k-e)/2+"px";b=typeof b=="undefined"?"block":b;document.body.appendChild(a);if(j){var g=new sinaFlash(c,"",e,d,"7","",false,"high");g.addParam("wmode","transparent");g.addVariable("adlink",escape(h));g.write(f);a.innerHTML+="<div style='position:absolute;top:0;left:0;z-index:1000001;font-size:12px;text-indent:5px;'><a href='javascript:void(0);' target='_self' style='color:#000;text-decoration:none;display:"+b+"' onclick=\"document.getElementById('"+f+"').style.display='none' \">关闭</a></div>"}else a.innerHTML='<a href="'+h+'" target="_blank"><img src="'+c+'" width="'+e+'" height="'+d+"\" border=\"0\"></a><div style='font-size:12px;text-indent:5px;'><a href='javascript:void(0);' target='_self' style='position:absolute;top:0;left:0;z-index:1000001;color:#000;text-decoration:none;display:"+b+"' onclick=\"document.getElementById('"+f+"').style.display='none' \">关闭</a></div>";Move_fdtlBottom=function(){var b=document.documentElement.clientHeight,c=document.documentElement.scrollTop;a.style.top=b-d+c-i+"px"};window.setInterval(Move_fdtlBottom,1)},fdtlTop_init:function(c,j,e,d,i,h,b){var m=c.substr(c.length-4,c.length).toLowerCase()==".swf",a=document.createElement("div"),k=document.documentElement.clientWidth,f=0;a.id=e;a.style.position="absolute";a.style.zIndex=1e6;a.style.marginLeft=(k-d)/2+"px";a.style.marginRight=(k-d)/2+"px";b=typeof b=="undefined"?"block":b;document.body.appendChild(a);if(m){var g=new sinaFlash(c,"",d,i,"7","",false,"high");g.addParam("wmode","transparent");g.addVariable("adlink",escape(j));g.write(e);a.innerHTML+="<div style='position:absolute;top:0;left:0;z-index:1000001;font-size:12px;text-indent:5px;'><a href='javascript:void(0);' target='_self' style='color:#000;text-decoration:none;display:"+b+"' onclick=\"document.getElementById('"+e+"').style.display='none' \">关闭</a></div>"}else a.innerHTML='<a href="'+j+'" target="_blank"><img src="'+c+'" width="'+d+'" height="'+i+"\" border=\"0\"></a><div style='position:absolute;top:0;left:0;z-index:1000001;font-size:12px;text-indent:5px;'><a href='javascript:void(0);' target='_self' style='color:#000;text-decoration:none;display:"+b+"' onclick=\"document.getElementById('"+e+"').style.display='none' \">关闭</a></div>";var l=function(){var b;if(document.documentElement&&document.documentElement.scrollTop)b=document.documentElement.scrollTop;else if(document.body)b=document.body.scrollTop;percent=.1*(b-f);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);h=parseInt(h)+percent+"px";a.style.top=h;f=f+percent};window.setInterval(l,1)}};var jplp=new plp,jdl=new plp,jfdtlBottom=new plp,jfdtlTop=new plp
/*juanzhou*/
var couple=function(conf){var a=this,c={isIE:!!(window.attachEvent&&!window.opera),isOpera:!!window.opera,isSafari:navigator.userAgent.indexOf("Safari")>-1,isMoz:navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")==-1,isMobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/),isChrome:navigator.appVersion.indexOf("Chrome")>0};a.rand=parseInt(1e6+Math.random()*1e6,10).toString().substring(1);a.coupletId="coupletAd_"+a.rand;document.write('<div id="'+a.coupletId+'"></div>');a.coupletAdBox=document.getElementById(a.coupletId);a.add=function(b,position){if(b){var c=a.coupletId+"_"+position,h='<div id="'+c+'" style="'+position+":"+conf.border+"px;text-align:"+position+';"><div id="'+c+'_adv"></div><button name="'+a.coupletId+'_cls" type="button">&#20851;&nbsp;&#38381;</button></div>';a.coupletAdBox.innerHTML+=h;var g=document.getElementById(c);with(g.style){position="absolute";zIndex=1e5;width=conf.width+"px";height=conf.height+"px";top=conf.top+"px"}var d=b.substring(b.lastIndexOf(".")).toLowerCase();if(d==".swf"){var e=new sinaFlash(b,"",conf.width,conf.height,"7","",false,"high");e.addParam("wmode","transparent");e.addVariable("adlink",escape(conf.url));e.write(c+"_adv")}else if(d==".jpg"||d==".gif"||d==".png"){var f='<a href="'+conf.url+'" target="_blank"><img src="'+b+'" width="'+conf.width+'" height="'+conf.height+'" border="0"></a>';document.getElementById(c+"_adv").innerHTML=f}}};a.add(conf.right,"right");a.add(conf.left,"left");for(var e=function(){window.clearInterval(a.i);if(c.isIE)a.coupletAdBox.removeNode(true);else a.coupletAdBox.innerHTML=""},d=document.getElementsByName(a.coupletId+"_cls"),b=0;b<d.length;b++){with(d[b].style){fontSize="12px";backgroundColor="white";border="none"}d[b].onclick=e}a.move=function(){var d=document.getElementById(a.coupletId+"_left"),f=document.getElementById(a.coupletId+"_right"),e=d?d:f;if(!e)return;var h=c.isChrome||c.isSafari?document.body:document.documentElement,g=conf.top+h.scrollTop,b=g-e.offsetTop;if(b!=0){if(d)d.style.top=e.offsetTop+parseInt(b*.05,10)+(b>0?1:-1)+"px";if(f)f.style.top=e.offsetTop+parseInt(b*.05,10)+(b>0?1:-1)+"px";window.setTimeout(a.move,10)}!conf.scroll&&window.clearInterval(a.i)};a.i=window.setInterval(a.move,1500)}

/*jdtong*/
var floadAd=function(a,c,width,height,b){this.init=function(){var j=navigator.userAgent;if(j.indexOf("Chrome")>0)return false;var i=a.substr(a.length-4,a.length).toLowerCase()==".swf",k=parseInt(Math.pow(16,10)*Math.random(),10).toString(16).toUpperCase(),e="floatAd_"+k,d=document.createElement("DIV");d.id=e;d.style.position="absolute";d.style.zIndex=999999;d.style.width=width;d.style.height=height;document.body.appendChild(d);if(i){var h=new sinaFlash(a,"",width,height,"7","",false,"high");h.addParam("wmode","transparent");h.addVariable("adlink",escape(c));h.write(e)}else d.innerHTML='<a href="'+c+'" target="_blank"><img src="'+a+'" width="'+width+'" height="'+height+'" border="0"></a>';var g=document.createElement("DIV");d.appendChild(g);with(g.style){float="left";position="absolute";width="15px";height="15px";zIndex=99999999;top="0px";left="0px"}g.innerHTML='<a title="关闭" href="javascript:void(0);"><img onclick="javascript:closeFloatAd(\''+e+'\');" src="http://img.house.sina.com.cn/a/png/close.png" border="0"></a>';var f=function(){var a=document.getElementById(e);if(b=="right")a.style.right="0px";else if(b=="center"){var c=document.documentElement.clientWidth;a.style.marginLeft=(c-width)/2+"px";a.style.marginRight=(c-width)/2+"px"}else a.style.left="0px";var d=document.documentElement.clientHeight,f=document.documentElement.scrollTop;a.style.top=d-height+f+"px"};f();window.onresize=function(){f()};window.onscroll=f}},closeFloatAd=function(a){var b=document.getElementById(a);b.style.display="none"}

/*jds*/
var dateCompare=function(r){var a="before",b="after",d=new Date,p=d.getFullYear(),n=d.getMonth()+1,q=d.getDate(),o=d.getHours(),l=d.getMinutes(),s=d.getSeconds(),j,h,k,i,g,m;if(/^\d{4,4}-\d{1,2}-\d{1,2}/.test(r)){var f=r.split(" ");if(f.length==2)if(/^[0-2]\d(:[0-5]\d){0,2}$/.test(f[1])){var c=f[1].split(":");i=c.length>0?parseInt(c[0],10):0;g=c.length>1?parseInt(c[1],10):0;m=c.length>2?parseInt(c[2],10):0}var e=f[0].split("-");j=e.length==3?parseInt(e[0],10):0;h=e.length==3?parseInt(e[1],10):0;k=e.length==3?parseInt(e[2],10):1}return p<j?a:p>j?b:n<h?a:n>h?b:q<k?a:q>k?b:o<i?a:o>i?b:l<g?a:l>g?b:s<m?a:b},afterDate=function(a){return dateCompare(a)=="after"},beforeDate=function(a){return dateCompare(a)=="before"},betweenDate=function(b,a){if(/^\d{4,4}-\d{1,2}-\d{1,2}$/.test(a))a+=" 23:59:59";return afterDate(b)&&beforeDate(a)}


