
var Effet=0;
function ObjetAff(objet)
{
  document.getElementById(objet).style.zIndex=1;	
  document.getElementById(objet).style.visibility='visible';
}
function ObjetAff2(objet)
{
  parent.document.getElementById(objet).style.zIndex=1;	
  parent.document.getElementById(objet).style.visibility='visible';
}
function ObjetEff(objet)
{
  document.getElementById(objet).style.visibility='hidden';
  document.getElementById(objet).style.zIndex=-1;	
}
function ObjetEff2(objet)
{
  parent.document.getElementById(objet).style.visibility='hidden';
  parent.document.getElementById(objet).style.zIndex=-1;	
}
function SwapObjet(objetaff,objeteff)
{
  ObjetAff(objetaff);
  ObjetEff(objeteff);
}
function PObjetAff(objet)
{
  parent.getElementById(objet).style.zIndex=1;	
  parent.getElementById(objet).style.visibility='visible';
}
function PObjetEff(objet)
{
  parent.getElementById(objet).style.visibility='hidden';
  parent.getElementById(objet).style.zIndex=-1;	
}
function SwapIm(inact,act) 
{
  if (Effet == 1)
  {
    document.images[inact].src = eval(act + '.src');
  }
}
function fr1_im()
{
  SwapIm('r1','r1_im');
  document.getElementById('DIVm1').style.visibility='hidden';
}
function fr1_ep()
{
  SwapIm('r1','r1_ep');
  document.getElementById('DIVm1').style.visibility='visible';
}
function fr2_im()
{
  SwapIm('r2','r2_im');
  document.getElementById('DIVm2').style.visibility='hidden';
}
function fr2_ep()
{
  SwapIm('r2','r2_ep');
  document.getElementById('DIVm2').style.visibility='visible';
}
function fr3_im()
{
  SwapIm('r3','r3_im');
  document.getElementById('DIVm3').style.visibility='hidden';
}
function fr3_ep()
{
  SwapIm('r3','r3_ep');
  document.getElementById('DIVm3').style.visibility='visible';
}
function fr4_im()
{
  SwapIm('r4','r4_im');
  document.getElementById('DIVm4').style.visibility='hidden';
}
function fr4_ep()
{
  SwapIm('r4','r4_ep');
  document.getElementById('DIVm4').style.visibility='visible';
}

function Aff_i()
{	
	ObjetAff('DIVclic');
}

function Eff_i()
{	
	ObjetEff('DIVclic');
}

function Aff_img1()
{
	ObjetAff('DIVimg1');
}

function Eff_img1()
{
	ObjetEff('DIVimg1');
}

function Aff_img2()
{
	ObjetAff('DIVimg2');
}

function Eff_img2()
{
	ObjetEff('DIVimg2');
}

function Aff_img3()
{
	ObjetAff('DIVimg3');
}

function Eff_img3()
{
	ObjetEff('DIVimg3');
}

function Aff_img4()
{
	ObjetAff('DIVimg4');
}

function Eff_img4()
{
	ObjetEff('DIVimg4');
}

function openWindow( URL, winName, width, height, center)
{
	xposition=0;
	yposition=0;
	    if ((parseInt(navigator.appVersion) >= 4 ) && (center))
	    {
	        xposition = (screen.width - width) / 2;
	        yposition = (screen.height - height) / 2;
	    }
	    args = "width=" + width + ","
	    + "height=" + height + ","
	    + "location=0,"
	    + "menubar=0,"
	    + "resizable=1,"
	    + "scrollbars=1,"
	    + "status=0,"
	    + "titlebar=0,"
	    + "toolbar=0,"
	    + "hotkeys=1,"
	    + "screenx=" + xposition + ","
	    + "screeny=" + yposition + ","
	    + "left=" + xposition
	    + "top=" + yposition+ ","
	  	+  "replace=false";	
	  	winName =window.open( URL , winName , args );
	  winName.focus();
}