
var PE = {
     _import: function(url){
	 	
        var src = document.getElementsByTagName("script")[0].src;
        var nSrc = src.replace(/(.[^\/]*?).js(\?.*)?$/, "/");
		jQuery.getScript(nSrc + url);
    },
	  
    progress: function(props){
        /** Load Up Properties Object **/
		PE.parameters = props;
		PE._import("req/patches-retouches.js");
		PE._import("req/init.js");
		/** Import Plugins ** /
		 *   - This will be the new method to associate plugins with functionality from the Param component of Progressive Enhancement
		 *   - TODO: Document the Plugin Shell for Developers
		 **/
		/** Required GoC plugins **/
		if ((PE.parameters.slideshow) && (typeof PE.parameters.slideshow != "undefined") ) { 
		 	PE._import("plug/ss-md.js") /** Slideshow player **/
			} ;
		if ((PE.parameters.multimedia) && (typeof PE.parameters.multimedia != "undefined") ) { 
		 	PE._import("plug/jquery.mp-jm.js") /** media player **/
			} ;
    }
   
};
