var vActiveServiceNavigationLevel2Div = null;
var vActiveServiceNavigationLevel3Div = null;
var vActiveServiceNavigationLevel2Shadow = null;
var vActiveServiceNavigationLevel3Shadow = null;
PreventBubbling = function(e) {
	if (!e) var e = window.event;
	e.cancelBubble = true;
	if (e.stopPropagation) e.stopPropagation();
}

HideServiceNavigationLevel2 = function() {
	HideServiceNavigationLevel3();
	if(vActiveServiceNavigationLevel2Div) {
		vActiveServiceNavigationLevel2Div.style.display = 'none';
		vActiveServiceNavigationLevel2Div = null;
	}
	if(vActiveServiceNavigationLevel2Shadow) {
		vActiveServiceNavigationLevel2Shadow.style.display = 'none';
		vActiveServiceNavigationLevel2Shadow = null;
	}
}

HideServiceNavigationLevel3 = function() {
	if(vActiveServiceNavigationLevel3Div) {
		vActiveServiceNavigationLevel3Div.style.display = 'none';
		vActiveServiceNavigationLevel3Div = null;
	}
	if(vActiveServiceNavigationLevel3Shadow) {
		vActiveServiceNavigationLevel3Shadow.style.display = 'none';
		vActiveServiceNavigationLevel3Shadow = null;
	}
}

ShowServiceNavigationLevel2 = function(vID,vCaller,e) {
	HideServiceNavigationLevel2();
	if(vID) {
		if(document.getElementById && document.getElementById('divServiceNavigationLevel2_'+vID)) {
			vActiveServiceNavigationLevel2Div = document.getElementById('divServiceNavigationLevel2_'+vID);
			vActiveServiceNavigationLevel2Shadow = document.getElementById('divServiceNavigationShadowLevel2');
			vActiveServiceNavigationLevel2Div.style.display = 'block';
			vActiveServiceNavigationLevel2Shadow.style.display = 'block';
			var vOffsetLeft = parseInt(vCaller.offsetLeft);
			var vOffsetWidth = parseInt(vCaller.offsetWidth);
			vActiveServiceNavigationLevel2Div.style.marginLeft = vOffsetLeft+'px';
			if(vOffsetWidth > vActiveServiceNavigationLevel2Div.offsetWidth) {
				vActiveServiceNavigationLevel2Div.style.width = (vOffsetWidth+30)+'px';
			}
			var vContainerWidth = parseInt(vActiveServiceNavigationLevel2Div.offsetWidth);
			var vContainerHeight = parseInt(vActiveServiceNavigationLevel2Div.offsetHeight);
			vActiveServiceNavigationLevel2Shadow.style.marginLeft = vOffsetLeft+'px';
			vActiveServiceNavigationLevel2Shadow.style.width = (vContainerWidth+4)+'px';
			vActiveServiceNavigationLevel2Shadow.style.height = (vContainerHeight+4)+'px';
			
			/* Link-Breiten setzen (Sonst Probleme mit IE6) */
			var arrLinks = vActiveServiceNavigationLevel2Div.getElementsByTagName('A');
			for(var i=0;i<arrLinks.length;i++) {
				arrLinks[i].style.width = (vActiveServiceNavigationLevel2Div.offsetWidth-24)+'px';
			}
		}
	}
	PreventBubbling(e);
}

ShowServiceNavigationLevel3 = function(vID,vCaller,e) {
	HideServiceNavigationLevel3();
	if(vID) {
		if(document.getElementById && document.getElementById('divServiceNavigationLevel3_'+vID)) {
			vActiveServiceNavigationLevel3Div = document.getElementById('divServiceNavigationLevel3_'+vID);
			vActiveServiceNavigationLevel3Shadow = document.getElementById('divServiceNavigationShadowLevel3');
			vActiveServiceNavigationLevel3Div.style.display = 'block';
			vActiveServiceNavigationLevel3Shadow.style.display = 'block';
			var vOffsetLeft = parseInt(vCaller.offsetLeft);
			var vOffsetWidth = parseInt(vCaller.offsetWidth);
			vActiveServiceNavigationLevel3Div.style.marginLeft = (vOffsetLeft+vOffsetWidth)+'px';
			
			var vContainerWidth = parseInt(vActiveServiceNavigationLevel3Div.offsetWidth);
			vActiveServiceNavigationLevel3Shadow.style.marginLeft = (vOffsetLeft+vOffsetWidth)+'px';
			vActiveServiceNavigationLevel3Shadow.style.marginTop = vActiveServiceNavigationLevel3Div.offsetTop+'px';
			var vContainerHeight = parseInt(vActiveServiceNavigationLevel3Div.offsetHeight);
			vActiveServiceNavigationLevel3Shadow.style.width = (vContainerWidth+4)+'px';
			vActiveServiceNavigationLevel3Shadow.style.height = (vContainerHeight+4)+'px';
			
			/* Link-Breiten setzen (Sonst Probleme mit IE6) */
			var arrLinks = vActiveServiceNavigationLevel3Div.getElementsByTagName('A');
			for(var i=0;i<arrLinks.length;i++) {
				arrLinks[i].style.width = (vActiveServiceNavigationLevel3Div.offsetWidth-25)+'px';
			}
		}
	}
	PreventBubbling(e);
}