function Sub()
	{
	page = location.href;
	pos = page.indexOf("?&");
	if (pos != -1) { page = page.substring(0,pos); }
	page += "?&t="+document.vbarreform.t.value+"&cf="+document.vbarreform.cf.value+"&ct="+document.vbarreform.ct.value+"&ckflash="+document.vbarreform.ckflash.value;
	(document.images)?location.replace(page):location.href=page;
	}



function Enregistrer()
	{
	PCk("t",document.vbarreform.t.value,expire_date);
	PCk("cf",document.vbarreform.cf.value,expire_date);
	PCk("ct",document.vbarreform.ct.value,expire_date);
	PCk("ckflash",document.vbarreform.ckflash.value,expire_date);
	Sub();
	}



function Restaurer()
	{
	PCk("t","0.001",expire_date);
	PCk("cf","FFF",expire_date);
	PCk("ct","000",expire_date);
	PCk("ckflash","on",expire_date);

	page = location.href;
	pos = page.indexOf("?&");
	if (pos != -1) { page = page.substring(0,pos); }
	page += "?&t=0.001&cf=FFF&ct=000&ckflash=on";
	location.href = page;
	(document.images)?location.replace(page):location.href=page;
	}



function montrer()
	{
	if (document.all) { document.all["vbarre"].style.display = "block"; }
	else { if (document.getElementById) { document.getElementById("vbarre").style.display = "block"; } }
	void(0);
	}



function cacher()
	{
	if (document.all) { document.all["vbarre"].style.display = "none"; }
	else { if (document.getElementById) { document.getElementById("vbarre").style.display = "none"; } }
	}



function flipflash()
	{
	if (document.vbarreform.ckflash.value == "on")
		{
		document.vbarreform.ckflash.value = "off";
		MM_swapImage('imageflash','','images/sonsoff.gif',1);
		document.images["imageflash"].alt = "Flash désactivé";
		document.images["imageflash"].title = "Flash désactivé";
		}
	else
		{
		document.vbarreform.ckflash.value = "on";
		MM_swapImage('imageflash','','images/sonson.gif',1);
		document.images["imageflash"].alt = "Flash activé";
		document.images["imageflash"].title = "Flash activé";
		}
	}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
