﻿    
/* na onmouseout - selected - menu, v ktorom prave som */
function MenuOn(objekt)        
{
  var file, file2;
          
  switch (objekt)
  {
    case "o1": file="uvod_hi_y"
               break;
    case "o2": file="profil_hi_y"
               break;
    case "o3": file="hosp_hi_y"
               break;                     
    case "o4": file="kontakt_hi_y"
               break;                     
  }
          
  document.getElementById(objekt).setAttribute("src", "obr/menu/"+file+".gif");        
}
      
/* na onmouseout - selected - menu, v ktorom prave som */
function MenuOff(objekt)        
{
  var file, file2;
          
  switch (objekt)
  {
    case "o1": file="uvod_lo";
               break;
    case "o2": file="profil_lo";
               break;
    case "o3": file="hosp_lo";
               break;                     
    case "o4": file="kontakt_lo";
               break;                     
  }
          
  document.getElementById(objekt).setAttribute("src", "obr/menu/"+file+".gif");        
}      

/* po nacitani stranky zobrazi menu */      
function Uvod()
{
  document.getElementById("menu").style.visibility = "visible";
}

/* otvori nove okno */
function NoveOkno(WinId, x, y, sir, vys)
{
   var statusW;

   statusW = window.open(WinId,"okno","width="+sir+", height="+vys+", top="+y+",left="+x+",location=no,status=no,toolbar=no,menubar=no,resizable=no");
}

//funcia, ktora zapisuje do status baru   
function Pis(text)
{
  window.status = text;
} 

//menu pri profile
function MenuProf(menu)
{
  if(menu==0)
  {
    document.getElementById("helpmenu").style.visibility = "hidden";
    return;
  }
  else if(menu==1) 
  {
    document.getElementById("helpmenu").firstChild.nodeValue = "základné informácie o našej spoločnosti; informácie z valných zhromaždení; iné dokumenty spoločnosti...";
    document.getElementById("helpmenu").style.top = "25px";
  }

  else if(menu==2)
  {
    document.getElementById("helpmenu").firstChild.nodeValue = "informácie o histórii našej spoločnosti...";  
    document.getElementById("helpmenu").style.top = "50px";
  }

  else if(menu==3)
  {
    document.getElementById("helpmenu").firstChild.nodeValue = "štruktúra Majetkového Holdingu, a.s. ...";  
    document.getElementById("helpmenu").style.top = "75px";
  }

  else if(menu==4)
  {
    document.getElementById("helpmenu").firstChild.nodeValue = "odkaz na stránku Obchodného registra SR s informáciami o našej spoločnosti...";  
    document.getElementById("helpmenu").style.top = "100px";
  }
 
  else if(menu==5) 
  {
    document.getElementById("helpmenu").firstChild.nodeValue = "ročné finančné správy, predbežné vyhlásenia emitenta, riadne účtovné závierky, výročné správy...";
    document.getElementById("helpmenu").style.top = "25px";
  }

  else if(menu==6)
  {
    document.getElementById("helpmenu").firstChild.nodeValue = "informácie k valným zhromaždeniam...";  
    document.getElementById("helpmenu").style.top = "50px";
  }
  
  document.getElementById("helpmenu").style.visibility = "visible";
}
