function select_toggle (status) {
                                         
  if(navigator.userAgent.indexOf("MSIE 6")!=-1) {
        if (status=="show") {                           
						  $("SELECT").each(function( ){
              $(this).css("visibility","visible");    
              });
        }
        else  {                           
						  $("SELECT").each(function( ){
              $(this).css("visibility","hidden");    
              });
        } 
  }               




}


sfHover = function() {
        var sfEls = document.getElementById("navi").getElementsByTagName("LI");
        for (var i=0; i<sfEls.length; i++) {
                sfEls[i].onmouseover=function() {
                        this.className+=" sfhover";
                }
                sfEls[i].onmouseout=function() {
                        this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
                }
        }
}
//if (window.attachEvent) window.attachEvent("onload", sfHover);

function lazyMenu() {
  if(document.getElementById('ul')){
        var lazyMenu = document.getElementById('ul').childNodes;
        for (var i=0, il = lazyMenu.length; i<il; i++) {
                var lazyItem = lazyMenu[i];
                        if (lazyItem.nodeType == 1) {
                        lazyItem.onmouseover=function() {
                                if (typeof(lazyTimeout) != 'undefined') window.clearTimeout(lazyTimeout);
                                if (this.className.search(/sfhover/) == -1) {
                                        var lazyOld = $('#navi li.sfhover');
                                        for (var j=0, jl = lazyOld.length; j<jl; j++) {
                                                lazyOld[j].className=lazyOld[j].className.replace(new RegExp("\\bsfhover\\b"), "");
                                        }
                                        this.className+=" sfhover";





                                         select_toggle ("hide");

                                             /*    if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4") {

                                                         $.each(document.getElementsByTagName('SELECT'), function( ){
                                                         $(this).css("display","none");
                                                         });
                                                 }

                                             */





                                      /*  function toggleselect (show,hidden) {
                                        if (show) {
                                          document.getElementById('ziel') = 'tx-irfaq-dynans-visible';
                                         document.getElementById(pm_id).src = tx_irfaq_pi1_iconMinus;
                                                  }
                                          else {
                                         document.getElementById(faq_id).className = 'tx-irfaq-dynans-hidden';
                                         document.getElementById(pm_id).src = tx_irfaq_pi1_iconPlus;
                                          }

                                        }*/




                                }
                        }
                        lazyItem.onmouseout=function() {
                                //nach timeout schließen
                                var lazyHover = this;
                                lazyTimeout = window.setTimeout(function() {
                                        lazyHover.className=lazyHover.className.replace(new RegExp("\\bsfhover\\b"), "");
                                }, 300);


                                 select_toggle ("show");

                        }
                }
        }
  }
}
//lazyMenu();

$(document).ready(function(){
  lazyMenu();
});
//if (window.attachEvent) window.attachEvent("onload", lazyMenu);

/*
   if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4") {

$.each(document.getElementsByTagName('SELECT'), function( ){
  $(this).css("display","none");
});
}



*/



 /*
$("select").mouseover(function (intIndex ) {
      $(this).css("display","none");
    });

 */
//$.each(document.getElementsByTagName('SELECT'), function( intIndex ){
//  $(this).css("display,"none");
//};

//document.getElementsByTagName('SELECT').each(
//  function( intIndex ){
//    $(this).style.display="none";
//  }
//alert("test");
//);