$(document).ready( function () {
                
/*	
$('.property-link').each ( function () {
	
		$(this).click( function () {
			var href = $(this).attr('href');
			href = href + 'true';

			$(this).attr('href', href);
			DP_show(this.href);
			return false;
		});
	
});
	
	$('.property-link').live('click', function(){
		var id = this.src.match(/[0-9]+/);
		$('.ajax-overlay-image-container img:not(.large-image-'+ id[0] +')').css('visibility', 'hidden');
		$('.ajax-overlay-image-container .large-image-'+ id[0]).css('visibility', 'visible');
	});*/



	function swap_images( current_img, current_thumb ) {
		$('.prop-image').removeClass('active');
		$('.prop-thumb').removeClass('active-thumb');
		$(current_thumb).addClass('active-thumb');
		$('.prop-image').css('s-index', '200');
		$(current_img + ':hidden')
			.css('z-index', '300')
			.addClass('active')
			.fadeIn("slow", function(){
				$('.prop-image:not(.active)').fadeOut(500);
			});
		return false;
	}
	
});

