
 /////// FUNCTION MENU ////////////
 
 
 // Mode de recherche //
		var defaultSearchValue = "Saisir au moins un mot-clé";
		var defaultSearchAnyVal = "Saisir au moins un mot-clé au besoin";
		var defaultSearchAllVal = "Saisir au moins un mot-clé au besoin";
		var defaultSearchExaVal = "Saisir une expression au besoin";
 
 
  function accesrapide(data) {
 	var params = data.toString().split(',');
			
	var location = params[0];
 	var target = params[1];
	
	if (location) {	
		if (target == '_blank') {
			if (location == "conseillervirtuel")
				{
					window.open("http://ads5.canoe.ca/event.ng/Type=click&FlightID=41700&AdID=73535&TargetID=7623&Segments=1462,2371,11513&Targets=439,7623&Values=25,31,43,51,60,72,83,91,100,110,150,152,213,224,266,334,347,379,380,396,493,559,561,584,1086,1287,1315,1444,1467,1542,1545,1551,1570,1620,1837,1946,2293,2307,2553,2670,2686,2698,2700,2702,2703,2704,2788,2932,3070,3079,3120,3562,3718,3719,3733,4347,4613,4708,4764,4806,4914,4995,5242,5243,5263,5270&RawValues=USERID%2C7f000001-22800-1168548915-2&Redirect=http://srv650.hrdc-drhc.gc.ca/cslp-pcpe/cl/30/oci/welcome.jsp%3Fbundle%3Dadv%26langcanlearn%3Dfr");
				}
				else {
					window.open(location);
				}
		} else {
			if (location == "conseillervirtuel")
				{
					document.location = "http://ads5.canoe.ca/event.ng/Type=click&FlightID=41700&AdID=73535&TargetID=7623&Segments=1462,2371,11513&Targets=439,7623&Values=25,31,43,51,60,72,83,91,100,110,150,152,213,224,266,334,347,379,380,396,493,559,561,584,1086,1287,1315,1444,1467,1542,1545,1551,1570,1620,1837,1946,2293,2307,2553,2670,2686,2698,2700,2702,2703,2704,2788,2932,3070,3079,3120,3562,3718,3719,3733,4347,4613,4708,4764,4806,4914,4995,5242,5243,5263,5270&RawValues=USERID%2C7f000001-22800-1168548915-2&Redirect=http://srv650.hrdc-drhc.gc.ca/cslp-pcpe/cl/30/oci/welcome.jsp%3Fbundle%3Dadv%26langcanlearn%3Dfr";
				}
				else {
					document.location = location;
				}			
		}
	}
 }
 
 
 
function popupWin(popupName,url,popupWidth,popupHeight) {
	popupDef = window.open(url, popupName,"width=" + popupWidth + ",height=" + popupHeight + ",top=100,left=200,resizable=no,scrollbars=yes,toolbar=no,status=no,location=no,directories=no");
}

function popupWin2(popupName,url,popupWidth,popupHeight) {
	popupDef = window.open(url, popupName,"width=" + popupWidth + ",height=" + popupHeight + ",top=100,left=200,resizable=no,scrollbars=yes,toolbar=no,status=no,location=no,directories=no");
}


function popupInterpretation() {
	popupDef = window.open("/carrieres-avenir/formations-gagnantes/popcomment.html", "interpretationAvenir","width=616,height=600,top=100,left=200,resizable=no,scrollbars=yes,toolbar=no,status=no,location=no,directories=no");
}

// Dans carrières d'avenir, permet d'afficher le bon tableau
// en fonction de l'ordre de tri désiré.
function tri(type)
{
	if (type == "alpha")
	{
		document.getElementById('ordrealpha').style.display = 'inline';
		document.getElementById('ordretaux').style.display = 'none';
	}
	else if (type == "taux")
	{
		document.getElementById('ordrealpha').style.display = 'none';
		document.getElementById('ordretaux').style.display = 'inline';
	}
	/*else if (type == "alphainverse")
	{
		document.getElementById('ordrealpha').style.display = 'none';
		document.getElementById('ordretaux').style.display = 'none';
		document.getElementById('ordretauxinverse').style.display = 'none';
		document.getElementById('ordrealphainverse').style.display = 'inline';
		
	}
	else if (type == "tauxinverse")
	{
		document.getElementById('ordrealpha').style.display = 'none';
		document.getElementById('ordretaux').style.display = 'none';
		document.getElementById('ordretauxinverse').style.display = 'inline';
		document.getElementById('ordrealphainverse').style.display = 'none';
	}*/

}

function coldroite_affichePop() {
	var u=Math.floor((Math.random() * 2));
	if (u == 0) { 
		document.write("<a href='/popup/popup_aerospatiale.html' onclick='popupWin(\"Jobboom\",this.href,655,675);return false;'><img src='/popup/images/bt-aero.gif' height='103' width='154' border='0'></a><br />")               
	}
	else {
		document.write("<a href='/popup/popup_jeuelectronique.html' onclick='popupWin(\"Jobboom\",this.href,655,675);return false;'><img src='/popup/images/bt-jeuelec.jpg' height='103' width='154' border='0'></a><br />")
	}
}


function changeBG(over, langue)
{
    if(over)
    {
        document.getElementById('trouver').className = "bg_hover";
    }
    else
    {
        document.getElementById('trouver').className = "bg";
    }
}
