/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * -- Minor modification done
 */
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(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!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);}}var n=(typeof _20=="string")?document.getElementById(_20):_20;if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!="")document.location.replace(this.getAttribute("redirectUrl"));else n.getElementsByTagName("div")[0].style.display = "block";}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.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 axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=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(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
/*
 * (c) ES/TXL 2008
 */
$.video_init=function(){basedir="/video/";var s=["fox_py_part",["de"],"0:40","Fox Mobile video featuring Pyro","viva_live",["de"],"4:00","Pyro on MTV's VIVA Live!, Germany","de_dw_all_jamba",["at","de","ch"],"0:30","Jamba studio ad, digiWallet, German","de_dw_granny_jamba",["at","de","ch"],"0:15","Jamba studio ad, digiWallet, Granny cut, German","de_dw_kid_jamba",["at","de","ch"],"0:15","Jamba studio ad, digiWallet, Kid cut, German","de_dw_tough_jamba",["at","de","ch"],"0:15","Jamba studio ad, digiWallet, Tough cut, German","il_py_ch2",["il"],"1:25","Reporter showing Pyro, channel 2, Israel","de_py_all_jamba",["at","de","ch"],"0:30","Jamba studio ad, Pyro, German","de_py_girl_jamba",["at","de","ch"],"0:15","Jamba studio ad, Pyro, Girl cut, German","th_py_jamba",["th"],"0:30","Pyro, Thailand","au_py_jamba",["au"],"0:30","Pyro, Australia","au_3c_mobact",["au"],"0:30","3Cups, Australia","au_co_mobact",["au"],"0:30","CardOmen, Australia","au_sp_jamba",["au"],"0:30","Spoon!, Australia","au_fbchat_jamba",["au"],"0:30","Chat for Facebook, Australia","br_py_jamba",["br"],"0:30","Pyro, Brazil","hr_py_nth",["hr"],"0:18","Pyro, Croatia","fi_py_jamba",["fi"],"0:30","Pyro, Finland","de_jamba",["at","de","ch"],"0:30","Jamba ad, 3 tricks, German","de_dw_jamba_45s",["at","de","ch"],"0:45","digiWallet, long, German","de_py_jamba",["at","de","ch"],"0:30","Pyro, German","de_py_jamba_45s",["at","de","ch"],"0:45","Pyro, long, German","de_fbchat_jamba",["at","de","ch"],"0:30","Chat for Facebook, German","fr_py_jamba",["fr"],"0:30","Pyro, France","fr_dw_jamba",["fr"],"0:30","digiWallet, France","fr_dw_jamba_15s",["fr"],"0:15","digiWallet, short, France","fr_zaoza",["fr"],"0:30","zaOza ad, France","fr_fbchat_jamba",["fr"],"0:30","Chat for Facebook, France","gr_co_bobmob",["gr"],"0:30","CardOmen, Greece","gr_py_bobmob",["gr"],"0:30","Pyro, Greece","hu_dw_jamba",["hu"],"0:30","digiWallet, Hungary","hu_py_jamba",["hu"],"0:30","Pyro, Hungary","it_py_jamba",["it"],"0:30","Pyro, Italy","nl_co_blinck",["nl"],"0:15","CardOmen, Netherlands","nl_py_jamba",["nl"],"0:30","Pyro, Netherlands","no_py_jamba",["no"],"0:30","Pyro, Norway","pl_dw_mt",["pl"],"0:40","digiWallet, Poland","pl_py_mobiteam",["pl"],"0:38","Pyro, Poland","ru_py_nikita",["ru"],"0:15","Pyro, Russia","se_py_jamba",["se"],"0:30","Pyro, Sweden","th_3c_sc",["th"],"0:30","3Cups, Thailand","th_co_sc",["th"],"0:30","CardOmen, Thailand","th_dw_sc",["th"],"0:30","digiWallet, Thailand","th_py_sc",["th"],"0:30","Pyro, Thailand","th_ti_sc",["th"],"0:30","Ticker, Thailand","uk_fc_fmd",["uk"],"0:30","FartControl, UK","us_fbchat_jamba",["us"],"0:30","Chat for Facebook, USA"],d=[];
function l(u){var t,h="";for(t=0;t<u.length;t++){h+='<em class="flag '+u[t]+'"></em> '}return h}function j(){var h="",v,u;for(v=0;v<s.length;v+=4){u=s[v];s[u]=v/4;h+='<a href="#'+u+'" idx='+v/4+'><span><img src="/imgs/tn_load.gif" class=tn><br>';
h+=l(s[v+1]);h+="<b>"+s[v+2]+"</b><br>"+s[v+3]+"</span></a>"}o.innerHTML=h;u=o.getElementsByTagName("A");for(v=u.length;--v>=0;){d[v]={img:u[v].getElementsByTagName("IMG")[0]}}}function a(u){var v,h;if(!u){if(v=window.location.hash){h=s[v.substr(1)]
}v=o.getElementsByTagName("A");if(h==undefined){h=i(v.length)}u=v[h]}else{h=u.getAttribute("idx")}if(o.cur){o.cur.className=""}u.className="cur";o.cur=u;$.id("vid-title").innerHTML=l(s[h*4+1])+" "+s[h*4+3];
return"tv/"+s[h*4]}function b(u){var v=$.evget(u).src;while(v.tagName!="A"){v=v.parentNode}var t=a(v),h=$.id("vidobj");scroll(0,$.xy($.id("vid")).y);if(h){h.loadFile({file:r(t),image:n(t)});h.sendEvent("playpause")
}}function e(x){var A=document.documentElement,B=document.body,z=A.scrollTop,w=A.clientHeight,t,v,u,y;v=B.scrollTop;if(v>z){z=v}v=B.clientHeight;if(v<w){w=v}for(v=y=d.length-1,v-=(v%3);v>=0;v-=3){t=d[v];
if(!t.y){t.y=$.xy(t.img).y}if(t.y+66<z){break}if(t.y<z+w&&!t.set){t.set=1;u=v+2;if(u>y){u=y}for(;u>=v;u--){d[u].img.src=basedir+"tv/"+s[u*4]+".jpg"}}}}function i(h){return Math.floor(Math.random()*h)}function r(h){return basedir+"?f="+h+".flv"
}function n(h){return basedir+h+".jpg"}function f(){var h,t=$.id("prodss");if(!t){return null}if(t.tagName!="IMG"){t=t.childNodes;for(h=t.length;--h>=0;){if(t[h].tagName==="IMG"){break}}t=t[h]}return t.src.match(/.*\/(.*)_/)[1]
}var m,k=320,p=240,g=p,c=4,o,q=f();m=document;m.titleOrg=m.title;m.onpropertychange=function(){var h=document;if(event.propertyName=="title"&&h.title!=h.titleOrg){h.title=h.titleOrg}};if(!q){c=1;o=$.id("tv-tns");
if(o){o.onclick=b;j();q=a();window.onload=window.onscroll=e}else{q="small/"+(i(2)?"dw":"py")+"_dtah_small";k=160;p=128;g=p+1}}m=new SWFObject("/flvplayer.swf","vidobj",k,p,"8","#000000");m.addParam("allowfullscreen","true");
m.addVariable("enablejs",true);m.addVariable("usekeys",true);m.addVariable("bufferlength",c);m.addVariable("height",g);m.addVariable("width",k);m.addVariable("displayheight",p);m.addVariable("lightcolor","0xFFFFFF");
m.addVariable("file",r(q));m.addVariable("image",n(q));setTimeout(function(){m.write("viddiv")},50)};$.video_init();
