//_________________________________________________________________
//popup de carte de voeux
//_________________________________________________________________

function Noel(src,nom,largeur,hauteur,leftx,topx)
		{
		popUp = window.open(src,nom,'width=' + largeur + ',' + 'height=' + hauteur  + ' ,left=' + leftx + ',top= '+ topx +',scrollbars=0,toolbar=0,menubar=0,location=0');
		if (popUp.focus) popUp.focus();
}
//_________________________________________________________________
//popup de base
//_________________________________________________________________

function Zoom(src,nom,largeur,hauteur,leftx,topx) { 
popUp = window.open(src,nom,'width=' + largeur + ',' + 'height=' + hauteur  + ' ,left=' + leftx + ',top= '+ topx +',scrollbars=yes,toolbars=no,menubars=no,location=no,resizable=no');
}

//_________________________________________________________________
//popup de base sans scroll
//_________________________________________________________________

function Zoomnoscroll(src,nom,largeur,hauteur,leftx,topx) { 
popUp = window.open(src,nom,'width=' + largeur + ',' + 'height=' + hauteur  + ' ,left=' + leftx + ',top= '+ topx +',scrollbars=no,toolbars=no,menubars=no,location=0,resizable=no');
}

//_________________________________________________________________
//script d ouverture pleine page du site apres le tunnel
//_________________________________________________________________
function resize(x,y)
{
	parent.window.resizeTo(x,y);
}


function maximiser()
{
	parent.window.moveTo(0,0);
	resize(screen.width,screen.height);
}


function go()
{setTimeout("maximiser()",500);}


function PopUpScrollresize(src,nom,largeur,hauteur)
	{
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	popUp = window.open(src,nom,'width=' + largeur + ',' + 'height=' + hauteur + ' ,left=' + left + ',top= '+ top +',scrollbars=no,toolbar=0,menubar=yes,location=0,status=0,resizable=yes');
	if (popUp.focus) popUp.focus();
	}
	
//_________________________________________________________________	
//bug calc netscape
//_________________________________________________________________
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);



//_________________________________________________________________
//appel pour le rollover image
//_________________________________________________________________
 function SetImg(img_name,file)
        {
                if(document.images)
                        {
                        document.images[img_name].src = file;
                         }
        }
        
//_________________________________________________________________       
//show_hide layer
//_________________________________________________________________
function MFXshAllExcept(){
//made by jjİİee jjooee@chello.nl m.milicevic,
x=0;
mfxargs=MFXshAllExcept.arguments;
SorH1= mfxargs[0] ? "visible":"hidden";
SorH2= mfxargs[0] ? "hidden":"visible";
exceptLayer=new Array();
if(document.layers){
for (i=0; i<document.layers.length; i++){
a=0;do{a++;
if(!("document.layers[\'"+document.layers[i].name+"\']"==mfxargs[a])){
exceptLayer[x]=document.layers[i]
x++;}}
while (a<mfxargs.length-1)}
for(i=0; i<exceptLayer.length;i++){
exceptLayer[i].visibility=SorH1;}
for(i=1; i<mfxargs.length;i++){
eval(mfxargs[i]).visibility=SorH2;}}
if (document.all){
var allDIV = document.all.tags("div");
for (var i=0; i<allDIV.length; i++){
a=0;do{a++;
eval("mfxargs[a]=mfxargs[a].replace(/.layers/gi, '.all')");
eval(mfxargs[a]+".style");
if(!(allDIV[i].style==mfxargs[a])){
exceptLayer[x]=allDIV[i].style
x++;}}
while (a<mfxargs.length-1)}
for(i=0; i<exceptLayer.length;i++){
exceptLayer[i].visibility=SorH1;}
for(i=1; i<mfxargs.length;i++){
eval(mfxargs[i] +".style.visibility = SorH2");}}
}





//_________________________________________________________________       
//un clic sur le sommaire change deux page avec la barre de nav top
//_________________________________________________________________
function charge2(fr1,fr2,fr3) 
{ 
top.nav_haut.location.href=fr1; 
top.nav_bas.location.href=fr2; 
top.midFrame.location.href=fr3; 
} 




//_________________________________________________________________       
//un clic sur le valide d'espace pro et vip change deux page avec la barre de nav top
//_________________________________________________________________
function openPro(path1, path2)
{
parent.nav_rub.location.href=path1;
parent.contenu.location.href=path2;
}

function openPro2(path1)
{
parent.nav_rub.location.href=path1;
}


//_________________________________________________________________       
//un clic sur le valide d'espace belge change deux page avec la barre de nav top
//_________________________________________________________________
function openBelge(path1, path2)
{
parent.nav_haut.location.href=path1;
parent.midFrame.location.href=path2;
}



//_________________________________________________________________       
//ouverture de la popup de la mailing
//_________________________________________________________________
function Open_Win_Submit()
	{
	var fenetre = window.open("", "fen","width=370,height=200,status=0,toolbar=0,location=0");
	document.form1.target="fen";
	return true;
	}