 // JS function for uncrypting spam-protected emails:
function UnCryptMailto(s) {	//
	var n=0;
	var r="";
	for(var i=0; i < s.length; i++) {
		n=s.charCodeAt(i);
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(1));
	}
	return r;
}

// JS function for uncrypting spam-protected emails:
function linkTo_UnCryptMailto(s)	{	//
	location.href=UnCryptMailto(s);
}

function zeigen (cssid) {
  document.getElementById("THIDE_"+cssid).style.display="inline";
  document.getElementById("TITEL_"+cssid).style.display="none";
  document.getElementById("TXT_"+cssid).style.display="inline";
  return 1; 
}

function verbergen (cssid) {
  document.getElementById("TITEL_"+cssid).style.display="inline";
  document.getElementById("THIDE_"+cssid).style.display="none";
  document.getElementById("TXT_"+cssid).style.display="none";
  return 1; 
}


function TauscheBild (welches) {
  document.getElementById("projektbild").src = welches;
}


function resetPagination (anzahl) {
	for(var i=1; i <= anzahl; i++) {
		document.getElementById("blaettern_"+i).style.border = '2px solid white';
//		document.getElementById("blaettern_"+i).src = './images/subnavi0' + i + '_grau.gif';
	}
}


// JS Funktion zum JavaScript-basierten Blaettern
// Uebergeben wird: onclick="selectThumb(1<Id>, 3<Anzahl des Arrays>); return(false);"
function selectThumb (welches, anzahl) {
	for(i=1; i <= anzahl; i++) {
	  document.getElementById("marker_" + i.toString()).style.color = "#4A4947";
	  document.getElementById("marker_" + i.toString()).style.fontStyle = "normal";	  
	}
  document.getElementById("marker_" + welches).style.color = "#72A724";
  document.getElementById("marker_" + welches).style.fontStyle = "italic";
}

