
if(typeof(G_VIDEO)=="undefined"){if(navigator.userAgent.indexOf("MSIE")>=0){IE=true;}else{IE=false;};if(typeof(userBrowser)=="undefined"){var userBrowser=navigator.appName;};if(typeof(browserVersion)=="undefined"){var browserVersion=parseFloat(navigator.appVersion);};URL=location.toString();function sendEvent(swf,typ,prm){thisMovie(swf).sendEvent(typ,prm);};function getUpdate(typ,pr1,pr2,swf){ply.$(swf).getUpdate(typ,pr1,pr2);};function thisMovie(swf){if(navigator.appName.indexOf("Microsoft")!=-1){return window[swf];}else{return document[swf];};};function current(player,container,tagName){var es=container.getElementsByTagName(tagName);var ob;var res;for(var i=0;i<es.length;i++){ob=es[i];if(ob.getAttribute('g_start')!=null){if(timeToSeconds(ob.getAttribute('g_start'))<=ply.$(player).currentTime){res=ob;}else{i=es.length;};};};return res;};function visibleParent(cu){x=cu;sp=null;while((x)&&(x.className!="tocDiv2")){if(x.style.display=="none"){sp=x;};x=x.parentNode;};if(sp==null){return null;}else{sp=sp.parentNode.getElementsByTagName('TABLE')[0].getElementsByTagName('DIV')[0];return sp;};};function syncIText(playerid,flag){correccion=0;totalIText=0;var res;var objj;cont=document.getElementById("w"+playerid+"toc"+totalIText+"content");while(cont){if(cont!=null){var curr=current(playerid,cont,'DIV');var vp=visibleParent(curr);if(vp){curr=vp;};if(curr!=null){if(!ply.$(playerid).currentTRTM[totalIText])ply.$(playerid).currentTRTM[totalIText]="";if((flag==1)||(curr.getAttribute('g_start')!=ply.$(playerid).currentTRTM[totalIText])){for(var i=0;i<cont.getElementsByTagName('DIV').length;i++){objj=cont.getElementsByTagName('DIV')[i];if(objj.getAttribute('g_start')!=null){objj.style.background="#F8F8Fa";objj.style.border="none";};};curr.style.background="#CCCCDD";curr.style.border="1px solid #BBBBCC";ply.$(playerid).currentTRTM[totalIText]=curr.getAttribute('g_start');if(flag!=1){while(curr.className!="tocTable"){curr=curr.parentNode;};if(curr.offsetHeight>=cont.offsetHeight){cont.scrollTop=curr.offsetTop-correccion;}else{if(curr.offsetTop<cont.scrollTop){cont.scrollTop=curr.offsetTop-curr.offsetHeight;}else{if(curr.offsetTop>(cont.scrollTop+cont.offsetHeight-curr.offsetHeight)){cont.scrollTop=curr.offsetTop-cont.offsetHeight+curr.offsetHeight;};};};};};};};totalIText++;cont=document.getElementById("w"+playerid+"toc"+totalIText+"content");};totalIText=0;container=document.getElementById("w"+playerid+"transcript"+totalIText+"content");while(container){if(container!=null){curr=current(playerid,container,'DIV');if(curr!=null){if(!ply.$(playerid).currentTM[totalIText])ply.$(playerid).currentTM[totalIText]="";if(curr.getAttribute('g_start')!=ply.$(playerid).currentTM[totalIText]){for(var i=0;i<container.getElementsByTagName('DIV').length;i++){objj=container.getElementsByTagName('DIV')[i];if(objj.getAttribute('g_start')!=null){objj.style.background="#F8F8FA";objj.style.border="none";};};curr.style.background="#CCCCDD";curr.style.border="1px solid #BBBBCC";ply.$(playerid).currentTM[totalIText]=curr.getAttribute('g_start');if(curr.offsetHeight>=container.offsetHeight){container.scrollTop=curr.offsetTop;}else{if(curr.offsetTop<=container.scrollTop){container.scrollTop=curr.offsetTop;}else{if(curr.offsetTop>(container.scrollTop+container.offsetHeight-curr.offsetHeight)){container.scrollTop=curr.offsetTop-container.offsetHeight+curr.offsetHeight;};};};};};};totalIText++;container=document.getElementById("w"+playerid+"transcript"+totalIText+"content");};refreshSlides(playerid,0)};function refreshSlides(playerid2,Num2){totalIText=0;var container=document.getElementById("w"+playerid2+"slides"+totalIText+"content");var x=0;var obj2=null;var res=null;while(container){if(container!=null){Num=$e.$("w"+playerid2+"slides"+totalIText).slidesDisplay;for(var i=0;i<container.getElementsByTagName('IMG').length;i++){objj=container.getElementsByTagName('IMG')[i];if(objj.getAttribute('g_start')!=null){if(timeToSeconds(objj.getAttribute('g_start'))<=ply.$(playerid2).currentTime){res=objj;}else{i=container.getElementsByTagName('IMG').length;};};};};if(res==null){res=container.getElementsByTagName('IMG')[0];};correccion=(IE)?30:10;switch(Num){case 1:{for(x=0;x<container.getElementsByTagName('IMG').length;x++){obj2=container.getElementsByTagName('IMG')[x];obj2.parentNode.style.backgroundColor="#F8F8FA";obj2.parentNode.style.visibility="hidden";obj2.parentNode.style.display="none";};res.parentNode.style.visibility="visible";};break;case 2:{for(x=0;x<container.getElementsByTagName('IMG').length;x++){obj2=container.getElementsByTagName('IMG')[x];obj2.parentNode.style.backgroundColor="#F8F8FA";obj2.parentNode.style.visibility="visible";obj2.parentNode.style.display="block";};};break;};res.parentNode.style.background="#ddddee";res.parentNode.style.display="block";res.parentNode.style.visibility="visible";if(!ply.$(playerid2).currentSLIDE[totalIText])ply.$(playerid2).currentSLIDE[totalIText]="";if((ply.$(playerid2).currentSLIDE[totalIText]!=res.getAttribute('g_start'))&&(Num==2)){if(res.parentNode.offsetHeight>=container.offsetHeight){container.scrollTop=res.parentNode.offsetTop;}else{if(res.parentNode.offsetTop<=container.scrollTop){container.scrollTop=res.parentNode.offsetTop;}else{if(res.parentNode.offsetTop>=(container.scrollTop+container.offsetHeight-res.parentNode.offsetHeight)){container.scrollTop=res.parentNode.offsetTop-container.offsetHeight+res.parentNode.offsetHeight;};};};};ply.$(playerid2).currentSLIDE[totalIText]=res.getAttribute('g_start');totalIText++;container=document.getElementById("w"+playerid2+"slides"+totalIText+"content");};};var G_VIDEO=1;var G_EDIT=0;var globalStop=0;function trim(str){return(str.replace(/^\s*|\s*$/g,''));};function timeToSeconds(text){var seg=0;if(text!=null){text=trim(text);sp=text.split(':');x=0;for(i=(sp.length-1);i>=0;i--){seg+=(Math.pow(60,x))*Number(sp[i]);x++;};};return seg;};function secondsToTime(val){s=h=m=0;val=Math.round(val);m=Math.round(val/60);if(m>(val/60))m=m-1;s=val-(m*60);h=m/60;resx="";if(h>=1){h=((Math.round(h)-h)>0)?(h-(1-(Math.round(h)-h))):Math.round(h);m=m-(h*60);resx=cText(h)+":";}else h=0;if(h<=0){resx=cText(m)+":"+cText(s);}else{resx=h.toString()+":"+cText(m)+":"+cText(s);};return resx;};function cText(n){res="";if(n<10){res="0";};res=res+n.toString();return res;};function resaltar(ob){if(ob.getAttribute('g_playerid')!=null){ply.$(ob.getAttribute('g_playerid')).showControls();if(ob.getAttribute('g_start')!=""){if(ob.getAttribute('g_stop')!=""){ply.$(ob.getAttribute('g_playerid')).showActive(timeToSeconds(ob.getAttribute('g_start')),timeToSeconds(ob.getAttribute('g_stop')));}else{ply.$(ob.getAttribute('g_playerid')).showActive(timeToSeconds(ob.getAttribute('g_start')),0);};};ob.style.textDecoration="none";ob.style.borderBottom="1px solid #007700";};};function backToNormal(ob){ob.style.borderBottom="1px dotted #007700";ply.$(ob.getAttribute('g_playerid')).hideActive();};function playerDataClass(idx,stwidth,stheight,mxw,mxh){this.maxWidth=mxw;this.maxHeight=mxh;this.startWidth=stwidth
this.startHeight=stheight;this.actualWidth=stwidth;this.actualHeight=stheight;this.id=idx;this.currentTime=0;this.type="flash";this.state=0;this.buffered=0;this.currentItem=null;this.load=0;this.currentTM=Array();this.currentTRTM=Array();this.currentSLIDE=Array();this.obj=document.getElementById(this.id);this.totalTime=0;this.totalITexts=0;this.getLoad=function(){res=0;var oj=this.obj.itemData(0);var reff=this;for(var i in oj){if(i=='load'){res=oj[i];};};return res;};this.getX=function(){return this.obj.offsetLeft;};this.getY=function(){return this.obj.offsetLeft;};this.getWidth=function(){return this.obj.offsetLeft;};this.getHeight=function(){return this.obj.offsetHeight;};this.goTo=function(time){if(this.obj==null){this.obj=document.getElementById(this.id);};if(this.type=="windows"){if(typeof(time)=="number"){this.obj.currentPosition=time;this.obj.play();}else{if(typeof(time)=="string"){tt=timeToSeconds(time);this.obj.currentPosition=tt;this.obj.play();};};}else{if(this.type=="flash"){this.play();if(typeof(time)=="number"){this.obj.sendEvent("scrub",time);}else{this.obj.sendEvent("scrub",timeToSeconds(time));};};};};this.stop=function(){if(this.type=="windows"){this.obj.stop();};if(this.type=="flash"){if((this.state==2)||(this.state==1)){this.obj.sendEvent("playpause","");};};};this.setCurrentPosition=function(time){this.currentTime=time;};this.pause=function(){if(this.type=="windows")this.obj.pause();if(this.type="flash"){if(this.state==2){this.obj.sendEvent("playpause","");};};};this.play=function(){if(this.type=="windows"){this.obj.play();};if(this.type=="flash"){if(this.state==0){this.obj.sendEvent("playpause","");};};};this.update=function(){if(this.obj==null){this.obj=document.getElementById(this.id);};if(this.type=="windows")this.currentTime=Math.round(this.obj.currentPosition);};this.showControls=function(){this.obj.sendEvent("showcontrols",1);};this.hideControls=function(){this.obj.sendEvent("showcontrols",0);};this.showActive=function(start,stop){this.obj.sendEvent("activestart",start);if(start==null)start=0;if((stop==null)||(stop==0))stop=this.totalTime;this.obj.sendEvent("activeend",stop);this.obj.sendEvent("displayactive",1);this.obj.sendEvent("showcontrols",1);this.showStats(1);};this.hideActive=function(){this.obj.sendEvent("displayactive",0);};this.showStats=function(x){this.obj.sendEvent("showstats",x);};this.getUpdate=function(typ,pr1,pr2){switch(typ){case"state":this.state=pr1;if(pr1==2){for(i=0;i<ply.total;i++){px=ply.player[i];if(px!=null&&px.id!=this.id){px.pause();};};};break;case"time":this.currentTime=pr1;syncIText(this.id,0);this.totalTime=pr1+pr2;break;case"load":this.buffered=pr1;break;};};this.resize=function(w,h){en=1000*w+(h+20);this.obj.width=w+"px";this.obj.height=(h+20)+"px";this.obj.sendEvent("changesize",en);}
this.maximize=function(){if((this.maxWidth>=0)||(this.maxHeight>=0)){this.actualWidth+=70;this.actualHeight+=(70*0.75);this.actualWidth=(this.actualWidth>this.maxWidth)?this.maxWidth:this.actualWidth;this.actualHeight=(this.actualHeight>this.maxHeight)?this.maxHeight:this.actualHeight;this.resize(this.actualWidth,this.actualHeight);if((this.actualWidth<this.maxWidth)||(this.actualHeight<this.maxHeight)){setTimeout("ply.$('"+this.id+"').maximize();",20);}else{dk=document.getElementById(this.id+"dock");reorderDock(dk);showLast(dk);}}};this.minimize=function(){if((this.maxWidth>=0)||(this.maxHeight>=0)){this.actualWidth-=70;this.actualHeight-=(70*0.75);this.actualWidth=(this.actualWidth<this.startWidth)?this.startWidth:this.actualWidth;this.actualHeight=(this.actualHeight<this.startHeight)?this.startHeight:this.actualHeight;this.resize(this.actualWidth,this.actualHeight);if((this.actualWidth>this.startWidth)||(this.actualHeight>this.startHeight)){setTimeout("ply.$('"+this.id+"').minimize();",20);}
if(this.actualWidth<=(this.startWidth+70)){maximizeSidebar();dk=document.getElementById(this.id+"dock");dk.style.height=(this.actualHeight)+"px";reorderDock(dk);showLast(dk);}}};};function playersClass(){this.player=Array();this.total=0;this.addPlayer=function(id,w,h,mw,mh){mw=(mw==0)?maxWidthDefaultVideo:mw;mh=(mh==0)?maxHeightDefaultVideo:mh;this.player[this.total]=new playerDataClass(id,w,h,mw,mh);this.total++;if(mw>=0)abh();};this.delPlayer=function(idx){for(i=0;i<this.total;i++){if(this.player[i].id==idx){break;};};this.player[i]=null;for(j=i;j<(this.total-1);j++){this.player[j]=this.player[j+1];};this.total--;};this.$=function(name){res=null;for(i=0;i<this.total;i++){o=this.player[i];if(o.id==name){res=o;};};return res;};this.stopAll=function(name){for(i=0;i<this.total;i++){px=this.player[i];if(px!=null){if(px.id!=name){px.stop();};};};};this.playAll=function(){for(i=0;i<this.total;i++){px=this.player[i];if(px!=null){px.play();};};};this.evaluateX=function(px){res=false;for(i=0;i<this.total;i++){p1x=this.player[i].getX();p2x=this.player[i].getX()+this.player[i].getWidth();if((px<p2x)&&(px>p1x)){res=true;break;};};return res;};this.evaluateY=function(py){res=false;for(i=0;i<this.total;i++){p1x=this.player[i].getY();p2x=this.player[i].getY()+this.player[i].getHeight();if((py<p2x)&&(py>p1x)){res=true;break;};};return res;};this.maximize=function(){for(var i=0;i<this.total;i++){if(this.player[i]){this.player[i].maximize();}}};this.minimize=function(){for(var i=0;i<this.total;i++){if(this.player[i]){this.player[i].minimize();}}};};var ply=new playersClass();function goToTest(player,stax,stox){p=ply.$(player);if(p!=null){t=timeToSeconds(stax);globalStop=(stox=="")?-1:timeToSeconds(stox);p.goTo(t);ply.stopAll(player);};};function goTo(x){if(x.getAttribute('g_playerid')!=null){p=ply.$(x.getAttribute('g_playerid'));if(p!=null){t=x.getAttribute('g_start');if(x.getAttribute('g_stop')!=null){globalStop=timeToSeconds(x.getAttribute('g_stop'));p.showActive(timeToSeconds(t),globalStop);}else{p.hideActive();};p.goTo(t);if(x.tagName=='IMG'){defScroll(null,3,x);};};};};function Timer(){for(i=0;i<ply.player.length;i++){p=ply.player[i];if(p!=null){p.update();if(p.currentTime==globalStop){p.stop();globalStop=-1;};};};setTimeout("Timer()",1000);};Timer();var qsParams=null;function parseQueryString(){if(!qsParams){res=new Array();x=location.toString().split('?');if(x[1]){x=x[1].split('&');for(var i=0;i<x.length;i++){res[res.length]=x[i].split('=');}}
qsParams=res;}}
function qsParamValue(nombre){parseQueryString();for(var i=0;i<qsParams.length;i++){if(qsParams[i][0]==nombre){return qsParams[i][1];}}
return"";}
function getDocks(){var res=new Array();dvs=document.getElementsByTagName('DIV');for(var i=0;i<dvs.length;i++){if((dvs[i].className)&&(dvs[i].className=='dock')){res[res.length]=dvs[i];}}
return res;}
function peelNotes(dk,us){for(var i=0;i<dk.childNodes.length;i++){if((dk.childNodes[i].getAttribute('wid'))&&(dk.childNodes[i].getAttribute('wid').indexOf('notes')>=0)){peelWindow(null,dk.childNodes[i].childNodes[0]);}}}
function getQueryString(){player=qsParamValue('p');begin=qsParamValue('b');end=qsParamValue('e');globalStop=Number(end);if(player!=""){setTimeout("ply.$('"+player+"').goTo("+begin+");",3000);if(end!=""){globalStop=parseInt(end);};setBeginStop(player,begin,end);};notes=qsParamValue('notes');if(notes){ds=getDocks();for(var i=0;i<ds.length;i++){peelNotes(ds[i],notes);}}};function setBeginStop(idp,be,en){btnb=document.getElementById(idp+"beginbtn");if((btnb!=null)&&(be>=0))btnb.innerHTML=secondsToTime(be);btne=document.getElementById(idp+"endbtn");if((btne!=null)&&(en>0))btne.innerHTML=secondsToTime(en);if(document.getElementById(idp+"testbtn")){setTimeout("activeTest(document.getElementById(\""+idp+"testbtn\"))",5500);};};function executeURL(idpeu,beg,end){if(typeof(end)=="string"){globalStop=Number(end);};if(typeof(end)=="number")
globalStop=end;if(typeof(idpeu)=="string"){p=ply.$(idpeu);if(p!=null){if(ply.$(idpeu).getLoad()<100){setTimeout("delayedExURL('"+idpeu+"',"+beg+","+end+");",500);}else{ply.$(idpeu).goTo(beg);setTimeout('ply.$("'+idpeu+'").play();',500);};};};};function delayedExURL(idp2,b2,e2){if(ply.$(idp2).buffered==true){ply.stopAll(idp2);setTimeout('ply.$("'+idp2+'").goTo("'+b2+'");',400);setTimeout('ply.$("'+idp2+'").goTo("'+b2+'");',400);ply.$(idp2).play();}else{setTimeout("delayedExURL('"+idp2+"',"+b2+","+e2+");",500);};};function tocFindBroUn(elemento){pnt=elemento;while((pnt.className!="tocDiv1")&&(pnt.className!="tocDiv2")&&(pnt.className!="contentW")){pnt=pnt.parentNode;};next=pnt.nextSibling;while((next!=null)&&(next.className!=pnt.className)){next=next.nextSibling;};if(next){return(next.getElementsByTagName('TABLE')[0].getElementsByTagName('DIV')[0]);}else{next=pnt.parentNode;while((next.className!="tocDiv1")&&(next.className!="tocDiv2")&&(next.className!="contentW")){next=next.parentNode;};if(next.className!="contentW"){return tocFindBroUn(next);}else{return null;};};};function traFindBro(elemento){pnt=elemento.parentNode;while((pnt.className!="transcriptContent")&&(pnt.className!="contentW")){pnt=pnt.parentNode;};next=pnt.nextSibling;while((next!=null)&&(next.className!=pnt.className)){next=next.nextSibling;};return next;};function sliFindBro(elemento){pnt=elemento.parentNode;next=pnt.nextSibling;while((next!=null)&&(next.className!=pnt.className)){next=next.nextSibling;};if(next){return(next.getElementsByTagName('IMG')[0]);}else{return null;};};function markTime(objeto,tip){obn=null;te=0;tb=0;switch(tip){case 1:{obn=tocFindBroUn(objeto);};break;case 2:{obn=traFindBro(objeto);while(objeto.tagName!='DIV'){objeto=objeto.parentNode;};};break;case 3:{obn=sliFindBro(objeto);};break;};tb=timeToSeconds(objeto.getAttribute('g_start'));if(obn){te=timeToSeconds(obn.getAttribute('g_start'));}else{te=ply.$(objeto.getAttribute('g_playerid')).totalTime;};if(te>tb){ply.$(objeto.getAttribute('g_playerid')).showActive(tb,te);}else{ply.$(objeto.getAttribute('g_playerid')).showActive(tb,tb+1);}
if(objeto.onmouseout==null){objeto.onmouseout=function(){ply.$(this.getAttribute('g_playerid')).hideActive();};};};function activeTest(o){id=o.getAttribute('g_player');sta=o.parentNode.parentNode.childNodes[2].firstChild.childNodes[0].childNodes[1].childNodes[1].innerHTML;if(sta=='begin')sta='00:00';sto=o.parentNode.parentNode.childNodes[4].firstChild.childNodes[0].childNodes[1].childNodes[1].innerHTML;if(sto=='end')sto=secondsToTime(ply.$(o.getAttribute('g_player')).totalTime);ply.$(id).showActive(timeToSeconds(sta),timeToSeconds(sto));if(o.onmouseout==null){o.onmouseout=function(){ply.$(this.getAttribute('g_player')).hideActive();};};};function copyLink(o)
{var x=URL;id=o.getAttribute('g_player');sta=o.parentNode.parentNode.childNodes[2].firstChild.childNodes[0].childNodes[1].childNodes[1].innerHTML;if(sta=='begin')sta='00:00';sto=o.parentNode.parentNode.childNodes[4].firstChild.childNodes[0].childNodes[1].childNodes[1].innerHTML;if(sto=='end')sto=secondsToTime(ply.$(o.getAttribute('g_player')).totalTime);if(sta!=null){x=x+"&"+"p="+id+"&b="+timeToSeconds(sta);if(sto!=null){x=x+"&e="+timeToSeconds(sto);};};if(IE){document.getElementById(id+'hold').innerText=x;Copied=document.getElementById(id+'hold').createTextRange();Copied.execCommand("Copy");}else{document.getElementById(id+'hold').style.display="block";document.getElementById(id+'hold').style.visibility="visible";document.getElementById(id+'hold').innerHTML=x;};};function testTm(o){sta=o.parentNode.parentNode.childNodes[2].firstChild.childNodes[0].childNodes[1].childNodes[1].innerHTML;if(sta=='begin')sta="00:00";sto=o.parentNode.parentNode.childNodes[4].firstChild.childNodes[0].childNodes[1].childNodes[1].innerHTML;if(sta!=null){if(sta.split(':').length>1){if((sto==null)||(sto.split(':').length==1))sto="";goToTest(o.getAttribute('g_player'),sta,sto);};};};function catchTime(o,edit){if(edit==true){par=o.parentNode;vals=o.value;if(par!=null){par.innerHTML='<input class="btn" g_return="'+vals+'" g_playerid="'+o.getAttribute('g_playerid')+'" type="button" style="width:43px;" value="'+secondsToTime(ply.$(o.getAttribute('g_playerid')).currentTime)+'" onclick="delTime(this,1);" />';};}else{time=secondsToTime(ply.$(o.getAttribute('g_player')).currentTime);o.childNodes[0].childNodes[1].childNodes[1].innerHTML=time;if(o.getAttribute('lbl')=='begin'){nextTime=timeToSeconds(o.parentNode.parentNode.childNodes[4].childNodes[0].childNodes[0].childNodes[1].childNodes[1].innerHTML);if(nextTime<ply.$(o.getAttribute('g_player')).currentTime){o.parentNode.parentNode.childNodes[4].childNodes[0].childNodes[0].childNodes[1].childNodes[1].innerHTML="end";};}else{nextTime=timeToSeconds(o.parentNode.parentNode.childNodes[2].childNodes[0].childNodes[0].childNodes[1].childNodes[1].innerHTML);if(nextTime>ply.$(o.getAttribute('g_player')).currentTime){o.parentNode.parentNode.childNodes[2].childNodes[0].childNodes[0].childNodes[1].childNodes[1].innerHTML="begin";};};};};function delTime(o,t){if(t==1){pp=o.parentNode;pp.innerHTML='<input style="width:33px;" g_playerid="'+o.getAttribute('g_playerid')+'" class="btn" type="button" value="'+o.getAttribute('g_return')+'" onclick="catchTime(this,true);" />';}else{o.innerHTML=o.getAttribute('g_return');o.onclick=function(){catchTime(o,false);};o.setAttribute("g_return","");o.setAttribute("g_time","");};};function copy(o){tx=o.parentNode.nextSibling.childNodes[0];sta=o.parentNode.childNodes[1].childNodes[0].value;sto=o.parentNode.childNodes[3].childNodes[0].value;if(sta.split(":").length==1){sta="";};if(sto.split(":").length==1){sto="";};if(sta!=""){sta=timeToSeconds(sta);if(IE){tx.innerText=location.toString().split('?')[0]+"?p="+o.parentNode.getAttribute('g_player')+"&b="+sta;if(sto!="")tx.innerText=tx.innerText+"&e="+timeToSeconds(sto);tx.style.display="none";Copied=tx.createTextRange();Copied.execCommand("Copy");}else{tx.value=location.toString().split('?')[0]+"?p="+o.parentNode.getAttribute('g_player')+"&b="+sta;if(sto!="")tx.value=tx.value+"&e="+timeToSeconds(sto);tx.style.display="block";};};};function loadHeaders(){if(G_EDIT==0){ply.playAll();setTimeout("delayedStop();",400);};};function delayedStop(){res2=0;res=0;for(i=0;i<ply.total;i++){pxx=ply.player[i];if(pxx!=null){if(pxx.state==2){pxx.stop();pxx.buffered=true;res2++;};if(pxx.state==0){res++;};};};if(res<ply.total){setTimeout("delayedStop();",400);}else{for(i=0;i<ply.total;i++){pxx=ply.player[i];pxx.buffered=true;};setTimeout("getQueryString()",2500);};};function bookmark(o){sta=o.parentNode.parentNode.childNodes[2].firstChild.childNodes[0].childNodes[1].childNodes[1].innerHTML;sto=o.parentNode.parentNode.childNodes[4].firstChild.childNodes[0].childNodes[1].childNodes[1].innerHTML;url=location.toString();if(sta=='begin')sta="00:00";if(sto=='end')sto=secondsToTime(ply.$(o.getAttribute('g_player')).totalTime);url=url+"&"+"p="+o.getAttribute('g_player')+"&b="+timeToSeconds(sta);url=url+"&e="+timeToSeconds(sto);title=document.title;if((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)){window.external.AddFavorite(url,title);}else if(navigator.appName=="Netscape"){window.sidebar.addPanel(title,url,"");}else{alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");};};function sendToAFriend(o){sta=o.parentNode.parentNode.childNodes[2].firstChild.childNodes[0].childNodes[1].childNodes[1].innerHTML;if(sta=='begin'){sta='00:01';};sto=o.parentNode.parentNode.childNodes[4].firstChild.childNodes[0].childNodes[1].childNodes[1].innerHTML;if(sto=='end'){sto=secondsToTime(ply.$(o.getAttribute('g_player')).totalTime);};url=location.toString();url=escape(url);if(sta!=null){url=url+"%26p="+o.getAttribute('g_player')+"%26b="+timeToSeconds(sta);if(sto!=null){url=url+"%26e="+timeToSeconds(sto);};};window.open("mailto:?subject="+escape(document.title)+"&body="+url);};function animateButton(ob,op){if(op==1){ob.childNodes[0].childNodes[1].childNodes[1].style.background="#ddd";ob.childNodes[0].childNodes[1].childNodes[1].style.paddingLeft="2px";}else{ob.childNodes[0].childNodes[1].childNodes[1].style.background="url('/tmwi/extensions/glimages/buttonpiece.jpg') repeat top right";ob.childNodes[0].childNodes[1].childNodes[1].style.paddingLeft="0px";};};function hideStats(o){ply.$(o.getAttribute('g_player')).showStats(1);};}else
{};