
/*
 * cmtools.js
 * Helper JavaScript Librairy for CoreMetrics Tagging
 *
 */
    ////////////////////////////   
    // CoreMetrics Configuration Parameters
    ////////////////////////////    
    var cm_ClientID = "90226234"; // This Parameter should content Coremetrics ClientID for the Site/Country
		cm_JSFPCookieDomain = "maybelline.it";  // This Parameter should contain the target production domain name. Ex : www.loreal-pro.fr

    ////////////////////////////   
    // CMTools Configuration Parameters
    ////////////////////////////      
    var CoreCM_CallDefaultTagging = true; // This parameter should be set to false, when coremetrics tagging is performed directly within the pages (either using Shared Webbox, or using explicit Coremetrics function calls). When using the "Automated implementation" with the tagging plan defined in the CMTools.js file, it should be set to true
    var CoreCM_Hosts = "www.maybelline.it;"; // This parameter is used to identify whether we are on the Production site, or in integration or  validation
        // We can add severals url  Ex :  wwww.lorealpro.fr;loreal-pro.fr
        // This parameter is used to automaticaly call cmSetProduction() when on the domain name is in the CoreCM_Hosts
        // IMPORTANT NOTE : on L'Oreal Coremetrics Implementation rolled out in 2009, no test Environnement will be setup by Coremetrics
        // THUS : it is not Mandatory to call cmSetProduction()

   //Main function of CoreMetrics
    function CoreCM_Main(){         
         CoreCM_SetProduction();  
    }

   //Set the CoreMetrics Production Mode depending on the DomainName defined in CoreCM_Hosts
    function CoreCM_SetProduction(){
        if (CoreCM_Hosts.indexOf(window.location.host) != -1) {         
        	     cmSetProduction();
         }
    }

    ////////////////////////////   
    // Main Function Call
    ////////////////////////////    
    CoreCM_Main();
