// 
//  crown-hotels.js
//  Crown Hotels JavaScript
//  
//  Created by Victor Nguyen on 2009-08-12.
//  Copyright 2009 igloo digital. All rights reserved.
// 

// Hotels-specific functionality
Crown.Hotels = {
	
	init: function () {
		this.Header.init();
		Crown.Common.HotelBooking.init();
	},
	
	Header: {
		
		SWF_PATH: '/library/flash/hotels/header.swf',
		EMBED_ID: 'hotels_flash',
	
		init: function () {

			var flashvars = {
				xml: '/xml/hotels'
			};

			var params = {
				allowScriptAccess: "always",
				wmode: 'opaque'
			};

			var attributes = {
				
			};

			swfobject.embedSWF(Crown.Hotels.Header.SWF_PATH, Crown.Hotels.Header.EMBED_ID, "958", "366", Crown.Common.Flash.MIN_VERSION, Crown.Common.Flash.EXPRESSINSTALL_PATH,  flashvars, params, attributes, Crown.Common.Flash.embedCallBack);
		}
	}
	
};


// on domready
$(document).ready(function(){
	Crown.Hotels.init();
});