//========== Popup ==========
var xPos = 20;
var yPos = 20;
var popupLaenge = 750;
var popupHoehe = 400;

function popUp(url,popupLaenge,popupHoehe,popupName) {
	window.open(url,popupName,"height=" + popupHoehe + ",width=" + popupLaenge + ",top=20,left=20,resizable=no,menubar=no,location=no,status=no,scrollbars=no");
}

// by Thomas Martin
// http://www.thomas-martin.ch/mailencrypt/index.html
  	function ditchTheBots(nnnn,ssss){
 		var a = "";
		for(i=0,m=nnnn.length;i < m;i++){
			if(i%3==0){
				a += String.fromCharCode(nnnn.substr(i, 3)-262);
  			}
  		}
  		if(ssss!=""&&ssss!=undefined){
  		  	a+='?s'+'ub'+'j'+'e'+'ct='+ssss;
  		}
  		location.href=('m'+'ail'+'t'+'o:'+a);
  	}


//========== ImgChange ==========

var bild  = '';
var ort   = '';

function imgchange(bild,ort) {
	window.document.images[ort].src = "../img/"+bild;
}

// Hintergrund Šndern
function navMut(ort,stat) {
	document.getElementById(ort).style.cursor = "pointer";
	// onMouseOut
	if (stat == 0) {
		document.getElementById(ort).style.backgroundImage = "url(../img/navpassiv.gif)";
		document.getElementById(ort).style.color = "#E5C674";
	}
	// onMouseOver
	if (stat == 1) {
		document.getElementById(ort).style.backgroundImage = "url(../img/navpassiv.gif)";
		document.getElementById(ort).style.color = "#ffffff";
	}
	// onMousedown
	if (stat == 2) {
		document.getElementById(ort).style.backgroundImage = "url(../img/navaktiv.gif)";
		document.getElementById(ort).style.color = "#ffffff";
	}
	// Aktueller Menźpunkt aktivieren 
	var actIframe = content_scroll_iframe.location.href;
	if(actIframe.substr(actIframe.indexOf("id=")+3) == ort) {
		document.getElementById(ort).style.color = "#ffffff";
	};
}

function navDefault(ort,wo) {
	if (wo == "document") {
		document.getElementById(ort).style.backgroundImage = "url(../img/navpassiv.gif)";
		document.getElementById(ort).style.color = "#E5C674";
	}
	if (wo == "parent") {
		parent.document.getElementById(ort).style.backgroundImage = "url(../img/navpassiv.gif)";
		parent.document.getElementById(ort).style.color = "#E5C674";		
	}
}

function navAktiv(ort) {
	parent.document.getElementById(ort).style.backgroundImage = "url(../img/navpassiv.gif)";
	parent.document.getElementById(ort).style.color = "#ffffff";
}
