// JavaScript Document
function openPrintInfoFr(id) {
	var URL = new String('http://www.unifr.ch/philo/fr/news/infos_print.php?id='+id);
	window.open(URL,'news','width=600,height=400,scrollbars=yes');
}

function openPrintInfoDe(id) {
	var URL = new String('http://www.unifr.ch/philo/de/news/infos_print.php?id='+id);
	window.open(URL,'news','width=600,height=400,scrollbars=yes');
}

function openPrintEvent(id) {
	var URL = new String('http://www.unifr.ch/philo/fr/news/events_print.php?id='+id);
	window.open(URL,'news','width=600,height=400,scrollbars=yes');
}

function openPrintEventDe(id) {
	var URL = new String('http://www.unifr.ch/philo/de/news/events_print.php?id='+id);
	window.open(URL,'news','width=600,height=400,scrollbars=yes');
}

function openPrintArchive(id) {
	var URL = new String('http://www.unifr.ch/philo/fr/research/archive_print.php?id='+id);
	window.open(URL,'news','width=600,height=400,scrollbars=yes');
}

function openPrintArchiveDe(id) {
	var URL = new String('http://www.unifr.ch/philo/de/research/archive_print.php?id='+id);
	window.open(URL,'news','width=600,height=400,scrollbars=yes');
}

function openPrintJob(id) {
	var URL = new String('http://www.unifr.ch/philo/fr/news/jobs_print.php?id='+id);
	window.open(URL,'news','width=600,height=400,scrollbars=yes');
}

function openPrintDepartement(id) {
	var URL = new String('http://www.unifr.ch/philo/fphilo/intranet/departement.php?id='+id);
	window.open(URL,'news','width=600,height=500,scrollbars=yes');
}



function openArchiv(DateAct) {

	var URL = new String('../../events_archives_2001-2004-files/'+ DateAct +'.htm');

	window.open(URL,'news','width=600,height=400,scrollbars=yes');

}

function openNews(DateAct) {

	var URL = new String('http://www.unifr.ch/philo/actus/'+ DateAct +'.htm');

	window.open(URL,'news','width=600,height=400,scrollbars=yes');

}

function openMap(i) {
	if(i==0){
		window.open("http://www.unifr.ch/philo/images/plan-bureau.gif", "bureau", "width=535,height=365");
	}
	else {
		window.open("../images/plan-jaggi.gif", "jaggi", "width=535,height=365");
	}
}

var lang
function openForm(lang) {
	if(lang=='fr'){
		window.open("http://www.unifr.ch/philo/forms/request.htm", "formu", "width=530,height=400,screenX=150,screenY=110");
	}
	else {
		window.open("http://www.unifr.ch/philo/de/forms/request.htm", "formu", "width=530,height=400,screenX=150,screenY=110");
	}
}



function German(){

	var URL = new String (window.location.href)

	racine = URL.substring(0,26) // normalement (0,26), ds NEW---SiteDep (0, 40)

	chemin = URL.substring(29) // normalement (29), ds NEW---SiteDep (43)

	var newURL = racine +'de/'+ chemin

	window.location.href=newURL;

}

function French(){

	var URL = new String (window.location.href)

	racine = URL.substring(0,26)

	chemin = URL.substring(29)

	var newURL = racine +'fr/'+ chemin

	window.location.href=newURL;
	
}

function English(){

	var URL = new String (window.location.href)

	racine = URL.substring(0,31)

	chemin = URL.substring(34)

	var newURL = racine +'en/'+ chemin

	window.location.href=newURL;

}

fondOver = new Image();
fondOut = new Image();

fondOver.src = "http://www.unifr.ch/philo/images/fond2.gif";
fondOut.src ="http://www.unifr.ch/philo/images/fond1.gif";

function mOvr(src){ 

	src.background = fondOver.src; 
} 
 
function mOut(src){ 
	
	src.background = fondOut.src; 
} 
