var AutoPlayObj=null;var xpos,ypos,locationobj;var Speed=30;var Space=10;var PageWidth=103;var fill=0;var MoveLock=false;var MoveTimeObj;var Comp=0;var img_showid=1;var tt;function change_img(b){if(typeof(b)=="undefined"){$("#flash_img")[0].src=Switcher[img_showid]["picurl"];$("#flash_url")[0].href=Switcher[img_showid]["link"];$("#title_url")[0].href=Switcher[img_showid]["link"];$("#title_url"+img_showid)[0].href=Switcher[img_showid]["link"];for(var a=1;a<=counts;a++){$("#li"+a)[0].className="";if(a==counts){$("#li"+a)[0].className="bordnone";}}if(img_showid==counts){$("#li"+img_showid)[0].className="cur bordnone";}else{$("#li"+img_showid)[0].className="cur";}img_showid++;if(img_showid>counts){img_showid=1;}tt=setTimeout("change_img()",4000);}else{$("#flash_img")[0].src=Switcher[img_showid]["picurl"];$("#flash_url")[0].href=Switcher[img_showid]["link"];$("#title_url")[0].href=Switcher[img_showid]["link"];$("#title_url"+img_showid)[0].href=Switcher[img_showid]["link"];for(var a=1;a<=counts;a++){$("#li"+a)[0].className="";}$("#li"+img_showid)[0].className="cur";img_showid++;if(img_showid>counts){img_showid=1;}}}function changeimg(a){window.clearInterval(tt);img_showid=a;change_img(a);}function mouseoutchange(){tt=setTimeout("change_img()",4000);}function ISL_GoUp(){if(MoveLock){return;}clearInterval(AutoPlayObj);MoveLock=true;MoveTimeObj=setInterval("ISL_ScrUp();",Speed);}function ISL_StopUp(){clearInterval(MoveTimeObj);if($("#ISL_Cont")[0].scrollLeft%PageWidth-fill!=0){Comp=fill-($("#ISL_Cont")[0].scrollLeft%PageWidth);CompScr();}else{MoveLock=false;}}function ISL_ScrUp(){if($("#ISL_Cont")[0].scrollLeft<=0){$("#ISL_Cont")[0].scrollLeft=$("#ISL_Cont")[0].scrollLeft+$("#List1")[0].offsetWidth;}$("#ISL_Cont")[0].scrollLeft-=Space;}function ISL_GoDown(){clearInterval(MoveTimeObj);if(MoveLock){return;}clearInterval(AutoPlayObj);MoveLock=true;ISL_ScrDown();MoveTimeObj=setInterval("ISL_ScrDown()",Speed);}function ISL_StopDown(){clearInterval(MoveTimeObj);if($("#ISL_Cont")[0].scrollLeft%PageWidth-fill!=0){Comp=PageWidth-$("#ISL_Cont")[0].scrollLeft%PageWidth+fill;CompScr();}else{MoveLock=false;}}function ISL_ScrDown(){if($("#ISL_Cont")[0].scrollLeft>=$("#List1")[0].scrollWidth){$("#ISL_Cont")[0].scrollLeft=$("#ISL_Cont")[0].scrollLeft-$("#List1")[0].scrollWidth;}$("#ISL_Cont")[0].scrollLeft+=Space;}function CompScr(){var a;if(Comp==0){MoveLock=false;return;}if(Comp<0){if(Comp<-Space){Comp+=Space;a=Space;}else{a=-Comp;Comp=0;}$("#ISL_Cont")[0].scrollLeft-=a;setTimeout("CompScr()",Speed);}else{if(Comp>Space){Comp-=Space;a=Space;}else{a=Comp;Comp=0;}$("#ISL_Cont")[0].scrollLeft+=a;setTimeout("CompScr()",Speed);}}function changePic(b,a){$("#"+a+"")[0].src=b;}function showBtn(d,a){var c=document.documentElement.scrollLeft;var b=document.documentElement.scrollTop;getAbsPoint(d);locationobj=a;$("#btn")[0].style.display="block";$("#btn")[0].style.left=xpos+c+50+"px";$("#btn")[0].style.top=ypos+b+30+"px";}function showBtn1(d,a){var c=document.documentElement.scrollLeft;var b=document.documentElement.scrollTop;getAbsPoint(d);locationobj=a;$("#btn")[0].style.display="block";$("#btn")[0].style.left=xpos+c+25+"px";$("#btn")[0].style.top=ypos+b+15+"px";}function hiddnBtn(){$("#btn")[0].style.display="none";}function openPage(){window.open(locationobj);}function showContinue(a){a.style.display="block";}function getAbsPoint(a){var b=a.getBoundingClientRect();xpos=b.left;ypos=b.top;}function Show(d,e,a,f,c,b){number=e;if(document.getElementById(f+d).className==a){return;}else{for(i=1;i<=number;i++){document.getElementById(c+i).style.display="none";document.getElementById(f+i).className=b;}document.getElementById(c+d).style.display="";document.getElementById(f+d).className=a;}}function selectChange(){selectvalue=$("#_Select").val();$("#select"+selectvalue)[0].style.display="";$("#select"+firstselect)[0].style.display="none";firstselect=selectvalue;}function settop1(){var b=$("#_lxkw_")[0].value;var a="http://search.joy.cn/index.html?_lxkw="+escape(b)+"&_lxpg=1&_lxps=12&_lxsort=&_lxsa=1&_lxdate1=&_lxdate2=&_lxlayout=&_lxmp=7&_lxtpc=1,3,4,6,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,25,27&_lxkwt=&_lxdup=3&_lxtpcc=";window.open(a);}function changeIndex(a){if(a==1){document.getElementById("login_player").style.height="300px";document.getElementById("a1_playerdiv").style.height="300px";}else{document.getElementById("login_player").style.height="50px";document.getElementById("a1_playerdiv").style.height="50px";}}function setupHorizontalScroll(f){var e;if(navigator.userAgent.match(/MSIE/)){e=95;}else{e=95;}var d=f.getElementsByTagName("dl").length*e+15;if(!navigator.userAgent.match(/MSIE/)){$("#scrollContent")[0].style.height="120px";}if(f.getElementsByTagName("dl").length>3){new saje.gfx.Widget.scrollbar($("#scrollContent")[0],"horizontal","js_hscroll",{scrollbar_height:10,content_width:d});}}if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(f,d,n,g,k,m,o,j,a,e){if(!document.getElementById){return;}this.DETECT_KEY=e?e:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(f){this.setAttribute("swf",f);}if(d){this.setAttribute("id",d);}if(n){this.setAttribute("width",n);}if(g){this.setAttribute("height",g);}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(m){this.addParam("bgcolor",m);}var b=o?o:"high";this.addParam("quality",b);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var l=(j)?j:window.location;this.setAttribute("xiRedirectUrl",l);this.setAttribute("redirectUrl","");if(a){this.setAttribute("redirectUrl",a);}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true);},setAttribute:function(a,b){this.attributes[a]=b;},getAttribute:function(a){return this.attributes[a];},addParam:function(a,b){this.params[a]=b;},getParams:function(){return this.params;},addVariable:function(a,b){this.variables[a]=b;},getVariable:function(a){return this.variables[a];},getVariables:function(){return this.variables;},getVariablePairs:function(){var a=new Array();var b;var c=this.getVariables();for(b in c){a[a.length]=b+"="+c[b];}return a;},getSWFHTML:function(){var d="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}d='<embed pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';d+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var c=this.getParams();for(var a in c){d+=[a]+'="'+c[a]+'" ';}var b=this.getVariablePairs().join("&");if(b.length>0){d+="flashvars="+b+'&realfull=1&moz=1"';}d+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}d='<object id="'+this.getAttribute("id")+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';d+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var a in c){d+='<param name="'+a+'" value="'+c[a]+'" />';}var b=this.getVariablePairs().join("&");if(b.length>0){d+='<param name="flashvars" value="'+b+'" />';}d+="</object>";}return d;},write:function(a){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}var c=(typeof a=="string")?document.getElementById(a):a;c.innerHTML=this.getSWFHTML();return true;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var c=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){c=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var d=1;var b=3;while(d){try{b++;d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b);c=new deconcept.PlayerVersion([b,0,0]);}catch(f){d=null;}}}else{try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(f){try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=new deconcept.PlayerVersion([6,0,21]);d.AllowScriptAccess="always";}catch(f){if(c.major==6){return c;}}try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(f){}}if(d!=null){c=new deconcept.PlayerVersion(d.GetVariable("$version").split(" ")[1].split(","));}}}return c;};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false;}if(this.major>a.major){return true;}if(this.minor<a.minor){return false;}if(this.minor>a.minor){return true;}if(this.rev<a.rev){return false;}return true;};deconcept.util={getRequestParameter:function(d){var c=document.location.search||document.location.hash;if(d==null){return c;}if(c){var b=c.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==d){return b[a].substring((b[a].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var c=document.getElementsByTagName("OBJECT");for(var b=c.length-1;b>=0;b--){c[b].style.display="none";for(var a in c[b]){if(typeof c[b][a]=="function"){c[b][a]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var arVersion=navigator.appVersion.split("MSIE");var version=parseFloat(arVersion[1]);function fixPNG(e){if((version>=5.5)&&(version<7)&&(document.body.filters)){var b=(e.id)?"id='"+e.id+"' ":"";var d=(e.className)?"class='"+e.className+"' ":"";var f=(e.title)?"title='"+e.title+"' ":"title='"+e.alt+"' ";var c="display:inline-block;"+e.style.cssText;var a="<span "+b+d+f+' style="width:'+e.width+"px; height:"+e.height+"px;"+c+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e.src+"', sizingMethod='scale');\"></span>";e.outerHTML=a;}}