// Preload banniere de carriere
	function preloadbanner(){
		if (document.images) 
		{		
			var banner1 = new Image();
			var banner2 = new Image();
			var banner3 = new Image();
			var banner4 = new Image();
			banner1.src = "/~/media/jobs/Recruitment/images/img/banner_corporate.jpg";
			banner2.src = "/~/media/jobs/Recruitment/images/img/banner_costumes.jpg";
			banner3.src = "/~/media/jobs/Recruitment/images/img/banner_marketing.jpg";
			banner4.src = "/~/media/jobs/Recruitment/images/img/banner_production.jpg";
		}
	}
	function switchLang(lang)
	{
		var the_url = document.URL;
		
		//Le indexOf et le replace gre mal le case Sensitive alors on met tout en lowercase
		the_url = the_url.toLowerCase();
		
		if (the_url.indexOf("/en/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))en\1/gi, "$1" + lang + "$1");	
		}	
		else if (the_url.indexOf("/ja/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))ja\1/gi, "$1" + lang + "$1");
		}
		else if (the_url.indexOf("/ko/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))ko\1/gi, "$1" + lang + "$1");
		}
		else if (the_url.indexOf("/zh/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))zh\1/gi, "$1" + lang + "$1");
		}
		else if (the_url.indexOf("/zt/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))zt\1/gi, "$1" + lang + "$1");
		}
		else if (the_url.indexOf("/fr/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))fr\1/gi, "$1" + lang + "$1");
		}
		else if (the_url.indexOf("/es/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))es\1/gi, "$1" + lang + "$1");
		}
		else if (the_url.indexOf("/mx/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))mx\1/gi, "$1" + lang + "$1");
		}
		else if (the_url.indexOf("/pt/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))pt\1/gi, "$1" + lang + "$1");
		}
			else if (the_url.indexOf("/de/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))de\1/gi, "$1" + lang + "$1");
		}
			else if (the_url.indexOf("/ru/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))ru\1/gi, "$1" + lang + "$1");
		}
		else {
		}	
	}
	function showHideDiv(cid){
		
		if(document.getElementById(cid).style.display == "none")
		{
				document.getElementById(cid).style.display = "";
		}
		else
		{
				document.getElementById(cid).style.display = "none";
		}
	}


	function expandcontent(curobj, cid, altID, lblShow, lblHide){
		if (ccollect.length>0){	
			if(document.getElementById(cid).style.display == "none")
			{
					document.getElementById(cid).style.display = "";
					curobj.innerHTML = "<div class='seeAnswer'>" + lblHide + " <img src='/~/media/jobs/Recruitment/images/helpUpArrow.gif'></div>";
					postQuestion(altID);
			}
			else
			{
					document.getElementById(cid).style.display = "none";
					curobj.innerHTML = "<div class='seeAnswer'>" + lblShow + " <img src='/~/media/jobs/Recruitment/images/helpDownArrow.gif'></div>";
			}
		
		}
	}
	
function querySt(strScanVar){
	strParams = window.location.search.substring(1);
	arrParams = strParams.split("&");
	for (i=0; i < arrParams.length; i++) {
		strVar = arrParams[i].split("=");
		if (strVar[0] == strScanVar) {
			return strVar[1];
		}
	}
}