// JavaScript Document

jQuery(document).ready(function(){
	if(jQuery('#facebox').length == 0){
		jQuery('a[rel*=facebox]').facebox();
	}
        var searchtext       = jQuery("#searchtext");
	var moreSearchOption = jQuery("#moreSearchOption");
	moreSearchOption.click(showRefineSearch);
	searchtext.focus(showRefineSearch);
	jQuery("#searchBycity_drop").change(showRefineSearch);
	function showRefineSearch(){
		jQuery("#main").fadeIn('slow');
		jQuery("#topSearchDiv1").css({"z-index":"9999999","position":"relative","float":"left"})
	}
	
	
});


/*-------------------------Function to close refine search ------------------------------------------------*/
function closeRefineSearch(){
	jQuery("#main").fadeOut('slow');		
}
/*-------------------------Function to close refine search ------------------------------------------------*/

/*-----------Show Intrested Property------------------------------*/
function showFeaturedProperties(type){
	if(type == 1){
		var absPath = 'include/featured_properties.php';
	}else if(type == 2){
		var absPath = '../include/featured_properties.php';
	}
	jQuery.get(absPath ,function(data){jQuery("#featuredPropertyDiv").html(data)})
	
}

