// Modified and taken from ui_demos.js
$(function(){
	// Parlor Ext Pic Dialog			
	$('#parlorExtDialog').dialog({
		modal: true,
		overlay: {
			opacity: 0.7,
			background: "black"
			},
		draggable: false,
		resizable: false,
		autoOpen: false,
		// Width is 20px larger than image width
		width: 620,
		buttons: false
	});
	// Buffet 1 Pic Dialog			
	$('#buffet1Dialog').dialog({
		modal: true,
		overlay: {
			opacity: 0.7,
			background: "black"
			},
		draggable: false,
		resizable: false,
		autoOpen: false,
		// Width is 20px larger than image width
		width: 620,
		buttons: false
	});
	// Buffet 2 Pic Dialog			
	$('#buffet2Dialog').dialog({
		modal: true,
		overlay: {
			opacity: 0.7,
			background: "black"
			},
		draggable: false,
		resizable: false,
		autoOpen: false,
		// Width is 20px larger than image width
		width: 500,
		buttons: false
	});



	// Parlor Ext Dialog Link
	$('#parlorExtDialog_link').click(function(){
		$('#parlorExtDialog').dialog('open');
		return false;
	});
	// Buffet 1 Dialog Link
	$('#buffet1Dialog_link').click(function(){
		$('#buffet1Dialog').dialog('open');
		return false;
	});
	// Buffet 2 Dialog Link
	$('#buffet2Dialog_link').click(function(){
		$('#buffet2Dialog').dialog('open');
		return false;
	});



	//hover states on the static widgets
	$('#parlorExtDialog_link, #buffet1Dialog_link, #buffet2Dialog_link').hover(
		function() { $(this).removeClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
});