// JavaScript Document





<!-- start a function that will fade out the current content-->

        function refreshFeature() {

            

           $("#widgetbox_f").fadeOut(750, function() {



		   		<!-- empty the current content and then fetch new data -->

				$("#widgetbox_f").empty

				<!-- load the getProducts.pho file which will replace all the content -->

                $("#widgetbox_f").load("fading_properties_feature.php", function() {

                    $("#widgetbox_f").fadeIn();

                });

            });

            

        };

    

		<!-- initiate the function above -->

    	$(function(){

    		refreshFeature();

    		

			<!-- set the interval for refreshing, default set to 6.5 seconds -->

    		var int = setInterval("refreshFeature()", 6500);

    		

    	});

		

		

		function refreshHot() {

            

           $("#widgetbox_h").fadeOut(750, function() {



		   		<!-- empty the current content and then fetch new data -->

				$("#widgetbox_h").empty

				<!-- load the getProducts.pho file which will replace all the content -->

                $("#widgetbox_h").load("fading_properties_hot.php", function() {

                    $("#widgetbox_h").fadeIn();

                });

            });

            

        };

    

		<!-- initiate the function above -->

    	$(function(){

    		refreshHot();

    		

			<!-- set the interval for refreshing, default set to 6.5 seconds -->

    		var int = setInterval("refreshHot()", 6500);

    		

    	});

		

































var dp_cal,dp_cal_s,dp_cal_e,dp_cal_b,dp_cal_a,firstcalendar;      

firstcalendar=true;



function separate_e_cal(){

	

	dp_cal = new Epoch('epoch_popup','popup',document.getElementById('popup_container'));	

	var lcurl = location.href;

	if (lcurl.indexOf("search_adv.php")>0){

		dp_cal_b = new Epoch('epoch_popup','popup',document.getElementById('popup_container_Basic'));	

		dp_cal_a = new Epoch('epoch_popup','popup',document.getElementById('popup_container_Adv'));		

	} else {

			if (document.getElementById('popup_container_Start')!=null){

			dp_cal_s = new Epoch('epoch_popup','popup',document.getElementById('popup_container_Start'));	

			dp_cal_e = new Epoch('epoch_popup','popup',document.getElementById('popup_container_End'));	

			}

	}	

}





function showDate(){

	if (firstcalendar){	

		dp_cal.show();

		firstcalendar=false;

		return;

	}

var lcDate =dp_cal.selectedDates;

var firstdate =lcDate[0];

firstcalendar=true;



var lday=firstdate.getDate();

var lmonth=firstdate.getMonth()+1;



document.getElementById("StartDay").value=dp_cal.zeropad(lday);

document.getElementById("StartMonth").value=dp_cal.zeropad(lmonth);

document.getElementById("StartYear").value=firstdate.getFullYear();

}



 

function quick_more()

{

	if(document.getElementById("searchmore").style.display=="none"){

	document.getElementById("searchmore").style.display="";

	}else{

	document.getElementById("searchmore").style.display="none";

	}

}





function search_buttom_submit(){



StartMonth=document.Search.StartMonth.value;

StartDay=document.Search.StartDay.value;

StartYear=document.Search.StartYear.value;

LeaseNights=document.Search.LeaseNights.value;

LeaseCity=document.Search.LeaseCity.value;

LeaseBedroomsMin=document.Search.LeaseBedroomsMin.value;

LeaseBedroomsMax=document.Search.LeaseBedroomsMax.value;



LeaseSleepsMin=document.Search.LeaseSleepsMin.value;

LeaseSleepsMax=document.Search.LeaseSleepsMax.value;



LeaseProperty=document.Search.LeaseProperty.value;

LeasePrice=document.Search.LeasePrice.value;



if(document.Search.googlemap.checked==true){

	var url="/search-StartDay_"+StartDay+"-StartMonth_"+StartMonth+"-StartYear_"+StartYear+"-LeaseNights_"+LeaseNights+"-LeaseCity_"+LeaseCity+"-LeaseSleepsMin_"+LeaseSleepsMin+"-LeaseSleepsMax_"+LeaseSleepsMax+"-LeaseBedroomsMin_"+LeaseBedroomsMin+"-LeaseBedroomsMax_"+LeaseBedroomsMax+"-LeaseProperty_"+LeaseProperty+"-LeasePrice_"+LeasePrice+"-googlemap_on.htm";

}else{

	var url="/search-StartDay_"+StartDay+"-StartMonth_"+StartMonth+"-StartYear_"+StartYear+"-LeaseNights_"+LeaseNights+"-LeaseCity_"+LeaseCity+"-LeaseSleepsMin_"+LeaseSleepsMin+"-LeaseSleepsMax_"+LeaseSleepsMax+"-LeaseBedroomsMin_"+LeaseBedroomsMin+"-LeaseBedroomsMax_"+LeaseBedroomsMax+"-LeaseProperty_"+LeaseProperty+"-LeasePrice_"+LeasePrice+".htm";

}

//alert(url);

document.location=url;



}











