// Start-Menue

var active_Object;
 
function blend_In(blendInId, obj) {
   if (active_Object) blend_buttonOut();
   if (obj) active_Object = obj;
   blend_Reset(); //Alle Layer ausblenden
   document.getElementById(blendInId).style.visibility="visible";
   blend_buttonIn();
}
 
function blend_Out() { //Startlayer einblenden
    blend_Reset(); //Alle Layer ausblenden
    document.getElementById("promobox0").style.visibility="visible";
    blend_buttonOut();
}
 

function blend_Reset() { 
    for (i=0; i<=10; i++) {
        blendOutId = "promobox" + i;
        if (document.getElementById(blendOutId)) {
          document.getElementById(blendOutId).style.visibility="hidden";
      }
    }
}


function blend_buttonIn() { 
    lastBgColor = active_Object.style.background;
    lastMargin = active_Object.style.margin;
    lastPadding = active_Object.style.padding;  
    
    active_Object.style.backgroundColor = "#fff"; 
    active_Object.style.margin = "0 0 0 -1px";
    active_Object.style.padding = "10px 18px 0 19px";
}
  
function blend_buttonOut() {
   active_Object.style.backgroundColor=lastBgColor; 
   active_Object.style.margin=lastMargin; 
   active_Object.style.padding=lastPadding;   
}

