
/*** SPAM MAILER ***/

function mailTo(name, web){
	location.href = "mailto:" + name + "@" + web;
}	

/*** OPEN VIDEO ***/
	function openVideo(vid_path){
		w = 350;
		h = 320;
		myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;
		settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
		win=window.open("/projekte/video_popup.php?id="+vid_path,"video",settings);
		win.focus();
	}
	
/*** OPEN GALERIE ***/
	function openGalerie(w,h,path,img){
		w = w+5;
		h = h+25;
		myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;
		settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
		win=window.open("/projekte/galerie_popup.php?img="+img+";path="+path,"galerie",settings);
		win.resizeTo(w, h);
		win.focus();
	}	
	

/*** 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";
	}
}

/*** PROJEKTABLAUF ***/

function changePA(id){
	document.getElementById('projektablauf').src = "../images/data/projektablauf_"+id+".jpg";
	if(id == '0'){
		document.getElementById('line_1').style.color = "#60707d";
		document.getElementById('line_2').style.color = "#60707d";
		document.getElementById('line_3').style.color = "#60707d";
		document.getElementById('line_4').style.color = "#60707d";
		document.getElementById('line_5').style.color = "#60707d";
		document.getElementById('line_6').style.color = "#60707d";
	}else{
		document.getElementById('line_'+id).style.color = "#000";
	}
}


