// 2011 
//-------------------------------------------------------------------------
function popup(url, width, height, name){
  pop = window.open(url,name,'width=' + width + ',height=' + height + ',status=yes,resizable=yes,menubar=no,locationbar=no,scrollbars=yes,dependent=yes' );
}

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);
}

// Pop-up Fenster (Print)
function PopWin(theURL,winName,features) {
  nWindow = window.open(theURL,winName,features);
  nWindow.focus();
}

// 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);
}



/************************************************************************
********  Ver- und Entschluesselung fuer JavaScript-generierte ********** 
********* Inhalte wie z.B. spamsichere E-Mail-Adressen ******************
************************************************************************/ 

/****************************  Basiswerte ******************************* 
********* Diesen Block in die Seite/Internetpraesenz mit den ************
************ verschluesselten Inhalten integrieren *********************/
var refA="R2!F6Zr934,I0?5JANXYV%BW)MD1qOE8S(HnoGPmöäü";
var refB="efw7&dskvLCz+lh@tuQ-i§gbjac$TUxK: yp.";
var refC = Array(7,3,2,5,0,4,1,6,8,9);

/*******************  Entschluesselung des Strings ********************** 
********* Diese Funktion in die Seite/Internetpraesenz mit den **********
************ verschluesselten Inhalten integrieren *********************/ 
function dc() {
ref=refA+refB;
nStr="";
text = dc.arguments[0]; 
myKey = new Array();

for(i=0; i<dc.arguments[1].length; i++) { 
myKey.push(dc.arguments[1].substr(i,1)); 
}

for(t=0; t < myKey.length; t++) {
nStr="";
val=refC[myKey[t]];

  for(i=0; i<text.length; i++) {
      sStr=text.substring(i, i+1);
      num=ref.indexOf(sStr)-i;

	if((num-val)<0){
		nVal = num - val;
		aStr = ref.substring(ref.length+nVal, (ref.length+nVal)+1);
      }else{
		aStr=ref.substring(num -val,num-val+1);
	}
     	nStr += aStr;
  }
  text = nStr;
}
return nStr;
}

