    function ShowKontakt() {
        strMainID = 'LayerSite';
        strFooterMenuID = 'LayerMainFooterMenu';
        
        objMain = document.getElementById(strMainID);
        
        top = objMain.style.height;
        alert('top = '+top);
        
        
        AJS.ajaxunit = "LayerMainFooterMenu";
        if (getLayerHeight(strID) > 1.3){
            new AJS.fx.Styles(AJS.$(strID)).custom(
               {'height': [7.5, 1.3], 'top': [-7.5, -1.3]}
            )
        } else {
            new AJS.fx.Styles(AJS.$(strID)).custom(
               {'height': [1.3, 7.5], 'top': [-1.3, -7.5]}
            )
        }
    }
    
    function BottomMenu(strID){
		//TopMenuClose();
		
        document.getElementById('LayerHeaderLogo').focus();
        AJS.ajaxunit = "em";
        if (getLayerHeight(strID) > 1.3){
			/*document.getElementById('greyoverlay').style.visibility = "hidden";*/
            //new AJS.fx.Styles(AJS.$('LayerKontaktButton')).custom({'marginTop': [-17.8, -1.3]})
			new AJS.fx.Styles(AJS.$('LayerKontaktButton')).custom({'marginTop': [-8.6, -1.3]})
            new AJS.fx.Styles(AJS.$(strID)).custom({
                /*'height': [16.5, 0],
                'marginTop': [-16.5, 0]*/
				'height': [7.3, 0],
                'marginTop': [-7.3, 0]
				
            })
        } else {
			/*document.getElementById('greyoverlay').style.visibility = "visible";*/
            //new AJS.fx.Styles(AJS.$('LayerKontaktButton')).custom({'marginTop': [-1.3, -17.8]})
			new AJS.fx.Styles(AJS.$('LayerKontaktButton')).custom({'marginTop': [-1.3, -8.6]})
            new AJS.fx.Styles(AJS.$(strID)).custom({
			   /*'height': [0, 16.5],
               'marginTop': [0, -16.5]*/
			   'height': [0, 7.3],
               'marginTop': [0, -7.3]
			   
            })
        }
    }
    function TopMenu(strID){
        var strToClose;
        var arrLayers = new Array('LayerTopMLogin', 'LayerTopMAnfrage', 'LayerTopMNewsletter');
        for (var x = 0; x<arrLayers.length; x++){
            if (getLayerHeight(arrLayers[x]) != 0 && arrLayers[x] != strID){
                strToClose = arrLayers[x];
            }
        }
        if (!strToClose) {
            ioNavTopLayer(strID);
        }else{
            CloseTopMenu(strToClose, strID);
        }
    }
    
    function TopMenuClose(){
        var strToClose;
        var arrLayers = new Array('LayerTopMLogin', 'LayerTopMAnfrage', 'LayerTopMNewsletter');
        for (var x = 0; x<arrLayers.length; x++){
            if (getLayerHeight(arrLayers[x]) != 0){
                strToClose = arrLayers[x];
            }
        }
        if (strToClose) {
            ioNavTopLayer(strToClose);
        }
		
    }
    function TopMenuCloseDbl(){
        var arrLayers = new Array('LayerTopMLogin', 'LayerTopMAnfrage', 'LayerTopMNewsletter');
        for (x=0;x<arrLayers.length;x++){
            document.getElementById(arrLayers[x]).style.height = '0em';
        }
    }
    
    function getLayerHeight(id){
        height = document.getElementById(id).style.height;
        iheight = height.slice(0, height.length-2); 
        return iheight;
    }
    
    function CloseTopMenu(closeID, openID){
            var closeLayer = AJS.$(closeID);
            AJS.ajaxunit = "em";
            AJS.fx.setHeight(closeLayer, {
                from: 20.6,
                to: 0,
                duration: 1000,
                onComplete: function() {
                    var openLayer = AJS.$(openID);
                    AJS.fx.setHeight(openLayer, {
                        from: 0,
                        to: 20.6,
                        duration: 800,
                        onComplete: function() { 
                        }});
            }});
    }

    function ioNavTopLayer(strID){
        var div = AJS.$(strID);
        AJS.ajaxunit = "em";

        if (getLayerHeight(strID) > 0){
            AJS.fx.setHeight(div, {
                from: 20.6,
                to: 0,
                duration: 1000
				
            });
        } else {
            AJS.fx.setHeight(div, {
                from: 0,
                to: 20.6,
                duration: 800
            });
        }
    } 
    /* OLD FUNCTION ioNavTopLayer
    function ioNavTopLayer(strID){
        // strID = "LayerTopMNewsletter";
        strHeight = document.getElementById(strID).style.height;
        iHeight = strHeight.slice(0, 1);
        if (iHeight > 0){
            var blacklight = AJS.$(strID);
            AJS.ajaxunit = "em";
            AJS.fx.setHeight(blacklight, {
                from: 18,
                to: 0,
                onComplete: function() { 
                    var div = AJS.$('LayerBlackLight');
                    AJS.ajaxunit = "%";
                    AJS.fx.setHeight(div, {
                        from: 100,
                        to: 0,
                        onComplete: function() { 
                        }});
            }});
        } else {
            var blacklight = AJS.$('LayerBlackLight');
            AJS.ajaxunit = "%";
            AJS.fx.setHeight(blacklight, {
                from: 0,
                to: 100,
                onComplete: function() { 
                    var div = AJS.$(strID);
                    AJS.ajaxunit = "em";
                    AJS.fx.setHeight(div, {
                        from: 0,
                        to: 18,
                        onComplete: function() { 
                        }});
            }});
        }
    }
    */
    
    function ListHightlight(obj,key){
        arrMyDivs = obj.getElementsByTagName("div");
        for (var i = 0; i < arrMyDivs.length; i++) {
            if (key == 1) {
                    arrMyDivs[i].style.backgroundColor = "#FFD046";
            } else {
                    arrMyDivs[i].style.backgroundColor = "";
            }
        }
    }
    



      wmtt = null;
      var tolltipHeight = '91';
      var tolltipContHeight = '80';

      document.onmousemove = updateWMTT;
      function updateWMTT(e) {
      	x = (document.all) ? (window.event.clientX) : e.pageX;
      	y = (document.all) ? (window.event.clientY)  : e.pageY;
      	if (wmtt != null) {
      		wmtttop = tolltipHeight;
      		wmtt.style.left = (x-tolltipContHeight-15) + "px";
      		wmtt.style.top 	= (y-tolltipHeight-15) + "px";
      	}
        // document.getElementById('LayerMainFooterText').innerHTML = "("+y+"-"+tolltipHeight+"-15)";     	
      }
      function showWMTT(maID) {
        tolltipID = 'LayerTeamTooltip';
      	wmtt = document.getElementById(tolltipID);
      	wmtt.style.visibility = 'visible';
      	wmtt.style.height = tolltipHeight+'px';

      	mitarbeiter = document.getElementById(maID);
      	mitarbeiter.style.height = tolltipContHeight+'px';
	mitarbeiter.style.visibility = 'visible';
	mitarbeiter.style.display = 'block';
      }
      function hideWMTT(maID) {
        wmtt.style.height = "0px";
	wmtt.style.visibility = 'hidden';
        document.getElementById(maID).style.height = '0px';
	mitarbeiter.style.visibility = 'hidden';
	mitarbeiter.style.display = 'none';
      } 
      









