  
 /* * * * * * * * * * * * * * * * * * * * 
  *  Nahrazuje .htc a sfhover skripty   *
  * * * * * * * * * * * * * * * * * * * */
  hover = function()
  {

		if( window.custom_load_hover )
		{
			matice = custom_load_hover();
		}
		else
		{
			matice = new Array();
                         //id, tag
			matice.push(new Array("mainMenu", "li"));
			matice.push(new Array("naviMenu", "li"));
			matice.push(new Array("kalendar_col", "div"));
			matice.push(new Array("autocomplete", "li"));
    }
    
    add    = "hover";
    remove = "hover\\b";
     
    for ( var j=0; j<matice.length; j++ )
    {
      ids     = matice[j][0];
      tags    = matice[j][1];
      
      if (document.getElementById(ids) != null)
      {
        pole = document.getElementById(ids).getElementsByTagName(tags);
        
        for ( var i=0; i<pole.length; i++ )
        {
          //alert(\'Class: \' + designsDiv[i].className);       // vypíše hodnotu classu
          
          pole[i].onmouseover = function() { this.className += " " + add; }
          pole[i].onmouseout  = function() { this.className = this.className.replace(new RegExp(" " + remove), ""); }
          
          
        } // end for
        
        
      } // end if 
      
    } // end for
    
  } // end function
  
  if (window.attachEvent) window.attachEvent("onload", hover);


