function getlight(pars){if(pars=="open"){close_light(this)}else{close_light(this)}};function thismovie(moviename){if(navigator.appname.indexof("microsoft")!=-1){return window[moviename]}else{return document[moviename]}} function close_light(d){if($("#close_light_bg").css("display")=="none"){d.id="light_a";document.getelementbyid("cuplayer").style.zindex="1000";document.getelementbyid("close_light_bg").style.position="absolute";document.getelementbyid("close_light_bg").style.zindex="999";var b=document.documentelement.scrollwidth;var c=$(document).height();$("#close_light_bg").css({width:b,height:c});$("#close_light_bg").show();var a=document.createelement("div");a.id="light_div";a.innerhtml="开灯";a.style.width="28px";a.style.height="22px";a.style.lineheight="22px";a.style.paddingleft="15px";a.style.background="url(filmbase100401.jpg) no-repeat scroll 0 -176px";a.style.color="#656565";a.style.position="absolute";a.style.left=getleft(d)+"px";a.style.top=gettop(d)+"px";a.style.zindex="1000";a.style.cursor="pointer";a.onclick=function(){_detachevent(window,"resize",setposition);document.body.removechild(a);close_light(d)};a.onmouseover=function(){light_bgch(0,a)};a.onmouseout=function(){light_bgch(1,a)};document.body.appendchild(a);_attachevent(window,"resize",setposition)}else{document.getelementbyid("cuplayer").style.zindex="0";$("#close_light_bg").hide()}}function close_light_play(d){if($("#close_light_bg").css("display")=="none"){d.id="light_a";document.getelementbyid("cuplayer").style.zindex="1000";document.getelementbyid("close_light_bg").style.position="absolute";document.getelementbyid("close_light_bg").style.zindex="999";var b=document.documentelement.scrollwidth;var c=$(document).height();$("#close_light_bg").css({width:b,height:c});$("#close_light_bg").show();var a=document.createelement("div");a.id="light_div";a.innerhtml="开灯";a.style.width="28px";a.style.height="22px";a.style.lineheight="22px";a.style.paddingleft="15px";a.style.background="url(/playbase100402.jpg) no-repeat scroll -1px -240px";a.style.color="#656565";a.style.position="absolute";a.style.left=getleft(d)+"px";a.style.top=gettop(d)+"px";a.style.zindex="1000";a.style.cursor="pointer";a.onclick=function(){_detachevent(window,"resize",setposition);document.body.removechild(a);close_light_play(d)};a.onmouseover=function(){light_bgch_db(0,a)};a.onmouseout=function(){light_bgch_db(1,a)};document.body.appendchild(a);_attachevent(window,"resize",setposition)}else{document.getelementbyid("cuplayer").style.zindex="10";$("#close_light_bg").hide()}}function _detachevent(obj,evt,func){if(obj.removeeventlistener){obj.removeeventlistener(evt,func,true)}else{if(obj.detachevent){obj.detachevent("on"+evt,func)}else{eval(obj+".on"+evt+"=old"+func+";")}}}function _attachevent(obj,evt,func){if(obj.addeventlistener){obj.addeventlistener(evt,func,true)}else{if(obj.attachevent){obj.attachevent("on"+evt,func)}else{eval("var old"+func+"="+obj+".on"+evt+";");eval(obj+".on"+evt+"="+func+";")}}}function setposition(){$("#light_div").css("left",getleft(document.getelementbyid("light_a"))+"px");var a=document.documentelement.scrollwidth;var b=$(document).height();$("#close_light_bg").css({width:a,height:b})}function light_bgch(b,a){if(b==0){if(a.currentstyle){$(a).css({backgroundpositionx:"0",backgroundpositiony:"-176px"})}else{a.style.backgroundposition="0 -176px"}$(a).css({color:"#ff6523"});$(a).css({textdecoration:"underline "})}else{if(a.currentstyle){$(a).css({backgroundpositionx:"-57px",backgroundpositiony:"-176px"})}else{a.style.backgroundposition="-57px -176px"}$(a).css({color:"#656565"});$(a).css({textdecoration:"none "})}}function light_bgch_db(b,a){if(b==0){if(a.currentstyle){$(a).css({backgroundpositionx:"-1px",backgroundpositiony:"-240px"})}else{a.style.backgroundposition="-1px -240px"}$(a).css({color:"#54990b"});$(a).css({textdecoration:"underline "})}else{if(a.currentstyle){$(a).css({backgroundpositionx:"-58px",backgroundpositiony:"-240px"})}else{a.style.backgroundposition="-58px -240px"}$(a).css({color:"#656565"});$(a).css({textdecoration:"none"})}}