/*---------------------------------------------------------------------------*/
// fonction initialisation du menu flash des pages
// ---------------------------------------------
var wf = 0;
var hf = 0;
//var div1 = objet;

function initMenuPage()
	{
	}

/*---------------------------------------------------------------------------*/
// fonction appelle Presse
// ---------------------------------------------
function accesPresse()
	{
	window.open( "http://presse.jules.fr","_blank","");
	}
/*---------------------------------------------------------------------------*/
// fonction Ajout Favoris
// ---------------------------------------------
function ajoutfavoris()
	{
		try {
			//pour ie
			if (document.all)
				window.external.AddFavorite("http://www.jules.fr","Jules" );
			//pour mozilla
			else if (window.sidebar)
				window.sidebar.addPanel("Jules", "http://www.jules.fr", "");
		} catch(everything) {} 
	}
	
/*---------------------------------------------------------------------------*/
// fonction appelle Découvrir Jules
// ---------------------------------------------
function decouvrirjules()
	{
	window.open( "/popup-parrainage.asp","popup_parrain","width=450, height=427, scrollbars=no, menu=no");
	}	
/*---------------------------------------------------------------------------*/
// Fonction geturl
// ---------------------------------------------
var tabLiens = new Array()
tabLiens [1] = "coleccion-pasarela.asp";
tabLiens [2] = "coleccion.asp";
tabLiens [3] = "coleccion-pasarela-mac.asp";
function allerou( qui )
    {
	document.location = tabLiens[qui];
    }


/*---------------------------------------------------------------------------*/
// calage du menu bas en bas  de l'écran 
/*
var objet;
	
function placeObj(px,py) 
	{
	div1.top= hf + py - 40;
	}

function voirMenu() 
	{
	var posy;
	if (navigator.appName=="Microsoft Internet Explorer") 
		{
		offsety = document.body.scrollTop;
		}
	else 
		{
		offsety = window.pageYOffset;
		}
	placeObj(0,offsety);
	tempo = setTimeout("voirMenu()",50);
	}

*/
/*---------------------------------------------------------------------------*/
/*---Affichages des checkbox images QUIZZ*/
var a = new Array()
a[1]=0;a[2]=0;a[3]=0

function checkbox(n)
{
a[n]=1-a[n]
	for(i=1; i<=3; i++){
	document.getElementById("radio"+i).src="/images/commun/radio"+i+"-0.gif"
	if (n==1) {a[2]=0;a[3]=0};if (n==2) {a[1]=0;a[3]=0};if (n==3) {a[1]=0;a[2]=0}
	}
document.getElementById("radio"+n).src="/images/commun/radio"+n+"-"+a[n]+".gif"
}


/*---------------------------------------------------------------------------*/
/*---Affichages des checkbox images GOODIES*/
/*--GOODIES A 5--*/

var a = new Array()
a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=0

function checkbox_goodies(n)
{
a[n]=1-a[n]
	for(i=1; i<=5; i++)
	{
	document.getElementById("radio"+i).src="	/images/goodies/radio"+i+"-0.gif"
	if (n==1) {a[2]=0;a[3]=0;a[4]=0;a[5]=0};
	if (n==2) {a[1]=0;a[3]=0;a[4]=0;a[5]=0};
	if (n==3) {a[1]=0;a[2]=0;a[4]=0;a[5]=0};
	if (n==4) {a[1]=0;a[2]=0;a[3]=0;a[5]=0};
	if (n==5) {a[1]=0;a[2]=0;a[4]=0;a[3]=0};
	}
document.getElementById("radio"+n).src="/images/goodies/radio"+n+"-"+a[n]+".gif"
document.getElementById("preview").src="/swf/goodies/ecard"+n+".jpg"
}

/*--GOODIES A 2--*/

/*var a = new Array()
a[1]=0;a[2]=0

function checkbox_goodies(n)
{
a[n]=1-a[n]
	// -- modifier ici le nombre de e-card pour que la boucle n'aille pas au delà
	//for(i=1; i<=6; i++)
	for(i=1; i<=2; i++)
	{
	document.getElementById("radio"+i).src="	/images/goodies/radio"+i+"-0.gif"
	if (n==1) {a[2]=0};
	if (n==2) {a[1]=0};
	}
document.getElementById("radio"+n).src="/images/goodies/radio"+n+"-"+a[n]+".gif"
document.getElementById("preview").src="/swf/goodies/ecard"+n+".jpg"
}*/

/*---------------------------------------------------------------------------*/
/*---Affichages des checkbox images ECONOMISEUR*/
var b = new Array()
b[1]=0;
b[2]=0;
b[3]=0;
b[4]=0

function checkbox_eco(n, fichier)
{
b[n]=1-b[n]
	for(j=1; j<=3; j++)
	{
	document.getElementById("radio"+j).src="/images/goodies/radio_eco"+j+"-0.gif"
	if (n==1) {b[2]=0;b[3]=0;b[4]=0};
	if (n==2) {b[1]=0;b[3]=0;b[4]=0};
	if (n==3) {b[1]=0;b[2]=0;b[4]=0};
	if (n==4) {b[1]=0;b[2]=0;b[3]=0};
	}
document.getElementById("radio"+n).src="/images/goodies/radio_eco"+n+"-"+b[n]+".gif"
window.location="/images/goodies/"+fichier
}

// ===============================
// fonction pour l'appel JobJules
function JobJules ()
		{
			a = window.open ("http://julesjob.altima.fr/job_ss_nav/edito.asp","popup_rh","width=800, height=580,location=no,menubar=yes,toolbar=yes,scrollbars=yes");
			
		}
// ==============================		

/*FONCTION DE TRACKING VISIOSTATS*/
function visiotag(id_site,id_page,p){
	var url_referrer=top.document.referrer;
	var url_referrer_split=url_referrer.split("&");
	var url_referrer_final=url_referrer_split.join("*");
	var tagCookie = '<img align="right" src="http://www.visiostats.com/data/pauseCookie.php">';
	var tag = '<img align="right" src="http://www.visiostats.com/data/connection.php?'
	+ "p1=" + window.screen.colorDepth + "&"
	+ "p2=" + window.screen.width + "&"
	+ "p3=" + window.navigator.platform + "&"
	+ "p4=" + window.navigator.cpuClass + "&"
	+ "p5=" + window.navigator.cookieEnabled + "&"
	+ "p6=" + window.navigator.systemLanguage + "&"
	+ "p7=" + id_site + "&"
	+ "p8=" + id_page + "&"
	+ "p9=" + p + "&"
	+ "p0=" + url_referrer_final + '">';	
	document.write(tagCookie);
	document.write(tag);
}
/*FIN DE FONCTION DE TRACKING VISIOSTATS*/
