// 2007 Rudolf Wohland http://www.wohland.info/ 
//-------------------------------------------------------------------------

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

// Pop-up Fenster
function PopWin(theURL,winName,features) {
  nWindow = window.open(theURL,winName,features);
  nWindow.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);
}

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

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

// Rollover-Steuerung
 
  function rollover(element, selectedColor) {
      lastForeColor = element.style.color;  
      lastBgColor = element.parentNode.parentNode.style.backgroundColor; 
       
      if (!selectedColor) {
        //newBgColor = "#d37b07";
      } else {
        //newBgColor = selectedColor;
      }
      if (element.className != "active") {
        //element.style.color="#fff";
        //element.parentNode.parentNode.style.backgroundColor = newBgColor;
      }  
  }
  
  function rollout(element) {
     //element.style.color=lastForeColor;
     //element.parentNode.parentNode.style.backgroundColor=lastBgColor;      
  }
/************************************************************************
********  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="2980?5DqSE!FGB)634,MNXYZO1(HImnorJAPRV%W";
var refB="+: -ibjkTU§lvw7CKLxp.acQhyzds@tuefg$&";
var refC = Array(4,7,2,5,3,6,9,8,1,0);

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

