var pix=new Array();var men=new Array();
var r;var g;var b;var colorDone=new Array(0,0,0,0);var dimlite=0;


// Rollover-Steuerung

pix = new Array();

function initImageObjects(){
for(i=0;i<initImageObjects.arguments.length;i++) {
	pix[i] = new Image();
	pix[i].src = initImageObjects.arguments[i];
	}	
}

function initMenuItems(){
for(i=0;i<initMenuItems.arguments.length;i++) {
	men[i] = new Image();
	men[i].src = initMenuItems.arguments[i];
	}
}

function bW(bName, bObjekt, x) {
	if(x != 0){myName = bName; myImg = document.getElementById(bName).src;}
    if (eval(bObjekt)){ 
    	document.getElementById(bName).src = eval(bObjekt + '.src');
		}
}

function imgRestore(){
	if (eval('document.images.' + myName)){
		document.getElementById(myName).src = myImg; }
}


function PopWin(theURL,winName,features) {
  nWindow = window.open(theURL,winName,features);
  nWindow.focus();
}   

function goTo(URL) {
	window.location.href=URL;
}


function printDoc(){
	window.print();
}

//-------------------------------------------------------------------------

function hiliteMe(theObj,r1,g1,b1,r2,g2,b2,ival) {// Farbaenderung vorab fuer Formularbuttons (siehe auch setColor())...
	tObj=theObj;rp1=r1;rp2=r2;gp1=g1;gp2=g2;bp1=b1;bp2=b2;
	r=r1;g=g1;b=b1;
	colorDone=[0,0,0,0];
	if (dimlite!=0){clearInterval(dimlite)}
	if (ie==1){ //Netscape und Mozilla haben diesbezueglich einen Bug
		dimlite=setInterval('setColor(tObj,rp2,gp2,bp2)',ival);
	}
}

function setColor(theObj,r2,g2,b2){
	if (r!=r2){if(r<r2){r+=5;}else{r-=5;}}else{colorDone[0]=1}
	if (g!=g2){if(g<g2){g+=5;}else{g-=5;}}else{colorDone[1]=1}
	if (b!=b2){if(b<b2){b+=5;}else{b-=5;}}else{colorDone[2]=1}
	theObj.style.background = 'rgb('+r+','+g+','+b+')';
	colorDone[3]=colorDone[0]+colorDone[1]+colorDone[2];
	if(colorDone[3]==3){clearInterval(dimlite);}
}

function resetColor(theObj,theColor){
	if (ie==1){
		clearInterval(dimlite);
		theObj.style.background = theColor;
	}
}

//	Dekodierung 
var refA="29805DqSEFGB634MNXßYZO1HImnorJAPRVW";
var refB="+: -ibjkTUlvw7CKLxp.acQhyzds@tuefg";
var refC = Array(4,3,2,5,7,6,9,8,1);

function dc(text,val) {
    ref=refA+refB;
    nStr="";

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

		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;
     }
	return nStr;
}


   
