var showTdilay=4;
var hideTdilay=10;
var hideTdilay2=15;
var scrollresize=0;
var theTimer;
var theTimer2;
var er=0;

function domyfun(){
if(scrollresize==1)
theTimer2=window.setTimeout("closeit()",hideTdilay2*1000);
else
theTimer2=window.setTimeout("closeit()",hideTdilay*1000);
}

function closeit(){
try
{
var obj=document.getElementById("yptplayer");
if(obj!=null)
 {
 obj.style.visibility='hidden';
 obj.showimage.visibility="hide";
 }
}
catch(e)
{
er=1;
}
try
{
var obj2=document.getElementById("yptplayer2");
if(obj2!=null)
 {
 obj2.style.visibility='hidden';
 obj2.showimage.visibility="hide";
 }
}
catch(e)
{
er=1;
}
}
function showit(){
try
{
var obj=document.getElementById("yptplayer");
if(obj!=null)
 {
 obj.style.visibility='visible';
 obj.showimage.visibility="show";
 }
}
catch(e)
{
er=1;
}

try
{
var obj2=document.getElementById("yptplayer2");
if(obj2!=null)
   {
   obj2.style.visibility='visible';
   obj2.showimage.visibility="show";
   }
  }
catch(e)
{
er=1;
}
domyfun();
}
function domyfun2(){
clearTimeout(theTimer);
clearTimeout(theTimer2);
scrollresize=1;
showit();
}
window.onload=domyfun;
window.onscroll=domyfun2;
window.onresize=domyfun2;
window.onerror=function(){return false;}
theTimer=window.setTimeout("showit()",showTdilay*1000);