SYtime=0 SYstep=0 function timecontrol() { if(SYfullscreen && SYtag==2 && SYstep==0) { SYstep=2; }else if(!SYfullscreen && SYstep==0) { SYstep=2; SYtag=2; } if(SYstream && SYtag==2 && SYstep==2) streamlayer.style.visibility="visible" if(SYstream && SYtag==3 && SYstep==2) { SYstep=3; }else if(!SYstream && SYstep==2) { SYstep=3; SYtag=3; } if(SYpopup && SYstep==3) openWindow() else if(!SYpopup && SYstep==3) SYtag==4 if(SYtag==4) { clearTimeout(SYtime); }else SYtime=setTimeout("timecontrol()",100) } timecontrol()