hzgeswiy

(function(){var FLASH_VERSION_SUPPORTED="9.0.115";var FLASH_VERSION_WITH_EXPRESS_INSTALL="6.0.65";window.OOYALA_PLAYER_JS={};var isIE=(navigator.appVersion.indexOf("MSIE")!==-1)?true:var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!==-1)?true:var isLinux=(navigator.userAgent.toLowerCase().indexOf("linux")!==-1)?true:var isOpera=(navigator.userAgent.indexOf("Opera")!==-1)?true:var iphoneEnabled="1";var ipadEnabled="1";var isBadEmbed="0";var isInvalidId="false"==="true";var breakOnInvalidId="false"==="true";var validPlayerId="ooyalaPlayer_vpqp7am7qd";var isAudio="0";var usePlayerV3="0";var mobile_locale=""||navigator.language||navigator.browserLmobile_locale=mobile_locale.split(",")[0];var isIPhone=(navigator.userAgent.toLowerCase().indexOf("iphone")!==-1)?true:var isIPad=(navigator.userAgent.toLowerCase().indexOf("ipad")!==-1)?true:var isAndroid=(navigator.userAgent.toLowerCase().indexOf("android")!==-1)?true:var playerType="";var device="unknown";if(isIPhone){device="iphone";}if(isIPad){device="ipad";}if(isAndroid){device="android";}var mobile_player_url="/mobile_player.js?embedCodes=QweXYzYTqo64SfAtVGaN6mnHm_rjIwE_&expires=&height=360&locale=&playerId=ooyalaPlayer_vpqp7am7qd&rootItemEmbedCode=QweXYzYTqo64SfAtVGaN6mnHm_rjIwE_&signature=jUZNK%2B0Lm46a3urR61cAPNCeYZamlr03fJH33m9HMhs&videoPcode=NjbnY6cqXQpbxFYNiGvAWdDbaOEM&video_pcode=NjbnY6cqXQpbxFYNiGvAWdDbaOEM&width=640&device="+device+"&domain="+(document.domain||"unknown");var CommonUtils={SECONDS_OF_DAY:3600*24,SECONDS_OF_HOUR:3600,SECONDS_OF_MINUTE:60,getCurrentEmbedScript:function(){if(window.ooyalaActiveScript){return window.ooyalaActiveS}var scripts=document.getElementsByTagName("script");return scripts[scripts.length-1];},isSsl:function(){return(window.location.protocol=="https:"||document.location.protocol=="https:");},toQueryString:function(params){if(!params){return"";}var toString=[];var sortedKeys=[];for(key in params){if(params.hasOwnProperty(key)){sortedKeys.push(key);}}sortedKeys.sort();for(var i=0;i-1;},addFuncToElem:function(context_obj,name,event,func){var element=document.getElementById(name);if(element){var handler=function(){func.call(context_obj);};if(element.addEventListener){element.addEventListener(event,handler,false);}else{if(element.attachEvent){element.attachEvent("on"+event,handler);}}}},setLinkForElem:function(name,href,target,downloadName){element=document.getElementById(name);if(!element){}element.href=if(target){element.target=}if(downloadName){element.download=downloadN}},newStyle:function(str){var page=document.getElementsByTagName("head")[0];var el=document.createElement("style");el.type="text/css";el.media="screen";if(el.styleSheet){el.styleSheet.cssText=}else{el.appendChild(document.createTextNode(str));}page.appendChild(el);},leftPadding:function(num,totalChars){var pad="0";num=num+"";while(num.length>16;var g=(hex&65280)>>8;var b=(hex&255);return[r,g,b];},changeColor:function(color,ratio,darker){var minmax=darker?Math.max:Math.var boundary=darker?0:255;var difference=Math.round(ratio*255)*(darker?-1:1);var rgb=CommonUtils.hexToRgb(parseInt(color));return[CommonUtils.leftPadding(minmax(rgb[0]+difference,boundary).toString(16),2),CommonUtils.leftPadding(minmax(rgb[1]+difference,boundary).toString(16),2),CommonUtils.leftPadding(minmax(rgb[2]+difference,boundary).toString(16),2)].join("");},getHMSArrayForSeconds:function(seconds){var hours=Math.floor(seconds/3600);var minutes=Math.floor((seconds/60)%60);var seconds=Math.floor(seconds%60);return[CommonUtils.leftPadding(hours,2),CommonUtils.leftPadding(minutes,2),CommonUtils.leftPadding(seconds,2)];},getOffset:function(name){var element=document.getElementById(name);var x=0;var y=0;while(element&&!isNaN(element.offsetLeft)&&!isNaN(element.offsetTop)){x+=element.offsetLeft-element.scrollLy+=element.offsetTop-element.scrollTelement=element.offsetP}return{left:x,top:y};},getMousePosition:function(event,reference_id){var x=new Number();var y=new Number();if((event.x!=undefined&&event.y!=undefined)&&(!this.isUserAgent("MSIE")&&!this.isUserAgent("Opera"))){x=event.x;y=event.y;}else{if(event.clientX!=undefined&&event.clientY!=undefined){x=event.clientX+document.body.scrollLeft+document.documentElement.scrollLy=event.clientY+document.body.scrollTop+document.documentElement.scrollT}else{if(event.changedTouches){x=event.changedTouches[0].clientX+document.body.scrollLeft+document.documentElement.scrollLy=event.changedTouches[0].clientY+document.body.scrollTop+document.documentElement.scrollT}}}var offset=this.getOffset(reference_id);x-=offset.y-=offset.return{x:x,y:y};},getExtensionFromPath:function(path){return/[^.]+$/.exec(path);},isNumber:function(v){return typeof(v)==="number"&&!isNaN(v);},decode64:function(input){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/=";var output="";var chr1,chr2,chr3="";var enc1,enc2,enc3,enc4="";var i=0;var base64test=/[^A-Za-z0-9\+\/\=]/g;if(base64test.exec(input)){var errorMsg="There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding.";if(window.console&&typeof console.log=="function"){console.log(errorMsg);}}input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=(enc1<>4);chr2=((enc2&15)<>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2);}if(enc4!=64){output=output+String.fromCharCode(chr3);}chr1=chr2=chr3="";enc1=enc2=enc3=enc4="";}while(i /*! SWFObject v2.2
is released under the MIT License
var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKW***E_FLASH="Shockwave Flash",SHOCKW***E_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",ON_READY_STATE_CHANGE="onreadystatechange",win=window,doc=document,nav=navigator,plugin=false,domLoadFnArr=[main],regObjArr=[],objIdArr=[],listenersArr=[],storedAltContent,storedAltContentId,storedCallbackFn,storedCallbackObj,isDomLoaded=false,isExpressInstallActive=false,dynamicStylesheet,dynamicStylesheetMedia,autoHideShow=true,ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=!+"\v1",playerVersion=[0,0,0],d=if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKW***E_FLASH]==OBJECT){d=nav.plugins[SHOCKW***E_FLASH].if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){plugin=ie=d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/[a-zA-Z]/.test(d)?parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0;}}else{if(typeof win.ActiveXObject!=UNDEF){try{var a=new ActiveXObject(SHOCKW***E_FLASH_AX);if(a){d=a.GetVariable("$version");if(d){ie=d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)];}}}catch(e){}}}return{w3:w3cdom,pv:playerVersion,wk:webkit,ie:ie,win:windows,mac:mac};}(),onDomLoad=function(){if(!ua.w3){}if((typeof doc.readyState!=UNDEF&&doc.readyState=="complete")||(typeof doc.readyState==UNDEF&&(doc.getElementsByTagName("body")[0]||doc.body))){callDomLoadFunctions();}if(!isDomLoaded){if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,false);}if(ua.ie&&ua.win){doc.attachEvent(ON_READY_STATE_CHANGE,function(){if(doc.readyState=="complete"){doc.detachEvent(ON_READY_STATE_CHANGE,arguments.callee);callDomLoadFunctions();}});if(win==top){(function(){if(isDomLoaded){}try{doc.documentElement.doScroll("left");}catch(e){setTimeout(arguments.callee,0);}callDomLoadFunctions();})();}}if(ua.wk){(function(){if(isDomLoaded){}if(!/loaded|complete/.test(doc.readyState)){setTimeout(arguments.callee,0);}callDomLoadFunctions();})();}addLoadEvent(callDomLoadFunctions);}}();function callDomLoadFunctions(){if(isDomLoaded){}try{var t=doc.getElementsByTagName("body")[0].appendChild(createElement("span"));t.parentNode.removeChild(t);}catch(e){}isDomLoaded=var dl=domLoadFnArr.for(var i=0;iv[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:}function createCSS(sel,decl,media,newStyle){if(ua.ie&&ua.mac){}var h=doc.getElementsByTagName("head")[0];if(!h){}var m=(media&&typeof media=="string")?media:"screen";if(newStyle){dynamicStylesheet=dynamicStylesheetMedia=}if(!dynamicStylesheet||dynamicStylesheetMedia!=m){var s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media",m);dynamicStylesheet=h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){dynamicStylesheet=doc.styleSheets[doc.styleSheets.length-1];}dynamicStylesheetMedia=m;}if(ua.ie&&ua.win){if(dynamicStylesheet&&typeof dynamicStylesheet.addRule==OBJECT){dynamicStylesheet.addRule(sel,decl);}}else{if(dynamicStylesheet&&typeof doc.createTextNode!=UNDEF){dynamicStylesheet.appendChild(doc.createTextNode(sel+" {"+decl+"}"));}}}function setVisibility(id,isVisible){if(!autoHideShow){}var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v;}else{createCSS("#"+id,"visibility:"+v);}}function urlEncodeIfNecessary(s){var regex=/[\\\"\.;]/;var hasBadChars=regex.exec(s)!=return hasBadChars&&typeof encodeURIComponent!=UNDEF?encodeURIComponent(s):s;}var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.for(var i=0;i=0){var queryString=document.location.search.toLowerCase();if(queryString.match("autoplay=(1|y)")){autoplay="1";}else{if(queryString.match("autoplay=(0|n)")){autoplay="0";}}}if(autoplay!=""){flashVars+="&autoplay="+}var thruParams=["yumeParams","thruParamYume","thruParamDoubleclick","thruParamDartEnterprise"];for(var i=0;i

参考资料

 

随机推荐