// 
//  crown-shopping.js
//  Crown Shopping JavaScript
//  
//  Created by Victor Nguyen on 2009-08-19.
//  Copyright 2009 igloo digital. All rights reserved.
// 

// Dining-specific functionality
Crown.Shopping = {
	
	init: function () {
		Crown.Shopping.Browser.Luxury.init();
		Crown.Shopping.Browser.GeneralFashion.init();
		Crown.Shopping.Browser.Merchandise.init();
	},
	
	Browser: {
		
		Luxury: {
			LIST_ID: 'shopping_browser_list_luxury',
			DETAILS_ID: 'shopping_browser_info_luxury',
			AJAX_URL: '/ajax/shopping-luxury/', // store id from selected a[rel] gets appended to this below
			init: function() {
				Crown.Common.Browser.init(this.LIST_ID, this.DETAILS_ID, this.AJAX_URL);
			}
		},
		
		GeneralFashion: {
			LIST_ID: 'shopping_browser_list_general',
			DETAILS_ID: 'shopping_browser_info_general',
			AJAX_URL: '/ajax/shopping-general/', // store id from selected a[rel] gets appended to this below
			init: function() {
				Crown.Common.Browser.init(this.LIST_ID, this.DETAILS_ID, this.AJAX_URL);
			}
		},
		
		Merchandise: {
			LIST_ID: 'shopping_browser_list_merch',
			DETAILS_ID: 'shopping_browser_info_merch',
			AJAX_URL: '/ajax/shopping-merch/', // restaurant id from selected a[rel] gets appended to this below
			init: function() {
				Crown.Common.Browser.init(this.LIST_ID, this.DETAILS_ID, this.AJAX_URL);
			}
		}
		
	}
	
};


// on domready
$(document).ready(function(){
	Crown.Shopping.init();
});