/*** TOGGLE DIV ***/
function toggleDiv(id){
	if(document.getElementById(id).style.display == "none"){
		document.getElementById(id).style.display = "block";
	}else{
		document.getElementById(id).style.display = "none";
	}
}

/*** TOGGLE SLIDE ***/
function slideDiv(id){
	if(document.getElementById(id).style.display == 'none'){
		if(navigator.appName.indexOf("Netscape") != -1){
			new Effect.BlindDown(id, {duration:0.5});
		}else{
			document.getElementById(id).style.display = "block";
		}
		//new Effect.BlindDown(id, {duration:0.5});
		//document.getElementById(id).style.display = "block";
		//new Effect.Opacity(id, {duration:1.0, from:0.0, to:1.0});
	}else{

		if(navigator.appName.indexOf("Netscape") != -1){
			new Effect.BlindUp(document.getElementById(id, {duration:0.5}));
		}else{
			document.getElementById(id).style.display = "none";
		}	

		//new Effect.Opacity(id, {duration:0.6, from:1.0, to:0.0});
		//document.getElementById(id).style.display = "none";
		//new Effect.BlindUp(document.getElementById(id, {duration:0.5}));
	}
}

/*** ANTI SPAM MAIL ***/
function mailTo(name, web){
	location.href = "mailto:" + name + "@" + web;
}	




/*** POPUP ***/

function openWin(page,b,h){
	var breite = b+20;
	var hoehe = h+20;
	myleft=(screen.width)?(screen.width-breite)/2:100;mytop=(screen.height)?(screen.height-hoehe)/2:100;
	settings="width=" + breite + ",height=" + hoehe + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
	win=window.open(page,'win',settings);
}
