/* @author creep 2015-04-01 15:33:27 cb24c6 */ if("undefined"==typeof _e&&(_e=function(){},window.console&&(_e=function(e){console.info(e)})),window.sohuHDApple={},"function"==typeof window.ActiveXObject)try{var m=new ActiveXObject("SoHuVA.SoHuDector");m&&m.isSoHuVaReady()&&(sohuHDApple.hasSoHuVA=!0,m.StartSoHuVA())}catch(e){}!function(){sohuHDApple.playerlist=[],sohuHDApple.player=function(){var e=sohuHDApple.playerlist,t=[],a=null,o={};for(i=0;i\n");for(var e in t.params)a.push('\n');o.length&&a.push('\n'),a.push("")}else{a.push("")}return a.join("")},_setAttribute:function(e,t){var a=this;if("undefined"!=typeof e&&""!=e&&"undefined"!=typeof t&&""!=t){var e=e.toLowerCase();switch(e){case"classid":break;case"pluginspage":a.embedAttrs[e]=t;break;case"src":case"movie":a.embedAttrs.src=t,a.params.movie=t;break;case"codebase":a.objAttrs[e]=t;break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"id":case"tabindex":case"type":a.objAttrs[e]=a.embedAttrs[e]=t;break;default:a.params[e]=a.embedAttrs[e]=t}}},_getAttribute:function(e){var t=this;return e=e.toLowerCase(),"undefined"!=typeof t.objAttrs[e]?t.objAttrs[e]:"undefined"!=typeof getA.params[e]?t.params[i]:"undefined"!=typeof getA.embedAttrs[e]?t.embedAttrs[e]:null},setAttribute:function(e,t){this._setAttribute(e,t)},getAttribute:function(){return this._getAttribute(n)},addVariable:function(e,t){var a=this;a.flashVarsObj[e]=t},getVariable:function(e){var t=this;return t.flashVarsObj[e]},addParam:function(e,t){this._setAttribute(e,t)},getParam:function(e){return this._getAttribute(e)},write:function(e){var t=this;"string"==typeof e?document.getElementById(e).innerHTML=t.getFlashHtml(e):"object"==typeof e&&(e.innerHTML=t.getFlashHtml(e))},writeCode:function(){var e=this;document.write(e.getFlashHtml())},playerVer:function(){if(document.all){var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");e&&(flashVersion=parseInt(e.GetVariable("$version").split(" ")[1].split(",")[0]))}else if(navigator.plugins&&navigator.plugins.length>0){var e=navigator.plugins["Shockwave Flash"];if(e)for(var t=e.description.split(" "),a=0;a-1&&(r=t.location.search.substr(1,t.location.search.length).split("&"));else if("undefined"!=typeof e.src){var s=e.src;if(s.indexOf("?")>-1){var i=s.substr(s.indexOf("?")+1);r=i.split("&")}}else{if("undefined"==typeof e.href)return null;var s=e.href;if(s.indexOf("?")>-1){var i=s.substr(s.indexOf("?")+1);r=i.split("&")}}if(null==r)return null;for(var n=0;nr&&(e.prototype.isIOSLow=!0)}if(e.prototype.isSogou=/SE \d+\.X/.test(a),e.prototype.isIEMobile=/IEMobile/.test(a),e.prototype.isAndroid=/android/gi.test(a),e.prototype.isAndroidLow=!1,e.prototype.isAndroidHigh=!1,e.prototype.isAndroid){var s=a.match(/\bAndroid\b(.*\d)?;/)||[0,"0.0"];e.prototype.androidVer=s,s=parseInt(s[1].replace(/\./g,"")),100>s&&(s=10*s),230>s?e.prototype.isAndroidLow=!0:s>411&&(e.prototype.isAndroidHigh=!0)}}(e,t),e.prototype.eventObj={},e.prototype.bindEvents=function(e,t){e&&t&&(this.eventObj[e]=t)},e.prototype.createUID=function(){for(var e="",a="0123456789abcdef",o=0;8>o;o++)e+=a.charAt(Math.round(15*Math.random()));for(var o=0;3>o;o++){e+="-";for(var r=0;4>r;r++)e+=a.charAt(Math.round(15*Math.random()))}e+="-";var s=(new Date).getTime();e+=("000000000"+s.toString(16)).substr(-8);for(var o=0;4>o;o++)e+=a.charAt(Math.round(15*Math.random()));return t.__fuid=e,e},e.prototype.getFlashHtml=function(e){var o=this,r=[],s=[];document.getElementById(o.id)&&(o.id="player"+sohuHDApple.random());var i={"#super":"21","#high":"1","#common":"2"};i=i[location.hash]||"",i&&(o.flashVarsObj.co=i);var n=o.flashVarsObj.ltype;if(""!=n&&"undefined"!=typeof n&&!sohuHD.notCloseDoor){var c="liveCall"+sohuHDApple.random();t[c]=function(e){if(e&&1==e.bwl){var t="";t=/sohu.com/i.test(location.href)?'':'
',document.getElementById(o.id).parentNode.innerHTML=t}},sohuHDApple.getScript("http://live.tv.sohu.com/live/player_json.jhtml?lid="+o.flashVarsObj.vid+"&type="+o.flashVarsObj.ltype+"&callback="+c)}o.flashVarsObj.api_key||(o.flashVarsObj.api_key=sohuHDApple.getUrlParam(document,"api_key")),o.flashVarsObj.uuid||(o.flashVarsObj.uuid=o.createUID());var l=sohuHDApple.cookie("ch_key");l&&(o.flashVarsObj.ch_key=l),sohuHDApple.cookie("machtml5new")&&(o.isIpad=!0),o.isSBDevice=!o.isIOS&&o.flashVarsObj.enforceMP4||o.isAndroidLow,o.isSBDevice&&(o.isAndroidHigh=!1);var p=!o.checkFlash(m);if(o.flashVarsObj.enforceHTML5&&(o.enforceHTML5=o.flashVarsObj.enforceHTML5),o.enforceHTML5&&(o.isAndroid=!0),!o.enforceFlash&&(o.isIpad||o.isIphone||o.isIpod||o.isIEMobile||o.isAndroid||o.isSBDevice)){o.isIOSLow&&alert("\u60a8\u7684iOS\u7248\u672c\u4f4e\u4e8e4.2,\u8bf7\u5347\u7ea7\u7cfb\u7edf\u7248\u672c\u4ee5\u83b7\u5f97\u66f4\u6d41\u7545\u89c2\u770b\u4f53\u9a8c.");var e=o.id;sohuHDApple.getScript("http://js.tv.itc.cn/base/plugin/mobile_b144fa.js",function(){o.getHTML5(e)});var h=o.width,d=o.height,u=/^-?\d+(?:px)?$/i;return u.test(h)&&(h+="px"),u.test(d)&&(d+="px"),[o.switchHtml,'
',"\u89c6\u9891\u52a0\u8f7d\u4e2d....
"].join("")}o.isAndroid&&(o.flashVarsObj.skinNum="-1",o.flashVarsObj.os="android",o.flashVarsObj.oad="",o.flashVarsObj.ead="",o.flashVarsObj.co="2");try{if(p&&-1===a)return"

\u7531\u4e8e\u60a8\u672a\u5b89\u88c5flash\u64ad\u653e\u5668\u89c6\u9891\u65e0\u6cd5\u64ad\u653e\uff0c\u70b9\u51fb\u8fd9\u91cc\u5b89\u88c5

'}catch(f){}o.isAndroid||(o.flashVarsObj.topBarFull=1);try{1==sohuHDApple.cookie("swf3d")&&(this.addParam("wmode","direct"),this.addVariable("stageVideo",1))}catch(v){}for(var m in o.flashVarsObj)s.push("&",m,"=",o.flashVarsObj[m]);if(r.push(o.switchHtml),sohuHDApple.playerlist.push(o.id),document.all){r.push("");for(var m in o.params)r.push('');s.length&&r.push(''),r.push("")}else{r.push("")}return r.join("")},e.prototype.DetectFlashVer=function(e,t,r){if(-1==a)return!1;if(0!=a){o?(tempArray=a.split(" "),tempString=tempArray[1],versionArray=tempString.split(",")):versionArray=a.split(".");var s=versionArray[0],i=versionArray[1],n=versionArray[2];if(s>parseFloat(e))return!0;if(s==parseFloat(e)){if(i>parseFloat(t))return!0;if(i==parseFloat(t)&&n>=parseFloat(r))return!0}return!1}},e.prototype.checkFlash=function(e){var t=sohuHDApple.cookie("tryPlay");if(t)return!0;var r=this,s=null;"string"==typeof e?s=document.getElementById(e):"object"==typeof e&&(s=e),document.all&&(o=!0);var i=function(){var e="",t="";try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),e=t.GetVariable("$version")}catch(a){}if(!e)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),e="WIN 6,0,21,0",t.AllowScriptAccess="always",e=t.GetVariable("$version")}catch(a){}if(!e)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"),e=t.GetVariable("$version")}catch(a){}if(!e)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"),e="WIN 3,0,18,0"}catch(a){}if(!e)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),e="WIN 2,0,0,11"}catch(a){e=-1}return e},n=function(){var e=-1;if(null!=navigator.plugins&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var t=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"",a=navigator.plugins["Shockwave Flash"+t].description,r=a.split(" "),s=r[2].split("."),n=s[0],c=s[1],l=r[3];""==l&&(l=r[4]),"d"==l[0]?l=l.substring(1):"r"==l[0]?(l=l.substring(1),l.indexOf("d")>0&&(l=l.substring(0,l.indexOf("d")))):"b"==l[0]&&(l=l.substring(1));var e=n+"."+c+"."+l}}else-1!=navigator.userAgent.toLowerCase().indexOf("webtv/2.6")?e=4:-1!=navigator.userAgent.toLowerCase().indexOf("webtv/2.5")?e=3:-1!=navigator.userAgent.toLowerCase().indexOf("webtv")?e=2:o&&(e=i());return e},c=r.ver.split(",");a=n();var l=r.DetectFlashVer(c[0],c[1],c[2]);return l?l:l}}(SWFObject,window),function(){var e=sohuHDApple.cookie;swfOpen3D=function(){e("swf3d",1,{domain:"tv.sohu.com",path:"/"}),location.reload()},swfClose3D=function(){e("swf3d",0,{domain:"tv.sohu.com",path:"/",expires:-1}),location.reload()}}(window);