// Bildinfo platzieren
function placeBildinfo(){
	var space_top = 451+Math.round(Math.random()*100)+"px";
	var space_left = 597+Math.round(Math.random()*120)+"px";
	
	document.getElementById("bg_info1").style.top = space_top;
	document.getElementById("bg_info1").style.left = space_left;
	document.getElementById("bg_info1").style.visibility = "visible";
	
	document.getElementById("bg_info2").style.top = space_top;
	document.getElementById("bg_info2").style.left = space_left;
}

// Bildinfo anzeigen
function showBildinfo(action) {
	if (action == 1) {
		document.getElementById("bg_info2").style.visibility = "visible";
	} else {
		document.getElementById("bg_info2").style.visibility = "hidden";
	}
}



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

function imgchange2(bild,ort) {
	window.document.images[ort].src = bild;
}


// Hintergrund aendern
function bgchange(ort,stat) {
	document.getElementById(ort).style.cursor = "pointer";
	if (stat == 1) {
		document.getElementById(ort).style.backgroundImage = "url(../img/navaktiv.gif)";
		document.getElementById(ort).style.color = "#yellow";
	} else {
		document.getElementById(ort).style.backgroundImage = "url(../img/navpassiv.gif)";
		document.getElementById(ort).style.color = "#ffffff";
	}
}


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

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


