// JavaScript Document

//alert("ok");

malist=new Array("menu_boutique","menu_accords","menu_recettes");
timer1=setTimeout("",0);


function ct()
{
	clearTimeout(timer1)
}

function init(j)
{
	clearTimeout(timer1);
	k=0;
	for (i=0;i<malist.length;i++) 
	{
		k=k+1;
		if(k>=j)
		{
			//alert(malist);
			this.css=est.dom?document.getElementById(malist[i]).style:est.ie?document.all[malist[i]].style:est.ns?document.layers[malist[i]]:0;
			this.css.position="absolute";
			this.css.visibility='hidden';
			//this.css=est.dom?document.getElementById("tri"+list[i]).style:est.ie?document.all["tri"+list[i]].style:est.ns?document.layers["tri"+list[i]]:0;
			//this.css.visibility='hidden'
		}
	}
}

function ia()
{
	timer1=setTimeout('init(0);',1000);
}


function Browser()
{
	b=navigator.appName;
	if(b=="Netscape")this.b="ns"; 
	else if(b=="Microsoft Internet Explorer")this.b="ie"; 
	else this.b=b;
	this.version=navigator.appVersion;
	this.v=parseInt(this.version);
	this.ns=(this.b=="ns"&&this.v>=4);
	this.ie=(this.b=="ie"&&this.v>=4);
	this.dom=((document.createRange&&(document.createRange().createContextualFragment))?true:false);
}
est=new Browser();

function sh(div,state)
{
	clearTimeout(timer1);
	this.css=est.dom?document.getElementById(div).style:est.ie?document.all[div].style:est.ns?document.layers[div]:0;
	this.css.position="";
	this.css.visibility=state;
	//this.css=est.dom?document.getElementById("tri"+div).style:est.ie?document.all["tri"+div].style:est.ns?document.layers["tri"+div]:0;
	//this.css.visibility=state;

}

function bg(div,color)
{
	clearTimeout(timer1);
	this.css=est.dom?document.getElementById(div).style:est.ie?document.all[div].style:est.ns?document.layers[div]:0;
	this.css.bgcolor=color;
	//this.css=est.dom?document.getElementById("tri"+div).style:est.ie?document.all["tri"+div].style:est.ns?document.layers["tri"+div]:0;
	//this.css.visibility=state;

}

function trait_check($case,$autre_case)
{
	//alert("ok");
	//traitement des checkbox de la recherche blog
	//si on dé-check une checkbox alors l'autre checkbox est checkée
    if (!document.form_recherche.f_cac_vf[$case].checked)
		document.form_recherche.f_cac_vf[$autre_case].checked='true';
	document.getElementById('f_vf').value=0;
	if (document.form_recherche.f_cac_vf[0].checked)
		document.getElementById('f_vf').value=Number(document.form_recherche.f_cac_vf[0].value);
	if (document.form_recherche.f_cac_vf[1].checked)
		document.getElementById('f_vf').value=Number(document.getElementById('f_vf').value)+Number(document.form_recherche.f_cac_vf[1].value);
	document.form_recherche.submit();
	//alert("ok2");
}
