$j(document).ready(function() {
	//init superfish (menu)
	$j("#nav").superfish();
	
	//png ie6
	/$("#header, #nav, #title-tools, #content, #footerCorporate").ifixpng(); /
	
	//extend dottel pixel template
	var heightRight = $j("#col-right").height();
	var heightLeft = $j("#col-left").height();
	if(heightRight > heightLeft){
		var lastChild = $j("#col-left > div:last-child");
		if(lastChild.attr('class') && lastChild.attr('class').substr(0, lastChild.attr('class').indexOf('0')) == "template"){
			var lastChildPadTop = lastChild.css('padding-top').substr(0, lastChild.css('padding-top').indexOf('px'));
			var lastChildPadBot = lastChild.css('padding-bottom').substr(0, lastChild.css('padding-bottom').indexOf('px'));
			
			var result = heightRight - heightLeft + lastChild.height() - lastChildPadTop - lastChildPadBot;
	
			lastChild.css('height', result);
		}			
	}
	
	
	/* Disable the links of the menu bar (exept for the contact link) */
	var menuButtons = document.getElementsByClassName('item');
	if (menuButtons != null && menuButtons.length > 0) {
		for(var i = 0; i < menuButtons.length; i ++) {
			/* item189 is the id of the contact link item189 is the id of the career link */
			if (menuButtons[i].id != 'item189' && menuButtons[i].id != 'item190') {				
					menuButtons[i].href = "#";
					menuButtons[i].style.cursor = 'default';
				
			}
		}
	}
	
	/* Drop the content of the "Coporate Structure" Menu Item in the menu bar */
	var level3Menus = document.getElementsByClassName('subMenuLevel3');
	if (level3Menus != null && level3Menus.length > 0) {
		for(var i = 0; i < level3Menus.length; i ++) {
			if (level3Menus[i].id == 'subMenu177') {
				if ( level3Menus[i].hasChildNodes() )	{
					while ( level3Menus[i].childNodes.length >= 1 ) {
						level3Menus[i].removeChild( level3Menus[i].firstChild );       
					} 
				}
			}
		}
	}
	
});