 
 	var neues_bild1 = new Image(); // Image-Objekt erzeugen
	var neues_bild1clicked = new Image(); // Image-Objekt erzeugen
	var neues_bild2 = new Image(); // Image-Objekt erzeugen
	var neues_bild2clicked = new Image(); // Image-Objekt erzeugen
	//var url = "img/bt-group-information.gif";
    var click1 = document.getElementById('click1').value;
    var click2 = document.getElementById('click2').value;
    
    neues_bild1clicked.src = click1; // zweites Bild laden
	neues_bild1.src = click2; // zweites Bild laden
    neues_bild2clicked.src = ""; // zweites Bild laden
	neues_bild2.src = ""; // zweites Bild laden

var stat1;
stat1 = 0;

var stat2;
stat2 = 0;

//	document.btebankinglogin.src = neues_bild.src;
	
    function TopMenu(strID){
	//	alert("a");
		if(strID=="hidden_groupoverview") {
			if(stat1 == 1) {
				document.images["btegroup"].src = neues_bild1clicked.src;
				stat1 = 0;
			} else {
				document.images["btegroup"].src = neues_bild1.src;
				stat1 = 1;
			}
		} else {
			if(stat2 == 1) {
				document.images["btebankinglogin"].src = neues_bild2clicked.src;
				stat2 = 0;
			} else {
				document.images["btebankinglogin"].src = neues_bild2.src;
				stat2 = 1;
			}
		}
//document.btebankinglogin.src = neues_bild1clicked.src;

		
        var strToClose;
        var arrLayers = new Array('hidden_login', 'hidden_groupoverview');
        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('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;
		}
	}







