<!--
function no_error()
{ return true; }
window.onerror=no_error;

function codemail(name,domain,lib,sujet){
 document.write('<a href="mailto:' + name + '@' + domain + '?subject='+ sujet+ '">');
 if (lib.length !=0){document.write(lib + '</a>');} else { document.write(name);document.write('@');document.write(domain + '</a>');}
}
function codemailhidden(name,domain,varn){
 document.write('<input type="hidden" name="' + varn + '" value="'+ name+ '@' + domain + '">');
}

function PleinEcran(nURL) {
	//arg1= 'top=20,left=20,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=screen.availHeight,height=screen.availWidth';
	//window.open(nURL,'',arg1);
  window.open(nURL, '', 'fullscreen=yes,dependant=no,scrollbars=yes');
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//nom ne doit pas contenir de blanc
function open_window(mode,url,nom,larg,haut){
if (mode==0) {
	arg1= 'top=20,left=20,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+larg+',height='+haut;
}
if (mode==1){
	arg1= 'top=20,left=20,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width='+larg+',height='+haut;
}
if (mode==2){
	arg1= 'top=20,left=20,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+larg+',height='+haut;
}
fen=window.open(url,nom,arg1);
}

//TODO a mettre dans un javascript media
function photo(num){
	var txt='../c_media/visionneuse.php?n=5&num='+eval(num);
	PleinEcran(txt);
}
function protect(e) {
alert("Photo non libre de droit. Protégée selon le cas par la loi sur le droit d'auteur ou droit de propriété. Dans certains cas ,si vous souhaitez obtenir la photo pour un usage privé, cela est peut être possible. Contact obligatoire avec l'auteur au travers de la rubrique contact.");
return false;
}
function trap() {
if (document.images) {
	for(i=0;i<document.images.length;i++) {
		if (document.images[i].height*document.images[i].width>80000){
			document.images[i].onmousedown = protect;
		}
	}
}
}
//-->