
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,css){var pl=ply.$(player);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'))<=pl.currentTime){res=ob;if((css!="")&&(ob.className!=css))res=null;}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','tocContent');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");var plO=ply.$(playerid);if(!container){$trWindow=$e.$("w"+playerid+"transcript"+totalIText);if(($trWindow)&&($trWindow.ccFlag)){container=$trWindow.obj;}}
while(container){$trWindow=$e.$("w"+playerid+"transcript"+totalIText);if(container!=null){var mapap=null;var divs=container.getElementsByTagName('DIV');for(var ij=0;ij<divs.length;ij++){dv=divs[ij];if((GmapsLoaded)&&(dv.getAttribute("type")=="marker")){if(dv.mpc==null){mapap=(mapap==null)?doc.getElementById(dv.getAttribute('g_playerid')+"map"):mapap;dv.mpc=mapap;}
sta=timeToSeconds(dv.getAttribute("g_start"))
sto=timeToSeconds(dv.getAttribute("g_stop"));tit=dv.getAttribute("g_place");flag=dv.getAttribute("switch");allow=false;var imageToplace=null;if(plO.currentTime>=sta){if((plO.currentTime<=sto)||(sto==0)){imageToplace=markerImageOver;dv.setAttribute("switch","on");allow=(flag!="on")?true:false;}else{imageToplace=markerImageOut;dv.setAttribute("switch","off");allow=(flag!="off")?true:false;}}else{imageToplace=markerImageOut;dv.setAttribute("switch","off");allow=(flag!="off")?true:false;}
if(allow){if(GmapsLoaded)
for(var ji=0;ji<dv.mpc.markers.length;ji++){mrkr=dv.mpc.markers[ji];if(mrkr.title==tit){try{if(imageToplace==markerImageOver){var aux=mrkr.gState;google.maps.event.trigger(mrkr,"click");if(aux!="manual")
mrkr.gState='auto';}else{if(mrkr.gState=="auto"){mrkr.infobox.setMap(null);}}}catch(ex){}
mrkr.setIcon(imageToplace);ji=dv.mpc.markers.lenght+1;}}}}}
curr=current(playerid,container,'DIV',"transcriptContent");if($trWindow.ccFlag==true){$ccCurrent=current(playerid,container,'SPAN',"cc");if($ccCurrent){$trWindow.cc.className=$trWindow.cc.getAttribute('activecss');$trWindow.cc.innerHTML=$ccCurrent.innerHTML;}}
if(curr!=null){if(!plO.currentTM[totalIText])plO.currentTM[totalIText]="";if((curr.getAttribute('g_start')!=plO.currentTM[totalIText])||(flag==3)){for(var i=0;i<divs.length;i++){objj=divs[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";plO.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;for(totalIText=0;totalIText<15;totalIText++){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=-1;function trim(str){if(typeof(str)=="string")return(str.replace(/^\s*|\s*$/g,''));else return str;}
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="00:"+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;}
xyz=new Image();xyz.src='/library/extensions/glimages/playtmneg.gif';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 #3366BB";ima=ob.getElementsByTagName('IMG');ima[0].src=xyz.src;if(IE)fixIEbugs(0);}}
function backToNormal(ob){ob.style.borderBottom="1px dotted #3366BB";ply.$(ob.getAttribute('g_playerid')).hideActive();ima=ob.getElementsByTagName('IMG');ima[0].src='/library/extensions/glimages/playtm.gif';if(IE)fixIEbugs(0);}
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.ar=(stwidth>0)?stheight/stwidth:0.75;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.cc=doc.getElementById(this.id+"cc");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(){tb=this.obj;while(tb.className!='plyandcontrols')tb=tb.parentNode;return tb.offsetTop;}
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=Math.round(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*this.ar);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);setTimeout("syncIText('"+this.id+"',3);",1000);}}}
this.minimize=function(exe){if((this.maxWidth>=0)||(this.maxHeight>=0)){this.actualWidth-=70;this.actualHeight-=(70*this.ar);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);}else{setTimeout("syncIText('"+this.id+"',3);",1000);}
if(this.actualWidth<=(this.startWidth+70)){dk=document.getElementById(this.id+"dock");dk.style.height=(this.actualHeight)+"px";reorderDock(dk);showLast(dk);}}}
this.remaximize=function(){if((this.maxWidth>=0)||(this.maxHeight>=0)){this.actualWidth-=100;this.actualHeight-=(100*this.ar);this.actualWidth=(this.actualWidth>this.maxWidth)?this.actualWidth:this.maxWidth;this.actualHeight=(this.actualHeight>this.maxHeight)?this.actualHeight:this.maxHeight;this.resize(this.actualWidth,this.actualHeight);if((this.actualWidth>this.maxWidth)||(this.actualHeight>this.maxHeight)){setTimeout("ply.$('"+this.id+"').remaximize();",20);}else{setTimeout("syncIText('"+this.id+"',3);",1000);}
if(this.actualWidth>=(this.startWidth+100)){dk=document.getElementById(this.id+"dock");dk.style.height=(this.actualHeight)+"px";reorderDock(dk);showLast(dk);}}}
this.fullsize=function(){if((this.maxWidth>=0)||(this.maxHeight>=0)){this.actualWidth+=100;this.actualHeight+=(100*this.ar);this.actualWidth=(this.actualWidth>900)?900:this.actualWidth;this.actualHeight=(this.actualWidth==900)?900*this.ar:this.actualHeight;this.resize(this.actualWidth,this.actualHeight);if((this.actualWidth<900)){setTimeout("ply.$('"+this.id+"').fullsize();",20);}else{setTimeout("syncIText('"+this.id+"',3);",1000);}}}
this.resizeDock=function(){if((this.maxWidth>=0)||(this.maxHeight>=0)){dv=document.getElementById(this.id+'1dock');if(!dv)dv=document.getElementById(this.id+'dock');dockWidth=(950-this.startWidth);dv.style.width=dockWidth+"px";reorderDock(dv);showLast(dv);}}
this.resetDock=function(){if((this.maxWidth>=0)||(this.maxHeight>=0)){dv=document.getElementById(this.id+'1dock');if(!dv)dv=document.getElementById(this.id+'dock');dv.style.width=dock_width+"px";dockWidth=dock_width;reorderDock(dv);showLast(dv);}}
this.shutDownCC=function(){for(var ii=0;ii<10;ii++){if($e.$('w'+this.id+'transcript'+ii))
$e.$('w'+this.id+'transcript'+ii).chgCC();}}
this.moveCC=function(btn){if(this.cc){if(this.cc.getAttribute("activecss")=="ccContainerUp"){this.cc.parentNode.className="ccWrapperDown";this.cc.setAttribute("activecss","ccContainerDown");this.cc.className="ccContainerDown";}
else{this.cc.parentNode.className="ccWrapperUp";this.cc.setAttribute("activecss","ccContainerUp");this.cc.className="ccContainerUp";}}}}
function playersClass(){this.player=Array();this.total=0;this.addPlayer=function(id,w,h,mw,mh){mw=(mw==0)?maxWidthDefaultVideo:mw;r=(w>0)?h/w:0.75;mh=(mh==0)?maxWidthDefaultVideo*r:mh;this.player[this.total]=new playerDataClass(id,w,h,mw,mh);this.total++;}
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(exe){for(var i=0;i<this.total;i++){if(this.player[i]){this.player[i].minimize();}}
if(exe)maximizeSidebar();}
this.fullsize=function(){for(var i=0;i<this.total;i++){if(this.player[i]){this.player[i].fullsize();}}}
this.remaximize=function(){for(var i=0;i<this.total;i++){if(this.player[i]){this.player[i].remaximize();}}}
this.resizeDocks=function(){for(var i=0;i<this.total;i++){if(this.player[i]){this.player[i].resizeDock();}}}
this.resetDocks=function(){for(var i=0;i<this.total;i++){if(this.player[i]){this.player[i].resetDock();}}}}
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);}}
if(IE)fixIEbugs(0);}}
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,sugid){for(var i=0;i<dk.childNodes.length;i++){if((dk.childNodes[i].getAttribute('wid'))&&(dk.childNodes[i].getAttribute('wid').indexOf(sugid)>=0)){peelWindow(null,dk.childNodes[i].childNodes[0]);}}}
function getQueryString(){player=qsParamValue('p');begin=qsParamValue('b');end=qsParamValue('e');if(player!=""){globalStop=Number(end);setTimeout("ply.$('"+player+"').goTo("+begin+");",3000);if(end!=""){globalStop=parseInt(end);}
setBeginStop(player,begin,end);}
notes=qsParamValue('notes');srch=qsParamValue('gsearch');ds=getDocks();if(notes){for(var i=0;i<ds.length;i++){peelNotes(ds[i],notes,"notes");}}
if(srch){for(var i=0;i<ds.length;i++){if(srch)peelNotes(ds[i],srch,"search");}}}
function setBeginStop(idp,be,en){tb=document.getElementById('glbeg'+idp);te=document.getElementById('glend'+idp);tb.value=secondsToTime(be);te.value=secondsToTime(en);setTimeout("activeTest(\""+idp+"\");",5500);setSegmentLbl(idp);}
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;case 4:{tb=timeToSeconds(objeto.getAttribute('g_start'));te=timeToSeconds(objeto.getAttribute('g_stop'));obn=null;}break;}
if(tip!=4){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){if(typeof(o)=="string")p=o;else p=o.getAttribute('g_player');sta=document.getElementById('glbeg'+p).value;sto=document.getElementById('glend'+p).value;ply.$(p).showActive(timeToSeconds(sta),timeToSeconds(sto));if(o.onmouseout==null){o.onmouseout=function(){ply.$(this.getAttribute('g_player')).hideActive();}}}
function testTm(o){p=o.getAttribute('g_player');sta=document.getElementById('glbeg'+p).value;sto=document.getElementById('glend'+p).value;if(sta!=null){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{p=o.getAttribute('g_player');inp=o.parentNode.parentNode.getElementsByTagName('INPUT')[0];tm=secondsToTime(ply.$(p).currentTime);inp.value=tm;dv=o;while(dv.className!='sec1')dv=dv.parentNode;inp=dv.getElementsByTagName('INPUT');if(o.getAttribute('g_type')=='begin'){nxt=timeToSeconds(inp[1].value);if(nxt<ply.$(p).currentTime){inp[1].value=secondsToTime(ply.$(p).totalTime);};}else{nxt=timeToSeconds(inp[0].value);if(nxt>ply.$(p).currentTime){inp[0].value="00:00:00";}}
activeTest(p);if((!o.hasAttribute("g_option"))||(o.getAttribute("g_option")!="nochange"))
setSegmentLbl(p);}}
function setSegmentLbl(p){lnk=doc.getElementById("mail"+p);if(lnk){if(lnk.getAttribute('segment')!="false"){lbl=lnk.getElementsByTagName('span')[0];if(lbl){lbl.innerHTML+=" Segment";lnk.setAttribute('segment','false');}}}}
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;while(tx.className!='markcontrols')tx=tx.parentNode;tx=tx.getElementsByTagName('TEXTAREA')[0];url=getTargetUrl(o);if(IE){tx.innerText=url;Copied=tx.createTextRange();Copied.execCommand("Copy");alert("Copied to clipboard");}else{tx.value=url;dv=tx;while(dv.className!="hS")dv=dv.parentNode;dv.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){url=getTargetUrl(o);p=o.getAttribute("g_player");stan=document.getElementById('glbeg'+p).value;ston=document.getElementById('glend'+p).value;sta=timeToSeconds(stan);sto=timeToSeconds(ston);title=document.title;if(sta!=sto){if(!IE){if(stan<ston){title+="<br /> ["+secondsToTime(sta)+", "+secondsToTime(sto)+"]";}else{title+="<br /> ["+secondsToTime(sta)+"]";}}else{if(stan<ston){title+=" ["+secondsToTime(sta).replace(/:/g,".")+", "+secondsToTime(sto).replace(/:/g,".")+"]";}else{title+=" ["+secondsToTime(sta).replace(/:/g,".")+"]";}}}
if((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)){window.external.AddFavorite(url,title);}else{pn=o.getAttribute('g_player');a=doc.getElementById('gsmbkmark'+pn);a.innerHTML=title;a.setAttribute('href',url);dv=a;while(dv.className!="hScopy")dv=dv.parentNode;dv.style.display="block";if(navigator.appVersion.indexOf("Chrome")>0){dv=a;while(dv.className!="sec3")dv=dv.parentNode;dvs=dv.getElementsByTagName("div")[0];sp=dvs.getElementsByTagName("span")[0];sp.innerHTML="Chrome users: open link in new tab and bookmark the new page"}}}
function socialbkmark(o){ur=o.getAttribute('social_url');ur=ur.replace(/\$GSM_URL\$/g,encodeURIComponent(getTargetUrl(o)));ur=ur.replace(/\$GSM_TITLE\$/g,gsmUrlTitle);window.open(ur);}
function getTargetUrl(o){p=o.getAttribute('g_player');sta=document.getElementById('glbeg'+p).value;sto=document.getElementById('glend'+p).value;parts=URL.split("index.php");if(((typeof(gsmBaseUrl)=="undefined"))||(gsmBaseUrl=="")){url=parts[0];url+="index.php?title="+encodeURIComponent(wgPageName);}else{url=((sta!=null)&&(sta!=sto))?gsmBaseUrl+"?":gsmBaseUrl;}
if(sta!=null){if(sta!=sto){p=((typeof(gsmBaseUrl)=="undefined")||(gsmBaseUrl==""))?"&p="+p:"p="+p;url+=p+"&b="+timeToSeconds(sta);if(sto!=null)url+="&e="+timeToSeconds(sto);}}
return url;}
var mw;function sendToAFriend(o){p=o.getAttribute('g_player');sta=timeToSeconds(document.getElementById('glbeg'+p).value);sto=timeToSeconds(document.getElementById('glend'+p).value);if((!mw)||(mw.closed)){if(!IE)
mw=window.open("/library/extensions/GSMMail/index.php?title="+gsmUrlTitle+"&nom="+encodeURIComponent(wgTitle)+"&titulo="+encodeURIComponent(wgTitle)+"&p="+encodeURIComponent(p)+"&b="+sta+"&e="+sto,"Enviar por correo - El amigo de la Marro","location=1,status=1,scrollbars=1,width=580,height=530");else
mw=window.open("/library/extensions/GSMMail/index.php?title="+gsmUrlTitle+"&nom="+encodeURIComponent(wgTitle)+"&titulo="+encodeURIComponent(wgTitle)+"&p="+encodeURIComponent(p)+"&b="+sta+"&e="+sto,"IDPOPUP","height=500");}
mw.focus();}
function animateButton(ob,op){nc=(ob.getAttribute('gl_type')=="end")?"hundidoe":"hundido";if(op==1){ob.className=ob.className+" "+nc;}else{clase=ob.className;if(nc=="hundido"){ob.className=clase.replace(/hundido/,"");}else{ob.className=clase.replace(/hundidoe/,"");}}}
function hideStats(o){ply.$(o.getAttribute('g_player')).showStats(1);}
function incT(ob){inp=ob.parentNode.parentNode.getElementsByTagName('INPUT')[0];inp.value=secondsToTime(timeToSeconds(inp.value)+1);setSegmentLbl(ob.getAttribute('g_player'));}
function decT(ob){inp=ob.parentNode.parentNode.getElementsByTagName('INPUT')[0];scs=timeToSeconds(inp.value)-1;if(scs<0){scs=0};inp.value=secondsToTime(scs);setSegmentLbl(ob.getAttribute('g_player'));}
function onblrinp(o){tx=o.value;tx=tx.replace(/[^0-9:]/g,'');if(tx=="")tx='00:00:00';tx=timeToSeconds(tx);o.value=secondsToTime(tx);if(tx>0)
if((!o.hasAttribute("g_option"))||(o.getAttribute("g_option")!="nochange"))
setSegmentLbl(o.getAttribute('g_player'));}
function shw($ob,$niv,$cls){$or=$ob;for(var i=0;i<$niv;i++){$ob=$ob.parentNode;}
ee=$ob.getElementsByTagName('*');for(i=0;i<ee.length;i++)
if(ee[i].className==$cls)
{$nw="";switch($or.getAttribute('action')){case"hide":{$nw=$or.getAttribute('lbl');$or.setAttribute('action','show');ee[i].style.display='none';}break;case"show":{$nw=$or.getAttribute('lblback');$or.setAttribute('action','hide');ee[i].style.display='block';}break;}
if($nw!=""){$or.getElementsByTagName('SPAN')[0].innerHTML=$nw;}}}
function exHideBtn($clase,$obj,$action){while($obj.className!=$clase)$obj=$obj.parentNode;switch($action){case 0:{$obj.style.display='none';}break;case 1:{$obj.style.display='block';}break;}}}else
{};