/**
 * 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 by Ehud Shapira
 */
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(){function p(u){var h=u.offsetLeft,v=u.offsetTop;while(u=u.offsetParent){h+=u.offsetLeft;v+=u.offsetTop}return{x:h,y:v}}basedir="/video/";var t=["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 ad, Jamster, Thailand","au_py_jamba",["au"],"0:30","Pyro ad, Jamster, Australia","au_3c_mobact",["au"],"0:30","3Cups ad, MobileActive, Australia","au_co_mobact",["au"],"0:30","CardOmen ad, MobileActive, Australia","au_sp_jamba",["au"],"0:30","Spoon! ad, Jamster, Australia","br_py_jamba",["br"],"0:30","Pyro ad, Jamster, Brazil","hr_py_nth",["hr"],"0:18","Pyro ad, NTH, Croatia","fi_py_jamba",["fi"],"0:30","Pyro ad, Jamba, Finland","de_jamba",["at","de","ch"],"0:30","Jamba ad, 3 tricks, German","de_py_jamba",["at","de","ch"],"0:30","Pyro ad, Jamba, German","fr_py_jamba",["fr"],"0:30","Pyro ad, Jamba, France","fr_zaoza",["fr"],"0:30", "zaOza ad, France","gr_co_bobmob",["gr"],"0:30","CardOmen ad, Bob Mobile, Greece","gr_py_bobmob",["gr"],"0:30","Pyro ad, Bob Mobile, Greece","hu_dw_jamba",["hu"],"0:30","digiWallet ad, Jamba, Hungary","hu_py_jamba",["hu"],"0:30","Pyro ad, Jamba, Hungary","it_py_jamba",["it"],"0:30","Pyro ad, Jamba, Italy","nl_co_blinck",["nl"],"0:15","CardOmen ad, Blinck, Netherlands","nl_py_jamba",["nl"],"0:30","Pyro ad, Jamba, Netherlands","no_py_jamba",["no"],"0:30","Pyro ad, Jamba, Norway","pl_dw_mt",["pl"],"0:40","digiWallet ad, Mobiteam, Poland","pl_py_mobiteam",["pl"],"0:38","Pyro ad, Mobiteam, Poland","ru_py_nikita",["ru"],"0:15","Pyro ad, Nikita, Russia","se_py_jamba",["se"],"0:30","Pyro ad, Jamba, Sweden","uk_fc_fmd",["uk"],"0:30","FartControl ad, Jamba, UK"],d=[];
function l(v){var u,h="";for(u=0;u<v.length;u++){h+='<em class="flag '+v[u]+'"></em> '}return h}function j(){var h="",v,u;for(v=0;v<t.length;v+=4){h+='<a href="#vid" idx='+v/4+'><span><img src="/imgs/tn_load.gif" class=tn><br>';
h+=l(t[v+1]);h+="<b>"+t[v+2]+"</b><br>"+t[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){v=o.getElementsByTagName("A");
u=v[i(v.length)]}h=u.getAttribute("idx");if(o.cur){o.cur.className=""}u.className="cur";o.cur=u;$.id("vid-title").innerHTML=l(t[h*4+1])+" "+t[h*4+3];return"tv/"+t[h*4]}function b(v){var w=$.evget(v).src;
while(w.tagName!="A"){w=w.parentNode}var u=a(w),h=$.id("vidobj");if(h){h.loadFile({file:s(u),image:n(u)});h.sendEvent("playpause")}}function e(y){var B=document.documentElement,C=document.body,A=B.scrollTop,x=B.clientHeight,u,w,v,z;
w=C.scrollTop;if(w>A){A=w}w=C.clientHeight;if(w<x){x=w}for(w=z=d.length-1,w-=(w%3);w>=0;w-=3){u=d[w];if(!u.y){u.y=p(u.img).y}if(u.y+66<A){break}if(u.y<A+x&&!u.set){u.set=1;v=w+2;if(v>z){v=z}for(;v>=w;v--){d[v].img.src=basedir+"tv/"+t[v*4]+".jpg"
}}}}function i(h){return Math.floor(Math.random()*h)}function s(h){return basedir+"?f="+h+".flv"}function n(h){return basedir+h+".jpg"}function f(){var h,u=$.id("prodss");if(!u){return null}if(u.tagName!="IMG"){u=u.childNodes;
for(h=u.length;--h>=0;){if(u[h].tagName==="IMG"){break}}u=u[h]}return u.src.match(/.*\/(.*)_/)[1]}var m,k=320,q=240,g=q,c=4,o,r=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(!r){c=1;o=$.id("tv-tns");if(o){o.onclick=b;j();r=a();window.onload=window.onscroll=e}else{r="small/"+(i(2)?"dw":"py")+"_dtah_small";
k=160;q=128;g=q+1}}m=new SWFObject("/flvplayer.swf","vidobj",k,q,"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",q);m.addVariable("lightcolor","0xFFFFFF");m.addVariable("file",s(r));m.addVariable("image",n(r));setTimeout(function(){m.write("viddiv")
},50)};$.video_init();