	$jq(document).ready(function() {
		 
	// fix for jquery easing error
		//$jq('script[src="/scripts/jquery/jquery.master.js"]').remove();
				
	//fix for slider navigation for ie7
		if ($jq.browser.msie) {
			setInterval("$jq('ul#nav ul').css('overflow', 'visible')",'500');
			$jq('ul.thumbNav li a').html('');	
		 };
		
	//prevent links from working while in demo		 
		$jq('a').click(function(event) {
			event.preventDefault();
		});
		
	//Featured
		var position = 0;
		var i = 1;
		for(i=2;i<=6;i++){
			$jq('#featuredContainer .featuredProp:nth-child(' + i + ')').css('left', position +'px');
			position += 140;
		};
	//search widget - search disabled for demo
		//$jq('#submit input').click(function() {
			//searchFeatured();
		//});
	
		$jq('.basicSearchContainer select').change(function(){
						
			if ($jq(this).find('option:selected').val() != $jq(this).find('option:first-child').val()) {
				var newSelection = $jq(this).find('option:selected').html();
				$jq(this).prev('span').html(newSelection);
			}
			else if ($jq(this).parent('div').hasClass('location')){
				$jq(this).prev('span').html('Location');
			}
			else if ($jq(this).parent('div').hasClass('minPrice')){
				$jq(this).prev('span').html('Min Price');
			}
			else if ($jq(this).parent('div').hasClass('maxPrice')){
				$jq(this).prev('span').html('Max Price');
			}
			else if ($jq(this).parent('div').hasClass('bedrooms')){
				$jq(this).prev('span').html('Bedrooms');
			}
			else if ($jq(this).parent('div').hasClass('baths')){
				$jq(this).prev('span').html('Baths');
			}
		});
		
		// fix for iOS
		var deviceAgent = navigator.userAgent.toLowerCase();
		var agentID = deviceAgent.match(/(iphone|ipod|ipad)/);
		if (agentID) {
	 
		// iOS code
			setTimeout("$jq('.thumbNav .panel1').click();",800);
			
		}
		
		//$jq('#featuredContainer img').attr('src', $jq('#propertyslideshow img').attr('src'));
	});
