// JavaScript Document

function BookNew()
{
	this.init	= function()
	{
		$(window).load
		(
			function()
			{
				
				$('#book-now fieldset select').change
				(
					function()
					{
						var class_name	= "label." + $(this).attr('class');
						var parent		= $(this).parent();
						$(class_name, parent).html($(this).val());
					}
				);
				
				$('#book-now fieldset select').click
				(
					function()
					{
						$(this).trigger("change");	
					}
				);
				
				$('#book-now fieldset select').each
				(
					function(key, value)
					{
						var sb	= value;
						
						$('option:selected', value).each
						(
							function(key, value)
							{
								$(sb).trigger("change");
							}
						);
					}
				);
			}
		)
	}
}


new BookNew().init();
