var pathRoots = {
	requirejsPlugins: '/static/main/third_party/requirejs_plugins/',
	thirdParty: '/static/main/third_party/',
	thirdPartyJQueryPlugins: '/static/main/third_party/jquery_plugins/'
}


require.config({
	baseUrl: '/static/main/js',
	urlArgs: 'v=4',
	paths: {
		// require.js plugins
		'order': pathRoots.requirejsPlugins + 'order',
		'async': pathRoots.requirejsPlugins + 'async',
		
		// Third-party libraries
		'jquery': pathRoots.thirdParty + 'jquery-1.7.1.min',
		'underscore': pathRoots.thirdParty + 'underscore-1.2.1.min',
		'backbone': pathRoots.thirdParty + 'backbone-0.5.3-amd',
		'jqueryui/widget': pathRoots.thirdParty + 'jquery-ui-1.8.16-widget-amd',
		'infobox': '/static/yelpgoogleplacemarks/js/lib/infobox',

		// Packages
		'hzdg': '/static/main/js/hzdg',
		'properties': '/static/properties/js',
		'googleplacemarks': '/static/googleplacemarks/js/googleplacemarks',
		'yelpgoogleplacemarks': '/static/yelpgoogleplacemarks/js/yelpgoogleplacemarks',
		
		'ajax_table': 'hzdg/ajax_table',

		// Third-party jQuery plugins
		'jquery.fancybox': pathRoots.thirdPartyJQueryPlugins + 'jquery.fancybox-1.3.4.pack',
		'jquery.jcarousel': pathRoots.thirdPartyJQueryPlugins + 'jquery.jcarousel.min',
		'jquery.mousewheel': pathRoots.thirdPartyJQueryPlugins + 'jquery.mousewheel',
		'jquery.selectbox': pathRoots.thirdPartyJQueryPlugins + 'jquery.selectbox',
		'jquery.jscrollpane': pathRoots.thirdPartyJQueryPlugins + 'jquery.jscrollpane.min',
		'jquery.cycle': pathRoots.thirdPartyJQueryPlugins + 'jquery.cycle.all',

		// Our jQuery plugins
		'jquery.nearbyslideshow': 'jquery.nearbyslideshow',
		'jquery.expandabletable': 'jquery.expandabletable',
		'jquery.expandabletabletogglelink': 'jquery.expandabletabletogglelink',
		'jquery.tabify': 'jquery.tabify',
		'apartmentsearchform': '/static/properties/js/apartmentsearchform',

		// Our modules
		'quicksearchview': 'quicksearchview',
		'amenitiescheckboxdropdown': 'amenitiescheckboxdropdown',
		'propertygallery': '/static/properties/js/propertygallery',
		'placemarkmap': '/static/properties/js/placemarkmap',
        'propertyplacemark': '/static/properties/js/propertyplacemark',
        'propertyplacemarklist': '/static/properties/js/propertyplacemarklist'
	}
});

