//***Code Is Intellectual Property Of crmmetrix inc.(Copyright 2010).
//***The use os this code is permitted for this project only as per the license agreement.
//***Code Has Been Developed For The Sole Purpose Of crmmetrix inc./AFKLM Project.
//***Licensed For crmmetrix inc./AFKLM Project.
var maindirurlpopcrm="/sitecrm"    //Replace the ??? with the installed path of the Sitecrm folder


// -------------conditions for disabling the popin ofr mobil visitors added on 02/11/2010
/*Browser - OS to enabled or disables*/
var CtrixBrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{
			string: navigator.userAgent,
			subString: "Chrome",
			identity: "Chrome"
		},
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari",
			versionSearch: "Version"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{	// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [  
			{
			string: navigator.userAgent,
			subString: "iPod",
			identity: "iPod"
		}
		,
		{
			string: navigator.userAgent,
			subString: "iPad",
			identity: "iPad"
		}
		,
		{
			string: navigator.userAgent,
			subString: "Windows CE",
			identity: "Windows CE"
		}
		,
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			   string: navigator.userAgent,
			   subString: "iPhone",
			   identity: "iPhone/iPod"
	    },
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
		
	]

};
CtrixBrowserDetect.init();

var Crmmetrixbr=CtrixBrowserDetect.browser;
/*var brv=CtrixBrowserDetect.version;*/
var CrmmetrixOS=CtrixBrowserDetect.OS;

if((Crmmetrixbr=="Firefox"||Crmmetrixbr=="Explorer")&&(CrmmetrixOS=="Linux"||CrmmetrixOS=="Mac"||CrmmetrixOS=="Windows"))
{


			var exiturl= maindirurlpopcrm+"/stealth.htm"; //enter the stealth.htm path
			var entryurl=""; //enter the stealth.htm path
			var clientnom="Air France"; // declare the client name here 
			var clientsite="site Air France"; // declare the clients website here
			var insec=3;
			
			var cookieexp=3*24*30;
			var wtx=(screen.width);
			var htx=(screen.height);
			var wtx2=((wtx-439)*0.5);
			var posx=wtx2;
			
			var pid="afscq20"
			var sniffernet=1;
			
			// -------------conditions for interception rate added on 27/08/2010
			
			if (cu_Langue == 'fr') langCode = 'fr';
			else if (cu_Langue == 'de') langCode = 'de';
			else if (cu_Langue == 'es') langCode = 'es';
			else if (cu_Langue == 'it') langCode = 'it';
			else if (cu_Langue=='zh') langCode = 'cn';
			else if (cu_Langue=='ja') langCode = 'jp';
			else if (cu_Langue=='ko') langCode = 'ko';
			else if (cu_Langue=='en'){
				if (cu_Marche=="GB") langCode = 'uk';
				else if (cu_Marche=="US") langCode = 'us';
				else if (cu_Marche=="IN") langCode = 'in';
				else if (cu_Marche=="SG") langCode = 'sg';
				else langCode = 'uk';
			} else langCode = 'uk';
			
			switch (langCode)
			{
			case "fr":
				exit=1;entry=0;nosurvey=99;break;
			case "us":
				exit=8;entry=0;nosurvey=92;break;
			case "uk":
				exit=8;entry=0;nosurvey=92;break;
			case "de":
				exit=10;entry=0;nosurvey=90;break;
			case "es":
				exit=10;entry=0;nosurvey=90;break;
			case "it":
				exit=4;entry=0;nosurvey=96;break;
			case "in":
				exit=54;entry=0;nosurvey=46;break;	
			case "sg":
				exit=44;entry=0;nosurvey=56;break;	
			case "cn":
				exit=100;entry=0;nosurvey=0;break;	
			case "jp":
				exit=18;entry=0;nosurvey=82;break;
			case "ko":
				exit=100;entry=0;nosurvey=0;break;	

			}
			
			
			// --------------end of condition 
			
			divPosition	= "absolute";
			
			function loadStyleSheet(file)
			{
				// Create script DOM(Document Object Model) element
				var script = document.createElement('link');
				script.rel = 'stylesheet';
				script.type = 'text/css';
				script.href = file;
			
				// Alert when the script is loaded
				if (typeof(script.onreadystatechange) == 'undefined') // W3C
					script.onload = function(){ this.onload = null;  };
				else // IE
					script.onreadystatechange = function(){ if (this.readyState != 'loaded' && this.readyState != 'complete') return; this.onreadystatechange = null;  }; // Unset onreadystatechange, leaks mem in IE
			
				// Add script DOM(Document Object Model) element to document tree
				document.getElementsByTagName('head')[0].appendChild(script);
			}
			
			//Note : To deactivate project assign sniffernet=2;
			//The below sniffernet code is to centrally activate,deactivate the project.
			//The survey is by default disabled and its only enabled if the site visitor has cookies enabled
			//on his system
			
			//-----------------------------------------------------FUNCTIONS---DO NOT EDIT BELOW THIS
			
			
			
			function writeCookie(name, value, hours)
			{
			  var expire = "";
			  if(hours != null)
			  {
				expire = new Date((new Date()).getTime() + hours * 3600000);
				expire = "; expires=" + expire.toGMTString();
			  }
			  document.cookie = name + "=" + escape(value) + expire +";path=/;";
			}
			
			
			function readCookie(name)
			{
			  var cookieValue = "";
			  var search = name + "=";
			  if(document.cookie.length > 0)
			  { 
				offset = document.cookie.indexOf(search);
				if (offset != -1)
				{ 
				  offset += search.length;
				  end = document.cookie.indexOf(";", offset);
				  if (end == -1) end = document.cookie.length;
				  cookieValue = unescape(document.cookie.substring(offset, end))
				}
			  }
			  return cookieValue;
			}
			
			function GetParam(name)
			{
			  var start=location.search.indexOf("?"+name+"=");
			  if (start<0) start=location.search.indexOf("&"+name+"=");
			  if (start<0) return '';
			  start += name.length+2;
			  var end=location.search.indexOf("&",start)-1;
			  if (end<0) end=location.search.length;
			  var result=location.search.substring(start,end);
			  var result='';
			  for(var i=start;i<=end;i++) {
				var c=location.search.charAt(i);
				result=result+(c=='+'?' ':c);
			  }
			  return unescape(result);
			}
			
			
			//------To block the survey for people who are visiting from http://video.msn.com/v/us/v.htm,www.fusionamerica.com/zsitecrm.asp
			
			writeCookie("crm_cookieEnabled","1",20);	//writing cookie to check if cookies are enabled or disabled.
			var cookieEnabled=readCookie("crm_cookieEnabled");	//reading the cookie value to see if cookie is written or not.
			
			if(cookieEnabled=="1")
			{
			
				//-------Determining whether this is the first visit to tagged page. Tracking the referer url.
				var visitctr=readCookie("cntr");
					
				if (visitctr!="1")
				{
					//-------Capturing Referring URL
					if (document.referrer&&document.referrer!="")
					{
						writeCookie("refer",document.referrer,20);			
					}
					writeCookie("cntr","1",20);
				}
			
			}
			else
			{
				sniffernet=2;
			}
			
			//********************************corrections OH***************//
				//pour masquer des selects 
				function hideElements (visible,id){
					var elPopup=document.getElementById?document.getElementById(id):document.all?document.all[id]:document.layers[id];
					setSelectVisibility(visible,elPopup);
				}
			//*************************************************************//
			
			//---------------------------------------------------------------------------------------------
			//-------------------------------------- DO NOT EDIT ------------------------------------------
			//---------------------------------------------------------------------------------------------


			function hideAd(divId) 
			
			{ 
				if (document.layers) document.layers[divId].visibility = 'hide';
				else if (document.all) document.all[divId].style.visibility = 'hidden';
				else if (document.getElementById) document.getElementById(divId).style.visibility = 'hidden';
				//writeCookie("crmseen","seen",24);
			}
			
			function showAd(divId) 
			{ 
				if (document.layers) document.layers[divId].visibility = 'show';
				else if (document.all) document.all[divId].style.visibility = 'visible';
				else if (document.getElementById) document.getElementById(divId).style.visibility = 'visible';
				//writeCookie("crmseen","seen",24);
			}
			
			function create(divId) 
			{ 
				if (document.layers) document.layers[divId].visibility = 'show';
				else if (document.all) document.all[divId].style.visibility = 'visible';
				else if (document.getElementById) document.getElementById(divId).style.visibility = 'visible';
				//writeCookie("crmseen","seen",24);
			}
			
			function adDown(divId) 
			{ 
				state=typeof topPos;
				var fposi;
				if (divId=='bg')
				{
				fposi=0;
				}
				else
				{
				fposi=80;
				}
			
				if(state=='undefined') {topPos=-440;}
				if(topPos < fposi)
				{ 
					topPos+=40;
					if (document.layers)
					{
						document.layers[divId].top = topPos;
					}
					else
					{
						if(document.all)
						{
							document.all[divId].style.top = topPos;
						}
						else
						{
							if(document.getElementById)
							{
								document.getElementById(divId).style.top = topPos;
							}
						}
					}
					
					{setTimeout("adDown('"+divId+"');",5);}
				 }
				/* if(topPos>=80&&divId=='bg')
					   {if (document.all)
						{
							document.all[divId].style.top = 0;
						}
						else
						{
							if(document.getElementById)
							{
								document.getElementById(divId).style.top = 0;
							}
						}
					   }*/
			}
			
			
			function entryfx()
			{
				var win2=window.open(entryurl,'entry_survey','top=0,left=0,height='+screen.height*0.4+',width='+screen.width*0.4+',resizable=yes,scrollbars=yes');
				if(win2!=null)
				{
					win2.focus();
					writeCookie("crmseen","seen",cookieexp);
				}
				hideAd('entry_pop');
			
			}
			
			function stealthfx(idx)
			{   
				var win2=window.open(maindirurlpopcrm+'/stealth'+idx+'.htm','stealth','height=30,width=60,scrollbars=yes,toolbars=no,location=no,resizable=yes');
				if(win2!=null)
				{
					win2.blur();
					writeCookie("crmseen","seen",cookieexp);
					writeCookie("crmhost_name",location.hostname,24);
			
				}
				hideAd('stealth_pop_'+idx);
				
			
				//window.focus();
			}
			
			function crmlinkfx()
			{
			popupWin = window.open('http://fr.crmmetrix.com/','open_window','menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, width=640, height=480, left=100, top=100')
			}
			
			
			function nosurveyfx(divId)
			{
				hideAd(divId);
				writeCookie("crmseen","seen",20*24);
			}
			
			
				var thiscookie=readCookie("crmseen");
			
			
			if (navigator.appName == 'Netscape')
			var language = navigator.language;
			else
			var language = navigator.browserLanguage;
			
			
			if (parseInt(navigator.appVersion)>=4) 
			{ 
			
			document.write('<div class="divcrm" id="entry_pop">');
			
			document.write('</div>');
			
			
			document.write('<div id="bg" style="position:'+divPosition+'; width:'+(wtx-21)+'px; height:'+(htx+50)+'px; left:0px;background-color:#000000; opacity:0.5;filter:alpha(opacity=20);"> </div>');
			
			//------------Popin Français--------------------------
			document.write('<div class="divcrm" id="stealth_pop_fr">');
			document.write('<div class="divcrm" id="crm_headercrm">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_fr\');hideAd(\'bg\');"><img src="'+maindirurlpopcrm+'/image/closeButton.gif"/></a>');
			document.write('</div>');
			document.write('<div id="crm_content" class="divcrm">');
			document.write('<div id="crm_fr_content" class="divcrm">');
			document.write('<span id="crm_fr_title">Bonjour !</span>');
			document.write('<span id="crm_fr_texte">Pour nous aider &agrave; am&eacute;liorer notre site, pourriez-vous prendre quelques minutes &agrave; la fin de votre visite, pour nous donner votre avis ?<br/><br/>');
			document.write('Merci d&acute;avance pour votre participation !<br /><br />');
			document.write('</span>');
			document.write('<span id="crm_fr_sign">L\'&eacute;quipe web d\''+clientnom+'</span>');
			document.write('</div>');
			document.write('<div id="crm_bouton_rep">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_fr\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/noButton.gif" /></a>');
			document.write('</div>');
			document.write('<div id="crm_bouton_non">');
			document.write('<a href="javascript:stealthfx(\'fr\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/okButton.gif" /></a>');
			document.write('</div>');
			document.write('</div>');
			document.write('<div id="crm_footercrm">');
			document.write('<span>Toutes vos r&eacute;ponses resteront strictement confidentielles et les informations recueillies seront utilis&eacute;es uniquement dans le cadre de cette &eacute;tude.<br/></span>');
			document.write('<a href="javascript:crmlinkfx();"><img src="'+maindirurlpopcrm+'/image/crmlogo.gif"/></a>');
			document.write('</div>');
			document.write('</div>');
			
			//------------Popin Anglais-UK--------------------------
			
			document.write('<div class="divcrm" id="stealth_pop_en">');
			document.write('<div class="divcrm" id="crm_headercrm">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_en\');hideAd(\'bg\');"><img src="'+maindirurlpopcrm+'/image/closeButton.gif"/></a>');
			document.write('</div>');
			document.write('<div id="crm_content" class="divcrm">');
			document.write('<div id="crm_fr_content" class="divcrm">');
			document.write('<span id="crm_fr_title">Hello !</span>');
			document.write('<span id="crm_fr_texte">Help us improve the '+clientnom+' site by giving us your opinion at the end of your visit<br/><br/>Thank you in advance for taking part! <br/><br/>');
			document.write('</span>');
			document.write('<span id="crm_fr_sign">The '+clientnom+' team</span>');
			document.write('</div>');
			document.write('<div id="crm_bouton_rep_en">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_en\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/noButton_en.gif" /></a>');
			document.write('</div>');
			document.write('<div id="crm_bouton_non_en">');
			document.write('<a href="javascript:stealthfx(\'en\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/okButton_en.gif" /></a>');
			document.write('</div>');
			document.write('</div>');
			document.write('<div id="crm_footercrm">');
			document.write('<span>All your replies will remain strictly confidential, and the information collected will be used solely within the context of this study, and in no way for any commercial purposes.<br/></span>');
			document.write('<a href="javascript:crmlinkfx();"><img src="'+maindirurlpopcrm+'/image/crmlogo.gif"/></a>');
			document.write('</div>');
			document.write('</div>');
			
			//------------Popin Anglais-US--------------------------
			
			document.write('<div class="divcrm" id="stealth_pop_us">');
			document.write('<div class="divcrm" id="crm_headercrm">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_us\');hideAd(\'bg\');"><img src="'+maindirurlpopcrm+'/image/closeButton.gif"/></a>');
			document.write('</div>');
			document.write('<div id="crm_content" class="divcrm">');
			document.write('<div id="crm_fr_content" class="divcrm">');
			document.write('<span id="crm_fr_title">Hi !</span>');
			document.write('<span id="crm_fr_texte">Help us improve the '+clientnom+' site by giving us your opinion at the end of your visit<br/><br/>Thank you in advance for taking part! <br/><br/>');
			document.write('</span>');
			document.write('<span id="crm_fr_sign">The '+clientnom+' team</span>');
			document.write('</div>');
			document.write('<div id="crm_bouton_rep_en">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_us\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/noButton_us.gif" /></a>');
			document.write('</div>');
			document.write('<div id="crm_bouton_non_en">');
			document.write('<a href="javascript:stealthfx(\'us\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/okButton_us.gif" /></a>');
			document.write('</div>');
			document.write('</div>');
			document.write('<div id="crm_footercrm">');
			document.write('<span>All your replies will remain strictly confidential, and the information collected will be used solely within the context of this study, and in no way for any commercial purposes.<br/></span>');
			document.write('<a href="javascript:crmlinkfx();"><img src="'+maindirurlpopcrm+'/image/crmlogo.gif"/></a>');
			document.write('</div>');
			document.write('</div>');
			
			
			//------------Popin Anglais-DE--------------------------
			
			document.write('<div class="divcrm" id="stealth_pop_de">');
			document.write('<div class="divcrm" id="crm_headercrm">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_de\');hideAd(\'bg\');"><img src="'+maindirurlpopcrm+'/image/closeButton.gif"/></a>');
			document.write('</div>');
			document.write('<div id="crm_content" class="divcrm">');
			document.write('<div id="crm_fr_content" class="divcrm">');
			document.write('<span id="crm_fr_title">Hallo,</span>');
			document.write('<span id="crm_en_texte">Ihre Meinung z&auml;hlt, um '+clientnom+' weiterentwickeln zu k&ouml;nnen!<br/>');
			document.write('Deshalb m&ouml;chten wir Sie nach Ihrem Besuch auf '+clientnom+' zu einer kurzen Umfrage einladen. Vielen Dank !<br/><br/>');
			document.write('</span>');
			document.write('<span id="crm_en_sign">Ihr Team von '+clientnom+'</span>');
			document.write('</div>');
			document.write('<div id="crm_bouton_rep_de">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_de\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/noButton_de.gif" /></a>');
			document.write('</div>');
			document.write('<div id="crm_bouton_non_de">');
			document.write('<a href="javascript:stealthfx(\'de\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/okButton_de.gif" /></a>');
			document.write('</div>');
			document.write('</div>');
			document.write('<div id="crm_footercrm">');
			document.write('<span>Alle Ihre Antworten werden streng vertraulich behandelt und gesammelten Informationen werden nur im Rahmen dieser Studie verwendet werden.<br/></span>');
			document.write('<a href="javascript:crmlinkfx();"><img src="'+maindirurlpopcrm+'/image/crmlogo.gif"/></a>');
			document.write('</div>');
			document.write('</div>');
			
			
			
			//------------Popin Anglais-IT--------------------------
			
			document.write('<div class="divcrm" id="stealth_pop_it">');
			document.write('<div class="divcrm" id="crm_headercrm">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_it\');hideAd(\'bg\');"><img src="'+maindirurlpopcrm+'/image/closeButton.gif"/></a>');
			document.write('</div>');
			document.write('<div id="crm_content" class="divcrm">');
			document.write('<div id="crm_fr_content" class="divcrm">');
			document.write('<span id="crm_fr_title">Ciao,</span>');
			document.write('<span id="crm_en_texte">'+clientnom+' si prepara ad evolvere&hellip; e il tuo parere &egrave; importante !<br/><br/>');
			document.write('Alla fine della visita di '+clientnom+', accetteresti di rispondere per qualche minuto ad un questionario ?<br /><br />');
			document.write('</span>');
			document.write('<span id="crm_fr_sign">Il team '+clientnom+'</span>');
			document.write('</div>');
			document.write('<div id="crm_bouton_rep_it">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_it\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/noButton_it.gif" /></a>');
			document.write('</div>');
			document.write('<div id="crm_bouton_non_it">');
			document.write('<a href="javascript:stealthfx(\'it\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/okButton_it.gif" /></a>');
			document.write('</div>');
			document.write('</div>');
			document.write('<div id="crm_footercrm">');
			document.write('<span>Tutte le risposte rimarranno strettamente confidenziali e le informazioni raccolte saranno utilizzati solo in questo suryey e non per scopi commerciali.<br/></span>');
			document.write('<a href="javascript:crmlinkfx();"><img src="'+maindirurlpopcrm+'/image/crmlogo.gif"/></a>');
			document.write('</div>');
			document.write('</div>');
			
			
			//------------Popin-ES--------------------------
			
			document.write('<div class="divcrm" id="stealth_pop_es">');
			document.write('<div class="divcrm" id="crm_headercrm">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_es\');hideAd(\'bg\');"><img src="'+maindirurlpopcrm+'/image/closeButton.gif"/></a>');
			document.write('</div>');
			document.write('<div id="crm_content" class="divcrm">');
			document.write('<div id="crm_fr_content" class="divcrm">');
			document.write('<span id="crm_fr_title">Hola,</span>');
			document.write('<span id="crm_fr_texte">Su opini&oacute;n es importante para mejorar '+clientnom+' !<br />');
			document.write('&iquest;Aceptar&iacute;a responder a un cuestionario de unos minutos cuando finalice su visita a '+clientnom+' ?<br/><br/>');
			document.write('</span>');
			document.write('<span id="crm_es_sign">El equipo de '+clientnom+'</span>');
			document.write('</div>');
			document.write('<div id="crm_bouton_rep_es">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_es\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/noButton_es.gif" /></a>');
			document.write('</div>');
			document.write('<div id="crm_bouton_non_es">');
			document.write('<a href="javascript:stealthfx(\'es\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/okButton_es.gif" /></a>');
			document.write('</div>');
			document.write('</div>');
			document.write('<div id="crm_footercrm">');
			document.write('<span>Todas sus respuestas ser&aacute;n estrictamente confidenciales y los datos obtenidos s&oacute;lo se utilizar&aacute;n en el marco de este estudio y sin ning&uacute;n fin comercial.<br/></span>');
			document.write('<a href="javascript:crmlinkfx();"><img src="'+maindirurlpopcrm+'/image/crmlogo.gif"/></a>');
			document.write('</div>');
			document.write('</div>');
			

			//------------Popin-IN--------------------------
			
			document.write('<div class="divcrm" id="stealth_pop_in">');
			document.write('<div class="divcrm" id="crm_headercrm">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_in\');hideAd(\'bg\');"><img src="'+maindirurlpopcrm+'/image/closeButton.gif"/></a>');
			document.write('</div>');
			document.write('<div id="crm_content" class="divcrm">');
			document.write('<div id="crm_fr_content" class="divcrm">');
			document.write('<span id="crm_fr_title">Hello !</span>');
			document.write('<span id="crm_fr_texte">Help us improve the '+clientnom+' site by giving us your opinion at the end of your visit<br/><br/>Thank you in advance for taking part! <br/><br/>');
			document.write('</span>');
			document.write('<span id="crm_fr_sign">The '+clientnom+' team</span>');
			document.write('</div>');
			document.write('<div id="crm_bouton_rep_en">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_in\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/noButton_en.gif" /></a>');
			document.write('</div>');
			document.write('<div id="crm_bouton_non_in">');
			document.write('<a href="javascript:stealthfx(\'in\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/okButton_in.gif" /></a>');
			document.write('</div>');
			document.write('</div>');
			document.write('<div id="crm_footercrm">');
			document.write('<span>All your replies will remain strictly confidential, and the information collected will be used solely within the context of this study, and in no way for any commercial purposes.<br/></span>');
			document.write('<a href="javascript:crmlinkfx();"><img src="'+maindirurlpopcrm+'/image/crmlogo.gif"/></a>');
			document.write('</div>');
			document.write('</div>');
			
			
			
			//------------Popin-SG--------------------------
			
			document.write('<div class="divcrm" id="stealth_pop_sg">');
			document.write('<div class="divcrm" id="crm_headercrm">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_sg\');hideAd(\'bg\');"><img src="'+maindirurlpopcrm+'/image/closeButton.gif"/></a>');
			document.write('</div>');
			document.write('<div id="crm_content" class="divcrm">');
			document.write('<div id="crm_fr_content" class="divcrm">');
			document.write('<span id="crm_fr_title">Hello !</span>');
			document.write('<span id="crm_fr_texte">Help us improve the '+clientnom+' site by giving us your opinion at the end of your visit<br/><br/>Thank you in advance for taking part! <br/><br/>');
			document.write('</span>');
			document.write('<span id="crm_fr_sign">The '+clientnom+' team</span>');
			document.write('</div>');
			document.write('<div id="crm_bouton_rep_en">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_sg\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/noButton_en.gif" /></a>');
			document.write('</div>');
			document.write('<div id="crm_bouton_non_in">');
			document.write('<a href="javascript:stealthfx(\'sg\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/okButton_in.gif" /></a>');
			document.write('</div>');
			document.write('</div>');
			document.write('<div id="crm_footercrm">');
			document.write('<span>All your replies will remain strictly confidential, and the information collected will be used solely within the context of this study, and in no way for any commercial purposes.<br/></span>');
			document.write('<a href="javascript:crmlinkfx();"><img src="'+maindirurlpopcrm+'/image/crmlogo.gif"/></a>');
			document.write('</div>');
			document.write('</div>');
			
			
			
			//------------Popin-CN--------------------------
			
			document.write('<div class="divcrm" id="stealth_pop_cn">');
			document.write('<div class="divcrm" id="crm_headercrm">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_cn\');hideAd(\'bg\');"><img src="'+maindirurlpopcrm+'/image/closeButton.gif"/></a>');
			document.write('</div>');
			document.write('<div id="crm_content" class="divcrm">');
			document.write('<div id="crm_fr_content" class="divcrm">');
			document.write('<span id="crm_fr_title">&#x60A8;&#x597D;&#xFF01;</span>');
			document.write('<span id="crm_fr_texte">&#x8BF7;&#x60A8;&#x5728;&#x7ED3;&#x675F;&#x8BBF;&#x95EE;&#x65F6;&#x63D0;&#x51FA;&#x60A8;&#x7684;&#x5B9D;&#x8D35;&#x610F;&#x89C1;&#xFF0C;&#x534F;&#x52A9;&#x6211;&#x4EEC;&#x5B8C;&#x5584;&#x6CD5;&#x822A;&#x7F51;&#x7AD9;<br/><br/>&#x63D0;&#x524D;&#x611F;&#x8C22;&#x60A8;&#x53C2;&#x4E0E;&#x672C;&#x6B21;&#x8C03;&#x67E5;&#xFF01;<br/><br/>');
			document.write('</span>');
			document.write('<span id="crm_fr_sign">&#x6CD5;&#x822A;&#x56E2;&#x961F;</span>');
			document.write('</div>');
			document.write('<div id="crm_bouton_rep_en">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_cn\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/noButton_cn.gif" /></a>');
			document.write('</div>');
			document.write('<div id="crm_bouton_non_in">');
			document.write('<a href="javascript:stealthfx(\'cn\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/okButton_cn.gif" /></a>');
			document.write('</div>');
			document.write('</div>');
			document.write('<div id="crm_footercrm">');
			document.write('<span>&#x5BF9;&#x4E8E;&#x60A8;&#x7684;&#x6240;&#x6709;&#x56DE;&#x7B54;&#xFF0C;&#x6211;&#x4EEC;&#x90FD;&#x5C06;&#x4E25;&#x683C;&#x4FDD;&#x5BC6;&#xFF0C;&#x6536;&#x96C6;&#x5230;&#x7684;&#x4FE1;&#x606F;&#x5C06;&#x4EC5;&#x4F9B;&#x672C;&#x6B21;&#x7814;&#x7A76;&#x4F7F;&#x7528;&#xFF0C;&#x7EDD;&#x4E0D;&#x4F1A;&#x7528;&#x4E8E;&#x4EFB;&#x4F55;&#x5546;&#x4E1A;&#x7528;&#x9014;&#x3002;<br/></span>');
			document.write('<a href="javascript:crmlinkfx();"><img src="'+maindirurlpopcrm+'/image/crmlogo.gif"/></a>');
			document.write('</div>');
			document.write('</div>');
			
			
			//------------Popin-JP--------------------------
			
			document.write('<div class="divcrm" id="stealth_pop_jp">');
			document.write('<div class="divcrm" id="crm_headercrm">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_jp\');hideAd(\'bg\');"><img src="'+maindirurlpopcrm+'/image/closeButton.gif"/></a>');
			document.write('</div>');
			document.write('<div id="crm_content" class="divcrm">');
			document.write('<div id="crm_fr_content" class="divcrm">');
			document.write('<span id="crm_fr_title">&#x3053;&#x3093;&#x306B;&#x3061;&#x306F;&#xFF01;</span>');
			document.write('<span id="crm_fr_texte">&#x30A8;&#x30FC;&#x30EB;&#x30D5;&#x30E9;&#x30F3;&#x30B9;&#x30B5;&#x30A4;&#x30C8;&#x306E;&#x3054;&#x5229;&#x7528;&#x3001;&#x8AA0;&#x306B;&#x3042;&#x308A;&#x304C;&#x3068;&#x3046;&#x3054;&#x3056;&#x3044;&#x307E;&#x3059;&#x3002;&#x3088;&#x308D;&#x3057;&#x3051;&#x308C;&#x3070;&#x3001;&#x5F53;&#x30A6;&#x30A7;&#x30D6;&#x30B5;&#x30A4;&#x30C8;&#x5411;&#x4E0A;&#x306E;&#x305F;&#x3081;&#x306E;&#x30A2;&#x30F3;&#x30B1;&#x30FC;&#x30C8;&#x306B;&#x3054;&#x5354;&#x529B;&#x304F;&#x3060;&#x3055;&#x3044;&#x3002;<br/><br/>&#x3054;&#x5354;&#x529B;&#x306E;&#x307B;&#x3069;&#x3001;&#x3088;&#x308D;&#x3057;&#x304F;&#x304A;&#x9858;&#x3044;&#x3044;&#x305F;&#x3057;&#x307E;&#x3059;&#xFF01;<br/><br/>');
			document.write('</span>');
			document.write('<span id="crm_fr_sign">&#x30A8;&#x30FC;&#x30EB;&#x30D5;&#x30E9;&#x30F3;&#x30B9;&#x30C1;&#x30FC;&#x30E0;</span>');
			document.write('</div>');
			document.write('<div id="crm_bouton_rep_en">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_jp\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/noButton_jp.gif" /></a>');
			document.write('</div>');
			document.write('<div id="crm_bouton_non_in">');
			document.write('<a href="javascript:stealthfx(\'jp\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/okButton_jp.gif" /></a>');
			document.write('</div>');
			document.write('</div>');
			document.write('<div id="crm_footercrm">');
			document.write('<span>&#x304A;&#x5BA2;&#x69D8;&#x306E;&#x56DE;&#x7B54;&#x306F;&#x3059;&#x3079;&#x3066;&#x6975;&#x79D8;&#x3068;&#x3057;&#x3066;&#x53D6;&#x308A;&#x6271;&#x3044;&#x307E;&#x3059;&#x3002;&#x53CE;&#x96C6;&#x3055;&#x308C;&#x305F;&#x60C5;&#x5831;&#x306F;&#x3053;&#x306E;&#x8ABF;&#x67FB;&#x306E;&#x7BC4;&#x56F2;&#x5185;&#x3067;&#x306E;&#x307F;&#x4F7F;&#x7528;&#x3057;&#x3001;&#x5546;&#x696D;&#x76EE;&#x7684;&#x3067;&#x5229;&#x7528;&#x3059;&#x308B;&#x3053;&#x3068;&#x306F;&#x3042;&#x308A;&#x307E;&#x305B;&#x3093;&#x3002;<br/></span>');
			document.write('<a href="javascript:crmlinkfx();"><img src="'+maindirurlpopcrm+'/image/crmlogo.gif"/></a>');
			document.write('</div>');
			document.write('</div>');
			
			
			//------------Popin-KO--------------------------
			
			document.write('<div class="divcrm" id="stealth_pop_ko">');
			document.write('<div class="divcrm" id="crm_headercrm">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_ko\');hideAd(\'bg\');"><img src="'+maindirurlpopcrm+'/image/closeButton.gif"/></a>');
			document.write('</div>');
			document.write('<div id="crm_content" class="divcrm">');
			document.write('<div id="crm_fr_content" class="divcrm">');
			document.write('<span id="crm_fr_title">&#xC548;&#xB155;&#xD558;&#xC2ED;&#xB2C8;&#xAE4C;&#x2E;</span>');
			document.write('<span id="crm_fr_texte">&#xC6F9;&#xC0AC;&#xC774;&#xD2B8;&#xB97C;&#x20;&#xC774;&#xC6A9;&#xD558;&#xC2E0;&#x20;&#xD6C4;&#x20;&#xC758;&#xACAC;&#xC744;&#x20;&#xC54C;&#xB824;&#xC8FC;&#xC2DC;&#xBA74;&#x20;&#xC5D0;&#xC5B4;&#x20;&#xD504;&#xB791;&#xC2A4;&#x20;&#xC6F9;&#xC0AC;&#xC774;&#xD2B8;&#x20;&#xAC1C;&#xC120;&#xC5D0;&#x20;&#xB3C4;&#xC6C0;&#xC774;&#x20;&#xB429;&#xB2C8;&#xB2E4;<br/><br/>&#xCC38;&#xC5EC;&#xD574;&#x20;&#xC8FC;&#xC154;&#xC11C;&#x20;&#xAC10;&#xC0AC;&#xB4DC;&#xB9BD;&#xB2C8;&#xB2E4;&#x21;<br/><br/>');
			document.write('</span>');
			document.write('<span id="crm_fr_sign">&#xC5D0;&#xC5B4;&#x20;&#xD504;&#xB791;&#xC2A4;&#x20;&#xD300;</span>');
			document.write('</div>');
			document.write('<div id="crm_bouton_rep_en">');
			document.write('<a href="javascript:nosurveyfx(\'stealth_pop_ko\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/noButton_ko.gif" /></a>');
			document.write('</div>');
			document.write('<div id="crm_bouton_non_in">');
			document.write('<a href="javascript:stealthfx(\'ko\');hideAd(\'bg\');"><img alt="" src="'+maindirurlpopcrm+'/image/okButton_ko.gif" /></a>');
			document.write('</div>');
			document.write('</div>');
			document.write('<div id="crm_footercrm">');
			document.write('<span>&#xB2F5;&#xBCC0;&#xC740;&#x20;&#xBAA8;&#xB450;&#x20;&#xC5C4;&#xACA9;&#xD788;&#x20;&#xAE30;&#xBC00;&#xB85C;&#x20;&#xCC98;&#xB9AC;&#xD558;&#xBA70;&#x20;&#xC218;&#xC9D1;&#xD55C;&#x20;&#xC815;&#xBCF4;&#xB294;&#x20;&#xC774;&#x20;&#xC870;&#xC0AC;&#xB9CC;&#xC744;&#x20;&#xC704;&#xD574;&#x20;&#xC774;&#xC6A9;&#xD558;&#xACE0;&#x20;&#xC0C1;&#xC5C5;&#xC801;&#xC778;&#x20;&#xBAA9;&#xC801;&#xC73C;&#xB85C;&#x20;&#xC0AC;&#xC6A9;&#xD558;&#xC9C0;&#x20;&#xC54A;&#xC2B5;&#xB2C8;&#xB2E4;&#x2E;<br/></span>');
			document.write('<a href="javascript:crmlinkfx();"><img src="'+maindirurlpopcrm+'/image/crmlogo.gif"/></a>');
			document.write('</div>');
			document.write('</div>');

			
			  if (document.layers) document.layers.entry_pop.left = 10;
			  else if (document.all) document.all.entry_pop.style.left = 10;
			  else if (document.getElementById) document.getElementById("entry_pop").style.left = 10;
			  
			  if (document.layers) document.layers.entry_pop.zIndex = 1000000;
			  else if (document.all) document.all.entry_pop.style.zIndex = 1000000;
			  else if (document.getElementById) document.getElementById("entry_pop").style.zIndex = 1000000;
			  
			  if (document.layers) document.layers.stealth_pop_fr.left = 10;
			  else if (document.all) document.all.stealth_pop_fr.style.left = 10;
			  else if (document.getElementById) document.getElementById("stealth_pop_fr").style.left = 10;
			  
			  if (document.layers) document.layers.stealth_pop_fr.zIndex = 1000000;
			  else if (document.all) document.all.stealth_pop_fr.style.zIndex = 1000000;
			  else if (document.getElementById) document.getElementById("stealth_pop_fr").style.zIndex = 1000000;
			
			
			  if (document.layers) document.layers.stealth_pop_en.left = 10;
			  else if (document.all) document.all.stealth_pop_en.style.left = 10;
			  else if (document.getElementById) document.getElementById("stealth_pop_en").style.left = 10;
			  
			  if (document.layers) document.layers.stealth_pop_en.zIndex = 1000000;
			  else if (document.all) document.all.stealth_pop_en.style.zIndex = 1000000;
			  else if (document.getElementById) document.getElementById("stealth_pop_en").style.zIndex = 1000000;
			
			
			  if (document.layers) document.layers.stealth_pop_us.left = 10;
			  else if (document.all) document.all.stealth_pop_us.style.left = 10;
			  else if (document.getElementById) document.getElementById("stealth_pop_us").style.left = 10;
			  
			  if (document.layers) document.layers.stealth_pop_us.zIndex = 1000000;
			  else if (document.all) document.all.stealth_pop_us.style.zIndex = 1000000;
			  else if (document.getElementById) document.getElementById("stealth_pop_us").style.zIndex = 1000000;
			
						
			  if (document.layers) document.layers.stealth_pop_de.left = 10;
			  else if (document.all) document.all.stealth_pop_de.style.left = 10;
			  else if (document.getElementById) document.getElementById("stealth_pop_de").style.left = 10;
			  
			  if (document.layers) document.layers.stealth_pop_de.zIndex = 1000000;
			  else if (document.all) document.all.stealth_pop_de.style.zIndex = 1000000;
			  else if (document.getElementById) document.getElementById("stealth_pop_de").style.zIndex = 1000000;
			 
			  if (document.layers) document.layers.stealth_pop_es.left = 10;
			  else if (document.all) document.all.stealth_pop_es.style.left = 10;
			  else if (document.getElementById) document.getElementById("stealth_pop_es").style.left = 10;
			  
			  if (document.layers) document.layers.stealth_pop_es.zIndex = 1000000;
			  else if (document.all) document.all.stealth_pop_es.style.zIndex = 1000000;
			  else if (document.getElementById) document.getElementById("stealth_pop_es").style.zIndex = 1000000;
			
			  if (document.layers) document.layers.stealth_pop_it.left = 10;
			  else if (document.all) document.all.stealth_pop_it.style.left = 10;
			  else if (document.getElementById) document.getElementById("stealth_pop_it").style.left = 10;
			  
			  if (document.layers) document.layers.stealth_pop_it.zIndex = 1000000;
			  else if (document.all) document.all.stealth_pop_it.style.zIndex = 1000000;
			  else if (document.getElementById) document.getElementById("stealth_pop_it").style.zIndex = 1000000;
			  
			  if (document.layers) document.layers.stealth_pop_in.left = 10;
			  else if (document.all) document.all.stealth_pop_in.style.left = 10;
			  else if (document.getElementById) document.getElementById("stealth_pop_in").style.left = 10;
			  
			  if (document.layers) document.layers.stealth_pop_in.zIndex = 1000000;
			  else if (document.all) document.all.stealth_pop_in.style.zIndex = 1000000;
			  else if (document.getElementById) document.getElementById("stealth_pop_in").style.zIndex = 1000000;
			
			  if (document.layers) document.layers.stealth_pop_sg.left = 10;
			  else if (document.all) document.all.stealth_pop_sg.style.left = 10;
			  else if (document.getElementById) document.getElementById("stealth_pop_sg").style.left = 10;
			  
			  if (document.layers) document.layers.stealth_pop_sg.zIndex = 1000000;
			  else if (document.all) document.all.stealth_pop_sg.style.zIndex = 1000000;
			  else if (document.getElementById) document.getElementById("stealth_pop_sg").style.zIndex = 1000000;
			
			  if (document.layers) document.layers.stealth_pop_cn.left = 10;
			  else if (document.all) document.all.stealth_pop_cn.style.left = 10;
			  else if (document.getElementById) document.getElementById("stealth_pop_cn").style.left = 10;
			  
			  if (document.layers) document.layers.stealth_pop_cn.zIndex = 1000000;
			  else if (document.all) document.all.stealth_pop_cn.style.zIndex = 1000000;
			  else if (document.getElementById) document.getElementById("stealth_pop_cn").style.zIndex = 1000000;
			
			  if (document.layers) document.layers.stealth_pop_jp.left = 10;
			  else if (document.all) document.all.stealth_pop_jp.style.left = 10;
			  else if (document.getElementById) document.getElementById("stealth_pop_jp").style.left = 10;
			  
			  if (document.layers) document.layers.stealth_pop_jp.zIndex = 1000000;
			  else if (document.all) document.all.stealth_pop_jp.style.zIndex = 1000000;
			  else if (document.getElementById) document.getElementById("stealth_pop_jp").style.zIndex = 1000000;
			
			  if (document.layers) document.layers.stealth_pop_ko.left = 10;
			  else if (document.all) document.all.stealth_pop_ko.style.left = 10;
			  else if (document.getElementById) document.getElementById("stealth_pop_ko").style.left = 10;
			  
			  if (document.layers) document.layers.stealth_pop_ko.zIndex = 1000000;
			  else if (document.all) document.all.stealth_pop_ko.style.zIndex = 1000000;
			  else if (document.getElementById) document.getElementById("stealth_pop_ko").style.zIndex = 1000000;


			  if (document.layers) document.layers.bg.left = -5;
			  else if (document.all) document.all.bg.style.left = -5;
			  else if (document.getElementById) document.getElementById("bg").style.left = -5;
			
			  if (document.layers) document.layers.bg.top = -15;
			  else if (document.all) document.all.bg.style.top = -15;
			  else if (document.getElementById) document.getElementById("bg").style.top = -15;
			  
			
			  hideAd('stealth_pop_fr');  
			  hideAd('stealth_pop_en');
			  hideAd('stealth_pop_us');  
			  hideAd('stealth_pop_de'); 
			  hideAd('stealth_pop_es');   
			  hideAd('stealth_pop_it'); 
			  hideAd('stealth_pop_in');  
			  hideAd('stealth_pop_sg');   
			  hideAd('stealth_pop_cn');   
			  hideAd('stealth_pop_jp');   
			  hideAd('stealth_pop_ko');  			  
			  hideAd('bg');    
			 
			}
			//--------------------------------------------Floating code------------------------------------
			//--------------------------------------------Pl do not modify it------------------------------
			
			var ns = (navigator.appName.indexOf("Netscape") != -1);
			var d = document;
			function JSFX_FloatDiv(id, sx, sy)
			{
				var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
				var px = document.layers ? "" : "px";
				window[id + "_obj"] = el;
				if(d.layers)el.style=el;
				el.cx = el.sx = sx;el.cy = el.sy = sy;
				el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
			
				el.floatIt=function()
				{
					var pX, pY;
					pX = (this.sx >= 0) ? 0 : ns ? innerWidth : 
					document.documentElement && document.documentElement.clientWidth ? 
					document.documentElement.clientWidth : document.body.clientWidth;
					pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? 
					document.documentElement.scrollTop : document.body.scrollTop;
					if(this.sy<0) 
					pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? 
					document.documentElement.clientHeight : document.body.clientHeight;
					this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
					this.sP(this.cx, this.cy);
					setTimeout(this.id + "_obj.floatIt()", 40);
					 //*******corections OH pour masquer des selects****//
					if ((document.layers && document.layers[id].visibility == 'show')||(document.all &&document.all[id].style.visibility == 'visible')||(document.getElementById && document.getElementById(id).style.visibility == 'visible')){
						setSelectVisibility(false,el);
					} else {
						setSelectVisibility(true,el);
					}
					//********fin corrections *************************//
				}
				return el;
			}
			
			
			//-----------------------------End of floating code-------------------------------------
		
		
			//Timer function
			// to declare timer example - for 10 minutes assign secs = 600
			var secs = insec;
			var timerID = null;
			var timerRunning = false;
			var delay = 1000;
			
			function timerfx()
			{ 
				if (secs==0)
				{
					if(timerRunning)
					clearTimeout(timerID);
					timerRunning = false;
					recontact_crmfx();
					window.onerror=null;
				}
				else
				{
					//self.status = secs;
					secs = secs - 1;
					timerRunning = true;
					timerID = self.setTimeout("timerfx()", delay);
				}
			}
			
			
			function imgfx(x)
			{
			
				var elem = document.getElementById("imgx");
				elem.src = "http://www.crm-metrix.fr/projects/invitetrack.asp?project="+x+"popin_"+pid;
			}
			
			
			if (sniffernet==1)
			{
				timerfx();
				document.write("<img id='imgx' height='0' width='0'>");
			
			}
			
		
			
			function recontact_crmfx()
			{
			
				//Browser Sniffer
				var agt=navigator.userAgent.toLowerCase();
				var client=(agt.indexOf("msie"));
			
				//reading popseen cookie to make sure the user hasn't taken the survey within past 6 months
				var thiscookie=readCookie("crmseen");
				if(thiscookie!="seen")
				{
			
					//***Random Number Generated For Control Sample / Test Sample.
					rndNumber=readCookie("rndNumber");
						var x;
						x=Math.random()*100;
						//writeCookie("rndNumber",x,1);
						//alert(x);
						donex1=readCookie("donex1");
						//alert(donex1);
					
					//****************
					//***Entry Survey Interception Rate. (30% Interception Rate)		
					if (x<=entry)
					{
						
						showAd('entry_pop');
						adDown('entry_pop');
						JSFX_FloatDiv("entry_pop", wtx2,150).floatIt();
						imgfx('entry');
			
					}
				
				 if (x>(100-exit))
					{
						showAd('bg');
						adDown('bg');	
									
					if (langCode=='fr')
					 {	showAd('stealth_pop_fr');
						//adDown('stealth_pop_fr');		 
						JSFX_FloatDiv("stealth_pop_fr", posx,100).floatIt();
						if(readCookie("donex1") != 1){imgfx('exit_fr'); writeCookie("donex1",1,5);} 
						}
						
		
					if (langCode=='uk')
					   {showAd('stealth_pop_en');
						//adDown('stealth_pop_fr');			 
						JSFX_FloatDiv("stealth_pop_en", posx,100).floatIt();
						if(readCookie("donex1") != 1){imgfx('exit_en'); writeCookie("donex1",1,5);}
					  }
						
					if (langCode=='us')
					 {	showAd('stealth_pop_us');
						//adDown('stealth_pop_us');		 
						JSFX_FloatDiv("stealth_pop_us", posx,100).floatIt();
						if(readCookie("donex1") != 1){imgfx('exit_us'); writeCookie("donex1",1,5);}
						}
		
					
					if (langCode=='de')
					 {	showAd('stealth_pop_de');
						//adDown('stealth_pop_de');		 
						JSFX_FloatDiv("stealth_pop_de", posx,100).floatIt();
						if(readCookie("donex1") != 1){imgfx('exit_de'); writeCookie("donex1",1,5);}
						}
						
					if (langCode=='es')
					 {	showAd('stealth_pop_es');
						//adDown('stealth_pop_es');		 
						JSFX_FloatDiv("stealth_pop_es", posx,100).floatIt();
						if(readCookie("donex1") != 1){imgfx('exit_es'); writeCookie("donex1",1,5);}
						}	 
						
					if (langCode=='it')
					 {	showAd('stealth_pop_it');
						//adDown('stealth_pop_it');		 
						JSFX_FloatDiv("stealth_pop_it", posx,100).floatIt();
						if(readCookie("donex1") != 1){imgfx('exit_it'); writeCookie("donex1",1,5);}
						} 
		
					if (langCode=='in')
					 {	showAd('stealth_pop_in');
						//adDown('stealth_pop_in');		 
						JSFX_FloatDiv("stealth_pop_in", posx,100).floatIt();
						if(readCookie("donex1") != 1){imgfx('exit_in'); writeCookie("donex1",1,5);}
						} 
		
					if (langCode=='sg')
					 {	showAd('stealth_pop_sg');
						//adDown('stealth_pop_sg');		 
						JSFX_FloatDiv("stealth_pop_sg", posx,100).floatIt();
						if(readCookie("donex1") != 1){imgfx('exit_sg'); writeCookie("donex1",1,5);}
						} 
		
					if (langCode=='cn')
					 {	showAd('stealth_pop_cn');
						//adDown('stealth_pop_cn');		 
						JSFX_FloatDiv("stealth_pop_cn", posx,100).floatIt();
						if(readCookie("donex1") != 1){imgfx('exit_cn'); writeCookie("donex1",1,5);}
						} 
		
					if (langCode=='jp')
					 {	showAd('stealth_pop_jp');
						//adDown('stealth_pop_jp');		 
						JSFX_FloatDiv("stealth_pop_jp", posx,100).floatIt();
						if(readCookie("donex1") != 1){imgfx('exit_jp'); writeCookie("donex1",1,5);}
						} 
		
					if (langCode=='ko')
					 {	showAd('stealth_pop_ko');
						//adDown('stealth_pop_ko');		 
						JSFX_FloatDiv("stealth_pop_ko", posx,100).floatIt();
						if(readCookie("donex1") != 1){imgfx('exit_ko'); writeCookie("donex1",1,5);}
						} 
			
					}
			
					if (x>entry && x<=(100-exit))
					{
						//writing cookie which expires in 24 hrs
						writeCookie("crmseen","seen",1*24);
					}
					
				}
			}
			
			//------------------------------------------------------------------------------------------------------------
			//-------------------------- CRMMETRIX TRACKING CODES - DO NOT MODIFY ----------------------------------------
			//------------------------------------------------------------------------------------------------------------
			
			
			loadStyleSheet(maindirurlpopcrm+"/style.css");
			
}


