    
    function TopMenuClose(){
        var strToClose;
        var arrLayers = new Array('hidden_login', 'hidden_groupoverview');
        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('hidden_login', 'hidden_groupoverview');
        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){
		if(openID=='hidden_login') {
			var varheight2 = 24;
			var varheight = 51.5;			
		} else {
			var varheight2 = 51.5;
			var varheight = 24;
		}
		
            var closeLayer = AJS.$(closeID);
            AJS.ajaxunit = "em";
            AJS.fx.setHeight(closeLayer, {
                from: varheight,
                to: 0,
                onComplete: function() {
                    var openLayer = AJS.$(openID);
                    AJS.fx.setHeight(openLayer, {
                        from: 0,
                        to: varheight2,
                        onComplete: function() { 
                        }});
            }});
    }
    function ioNavTopLayer(strID){
		if(strID=='hidden_login') {
			var varheight = 24;
			var varheight2 = 51.5;
		} else {
			var varheight = 51.5;
			var varheight2 = 24;
		}
        // 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: varheight,
                to: 0,
                onComplete: function() { 
                    var div = AJS.$('LayerBlackLight');
                    AJS.ajaxunit = "%";
                    AJS.fx.setHeight(div, {
                        from: varheight,
                        to: 0,
                        onComplete: function() { 
                        }});
            }});
        } else {
            var blacklight = AJS.$('LayerBlackLight');
            AJS.ajaxunit = "%";
            AJS.fx.setHeight(blacklight, {
                from: 0,
                to: varheight,
                onComplete: function() { 
                    var div = AJS.$(strID);
                    AJS.ajaxunit = "em";
                    AJS.fx.setHeight(div, {
                        from: 0,
                        to: varheight,
                        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-10) + "px";
      		wmtt.style.top 	= (y-tolltipHeight-10) + "px";
      	}
      }
      function showWMTT(maID) {
        tolltipID = 'LayerTeamTooltip';
      	wmtt = document.getElementById(tolltipID);
      	wmtt.style.height = tolltipHeight+'px';
      	mitarbeiter = document.getElementById(maID);
      	mitarbeiter.style.height = tolltipContHeight+'px';
      }
      function hideWMTT(maID) {
        wmtt.style.height = "0px";
        document.getElementById(maID).style.height = '0px';
      }
	function inputblur(option,field) {
		var myblur = '#ffffff';
		var myfocus = '#e6e6e6';
		if(option == 1){
			document.getElementById(field).style.backgroundColor=myfocus;
		} else {
			document.getElementById(field).style.backgroundColor=myblur;
		}
	}
