var newwindow;var old=0;var olda=0;var oldpos=-1;function popitup(A){if(typeof (newwindow)!="undefined"&&!newwindow.closed&&newwindow.location){newwindow.focus()}else{newwindow=window.open(A,"multimedia","height=350, width=490");if(!newwindow.opener){newwindow.opener=self}}if(window.focus){newwindow.focus()}}function popitupaudio(A){if(typeof (newwindow)!="undefined"&&!newwindow.closed&&newwindow.location){newwindow.focus()}else{newwindow=window.open(A,"multimedia","height=110, width=490");if(!newwindow.opener){newwindow.opener=self}}if(window.focus){newwindow.focus()}}function qtpos(A){if(typeof (newwindow)!="undefined"&&!newwindow.closed&&newwindow.location&&newwindow.document.qt&&newwindow.document.qt.GetPluginStatus()=="Complete"){newwindow.focus();newwindow.document.getElementById("cbfollow").checked=true;newwindow.document.qt.Stop();newwindow.document.qt.SetTime(A);newwindow.document.qt.Play()}}function keepontop(){if(typeof (newwindow)!="undefined"&&!newwindow.closed&&newwindow.location&&newwindow.document.getElementById("cbontop")&&newwindow.document.getElementById("cbontop").checked){var A;if(window.innerHeight){A=window.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){A=document.documentElement.scrollTop}else{if(document.getElementById("content")){A=document.getElementById("content").scrollTop}}}if(A==old){newwindow.focus()}old=A}}function followmedia(){if(typeof (newwindow)!="undefined"&&!newwindow.closed&&newwindow.location&&newwindow.document.getElementById("cbfollow")&&newwindow.document.qt&&newwindow.document.qt.GetPluginStatus()=="Complete"){if(newwindow.document.getElementById("cbfollow").checked){var A;if(window.innerHeight){A=window.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){A=document.documentElement.scrollTop}else{if(document.getElementById("content")){A=document.getElementById("content").scrollTop}}}if(A!=olda){newwindow.document.getElementById("cbfollow").checked=false}}if(newwindow.document.getElementById("cbfollow").checked){var F=newwindow.document.qt.GetTime();if(F>=0){var D;D=posarray.length;while(D>0&&(typeof (posarray[D])=="undefined"||posarray[D]>F)){D--}if(D!=oldpos){var E;var C;var B=false;for(E=1;E<=numberofspeakers;E++){if((C=document.getElementById("pos"+E+"t"+oldpos))){C.className=""}if((C=document.getElementById("pos"+E+"t"+D))){if(!B){movetotarget(C);B=true}C.className="synchronised"}}oldpos=D}}}if(window.innerHeight){olda=window.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){olda=document.documentElement.scrollTop}else{if(document.getElementById("content")){olda=document.getElementById("content").scrollTop}}}}}setInterval(keepontop,1000);setInterval(followmedia,250)