function clear_pro_textbox()
{
	document.pro_form.reference.value = "";
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers? "" : "px"

var bouncelimit=32 
var direction="up"

function initbox(){
	if (!dom&&!ie&&!ns4)
	return
	crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
	scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
	crossobj.top=scroll_top-250+calunits
	crossobj.visibility=(dom||ie)? "visible" : "show"
	dropstart=setInterval("dropin()",50)
}

function dropin(){
	scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
	if (parseInt(crossobj.top)<100+scroll_top)
	crossobj.top=parseInt(crossobj.top)+40+calunits
	else{
	clearInterval(dropstart)
	bouncestart=setInterval("bouncein()",50)
	}
}

function bouncein(){
	crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
	if (bouncelimit<0)
	bouncelimit+=8
	bouncelimit=bouncelimit*-1
	if (bouncelimit==0){
	clearInterval(bouncestart)
	}
}

function dismissbox(){
	if (window.bouncestart) clearInterval(bouncestart)
	crossobj.visibility="hidden"
}

function truebody(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}


function get_cookie(Name) {
	var search = Name + "="
	var returnvalue = ""
	if (document.cookie.length > 0) {
	offset = document.cookie.indexOf(search)
	if (offset != -1) {
	offset += search.length
	end = document.cookie.indexOf(";", offset)
	if (end == -1)
	end = document.cookie.length;
	returnvalue=unescape(document.cookie.substring(offset, end))
	}
	}
	return returnvalue;
}

function dropornot(){
	if (get_cookie("droppedin")==""){
	document.cookie="droppedin=yes"
	}
}
dropornot()

 function fwd(strURL)
{
	window.location.href = strURL;
}

function onLBC()
 {
	var intLCID = document.getElementById("countryes");
	if(!intLCID)
	return;
	else
	{
	fwd("property_search_more.html?list="+intLCID.value);
	}
 }

 function fwd2(strURL)
{
	window.location.href = strURL;
}

function onLBC2()
{
	var intLCID = document.getElementById("district");
	if(!intLCID)
	return;
	else
	{
	fwd2("search_map.html?district="+intLCID.value);
	}
}

 function fwd(strURL)
{
	window.location.href = strURL;
}

function loadingImage(){
		document.getElementById("imageLoad").style.display='block';	
		
		setTimeout("onLBC()", 1000);	
}

function imageLoadButton(){
	document.getElementById("imageLoad").style.display='block';		
	location.href='advanced_search.html';
}
function onLBC()
{	
	var intLCID = document.getElementById("countryes");
	if(!intLCID)
	return;
	else
	{
	
	fwd("property_search_more_results.html?f=property_search_more&price=0&date_added=0&propertytype=&numberinparty=&holidaytype=&submit.x=35&submit.y=7&region=&area=&city_town=&country="+intLCID.value);
	}
}
