// $Id: nice_menus.js,v 1.10.2.6 2008/08/04 23:45:51 add1sun Exp $

// We need to do some browser sniffing to weed out IE 6 only
// because only IE6 needs this hover hack.
if (document.all && !window.opera && (navigator.appVersion.search("MSIE 6.0") != -1) && $.browser.msie)
{
  function IEHoverPseudo()
  {

      jQuery("ul.menuhor li").hover(function(){ //use hover or click or other event.
          //alert($("ul.menuhor").find("ul").innerHTML);
		  
		  jQuery(this).find("ul").addClass("ie-over");
		  jQuery(this).find("ul li ul").removeClass("ie-over");
		  
								 jQuery("ul.menuhor li ul li").hover(function()
								 {
								 	jQuery(this).find("ul").addClass("sub-ie-over");
								 },
								 function()
								 {
									 jQuery(this).find("ul").removeClass("sub-ie-over");
								 }
								 );
		  
        },function(){
          jQuery(this).find("ul").removeClass("ie-over");
        }
      );
      // Add a hover class to all li for CSS styling. Silly naming is done
      // so we don't break CSS compatibility for .over class already in use
      // and due to the fact that IE6 doesn't understand multiple selectors.
/*      $("ul.menuhor li").hover(function(){
          $(this).addClass("ie-over");
        },function(){
          $(this).removeClass("ie-over");
        }
      );*/
    }

    // This is the jquery method of adding a function
    // to the BODY onload event.  (See jquery.com)
    jQuery(document).ready(function(){ IEHoverPseudo() });
}



/*jQuery(document).ready(function()
	{
	alert(jQuery("ul.menuhor ul").length);
	//jQuery("ul.menuhor").lastItem("")
	
	});*/



