<!--
var cm_ClientID="90300698";cm_JSFPCookieDomain="www.garnier.com";var HashTableCategories=new Array();var CoreCM_CallDefaultTagging=true;var CoreCM_Hosts="master.garnier.com";var CoreCM_PageIdWithGet=true;var CoreCM_Url=document.URL;var CoreCM_PathName=window.location.pathname;CoreCM_Main();function CoreCM_Main(){CoreCM_SetProduction();if(CoreCM_CallDefaultTagging)
{CoreCM_SetTagging();}}
function CoreCM_SetTagging(){if(CoreCM_Url.toLowerCase().indexOf("/index.aspx")!=-1){cmCreatePageviewTag("Garnier country dispatch page (geolocalised)","DISPATCH_INTER_COUNTRY_GEO",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/index2.aspx")!=-1){cmCreatePageviewTag("Garnier country dispatch page (not geolocalised)","DISPATCH_INTER_COUNTRY",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/nutritionist/index.apsx")!=-1){cmCreatePageviewTag("Nutritionist country dispatch","DISPATCH_INTER_NUTRITIONIST",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/pure/index.aspx")!=-1){cmCreatePageviewTag("Pure country dispatch","DISPATCH_INTER_PURE",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/pure-active/index.aspx")!=-1){cmCreatePageviewTag("Pure Active country dispatch","DISPATCH_INTER_PUREACTIVE",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/ultraliftprox/index.aspx")!=-1){cmCreatePageviewTag("UltraLift Pro-X country dispatch","DISPATCH_INTER_ULPROX",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/vitalrestore/index.aspx")!=-1){cmCreatePageviewTag("Vital Restore country dispatch","DISPATCH_INTER_VITALRESTORE",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/summerbody/index.aspx")!=-1){cmCreatePageviewTag("Summer Body country dispatch","DISPATCH_INTER_SUMMERBODY",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/bodytonic/index.aspx")!=-1){cmCreatePageviewTag("Bodytonic country dispatch","DISPATCH_INTER_BODYTONIC",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/ambre_solaire/index.aspx")!=-1){cmCreatePageviewTag("Ambre Solaire country dispatch","DISPATCH_INTER_AS",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/self_tan/index.aspx")!=-1){cmCreatePageviewTag("Selftan country dispatch","DISPATCH_INTER_SELFTAN",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/fructis/index.aspx")!=-1){cmCreatePageviewTag("Fructis country dispatch","DISPATCH_INTER_FRUCTIS",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/fructis-style/index.aspx")!=-1){cmCreatePageviewTag("Fructis Style country dispatch","DISPATCH_INTER_FRUCTISSTYLE",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/100color/index.aspx")!=-1){cmCreatePageviewTag("100% Color country dispatch","DISPATCH_INTER_100COLOR",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/herbashine/index.aspx")!=-1){cmCreatePageviewTag("HerbaShine country dispatch","DISPATCH_INTER_HERBASHINE",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/color-shine/index.aspx")!=-1){cmCreatePageviewTag("Color and Shine country dispatch","DISPATCH_INTER_COLORSHINE",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/garnier-nutrisse/index.aspx")!=-1){cmCreatePageviewTag("Nutrisse country dispatch","DISPATCH_INTER_NUTRISSE",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/multilights_kit/index.aspx")!=-1){cmCreatePageviewTag("Multi-lights Kit country dispatch","DISPATCH_INTER_MLK",null,null);}else{CoreCM_SetDefaultTagging();}}
function CoreCM_SetDefaultTagging(){if(CoreCM_PageIdWithGet){cmCreatePageviewTag(CoreCM_getPageIDWithGet(),CoreCM_getCategoryIDFromPath(),null,null);}
else{cmCreatePageviewTag(null,null,null,null);}}
function CoreCM_getPageIDWithGet(){var strUrlRacine=window.location.pathname;var strUrlGet=window.location.href;var tempIndex1=strUrlGet.indexOf("?");if(tempIndex1!=-1){strUrlGet=strUrlGet.substr(tempIndex1,strUrlGet.length);}
else{strUrlGet="";}
var tempIndex2=strUrlGet.indexOf("/");if(tempIndex2!=0){strUrlRacine=strUrlRacine.substr(1,strUrlRacine.length);}
return strUrlRacine+strUrlGet;}
function CoreCM_getCategoryIDFromPath(){var strUrlRacine=window.location.pathname;var tempIndex1=strUrlRacine.lastIndexOf("/");if(tempIndex1!=-1){strUrlRacine=strUrlRacine.substr(0,tempIndex1+1);}
return strUrlRacine.replace("ContentManagerData/Sites/aspnet/","");}
function CoreCM_GetCatalogCategoryCodeFromGet(nomVariable)
{var CatalogCategoryCode=CoreCM_GetVarFromGet(nomVariable);var tempIndex1=CatalogCategoryCode.lastIndexOf("^");if(tempIndex1!=-1){CatalogCategoryCode=CatalogCategoryCode.substr(tempIndex1+1,CatalogCategoryCode.length);}
if(CatalogCategoryCode==null)CatalogCategoryCode="";return CatalogCategoryCode;}
function CoreCM_GetVarFromTitle(separator)
{var Elem=document.title;if((Elem=="")||(Elem==null))return"";else{if((separator=="")||(separator==null))return Elem;else{var tempIndex1=Elem.indexOf(separator);if(tempIndex1!=-1){Elem=Elem.substr(0,tempIndex1);}
return CoreCM_TrimAll(Elem);}}}
function CoreCM_GetVarFromDiv(nomVariable)
{var Elem=document.getElementById(nomVariable);if(Elem!=null){Elem=Elem.innerHTML;if(Elem==null)Elem="";}
else Elem="";return Elem;}
function CoreCM_GetVarFromInput(nomVariable)
{var Elem=document.getElementById(nomVariable);if(Elem!=null){Elem=Elem.value;if(Elem==null)Elem="";}
else Elem="";return Elem;}
function CoreCM_GetVarFromGet(nomVariable)
{var infos=location.href.substring(location.href.indexOf("?")+1,location.href.length)+"&";if(infos.indexOf("#")!=-1)infos=infos.substring(0,infos.indexOf("#"))+"&";var variable="";{nomVariable=nomVariable+"=";var taille=nomVariable.length;if(infos.indexOf(nomVariable)!=-1)
variable=infos.substring(infos.indexOf(nomVariable)+taille,infos.length).substring(0,infos.substring(infos.indexOf(nomVariable)+taille,infos.length).indexOf("&"));}
return CoreCM_Decode(variable);}
function CoreCM_Decode(tChaine){while(true){var i=tChaine.indexOf('+');if(i<0)break;tChaine=tChaine.substring(0,i)+'%20'+tChaine.substring(i+1,tChaine.length);}
return decodeURIComponent(tChaine);}
function CoreCM_ValidField(strVal){if((strVal=="")||(strVal==null)){return false;}
else{if(CoreCM_TrimAll(strVal).length!=0){return true;}
else{return false;}}}
function CoreCM_TrimAll(sString)
{if((sString=="")||(sString==null))return sString;else{while(sString.substring(0,1)==' ')
{sString=sString.substring(1,sString.length);}
while(sString.substring(sString.length-1,sString.length)==' ')
{sString=sString.substring(0,sString.length-1);}
return sString;}}
function CoreCM_SetProduction(){if(window.location.host.indexOf(CoreCM_Hosts)!=-1){cmSetProduction();}}
function addLoadEvent(func)
{var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){oldonload();func();}}}