// Instantiate and configure Loader: 
var loader = new YAHOO.util.YUILoader({ 
 
    require: ["utilities", "button", "container", "dom", "event", "element", "tabview", "history", "animation","autocomplete","connection","datasource"],
 
    loadOptional: true, 
 
    onSuccess: function() { 
	
	 try {
		if( g_regionsContollerObject ) {
	 		YAHOO.util.Event.addListener( g_regionsContollerObject.filterOptionElementIdArray, 'change', doPubSearch, { sNameElID: 'r_search_pub_name', sLocationElID: 'r_search_pub_location' }, this );
		}
	  }
	  catch( e ) { }

    }, 
 
    timeout: 10000, 
    combine: true 
}); 

loader.addModule({ 
    name: "checklocation",
    type: "js",
    fullpath: "/extension/gmaps/design/standard/javascript/checklocation.js" 
});  
 
loader.addModule({ 
    name: "regions",
    type: "js",
    fullpath: "/extension/gpgdesign/design/ezflow/javascript/regions.js" 
});  

loader.addModule({ 
    name: "initmap",
    type: "js",
    fullpath: "/extension/gmaps/design/standard/javascript/initmap.js" 
});  

loader.addModule({ 
    name: "maplocate",
    type: "js",
    fullpath: "/extension/gmaps/design/standard/javascript/locate.js" 
});

loader.addModule({ 
    name: "mapsearch",
    type: "js",
    fullpath: "/extension/gmaps/design/standard/javascript/mapsearch.js" 
});  


loader.require( "checklocation" );						
loader.require( "regions" );						
loader.require( "initmap" );						
loader.require( "maplocate" );						
loader.require( "mapsearch" );						

loader.insert(); 

