var sVis = '';

function setVisible(obj, b)
{
   if (sVis != '' && sVis != obj)
   {
      document.getElementById(sVis).style.visibility = 'hidden';
   }

   sVis = obj;

   obj = document.getElementById(obj);

   

   if (obj.style.visibility == 'visible')
   {
      if(document.getElementById('youtube_div')) 
      {
         document.getElementById('youtube_div').style.visibility = 'visible';
      }
      obj.style.visibility = 'hidden';
      sVis = '';
   }
   else
   {
      obj.style.visibility = 'visible';
      
      if(document.getElementById('youtube_div')) 
      {
         document.getElementById('youtube_div').style.visibility = 'hidden';
      }
   }

   setTimeout("placeIt()", 500);
}


function placeIt()
{
   if (sVis == '')
   {
      return;
   }

   theLeft = 0;
   theTop  = 0;

   obj = document.getElementById(sVis);

   if (document.documentElement)
   {
      theLeft = document.documentElement.scrollLeft;
      theTop = document.documentElement.scrollTop;
   }
   else if (document.body)
   {
      theLeft = document.body.scrollLeft;
      theTop = document.body.scrollTop;
   }

   theTop += 125;
   obj.style.left = theLeft + 'px' ;
   obj.style.top = theTop + 'px' ;
   setTimeout("placeIt()", 500);
}

window.onscroll = function(){setTimeout("self.placeIt()", 500);}

