/*
 * Headline:      Bayer
 * Description:   _techcenter_js/ie_nav.js
 * 				  Top Navigation Workaround für den IE  				
 * Copyright:     Copyright (c) 2007
 * Organisation:  Werum Software & Systems AG
 * @author    	  eberhardt
 */


function enableDropdownMenuForIE(){   
    
        uls = document.getElementsByTagName('UL');
        for(i = 0; i < uls.length; i++){
            if (uls[i].className == 'dropdown'){
                var lis = uls[i].getElementsByTagName('li');
                for (j = 0; j < lis.length; j++){
                   if(lis[j].lastChild.tagName == 'UL'){                      
                        lis[j].onmouseover =function() { 
                        	this.className +="hover";
						    
     								 }
                        lis[j].onmouseout = function() { 
                        	this.className =    this.className.replace(/ ?hover$/,'');                        		
  						 }
                    }//if
                } //for
            }//if
        }//for
     
    }//function