function toogle(id,mode,file) {
	for (var i = 1; i <= document.getElementById("project_cnt").innerHTML; i++) {
		document.getElementById("proj_" + i).className = "proj_o";
		document.getElementById("proj_" + i).innerHTML = "";
	}
	document.getElementById("proj_" + id).className = "proj_a";
	
	if (mode == 2) {
		document.getElementById("proj_" + id).innerHTML = "<embed src='plugins/jw_flv_player/flvplayer.swf' width='480' height='400' allowscriptaccess='always' allowfullscreen='true' flashvars='file=/md/files/projects/"+file+"&autostart=true' />";
	}
}


function toogle_old(id) {
	for (var i = 1; i <= document.getElementById("project_cnt").innerHTML; i++) {
		document.getElementById("proj_" + i).className = "proj_o";
	}
	document.getElementById("proj_" + id).className = "proj_a";
}