var timerID = null;
var timerOn = false;
var timecount = 1000;

function stoptime() {
if (timerOn) {
clearTimeout(timerID);
timerID = null;
timerOn = false;
}  }

function starttime() {
if (timerOn == false) {
timerID=setTimeout('close1();' , timecount);
timerOn = true;
}
}


function open1(){ 
close1(0)
x = (screen_width / 2) + 300;
if (document.all) {
document.all.menu1.style.visibility='visible';
document.all.menu1.style.left = x;
document.all.menu1.style.top = 250;
document.all.menu1.style.width = 100;
}


else if (document.getElementById) {
document.getElementById(menu1).style.visibility='visible';
document.getElementById(menu1).style.left = x;
document.getElementById(menu1).style.top=250;
document.getElementById(menu1).style.width=100;

}

 }







function close1()
{
if(document.all)  {
    document.all.menu1.style.visibility='hidden';
}
else if (document.getElementById) {
       document.getElementById(menu1).style.visibility='hidden';
      }


}





function loadon() {
if(document.all)  { screen_width=document.body.clientWidth; }
else if (document.getElementById) { screen_width=document.documentElement.clientWidth; }
}

function resizeon() {
if(document.all) {  screen_width=document.body.clientWidth;}
else if (document.getElementById) { screen_width=window.innerWidth; }
x = (screen_width / 2) - 280;
 close1();
}
function clickon()
{
if(document.all) { screen_width=document.body.clientWidth;}
else if (document.getElementById) { screen_width=window.innerWidth; }
x = (screen_width / 2) - 280;
close1();
}


