$(document).ready(function(){



});

function closeModal() {
	jQuery.modal.close();	
}

//$("a#close").click(function(e) {
	//	 e.preventDefault();
		//  $("#basicModalContent").modal({close:false});
		//});

function getWindow(model)
{ 		
	$("#basicModalContent").modal({onOpen:modalOpen});
	fillData(model);
	$("#trimNav").tabs(
	{fx:{opacity:'toggle'}}); //Toggle thru tabs if available.	  		
}

/**
 * When the open event is called, this function will be used to 'open'
 * the overlay, container and data portions of the modal dialog.
 *
 * onOpen callbacks need to handle 'opening' the overlay, container
 * and data.
 */

function modalOpen (dialog) {
	dialog.overlay.fadeIn("slow", function () {
		dialog.container.fadeIn("slow", function () {
			dialog.data.slideDown("slow");
		});
	});
}

