/**
 * Main CitiSync Script
 */
(function(){
    var cs = window.cs = {
        
        /* Global Variables */
        
        // logging variables
        DEBUG: true,
       
        // url info
        rootUrl : location.protocol + "//" + location.host,
        pageUrl : location.protocol + "//" + location.host + location.pathname,
        scriptUrl : location.href,
        
        lbFactory: null
    };
    
    // shortcuts
    cs.debug = (top.debug) ? top.debug : function(){};

    // get lightbox factory
    if(typeof window.ModalBoxFactory=='function') {
        cs.lbFactory = new ModalBoxFactory();
    }
     
    /**
     * Standardized show event for all modal boxes
     */
    cs.modal_show = function(hash) {
        hash.w.show();
    }
    
    /**
     * Standardized hide event for all modal boxes
     */
    cs.modal_hide = function(hash) {
        hash.o.remove();
        hash.w.hide();
    }
})();
