 $(document).ready(
			 function() 
			 {
				//  scrollable with navigator
				$("div.scrollable").scrollable({					   
					size:1,
					autoplay: true,
					interval: 2000,
					loop: true	
				}).navigator();	
			
		
				// modals
				var $modal_dialog = document.createElement("div");
				$modal_dialog.id = "modal_dialog";
				document.getElementById('col_right').appendChild($modal_dialog);

				var dialog_box = $('#modal_dialog').dialog({
						autoOpen: false,
						modal: true,
						width: 675,
						zIndex: 9999,
						closeText: 'Close'
				});
	
				// load location, google map, accuweather
				loadPropertyExtras();

				$('.modal').click(function(e) {

					if(e.preventDefault) 
					{
					e.preventDefault();
					} 
					else {
					e.returnValue = false; 
					}	
					dialog_box.dialog( "option", "title", "About " + e.target.innerHTML);
					$('#modal_dialog').load("location.php?reference=" + e.target.innerHTML.replace(" " , "-") + "&content=1", function(){$('.flexcroll').jScrollPane();});						
						dialog_box.dialog('open');
				});
	
	
					
					//scrollbars
					$('.flexcroll').jScrollPane();	
			
			}
);
