/////////////////////
// SCROLL STATUSBAR
/////////////////////
function scrollit_r21(seed)
 {
 var msg= " Bányagépészet a Műszaki Fejlődésért Alapítvány";
 var out=" ";
 var c=0;

 if (seed>100)
  {
  seed--;
  var cmd="scrollit_r21(" + seed + ")";
  timerTwo=window.setTimeout(cmd,50);
  }
 else if (seed <=100 && seed>0) 
  {
  for (c=0;c<seed;c++)
   {out+=" ";}
  out+=msg;
  seed--;
  var cmd="scrollit_r21(" + seed +")";
  window.status=out;
  timerTwo=window.setTimeout(cmd,50);
  }
 else if (seed <=0)
  {
  if(-seed<msg.length)
   {
   out+=msg.substring (-seed,msg.length);
   seed--;
   var cmd="scrollit_r21(" + seed + ")";
   window.status=out;
   timerTwo=window.setTimeout(cmd,50);
   }
  else
   {
   window.status=" ";
   timerTwo=window.setTimeout("scrollit_r21(50)",75);
   }
  }
 }
/////////////////////
// TOOLTIP
/////////////////////
document.write("<div id='tooltip' class='hinttable'></div>");

function showtip(text)
{
  if (document.all&&document.readyState=="complete")
  {
  document.all.tooltip.innerHTML="<div vAlign=center Align=justify><font SIZE=2>"+text+"</font></div>";
  document.all.tooltip.style.pixelLeft=event.clientX+document.body.scrollLeft+10;
  document.all.tooltip.style.pixelTop=event.clientY+document.body.scrollTop+10;
  document.all.tooltip.style.visibility="visible";
  }
}
function hidetip()
{
 if (document.all)
    document.all.tooltip.style.visibility="hidden";
}

function startpopupmenu(menuId)
{
   document.getElementById(menuId).style.display = "none";
}

function popupmenufunc(menuId)
{
   if(document.getElementById(menuId).style.display == "none")
     {startpopupmenu(menuId);document.getElementById(menuId).style.display = "block";}
   else
     {startpopupmenu(menuId);}
}

var last="";
function showpopupmenu(menuId)
{
 if(last!="") document.getElementById(last).style.visibility="hidden";
 document.getElementById(menuId).style.visibility="visible";
 last=menuId;
}
function hidepopupmenu(menuId)
{
 document.getElementById(menuId).style.visibility="hidden";
 last="";
}
function delayhidepopupmenu(menuId)
{
 setTimeout("hidepopupmenu('"+menuId+"')",5000);
}
/////////////////////
// WINDOW OPEN
/////////////////////
function windopen(apage,awidth)
{
   msg=open(apage,"DisplayWindow","toolbar=no,directories=no," +
            "menubar=no,resizable=yes,scrollbars=yes,top=10,left=10,width="+awidth+",height=500");
}
/////////////////////
// RIGHT CLICK STOP
/////////////////////
function click(e) 
 {
 if (document.all) 
  {
  if (event.button == 2 || event.button == 3) 
     { oncontextmenu = "return false"; } 
  }
 if (document.layers) 
  {
  if (e.which == 3) 
     { oncontextmenu = "return false"; } 
  } 
 }
if (document.layers) 
 { document.captureEvents(Event.MOUSEDOWN); }
document.onmousedown = click;
document.oncontextmenu = new Function("return false;");