
if(typeof window.addEventListener != 'undefined') {
	//.. gecko, safari, konqueror and standard
	window.addEventListener('load', AddFunction, false);
}
else if(typeof document.addEventListener != 'undefined') {
	//.. opera 7
	document.addEventListener('load', AddFunction, false);
}
else if(typeof window.attachEvent != 'undefined') {
	//.. win/ie
	window.attachEvent('onload', AddFunction);
}


function AddFunction() {
var bloc=document.getElementById("bloc");
	if(bloc) {
		nbImg=bloc.getElementsByTagName("img").length

		for(var i=0; i<nbImg; i++) {
			urlImg=bloc.getElementsByTagName("img")[i].src;
			PosLastSlash=urlImg.lastIndexOf("_");
			PosLastPoint=urlImg.lastIndexOf(".");
			if(PosLastSlash!=-1) {
				Ext=urlImg.substring(PosLastPoint);
				NewURL=urlImg.substring(0,PosLastSlash)+"_large"+Ext;
				bloc.getElementsByTagName("img")[i].onclick = function() {
					imagezoom(Number(this.width*3),Number(this.height*3),NewURL)
				}
				//bloc.getElementsByTagName("img")[i].setAttribute("style","cursor:pointer");
				bloc.getElementsByTagName("img")[i].className="cliquable";
			}
		}
	}
}


function imagezoom(w,h,url) {
w+=18;
h+=15;
browser = navigator.appName;
if(browser == 'Microsoft Internet Explorer') {
	w+=20;
	h+=15;
}
   var Fensteroptionen = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0";
   var popupWindow = window.open(url, 'Imagezoom', Fensteroptionen + ',width=' + w + ',height=' + h);
   var focus = popupWindow.focus();
}

function ouvre(parent, enfant) {
txtParent=document.getElementById(parent).innerHTML;
etatEnfant=document.getElementById(enfant).style.display;

document.getElementById(parent).innerHTML=(txtParent=="+") ? "-&nbsp;" : "+";
document.getElementById(enfant).style.display=(etatEnfant=="none") ? "" : "none";
}

var menuencours=""

function AfficheMenu(menu) {
if(menuencours!="" && menuencours!=menu) document.getElementById(menuencours).style.display="none";
etatMenu=document.getElementById(menu).style.display;
document.getElementById(menu).style.display=(etatMenu=="none") ? "" : "none";
menuencours=menu;
}

function CacheMenu(menu) {
if(document.getElementById(menu))
	document.getElementById(menu).style.display="none";
}

function color(){
   document.getElementById('menu2').style.color ="#444444" ;
    //document.getElementById('menu2').color ="444444" ;
}