function decode_mail(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 go_decode_mail(s) { //
	location.href=decode_mail(s);
}

function hiligth(l_id)
{
	//alert(l_id);
	if (l_id == '') return true;
	li = l_id.split("L");
	vars = li[1].split("_");
	oben = vars[0];
	unten = vars[1];
	if (oben > 0) {
		//document.getElementById(l_id).text = document.getElementById(l_id).text.toUpperCase();
		if (unten > 0) {
			document.getElementById("u" + oben).style.visibility = "visible";}
	}
	return true;
}
function hide_others(l)
{
	if (toplinkid != l){
		document.getElementById('o'+toplinkid).style.background = '';
	}else{
		document.getElementById('o'+toplinkid).style.background = hilight_color;
	}
	
	for (var i = 1; i <= divs.length; i++) {
		id_u = divs[i-1].slice(1);
		
		if (id_u != (l)) {
			document.getElementById(divs[i-1]).style.visibility = 'hidden';
			document.getElementById('o'+id_u).style.background = '';
		}else{
			document.getElementById('o'+l).style.background = hilight_color;
			document.getElementById(divs[i-1]).style.visibility = 'visible';
		}
	}
	return true;
	
}	
function show_div(elname, color)
{
	 document.getElementById(elname).style.visibility='visible';
	 
	 return true;
}
	
function make_me_colored(color){
	this.style.background=color;
}



function setstat()
{
	status = 'Nuskoolbreaks.net'; 
	return true;
}
function stats(text)
{
	Window.status = text; 
	return true;
}
function set_o_colored(o){
	document.getElementById('L'+toplinkid+'_0').style.color = '#696969';
	document.getElementById('L'+o+'_0').style.color = '#F4A438';
}

function unset_o_colored(o){
	document.getElementById('L'+toplinkid+'_0').style.color = '#F4A438';
	document.getElementById('L'+o+'_0').style.color = '#696969';
}
