var JoySpaceUrl="http://space.you.joy.cn/";function killErrors(){return true}window.onerror=killErrors;jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};jQuery.fn.extend({Opacity:function(a){return this.each(function(){if(a!=null){if($.browser.msie){this.style.filter="alpha(opacity = "+a+")"}else{this.style.MozOpacity=parseInt(a)/100}}})}});jQuery.fn.offset=function(){var a=navigator.userAgent.toLowerCase();var b=(a.indexOf("opera")!=-1);var e=(a.indexOf("msie")!=-1&&!b);var d=this[0];if(d.parentNode===null||d.style.display=="none"){return false}var k=null;var j=[];var h;if(d.getBoundingClientRect){h=d.getBoundingClientRect();var c=Math.max(document.documentElement.scrollTop,document.body.scrollTop);var f=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);return{left:h.left+f,top:h.top+c}}else{if(document.getBoxObjectFor){h=document.getBoxObjectFor(d);var i=(d.style.borderLeftWidth)?parseInt(d.style.borderLeftWidth):0;var g=(d.style.borderTopWidth)?parseInt(d.style.borderTopWidth):0;j=[h.x-i,h.y-g]}else{j=[d.offsetLeft,d.offsetTop];k=d.offsetParent;if(k!=d){while(k){j[0]+=k.offsetLeft;j[1]+=k.offsetTop;k=k.offsetParent}}if(a.indexOf("opera")!=-1||(a.indexOf("safari")!=-1&&d.style.position=="absolute")){j[0]-=document.body.offsetLeft;j[1]-=document.body.offsetTop}}}if(d.parentNode){k=d.parentNode}else{k=null}while(k&&k.tagName!="BODY"&&k.tagName!="HTML"){j[0]-=k.scrollLeft;j[1]-=k.scrollTop;if(k.parentNode){k=k.parentNode}else{k=null}}return{left:j[0],top:j[1]}};jQuery.ByteLen=function(a){return a.replace(/[^\x00-\xff]/g,"**").length};jQuery.FixTitle=function(b,a){if($.ByteLen(b)>=(a*2-6)){if($.ByteLen(b)>b.length){return b.substring(0,a)}return b.substring(0,(a*2-6))}return b};function ShowPlayer(c,f,e,b,a,d){if(d!=""){if(e=="media"){writeMegadiaPlaer(f)}else{if(e=="flv"){writeFL(c,b,a,d)}else{if(e=="real"){writeRealPlayer(f)}else{writeMegadiaPlaer(f)}}}}else{if(e=="media"){writeMegadiaPlaer(f)}else{if(e=="flv"){writeFL(c)}else{if(e=="photoplay"){writePhotoPlayer(c)}else{if(e=="real"){writeRealPlayer(f)}else{writeMegadiaPlaer(f)}}}}}}function writeRealPlayer(a){document.writeln('<object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height="367" id=RAOCX name=rmplay width="460"> ');document.writeln('<param name="SRC" value="'+a+'">');document.writeln('<param name="CONSOLE" value="Clip1">');document.writeln('<param name="CONTROLS" value="imagewindow">');document.writeln('<param name="AUTOSTART" value="true">');document.writeln('<embed src="'+a+'" autostart="true" controls="ImageWindow" console="Clip1" pluginspage="http://www.real.com" width="460" height="367"></embed>');document.writeln('<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="54" id="video1" width="460">');document.writeln('<param name="_ExtentX" value="7276">');document.writeln('<param name="_ExtentY" value="1058">');document.writeln('<param name="AUTOSTART" value="0">');document.writeln('<param name="SHUFFLE" value="0">');document.writeln('<param name="PREFETCH" value="0">');document.writeln('<param name="NOLABELS" value="0">');document.writeln('<param name="CONTROLS" value="ControlPanel,StatusBar">');document.writeln('<param name="CONSOLE" value="Clip1">');document.writeln('<param name="LOOP" value="0">');document.writeln('<param name="NUMLOOP" value="0">');document.writeln('<param name="CENTER" value="0">');document.writeln('<param name="MAINTAINASPECT" value="0">');document.writeln('<param name="BACKGROUNDCOLOR" value="#ffffff">');document.writeln('<embed type="audio/x-pn-realaudio-plugin" console="Clip1" controls="ControlPanel,StatusBar" height="54" width="460" autostart="0" _extentx="7276" _extenty="1058" shuffle="0" prefetch="0" nolabels="0" loop="0" numloop="0" center="0" maintainaspect="0" backgroundcolor="#ffffff"></embed>');document.writeln("</object>")}function writeMegadiaPlaer(a){document.writeln('<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="460" height="391" id="MediaPlayer1" VIEWASTEXT>');document.writeln('<param name="AudioStream" value="-1">');document.writeln('<param name="AutoSize" value="0">');document.writeln('<param name="AutoStart" value="-1">');document.writeln('<param name="AnimationAtStart" value="-1">');document.writeln('<param name="AllowScan" value="-1">');document.writeln('<param name="AllowChangeDisplaySize" value="-1">');document.writeln('<param name="AutoRewind" value="0">');document.writeln('<param name="Balance" value="0">');document.writeln('<param name="BaseURL" value>');document.writeln('<param name="BufferingTime" value="15">');document.writeln('<param name="CaptioningID" value>');document.writeln('<param name="ClickToPlay" value="-1">');document.writeln('<param name="CursorType" value="0">');document.writeln('<param name="CurrentPosition" value="0">');document.writeln('<param name="CurrentMarker" value="0">');document.writeln('<param name="DefaultFrame" value>');document.writeln('<param name="DisplayBackColor" value="#000000">');document.writeln('<param name="DisplayForeColor" value="16777215">');document.writeln('<param name="DisplayMode" value="0">');document.writeln('<param name="DisplaySize" value="0">');document.writeln('<param name="Enabled" value="-1">');document.writeln('<param name="EnableContextMenu" value="0">');document.writeln('<param name="EnablePositionControls" value="-1">');document.writeln('<param name="EnableFullScreenControls" value="-1">');document.writeln('<param name="EnableTracker" value="-1">');document.writeln('<param name="Filename" value="'+a+'" valuetype="ref">');document.writeln('<param name="InvokeURLs" value="-1">');document.writeln('<param name="Language" value="-1">');document.writeln('<param name="Mute" value="0">');document.writeln('<param name="PlayCount" value="1">');document.writeln('<param name="PreviewMode" value="-1">');document.writeln('<param name="Rate" value="1">');document.writeln('<param name="SAMIStyle" value>');document.writeln('<param name="SAMILang" value>');document.writeln('<param name="SAMIFilename" value>');document.writeln('<param name="SelectionStart" value="-1">');document.writeln('<param name="SelectionEnd" value="-1">');document.writeln('<param name="SendOpenStateChangeEvents" value="-1">');document.writeln('<param name="SendWarningEvents" value="-1">');document.writeln('<param name="SendErrorEvents" value="-1">');document.writeln('<param name="SendKeyboardEvents" value="0">');document.writeln('<param name="SendMouseClickEvents" value="0">');document.writeln('<param name="SendMouseMoveEvents" value="0">');document.writeln('<param name="SendPlayStateChangeEvents" value="-1">');document.writeln('<param name="ShowCaptioning" value="0">');document.writeln('<param name="ShowControls" value="-1">');document.writeln('<param name="ShowAudioControls" value="-1">');document.writeln('<param name="ShowDisplay" value="0">');document.writeln('<param name="ShowGotoBar" value="0">');document.writeln('<param name="ShowPositionControls" value="-1">');document.writeln('<param name="ShowStatusBar" value="-1">');document.writeln('<param name="ShowTracker" value="-1">');document.writeln('<param name="TransparentAtStart" value="-1">');document.writeln('<param name="VideoBorderWidth" value="0">');document.writeln('<param name="VideoBorderColor" value="0">');document.writeln('<param name="VideoBorder3D" value="0">');document.writeln('<param name="Volume" value="0">');document.writeln('<param name="WindowlessVideo" value="0">');document.writeln('<embed width="460" height="391" type="application/x-mplayer2" src="'+a+'"></embed>');document.writeln("</object>")}function getKanBaParam(){try{var b=location.href;var a=b.match(/video\/(\d+_[^_]+(?:_\d+)+)\.htm/i);if(a!=null){if(a.length>1){var c="";var f=a[1].split("_");return f}}}catch(d){}return"[]"}function writeFL(a){var d=["action","tid","pid","starttime"];var f=["xyid","sharemode","xkey"];var g=getKanBaParam();var b=arguments;var c=new SWFObject("http://client.joy.cn/flvplayer/BagPlayer_V3.swf","myplayer","825","460","9","#00000");c.addParam("allowFullScreen","true");c.addParam("allowScriptAccess","always");c.addParam("quality","high");c.addParam("wmode","Transparent");c.addVariable("jname","setPlayerFront");c.addVariable("strvid",a);for(var e=0;e<d.length;e++){if(g.length>e+1){c.addVariable(d[e],g[e+1])}}for(var e=0;e<f.length;e++){if(b.length>e+1){c.addVariable(f[e],b[e+1])}}if(location.hostname.toLowerCase()=="real.joy.cn"&&a==417322){c.addVariable("adpid",360)}c.write("dplayer")}function setPlayerFront(a){var b=document.getElementById("rightcolumn");if(b){if(a=="true"){b.style.position="static"}else{b.style.position="relative"}}}function writePhotoPlayer(a){document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="480" height="385">');document.writeln('<param name="movie" value="http://client.joy.cn/flvplayer/AlbumPlayer.swf?strvid='+a+'&autoplay=true" />');document.writeln('<param name="allowFullScreen" value="true" />');document.writeln('<param name="quality" value="high" />');document.writeln('<param name="wmode" value="opaque" />');document.writeln('<embed src="http://client.joy.cn/flvplayer/AlbumPlayer.swf?strvid='+a+'&autoplay=true" allowfullscreen="true" wmode="opaque" width="480" height="385" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>')}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,m,g,j,l,n,i,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(m){this.setAttribute("width",m)}if(g){this.setAttribute("height",g)}if(j){this.setAttribute("version",new deconcept.PlayerVersion(j.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(l){this.addParam("bgcolor",l)}var b=n?n:"high";this.addParam("quality",b);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var k=(i)?i:window.location;this.setAttribute("xiRedirectUrl",k);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;function holdPlayer(){try{var b=$("#flash").offset();$("#dplayer").css({top:b.top-35,left:b.left,display:""})}catch(a){}}var xpos,ypos,locationobj;function showBtn(d,a){var c=document.documentElement.scrollLeft;var b=document.documentElement.scrollTop;getAbsPoint(d);locationobj=a;document.getElementById("btn1").style.display="block";document.getElementById("btn1").style.left=xpos+c+25+"px";document.getElementById("btn1").style.top=ypos+b+15+"px"}function showBtn1(b,a){}function hiddnBtn(){}function openPage(){}function showContinue(a){}function getAbsPoint(a){var b=a.getBoundingClientRect();xpos=b.left;ypos=b.top};