/**
 * @fileoverview This file contains JavaScript objects that support
 * the L'Oreal Core System V2.2. This file is commented using conventions
 * that support the documenting tool JSDoc
 * {@link http://sourceforge.net/projects/jsdoc JSDoc}
 * Syntax for the comments can be found at:
 * {@link http://jsdoc.sourceforge.net/#tagref JSDoc Comments}
 * {@link http://java.sun.com/j2se/javadoc/writingdoccomments/ Javadoc Comments}
 *
 * @author INS - Fatri Nesimi: <a href="mailto:fatri.nesimi@ins.com">fatri.nesimi@ins.com</a>
 * @author INS - Anthony Sena: <a href="mailto:anthony.sena@ins.com">anthony.sena@ins.com</a>
 * @version 1.0
 */
/** 
 * This function was supported in Ajax so called Atlas. Unfortunately, it seems
 * not to be supported so to let the rest of javascript unchanged I am creating this function instead
 *
 */
 /*
function $(elementId) {
   return document.getElementById(elementId);
}
*/
/**
 * IsTypeDefined is a boolean indicating wether the TYPE is defined or no
 * which is part of the MS AJAX
 */
var IsTypeDefined=false; 
/** 
 * Determines if TYPE is defined and if so, it set a global variable to true
 */
function SetTypeState() {
       if (typeof(Type)!='undefined') {
               IsTypeDefined=true
       }
       else {
            IsTypeDefined=false;
            eval("Core=function() {  }");
       
       }
}
/** 
 * calls SetTypeState and sets it to true if TYPE is defined
 */
SetTypeState();


/*
 * It Creates a namespace using MS Ajax Libraries "making javascript easier" if TYPE is defined
 */
 if (IsTypeDefined){ Type.registerNamespace("Core");  }

