/*
 * 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(){   
    if (document.all){
        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.lastChild.style.display = 'block';
                        								 this.lastChild.style.borderTopWidth='1px';
                        								 this.lastChild.style.borderTopStyle='solid';
                        								 this.lastChild.style.borderTopColor='#999999';
                        								 this.getElementsByTagName('a')[0].style.color='red';
                        								 this.getElementsByTagName('a')[0].style.backgroundColor='#dddddd';  }
                        lis[j].onmouseout = function() { this.lastChild.style.display = 'none';
                         								 this.lastChild.style.borderTopWidth='1px';
                        								 this.lastChild.style.borderTopStyle='solid';
                        								 this.lastChild.style.borderTopColor='#999999';
                        								 if (this.getElementsByTagName('a')[0].className!= 'aktuell'){
                        								 	this.getElementsByTagName('a')[0].style.color='white'; 
                        								 	this.getElementsByTagName('a')[0].style.backgroundColor='#999999'; }
                        								  }
                    }//if
                } //for
            }//if
        }//for
    }//if 
    }//function