window.addEvent('domready', function(){
	var accordion = new Accordion('p.toggler', 'div.subAccordeon', {
		opacity: true,
		alwaysHide: true,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#A23E3E');
		},
	 
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#555555');
		}
	}, $('accordeon'));
});

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable){

	toolbar_str = toolbar ? 'yes' : 'no';
	menubar_str = menubar ? 'yes' : 'no';
	statusbar_str = statusbar ? 'yes' : 'no';
	scrollbar_str = scrollbar ? 'yes' : 'no';
	resizable_str = resizable ? 'yes' : 'no';
	
	cookie_str = document.cookie;
	cookie_str.toString();
	
	pos_start  = cookie_str.indexOf(name);
	pos_end    = cookie_str.indexOf('=', pos_start);
		
	cookie_name = cookie_str.substring(pos_start, pos_end);

	pos_start  = cookie_str.indexOf(name);
	pos_start  = cookie_str.indexOf('=', pos_start);
	pos_end    = cookie_str.indexOf(';', pos_start);
		  
	if (pos_end <= 0) pos_end = cookie_str.length;
	cookie_val = cookie_str.substring(pos_start + 1, pos_end);
	if (cookie_name == name && cookie_val  == "done")
	return;
		
	window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
	
}

function hauteurPied(){
	
	if (document.body)	var hauteurFenetre = document.body.clientHeight;
	else	 var hauteurFenetre = window.innerHeight;
	
	var hauteurCorps = parseInt(hauteurFenetre) - 250;
	document.getElementById('corpsSansPied').style.height = hauteurCorps+'px';
	
}