/*
 * SimpleModal Basic Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2010 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: basic.js 236 2010-03-09 06:04:40Z emartin24 $
 *
 */

function getDetail(id)
{
 
$(document).ready(function () {


var htmlheight = document.body.parentNode.scrollHeight +15;
//window.alert(htmlheight);
	//$('.menudiv a').click(function (e) {
		//e.preventDefault();
		$('.basic-modal-content').modal({overlayCss:{height:htmlheight+'px'},position:['2%',],maxHeight:1600,onShow: function (dialog) {
	// Access elements inside the dialog
	// Useful for binding events, initializing other plugins, etc.

	$('#simplemodal-container').css('height', 'auto');
	
		var turl='propertydetail.php';
		$.ajax({
	   type: "POST",
	   url: turl,
	   dataType: "html",
	   data: "property_id="+id,
	   success: showA
	 
	 });

}});

	//}//);
});

}


	function showA(responseText, statusText)  { 
	 
	 $(".basic-modal-content").html(responseText);
	// alert('status: ' + statusText + '\n\nresponseText: \n' + responseText + 
	//     '\n\nThe output div should have already been updated with the responseText.'); 
	
	}
