// Initialisation
jQuery.noConflict();

var backto = '';

/* initialisation du DOM */
jQuery().ready(function() {

	//place le over effect sur les images du menu
	jQuery("img[id^='menuImage']").mouseover( function () {
		if (this.src.indexOf("-over", 0) == -1){
			this.src = this.src.replace(".jpg", "-over.jpg");
		}
	});
	jQuery("img[id^='menuImage']").mouseout( function () {
		if (this.src.indexOf("-over", 0) > -1){
			this.src = this.src.replace("-over", "");
		}
	});

	//cache tous les div liste des projets
	jQuery("div[id^='projects']").hide();

	//initilise les fonctions d'affichage des listes de projets
	jQuery("li[id^='showlist']").click( function () {
		//cache tout
		jQuery("div[id^='projects']").hide();
		var source = this.id;
		var shownum = source.replace("showlist", "");
		jQuery("#projects"+shownum).slideDown("slow");
	});

	//lightbox 2.0
	fileLoadingImage = "images/loading.gif";
	fileBottomNavCloseImage = "images/closelabel.gif";

	//affiche la liste de la première catégorie
	if (backto){
		jQuery("#projects"+backto).slideDown("slow");
	}else{
		jQuery("#projects01").slideDown();
	}

});