// exponent Javascript Support Systems

EXPONENT = {};

// for back-compat
eXp = EXPONENT;

// map certian php CONSTANTS to JS vars

EXPONENT.LANG = "English - US";
EXPONENT.PATH_RELATIVE = "/";
EXPONENT.URL_FULL = "http://www.centaursoft.com/";
EXPONENT.BASE = "/home/centaur/public_html/";
EXPONENT.THEME_RELATIVE = "/themes/centaursoft20111101theme/";
EXPONENT.ICON_RELATIVE = "/framework/core/assets/images/";
EXPONENT.JS_FULL = 'http://www.centaursoft.com/framework/core/js/';
EXPONENT.YUI3_VERSION = '3.4.0';
EXPONENT.YUI3_PATH = '/external/yui/3.4.0/build/';
EXPONENT.YUI3_URL = 'http://www.centaursoft.com/external/yui/3.4.0/build/';
EXPONENT.YUI2_VERSION = '2.9.0';
EXPONENT.YUI2_PATH = '/external/yui/2in3/dist/2.9.0/build/';
EXPONENT.YUI2_URL = 'http://www.centaursoft.com/external/yui/2in3/dist/2.9.0/build/';




EXPONENT.YUI3_CONFIG = {
    combine:1,
    // root:         EXPONENT.YUI3_PATH.substr(1),
    // base:         EXPONENT.YUI3_PATH,
    comboBase:    EXPONENT.PATH_RELATIVE+'external/minify/min/?b='+EXPONENT.PATH_RELATIVE.substr(1)+'external/yui&f=',
    filter: {
        'searchExp': ".js&", 
        'replaceStr': ".js,"
    },
    //combine: false,
    //filter:   "debug",
    // onFailure: function (error) {
    //   console.debug(error);  
    // },
    groups: {
        yui2: {
            combine:false,
            base: EXPONENT.YUI2_PATH,
            root: EXPONENT.YUI2_VERSION+'/',
            comboBase:EXPONENT.PATH_RELATIVE+'external/minify/min/?b='+EXPONENT.PATH_RELATIVE.substr(1)+'external/yui/2in3/dist&f=',
            patterns:  {
                "yui2-": {
                    configFn: function (me) {
                        if(/-skin|reset|fonts|grids|base/.test(me.name)) {
                            //return me;
                            me.type = "css";
                            me.path = me.path.replace(/\.js/, ".css");
                            me.path = me.path.replace(/\/yui2-skin/, "/assets/skins/sam/yui2-skin");
                        }   
                    }   
                }   
            }   
        }
    }
};
//console.debug(EXPONENT.YUI3_CONFIG);


