// JavaScript Document
var etatArticles;
var etatComment;
var etatArchives;
var etatItemsRecent;
var etatItemspop;

//alert (etatArticles);


/*#######################################################*/
document.observe("dom:loaded", function() {
/*#######################################################*/									   
	$('menupop').hide();
	$('itemspop').hide();
	
	$('menurecent').hide();
	$('itemsrecent').hide();
	
	$('menucomment').hide();
	$('menuarchives').hide();
		
});

//////////////////////////////////
//
/////////////////////////////////
function showhideArticles(){	
	
	if(etatArticles!=1){
		$('menupop').show();
		$('menurecent').show();
		$('menuarticles').removeClassName('cartouchenivo1');
		$('menuarticles').addClassName('cartouchenivo1_on');
		etatArticles = 1;
	}else{
		$('menupop').hide();
		$('menurecent').hide();
		$('menuarticles').removeClassName('cartouchenivo1_on');
		$('menuarticles').addClassName('cartouchenivo1');
		etatArticles = 0;
	}
	
}

//////////////////////////////////
//
/////////////////////////////////
function showhideItemsPop(){
	
	if(etatItemspop!=1){
		$('itemspop').show();
		$('menupop').removeClassName('cartouchenivo2');
		$('menupop').addClassName('cartouchenivo2_on');
		etatItemspop = 1;
	}else{
		$('itemspop').hide();
		$('menupop').removeClassName('cartouchenivo2_on');
		$('menupop').addClassName('cartouchenivo2');
		etatItemspop = 0;
	}
	
}

//////////////////////////////////
//
/////////////////////////////////
function showhideItemsRecent(){
	
	if(etatItemsRecent!=1){
		$('itemsrecent').show();
		$('menurecent').removeClassName('cartouchenivo2');
		$('menurecent').addClassName('cartouchenivo2_on');
		etatItemsRecent = 1;
	}else{
		$('itemsrecent').hide();
		$('menurecent').removeClassName('cartouchenivo2_on');
		$('menurecent').addClassName('cartouchenivo2');
		etatItemsRecent = 0;
	}
	
}



//////////////////////////////////
//
/////////////////////////////////
function showhideComment(){
	
	if(etatComment!=1){
		$('menucomment').show();
		$('menucommentaires').removeClassName('cartouchenivo1');
		$('menucommentaires').addClassName('cartouchenivo1_on');
		etatComment = 1;
	}else{
		$('menucomment').hide();
		$('menucommentaires').removeClassName('cartouchenivo1_on');
		$('menucommentaires').addClassName('cartouchenivo1');
		etatComment = 0;
	}
	
}

//////////////////////////////////
//
/////////////////////////////////
function showhideArchives(){
	
	if(etatArchives!=1){
		$('menuarchives').show();
		$('menuarchivage').removeClassName('cartouchenivo1');
		$('menuarchivage').addClassName('cartouchenivo1_on');
		etatArchives = 1;
	}else{
		$('menuarchives').hide();
		$('menuarchivage').removeClassName('cartouchenivo1_on');
		$('menuarchivage').addClassName('cartouchenivo1');
		etatArchives = 0;
	}
	
}






