// 2011 Rudolf Wohland 
//-------------------------------------------------------------------------


// Pop-up Fenster
function popup_centered(url, width, height, name)
{
    var sWidth   = screen.width;
    var sHeight  = screen.height;
        
    // Center Popup
    var posX    =  (sWidth/2) - (width/2);
    var posY    =  (sHeight/2) - (height/2);

	pop = window.open(url,name,'width=' + width + ',height=' + height + ',left=' + posX + ',top=' + posY + ',status=no,resizable=yes,menubar=no,locationbar=no,scrollbars=no,dependent=yes' );
  pop.focus();
}


function popup_resize(width, height) {
    window.resizeTo(width, height);
    // Center Popup
    var sWidth   = screen.width;
    var sHeight  = screen.height;
    var posX    =  (sWidth/2) - (width/2);
    var posY    =  (sHeight/2) - (height/2);
    moveTo(posX,posY);
}


// Promobox-Navigation

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

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

