
$(document).ready(function() {

	$('#slides1Wrapper').ppFeatureSlider({
		controller : ".sliderController",
		slidesWrapper : ".slides",
		slideWrapper : ".slide",
		selectedWrapper: ".slideSelected",
		paginationWrapper: ".pagination",
		paginationSelected: ".selected",
		infoPane: '.details',
		infoMode: 'static',
		autoCentre: false,
		drag: true
	});

	$('.searchPage .leftCol, .searchPage .rightCol').equalHeight();
	
	$('.searchPage .rightCol .xPL_property').each(function(cntrl) { 
		
		var text = null;
		if($(this).hasClass('xPL_saleAgreed'))
			text = 'Sale Agreed';
		else if($(this).hasClass('xPL_letAgreed'))
			text = 'Let Agreed';
		
		/*
		else if($(this).hasClass('xPL_sold'))
			text = 'Sold';
		else if($(this).hasClass('xPL_sale'))
			text = 'For Sale';
		
		else if($(this).hasClass('xPL_underOffer'))
			text = 'Under Offer';
		else if($(this).hasClass('xPL_toLet'))
			text = 'To Let';
		
		else if($(this).hasClass('xPL_let'))
			text = 'Let';
		*/
		
		if(text != null) {
			var html = '<span class="xPL_status"><span>' + text + '</span></span>';
			$(this).find('.xPL_photo').append(html);
		}
		else {
			$(this).find('.xPL_photo .xPL_status').remove();
		}
	});
	
});
