 
     var img01 = new Image ();
     img01.src = "templates/hewer_cz/img/HW_15a.png";        
     var img02 = new Image ();
     img02.src = "templates/hewer_cz/img/HW_15a.png";        


        
     function Hilite(name,over, dir)
        {
        	if(window.document.images) 
        	{
        	    
        		if (over)
        			window.document.images["img_"+name].src = "templates/default/img/" + dir + name + "_hi.png";        			
        		else
        			window.document.images["img_"+name].src = "templates/default/img/" + dir + name + ".png";
        	}
        }
        
/* roletokove menu */        
var dom = document.getElementById ? true : false;
var ie4 = ((document.all) && (!dom)) ? true : false;
var ns4 = document.layers ? true : false;
var opera = navigator.userAgent.indexOf('Opera') != -1 ? true : false;
var dhtml = dom ? true : ie4 ? true : ns4 ? true : false;
        
var iOpacity,bShowInProgress=false,bHideInProgress=false;

var timer, timer2, i,  oid=0;
var iPocMenu=8;

function showMenu(id) //spusti zobrazeni
{
  if (dhtml)
  {      
    // zmena barvy pozadi
    obj = document.getElementById('visibleMenu' + id);
    if (obj) {    
      //obj.style.background = 'url(http://www.cittadella.cz/betonbau/templates/default/img/be_29a.png) repeat 0% 0%';
      //obj.style.background = 'url(http://www.cittadella.cz/betonbau/templates/default/img/be_29a.png) repeat 0% 0%';
      obj.style.backgroundPosition = '0 40px';                  
    }
    
    //existuje odkryvaci menu
    obj = document.getElementById('hiddenMenu' + id);
    if (obj && id!=0) {              
        if (oid==0) {  // nic neni zobrazeno, muzeme zobrazit
            //alert('sh 1');
            oid=id;
            clearTimeout(timer);
            clearTimeout(timer2);  
            bShowInProgress=true;
            bHideInProgress=false;     
            timer = setTimeout("timShow(oid)",50);  
         } else if (oid==id) { // je jiz zobrazeno, neni nutne znova zobrazovt
            //alert('sh 2');
            if (!bShowInProgress) {        
              clearTimeout(timer);         
            }
            if (document.getElementById('hiddenMenu' + id).style.display=='none')
            {
                clearTimeout(timer);
                clearTimeout(timer2);  
                bShowInProgress=true;
                bHideInProgress=false;
                timer = setTimeout("timShow(oid)",50); 
            }           
         } else if (oid!=id) { // je zobrazeno neco jine
            //alert('sh 3');
            oid=id;
            clearTimeout(timer);
            clearTimeout(timer2);  
            bShowInProgress=true;
            bHideInProgress=false;
            timer = setTimeout("timShow(oid)",50); 
         }
      }     
   }  
}
function timShow(id) {   
               
    //skryty vsech otevrenych
    for (i = 1; i <= iPocMenu; i++) {
       if (i!=id) {
         document.getElementById('hiddenMenu' + i).style.display='none';
       }  
    }          
    document.getElementById('hiddenMenu' + id).style.display='';
    // fade effect
    oid=id;
    iOpacity=20;
    document.getElementById('hiddenMenu' + id).style.filter='alpha(opacity=20)';
    timer2 = setTimeout("timFadeIn(oid)",50);
    bShowInProgress=false;
}
function timFadeIn(id) 
{
   if (oid!=0) {
      iOpacity=iOpacity+10;
      document.getElementById('hiddenMenu' + id).style.filter='alpha(opacity='+iOpacity+')';
      if (iOpacity<100) {   
        timer2 = setTimeout("timFadeIn(oid)",50);
      }
   }   
}



function hideMenu(id) // spusti zkryti
{
  if (dhtml)
  {          
    // zmena barvy pozadi
    obj = document.getElementById('visibleMenu' + id);
    if (obj) {          
      obj.style.backgroundPosition = '0px 0px'; 
      //obj.style.backgroundImage = 'url(http://www.cittadella.cz/betonbau/templates/default/img/be_29.gif)';
      //obj.style.backgroundImage = 'none';
    }
    

    obj = document.getElementById('hiddenMenu' + id);
    if (obj) {

        //if (oid!=0) { // jen kdyz je neco zobrazeno
            oid=0;
            bHideInProgress=true;   
            bShowInProgress=false;
            clearTimeout(timer); 
            timer = setTimeout("timHide(oid)",100);
        //}
    }       
  }
}
function timHide(id)
{   
    for (i = 1; i <= iPocMenu; i++) {
         document.getElementById('hiddenMenu' + i).style.display='none';
    }       
    bHideInProgress=false;      
}

function dontHideMenu(id)
{   
  if (id==oid || oid==0) {
    if (!bShowInProgress) {
        clearTimeout(timer);
        clearTimeout(timer2);    
        document.getElementById('hiddenMenu' + id).style.filter='alpha(opacity=100)';
     }   
  } else if (id!=oid) {
    showMenu(id);
  }   
}
   
  