<!--

if (document.images) {
  image1on = new Image();
  image1on.src = "images/1-condos-for-sale-on.gif";

  image2on = new Image();
  image2on.src = "images/2-ocean-edge-map-on.gif";

  image3on = new Image();
  image3on.src = "images/3-condo-styles-on.gif";

  image4on = new Image();
  image4on.src = "images/4-recreational-facilities-on.gif";

  image5on = new Image();
  image5on.src = "images/5-ocean-edge-investment-on.gif";

  image6on = new Image();
  image6on.src = "images/6-condos-for-rent-on.gif";

  image7on = new Image();
  image7on.src = "images/7-sell-your-condo-on.gif";

  image8on = new Image();
  image8on.src = "images/8-my-team-on.gif";

  image1off = new Image();
  image1off.src = "images/1-condos-for-sale-off.gif";

  image2off = new Image();
  image2off.src = "images/2-ocean-edge-map-off.gif";

  image3off = new Image();
  image3off.src = "images/3-condo-styles-off.gif";

  image4off = new Image();
  image4off.src = "images/4-recreational-facilities-off.gif";

  image5off = new Image();
  image5off.src = "images/5-ocean-edge-investment-off.gif";

  image6off = new Image();
  image6off.src = "images/6-condos-for-rent-off.gif";

  image7off = new Image();
  image7off.src = "images/7-sell-your-condo-off.gif";

  image8off = new Image();
  image8off.src = "images/8-my-team-off.gif";

}

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}

function captureDate(index)
		{		
		document.detailPropSearch.txtDateHolder.value = document.detailPropSearch.txtCheckInDate.options[index].value
		} 
function buildCheckInDate(day){
if ((document.array.whatPage.value != '') && (document.detailPropSearch.thePage.value = 'advSearch')){
		if (day == "6"){
		document.array.dateSelected.value = 'friday'		
			document.detailPropSearch.txtCheckInDate.options.length = checkInDateArray0.length;
			for ( i = 0; i < checkInDateArray0.length; i++){
				if ((i == 0) && (document.array.theDate.value == '')){
					document.detailPropSearch.txtCheckInDate.options[i] = new Option(checkInDateArray0[i], checkInDateArray0[i], true, true);
				}
				else if(document.array.theDate.value == checkInDateArray0[i]){
					document.detailPropSearch.txtCheckInDate.options[i] = new Option(checkInDateArray0[i], checkInDateArray0[i], true, true);
				}
				else {
					document.detailPropSearch.txtCheckInDate.options[i] = new Option(checkInDateArray0[i], checkInDateArray0[i]);
				}		
			}
			document.detailPropSearch.txtDateHolder.value = document.detailPropSearch.txtCheckInDate.options[0].value
		}		
		else if (day == "7"){
		document.array.dateSelected.value = 'saturday'		
			document.detailPropSearch.txtCheckInDate.options.length = checkInDateArray1.length;
			for ( i = 0; i < checkInDateArray1.length; i++){
				if ((i == 0) && (document.array.theDate.value == '')){
					document.detailPropSearch.txtCheckInDate.options[i] = new Option(checkInDateArray1[i], checkInDateArray1[i], true, true);
				}
				else if(document.array.theDate.value == checkInDateArray1[i]){
					document.detailPropSearch.txtCheckInDate.options[i] = new Option(checkInDateArray1[i], checkInDateArray1[i], true, true);
				}				
				else {
					document.detailPropSearch.txtCheckInDate.options[i] = new Option(checkInDateArray1[i], checkInDateArray1[i]);
				}		
			}
			document.detailPropSearch.txtDateHolder.value = document.detailPropSearch.txtCheckInDate.options[0].value
		}
		else if (day == "1"){
		document.array.dateSelected.value = 'sunday'
			document.detailPropSearch.txtCheckInDate.options.length = checkInDateArray2.length;
			for ( i = 0; i < checkInDateArray2.length; i++){
				if ((i == 0) && (document.array.theDate.value == '')){
					document.detailPropSearch.txtCheckInDate.options[i] = new Option(checkInDateArray2[i], checkInDateArray2[i], true, true);
				}
				else if(document.array.theDate.value == checkInDateArray2[i]){
					document.detailPropSearch.txtCheckInDate.options[i] = new Option(checkInDateArray2[i], checkInDateArray2[i], true, true);
				}				
				else {
					document.detailPropSearch.txtCheckInDate.options[i] = new Option(checkInDateArray2[i], checkInDateArray2[i]);
				}
			}
			document.detailPropSearch.txtDateHolder.value = document.detailPropSearch.txtCheckInDate.options[0].value
		}
		else {
			document.array.dateSelected.value = 'none'
			document.detailPropSearch.txtCheckInDate.options.length = 1;
			document.detailPropSearch.txtCheckInDate.options[0] = new Option("Select a Date","01/01/1980", true, true);
			document.detailPropSearch.txtDateHolder.value = "01/01/1980";
		}
	}
}
// -->

<!--
function changeimage(towhat,url){
if (document.images){
document.images.targetimage.src=towhat.src
gotolink=url
}
}
function warp(){
window.location=gotolink
}
// -->

<!--
var myimages=new Array()
var gotolink="#"

function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}

preloadimages("images/a-one-bed-apartment.jpg","images/a-two-bed-apartment.jpg","images/a-townhouse.jpg","images/a-patio-home.jpg","images/a-luxury-garden-apartment.jpg","images/a-luxury-villa.jpg","images/a-bay-house-cottage.jpg","images/a-luxury-townhouse.jpg")
// -->
