
if(self!=top){
	top.location.replace(window.location.href);
}

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

function menuChange(button,pos){
	document.getElementById('btn'+button).style.backgroundPosition = pos+"px top";
}

function linkETC(){
	document.getElementById('etclink').setAttribute("target", "_blank");
}

function ae_gallery(dir,nr,maxnr){
	for(var i = 0; i<maxnr; i++){
		document.getElementById('pic_'+dir+i).setAttribute("style", "display:none;");
		//document.getElementById('btn_'+dir+i).setAttribute("class", "");
	}
	document.getElementById('pic_'+dir+nr).setAttribute("style", "display:block;");
	//document.getElementById('btn_'+dir+nr).setAttribute("class", "on");
}

