
var ie = navigator.appVersion.toLowerCase().indexOf("msie 6.") > 0; 
if(ie == true){
}
else{
// JavaScript Document
window.addEvent('domready', function() {
            if(document.getElementById('bsgroup_ti_ag')!=null){
            $('menu').getElements('li').each(function(item){  
              
              
              // WAS WIR TUN
              if(item.getElement('a')!= null){
                if(item.getElement('a').innerHTML=='Was wir tun'){
                   //create Table
                   var table = new Element('table');
                   table.setProperty('style', 'width:360px; background-color:#FFF;');
                   var tr = new Element('tr');
                   var td1 = new Element('td');
                   td1.setProperties({width: '50%', valign: 'top', style: 'background-color:#FFF;'});
                   var td2 = new Element('td');
                   td2.setProperties({width: '50%', valign: 'top', style: 'background-color:#FFF;'});
                   table.inject(item.getElement('ul'), 'top');
                   tr.inject(item.getElement('table'));
                   td1.inject(item.getElement('table').getElement('tr'));
                   td2.inject(item.getElement('table').getElement('tr'));
                   //item.getElement('ul').setProperty('style', 'background:none;');
                   var cnt=0;
                   item.getElement('ul').getElements('li').each(function(item2){   
                           if(item2.getElement('a').innerHTML=='Fokusbereiche'){
                                var div1 = new Element('div');
                                div1.setProperty('style','height: 13px; padding-top: 4px; padding-left: 10px; background-color:#FFF; color:#91866D; font-size:10px; font-style:italic;');
                                div1.inject(item2);                      
                                div1.appendText('Fokusbereiche');
                                item2.getElement('a').destroy();
                           }
                           if(item2.getElement('a')!=null){
                               if(item2.getElement('a').innerHTML=='Innovationsthemen'){   
                                  var div2 = new Element('div');
                                  div2.setProperty('style','height: 13px; padding-top: 4px; padding-left: 10px; background-color:#FFF; color:#91866D; font-size:10px; font-style:italic;');
                                  div2.inject(item2);                                      
                                  div2.appendText('Innovationsthemen');
                                  item2.getElement('a').destroy();
                               }                            
                            }  
                           if(cnt<5){
                                 item2.inject(td1);
                           }else{
                                 item2.inject(td2);
                           }    
                         cnt=cnt+1;                           
                   }); 
                }//endif WAS WIR TUN 
              }//endif null
              
              
             // NEWS & EVENTS
              if(item.getElement('a')!= null){
                if(item.getElement('a').innerHTML=='Seminare &amp; Events'){
                   //create Table
                   var table = new Element('table');
                   table.setProperty('style', 'width:360px; background-color:#FFF;');
                   var tr = new Element('tr');
                   var td1 = new Element('td');
                   td1.setProperties({width: '50%', valign: 'top', style: 'background-color:#FFF;'});
                   var td2 = new Element('td');
                   td2.setProperties({width: '50%', valign: 'top', style: 'background-color:#FFF;'});
                   table.inject(item.getElement('ul'), 'top');
                   tr.inject(item.getElement('table'));
                   td1.inject(item.getElement('table').getElement('tr'));
                   td2.inject(item.getElement('table').getElement('tr'));
                   //item.getElement('ul').setProperty('style', 'background:none;');
                   var cnt=0;
                   item.getElement('ul').getElements('li').each(function(item2){   
                           if(item2.getElement('a').innerHTML=='Kalender'){
                                var div1 = new Element('div');
                                div1.setProperty('style','height: 13px; padding-top: 4px; padding-left: 10px; background-color:#FFF; color:#91866D; font-size:10px; font-style:italic;');
                                div1.inject(item2);                      
                                div1.appendText('Kalender');
                                item2.getElement('a').destroy();
                           }
                           if(item2.getElement('a')!=null){
                               if(item2.getElement('a').innerHTML=='Event-Infos'){   
                                  var div2 = new Element('div');
                                  div2.setProperty('style','height: 13px; padding-top: 4px; padding-left: 10px; background-color:#FFF; color:#91866D; font-size:10px; font-style:italic;');
                                  div2.inject(item2);                                      
                                  div2.appendText('Event-Infos');
                                  item2.getElement('a').destroy();
                               }                            
                            }  
                           if(cnt<3){
                                 item2.inject(td1);
                           }else{
                                 item2.inject(td2);
                           }    
                         cnt=cnt+1;                           
                   });                   
             }//endif  NEWS & EVENTS
            }//null               
          }); // menu li

        } //endif bsgroup_ti_ag     
        
     
         
	//hide Gruppengesellschaften & BSgroup Home
	$('groupmenu').style.display = 'none';
	//$('intermenu').getElement('.menubar').getElement('.homelink').style.display = 'none';

	//set links
	var homelink = $('intermenu').getElement('.menubar').getElement('.homelink');
	homelink .set('html', '<a target="_self" href="kontakt.html">Kontakt</a> | <a target="_self" href="startseite.html">Home</a>');
      
	
});  //addEvenet

}//endelse IE6

