// Fonctions d'affichage/masquage des kits
function ecrireCookieKit(nom, valeur)
{
	var argv=ecrireCookieKit.arguments;
	var argc=ecrireCookieKit.arguments.length;
	var expires=(argc > 2) ? argv[2] : null;
	var path=(argc > 3) ? argv[3] : null;
	var domain=(argc > 4) ? argv[4] : null;
	var secure=(argc > 5) ? argv[5] : false;
	document.cookie=nom+"="+escape(valeur)+
	((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
	((path==null) ? "" : ("; path="+path))+
	((domain==null) ? "" : ("; domain="+domain))+
	((secure==true) ? "; secure" : "");
}

function showHideKit(id,imgPath)
{
	var contenuKit = document.getElementById('contenuKit'+id);
	var bouton = document.getElementById('boutonKit'+id);
	var stat = contenuKit.style.display;
	
	var date = new Date;
	date.setFullYear(date.getFullYear()+10);
	
	if(stat == 'none')
	{
		contenuKit.style.display = '';
		bouton.src=imgPath + 'reduire.png';
		ecrireCookieKit('ckMenuKit'+id,'',date,'/');
	}
	else 
	{
		contenuKit.style.display = 'none';
		bouton.src=imgPath + 'restaure.png';
		ecrireCookieKit('ckMenuKit'+id,'none',date,'/');
	}
}

