
if(self!=top){
	top.location.replace('www.systemundimpuls.de');
}

// E-Mail Spamschutz
function UnCryptMailto(string) {
	var ckey=7;
	var num=0;
	var rebuild="";
	for(var i=0; i < string.length; i++) {
		num=string.charCodeAt(i);
		if (num>=8364) {num = 128;}
		rebuild += String.fromCharCode(num-(ckey));
	}
	return rebuild;
}
function linkTo_UnCryptMailto(string)	{
	location.href=UnCryptMailto(string);
}
	
// AJAX für Galerie

function picture_high(id){
	var unterzeile = document.getElementById('unterzeile'+id).value;
	document.getElementById('highimg').innerHTML = '<img src="/Picture-'+id+'-500.pht" alt="'+unterzeile+'" /><p>'+unterzeile+'</p><a href="javascript:picture_low();void(0);">schließen</a><div class="clear"></div>';
	document.getElementById('fullscreen').style.top="0px";
	document.getElementById('tfullscreen').style.top="0px";
	document.getElementById('tfullscreen').style.position="fixed";
}
function picture_low(){
	document.getElementById('fullscreen').style.top="-5000px";
	document.getElementById('tfullscreen').style.top="-5000px";
	document.getElementById('tfullscreen').style.position="absolute";
}

