<!--
var cm_ClientID="90286346";cm_JSFPCookieDomain="www.garnier.ua";var HashTableCategories=new Array();var CoreCM_CallDefaultTagging=true;var CoreCM_Hosts="garnier.ua";var CoreCM_PageIdWithGet=true;var CoreCM_Url=URLDecode(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("/_uk/_ua/herbacolor/")!=-1){cmCreatePageviewTag("Herbashine index.aspx page","HERBASHINE_INDEX",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/_uk/_ua/pure-active/expert/")!=-1){cmCreatePageviewTag("Pure Active Center index.aspx page","PURE_ACTIVE_CENTER_INDEX",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/_uk/_ua/pure-active/kiss/index.aspx")!=-1){cmCreatePageviewTag("Pure Active Kiss index.aspx page","PURE_ACTIVE_KISS_INDEX",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/_uk/_ua/pure-active/kiss/winners.aspx")!=-1){cmCreatePageviewTag("Pure Active Kiss winner page","PURE_ACTIVE_KISS_WINNERS",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/_uk/_ua/pure-active/kiss/register.aspx")!=-1){cmCreatePageviewTag("Pure Active Kiss register page","PURE_ACTIVE_KISS_REGISTER",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/_uk/_ua/pure-active/kiss/rules.aspx")!=-1){cmCreatePageviewTag("Pure Active Kiss rules","PURE_ACTIVE_KISS_RULES",null,null);}else if(CoreCM_Url.toLowerCase().indexOf("/_uk/_ua/pure-active/expert/index.aspx?utm_source=0day.kiev.ua&utm_medium=500*200&utm_campaign=garnierpureactive_jan")!=-1){cmCreatePageviewTag("Pure Active Campaign banner","PURE_ACTIVE_BANNER",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();}}}
function URLDecode(encoded)
{var HEXCHARS="0123456789ABCDEFabcdef";var plaintext="";var i=0;while(i<encoded.length){var ch=encoded.charAt(i);if(ch=="+"){plaintext+=" ";i++;}else if(ch=="%"){if(i<(encoded.length-2)&&HEXCHARS.indexOf(encoded.charAt(i+1))!=-1&&HEXCHARS.indexOf(encoded.charAt(i+2))!=-1){plaintext+=unescape(encoded.substr(i,3));i+=3;}else{alert('Bad escape combination near ...'+encoded.substr(i));plaintext+="%[ERROR]";i++;}}else{plaintext+=ch;i++;}}
return plaintext;}
