﻿function ValidateProjectEnquiryForm (form) { // Used in Give us your feedback page (pageid=5&ctype=bm)
  var thetitle = form.thetitle.value;
	var firstname =  form.firstname.value;  
	var surname =  form.surname.value;  
	var email =  form.email.value;  
	var postal_address =  form.postal_address.value;  
	var town =  form.town.value;  
  var postcode = form.postcode.value;   
  var phone = form.phone.value;   

  if (!thetitle)	{
    alert("You must select your title.");
    return false;
	} else if (!firstname) {
		alert("You must enter your firstname.");
		return false;
	} else if (!surname) {
		alert("You must enter your surname.");
		return false;
	} else if (!email) {
		alert("You must enter your email.");
		return false;
	} else if ((email)&&((email.indexOf('@') == -1) || (email.indexOf('.') == -1))) {
		alert("Wrong email format.");
		return false;
	} else if (!postal_address) {
		alert("You must enter your postal address.");
		return false;
	} else if (!town) {
		alert("You must enter your town.");
		return false;
	} else if (!postcode) {
		alert("You must enter your postcode.");
		return false;
	} else if (!phone) {
		alert("You must enter your phone number.");
		return false;
	} else {
		return true;
	}
}
function ValidatePropertyEnquiryForm (form) { // Used in Give us your feedback page (pageid=5&ctype=bm)
  var thetitle = form.thetitle.value;
	var firstname =  form.firstname.value;  
	var surname =  form.surname.value;  
	var email =  form.email.value;  
	var postal_address =  form.postal_address.value;  
	var town =  form.town.value;  
  var postcode = form.postcode.value;   
  var phone = form.phone.value;   

  if (!thetitle)	{
    alert("You must select your title.");
    return false;
	} else if (!firstname) {
		alert("You must enter your firstname.");
		return false;
	} else if (!surname) {
		alert("You must enter your surname.");
		return false;
	} else if (!email) {
		alert("You must enter your email.");
		return false;
	} else if ((email)&&((email.indexOf('@') == -1) || (email.indexOf('.') == -1))) {
		alert("Wrong email format.");
		return false;
	} else if (!postal_address) {
		alert("You must enter your postal address.");
		return false;
	} else if (!town) {
		alert("You must enter your town.");
		return false;
	} else if (!postcode) {
		alert("You must enter your postcode.");
		return false;
	} else if (!phone) {
		alert("You must enter your phone number.");
		return false;
	} else {
		return true;
	}
}
function ValidateContactForm (form) { 
  var fname = form.fullname.value;   
  var country = form.country.value;   
	var phone = form.phone.value;
  var email = form.email.value;   

  if (!fname)	{
    alert("You must enter your full name.");
    return false;
	} else if (!country) {
		alert("You must select your country.");
		return false;
	} else if ((!phone)&&(!email)) {
		alert("You must enter your phone number or your email address.");
		return false;
	} else if ((email)&&((email.indexOf('@') == -1) || (email.indexOf('.') == -1))) {
		alert("Wrong email format.");
		return false;
	} else {
		return true;
	}
}

function MakeArray(n) {
	this.length = n
	return this
}

monthNames = new MakeArray(12)
monthNames[1] = "Ιανουαρίου"
monthNames[2] = "Φεβρουρίου"
monthNames[3] = "Μαρτίου"
monthNames[4] = "Απριλίου"
monthNames[5] = "Μαίου"
monthNames[6] = "Ιουνίου"
monthNames[7] = "Ιουλίου"
monthNames[8] = "Αυγούστου"
monthNames[9] = "Σεπτεμβρίου"
monthNames[10] = "Οκτωβρίου"
monthNames[11] = "Νοεμβρίου"
monthNames[12] = "Δεκεμβρίου"
dayNames = new MakeArray(7)
dayNames[1] = "Κυριακή"
dayNames[2] = "Δευτέρα"
dayNames[3] = "Τρίτη"
dayNames[4] = "Τετάρτη"
dayNames[5] = "Πέμπτη"
dayNames[6] = "Παρασκευή"
dayNames[7] = "Σάββατο"

function clock() {
	if (!document.layers && !document.all) return;
	var digital = new Date();
	var theDay = dayNames[digital.getDay() + 1]
	var day = digital.getDay() + 1;
	var theMonth = monthNames[digital.getMonth() + 1]
	var month = digital.getMonth() + 1;
	var year = digital.getYear();// - 2000;
	var hours = digital.getHours();
	var minutes = digital.getMinutes();
	var seconds = digital.getSeconds();
	var amOrPm = "πμ";
	if (hours > 11) amOrPm = "μμ";
	//if (hours > 12) hours = hours - 12;
	//if (hours == 0) hours = 12;
	if (hours <= 9) hours = "0" + hours;
	if (minutes <= 9) minutes = "0" + minutes;
	if (seconds <= 9) seconds = "0" + seconds;
	if (day <= 9) day = "0" + day;
	if (month <= 9) month = "0" + month;
	if (year <= 9) year = "0" + year;
	//dispDate = theDay+" "+" "+digital.getDate()+"."+month+"."+year; //Day 20.12.2006
	dispDate = theDay+" "+" "+digital.getDate()+" "+theMonth;
	dispTime = hours+":"+minutes;//+" "+amOrPm;
	if (document.layers) {
	document.layers.pendule_date.document.write(dispDate);
	document.layers.pendule.document.write(dispTime);
	document.layers.pendule_date.document.close();
	document.layers.pendule.document.close();
	}
	else
	if (document.all)
	pendule_date.innerHTML = dispDate;
	pendule.innerHTML = dispTime;
	setTimeout("clock()", 1000);
}

function ValidateMailingListRequestForm (form) {
  var email = form.email.value;   

	if (!email) {
		alert("You must enter your email.");
		return false;
	} else if ((email.indexOf('@') == -1) || (email.indexOf('.') == -1)) {
		alert("Wrong email format.");
		return false;
	} else {
		return true;
	}
}
function printPage() {
  lochref = '' + this.location;
	if (lochref.indexOf('?') > 0) {
		lochref = '?' + lochref.substring((lochref.indexOf('?')) + 1);
	} else {
		lochref = '';
	}

	w_width = 800;
	w_height = 500;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=no,scrollbars=yes';

	fparam = 'print.php'+lochref;
  window.showPrintWindow = open(fparam, 'showPrintWindow', theWindowParam);
	setTimeout('if(showPrintWindow&&!showPrintWindow.closed)showPrintWindow.focus()',100);
}
function emailPage() {
  lochref = '' + this.location;
	if (lochref.indexOf('?') > 0) {
		lochref = '?' + lochref.substring((lochref.indexOf('?')) + 1);
	} else {
		lochref = '';
	}

	w_width = 430;
	w_height = 355;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=no,scrollbars=no';

	fparam = 'tools/emailpage/index.php'+lochref;
  window.showEmailWindow = open(fparam, 'showEmailWindow', theWindowParam);
	setTimeout('if(showEmailWindow&&!showEmailWindow.closed)showEmailWindow.focus()',100);
}

function popupPage(thePageId) {
	pageid='';
	if (thePageId!='') {
		pageid='?pageid='+thePageId;
	}

	w_width = 595;
	w_height = 500;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=no,scrollbars=yes';

	fparam = 'popup.php'+pageid;
  window.showPopupWindow = open(fparam, 'showPopupWindow', theWindowParam);
	setTimeout('if(showPopupWindow&&!showPopupWindow.closed)showPopupWindow.focus()',100);
}

function currencyConverter(sefUrlStatus) {
	fileLocation = '';
	if (sefUrlStatus!='Y') {
		fileLocation = '';
	} else {
		fileLocation = '/';
	}

	w_width = 810;
	w_height = 302;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',scrollbars=yes,resizable=yes';

	fparam = fileLocation+'tools/ucc/index.php';
  window.showCurrencyConverterWindow = open(fparam, 'showCurrencyConverterWindow', theWindowParam);
	setTimeout('if(showCurrencyConverterWindow&&!showCurrencyConverterWindow.closed)showCurrencyConverterWindow.focus()',100);
}

function changeLangAlert(theLang) {
	alert('The '+theLang+' language is not published yet. Please check back soon.');
}
function changeLang(theLang, theQueryString) {
  lochref = '';
	// Check if already lang parameter is sent
	if (theQueryString.match('lang=') != null) {
		langPos = theQueryString.indexOf('lang=');
		theQueryString = theQueryString.substring(0,(langPos-1))+theQueryString.substring((langPos-1)+8);
	}
	// Check all parameters that 'index.php' files handles
	if (theQueryString != '') {
		lochref = 'index.php?'+theQueryString+'&lang='+theLang;
	} else {
		lochref = 'index.php?lang='+theLang;
	}
	location = lochref;
}
function goToSearch(theform) {
  var theSearchQuery = theform.searchquery.value;
	
  lochref = 'index.php?pageaction=search&searchquery=' + theSearchQuery;
	
	location = lochref;
}
function goToSitemap() {

  lochref = 'index.php?pageaction=sitemap';

	location = lochref;
}
function goToMember(theAction) {

  lochref = 'index.php?pageaction=member&action='+theAction;
	
	location = lochref;
}
function ValidateConfirmationForm(theForm) {
  var confirmcheckbox = theForm.confirmcheckbox.value;
	
	if (confirmcheckbox != 'Y') {
		alert("You must confirm the action first by clicking on the checkbox above.");
		return false;
	} else {
		return true;
	}
}
function changeConfirmationCheckbox(theValue) {
	if (theValue == 'Y') {
		document.ConfirmForm.confirmcheckbox.value = 'N';
	} else {
		document.ConfirmForm.confirmcheckbox.value = 'Y';
	}
}

function redirectToURL(theURL)
{
  lochref = theURL;
	
	location = lochref;
}



//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

/* functions for template ws_mm_estates_40 */

function estates_40_DisplayFloorPlans(theType) {

	var icon_A_area = document.getElementById("type_A_icon");	
	var icon_B_area = document.getElementById("type_B_icon");	
	var icon_C_area = document.getElementById("type_C_icon");	
	var icon_D_area = document.getElementById("type_D_icon");	
	var icon_E_area = document.getElementById("type_E_icon");	
	var icon_F_area = document.getElementById("type_F_icon");	
	var icon_G_area = document.getElementById("type_G_icon");	

	if (theType == 'A') {
		document.getElementById('GeneralSitePlanPhoto').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_A').style.display = 'block'; 
		document.getElementById('SitePlanPhoto_B').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_C').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_D').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_E').style.display = 'none';
		document.getElementById('SitePlanPhoto_F').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_G').style.display = 'none';
		//for floor plans
		document.getElementById('FloorsPlanPhotos_A').style.display = 'block'; 
		document.getElementById('FloorsPlanPhotos_B').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_C').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_D').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_E').style.display = 'none';
		document.getElementById('FloorsPlanPhotos_F').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_G').style.display = 'none';
		if (document.getElementById) {
			icon_A_area.innerHTML = '<img src="layout/images/typeA_sel_icon.gif">';
			if (icon_B_area != null) {
				icon_B_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'B\')"><img src="layout/images/typeB_icon.gif" border="0"></a>';
			}
			if (icon_C_area != null) {
				icon_C_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'C\')"><img src="layout/images/typeC_icon.gif" border="0"></a>';
			}
			if (icon_D_area != null) {
				icon_D_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'D\')"><img src="layout/images/typeD_icon.gif" border="0"></a>';
			}
			if (icon_E_area != null) {
				icon_E_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'E\')"><img src="layout/images/typeE_icon.gif" border="0"></a>';
			}
			if (icon_F_area != null) {
				icon_F_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'F\')"><img src="layout/images/typeF_icon.gif" border="0"></a>';
			}
			if (icon_G_area != null) {
				icon_G_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'G\')"><img src="layout/images/typeG_icon.gif" border="0"></a>';
			}
		} 
	} else if (theType == 'B') {
		document.getElementById('GeneralSitePlanPhoto').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_A').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_B').style.display = 'block'; 
		document.getElementById('SitePlanPhoto_C').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_D').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_E').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_F').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_G').style.display = 'none'; 
		//for floor plans
		document.getElementById('FloorsPlanPhotos_A').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_B').style.display = 'block'; 
		document.getElementById('FloorsPlanPhotos_C').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_D').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_E').style.display = 'none';
		document.getElementById('FloorsPlanPhotos_F').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_G').style.display = 'none';
		if (document.getElementById) {
			if (icon_A_area != null) {
				icon_A_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'A\')"><img src="layout/images/typeA_icon.gif" border="0"></a>';
			}
			icon_B_area.innerHTML = '<img src="layout/images/typeB_sel_icon.gif">';
			if (icon_C_area != null) {
				icon_C_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'C\')"><img src="layout/images/typeC_icon.gif" border="0"></a>';
			}
			if (icon_D_area != null) {
				icon_D_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'D\')"><img src="layout/images/typeD_icon.gif" border="0"></a>';
			}
			if (icon_E_area != null) {
				icon_E_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'E\')"><img src="layout/images/typeE_icon.gif" border="0"></a>';
			}
			if (icon_F_area != null) {
				icon_F_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'F\')"><img src="layout/images/typeF_icon.gif" border="0"></a>';
			}
			if (icon_G_area != null) {
				icon_G_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'G\')"><img src="layout/images/typeG_icon.gif" border="0"></a>';
			}
		} 
	} else if (theType == 'C') {
		document.getElementById('GeneralSitePlanPhoto').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_A').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_B').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_C').style.display = 'block'; 
		document.getElementById('SitePlanPhoto_D').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_E').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_F').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_G').style.display = 'none'; 
		//for floor plans
		document.getElementById('FloorsPlanPhotos_A').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_B').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_C').style.display = 'block'; 
		document.getElementById('FloorsPlanPhotos_D').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_E').style.display = 'none';
		document.getElementById('FloorsPlanPhotos_F').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_G').style.display = 'none';
		if (document.getElementById) {
			if (icon_A_area != null) {
				icon_A_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'A\')"><img src="layout/images/typeA_icon.gif" border="0"></a>';
			}
			if (icon_B_area != null) {
				icon_B_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'B\')"><img src="layout/images/typeB_icon.gif" border="0"></a>';
			}
			icon_C_area.innerHTML = '<img src="layout/images/typeC_sel_icon.gif">';
			if (icon_D_area != null) {
				icon_D_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'D\')"><img src="layout/images/typeD_icon.gif" border="0"></a>';
			}
			if (icon_E_area != null) {
				icon_E_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'E\')"><img src="layout/images/typeE_icon.gif" border="0"></a>';
			}
			if (icon_F_area != null) {
				icon_F_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'F\')"><img src="layout/images/typeF_icon.gif" border="0"></a>';
			}
			if (icon_G_area != null) {
				icon_G_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'G\')"><img src="layout/images/typeG_icon.gif" border="0"></a>';
			}
		} 
	} else if (theType == 'D') {
		document.getElementById('GeneralSitePlanPhoto').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_A').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_B').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_C').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_D').style.display = 'block'; 
		document.getElementById('SitePlanPhoto_E').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_F').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_G').style.display = 'none'; 
		//for floor plans
		document.getElementById('FloorsPlanPhotos_A').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_B').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_C').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_D').style.display = 'block'; 
		document.getElementById('FloorsPlanPhotos_E').style.display = 'none';
		document.getElementById('FloorsPlanPhotos_F').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_G').style.display = 'none';
		if (document.getElementById) {
			if (icon_A_area != null) {
				icon_A_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'A\')"><img src="layout/images/typeA_icon.gif" border="0"></a>';
			}
			if (icon_B_area != null) {
				icon_B_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'B\')"><img src="layout/images/typeB_icon.gif" border="0"></a>';
			}
			if (icon_C_area != null) {
				icon_C_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'C\')"><img src="layout/images/typeC_icon.gif" border="0"></a>';
			}
			icon_D_area.innerHTML = '<img src="layout/images/typeD_sel_icon.gif">';
			if (icon_E_area != null) {
				icon_E_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'E\')"><img src="layout/images/typeE_icon.gif" border="0"></a>';
			}
			if (icon_F_area != null) {
				icon_F_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'F\')"><img src="layout/images/typeF_icon.gif" border="0"></a>';
			}
			if (icon_G_area != null) {
				icon_G_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'G\')"><img src="layout/images/typeG_icon.gif" border="0"></a>';
			}
		} 
	} else if (theType == 'E') {
		document.getElementById('GeneralSitePlanPhoto').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_A').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_B').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_C').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_D').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_E').style.display = 'block'; 
		document.getElementById('SitePlanPhoto_F').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_G').style.display = 'none'; 
		//for floor plans
		document.getElementById('FloorsPlanPhotos_A').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_B').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_C').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_D').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_E').style.display = 'block';
		document.getElementById('FloorsPlanPhotos_F').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_G').style.display = 'none'; 
		if (document.getElementById) {
			if (icon_A_area != null) {
				icon_A_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'A\')"><img src="layout/images/typeA_icon.gif" border="0"></a>';
			}
			if (icon_B_area != null) {
				icon_B_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'B\')"><img src="layout/images/typeB_icon.gif" border="0"></a>';
			}
			if (icon_C_area != null) {
				icon_C_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'C\')"><img src="layout/images/typeC_icon.gif" border="0"></a>';
			}
			if (icon_D_area != null) {
				icon_D_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'D\')"><img src="layout/images/typeD_icon.gif" border="0"></a>';
			}
			icon_E_area.innerHTML = '<img src="layout/images/typeE_sel_icon.gif">';
			if (icon_F_area != null) {
				icon_F_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'F\')"><img src="layout/images/typeF_icon.gif" border="0"></a>';
			}
			if (icon_G_area != null) {
				icon_G_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'G\')"><img src="layout/images/typeG_icon.gif" border="0"></a>';
			}
		} 
	} else if (theType == 'F') {
		document.getElementById('GeneralSitePlanPhoto').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_A').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_B').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_C').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_D').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_E').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_F').style.display = 'block'; 
		document.getElementById('SitePlanPhoto_G').style.display = 'none'; 
		//for floor plans
		document.getElementById('FloorsPlanPhotos_A').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_B').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_C').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_D').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_E').style.display = 'none';
		document.getElementById('FloorsPlanPhotos_F').style.display = 'block'; 
		document.getElementById('FloorsPlanPhotos_G').style.display = 'none'; 
		if (document.getElementById) {
			if (icon_A_area != null) {
				icon_A_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'A\')"><img src="layout/images/typeA_icon.gif" border="0"></a>';
			}
			if (icon_B_area != null) {
				icon_B_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'B\')"><img src="layout/images/typeB_icon.gif" border="0"></a>';
			}
			if (icon_C_area != null) {
				icon_C_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'C\')"><img src="layout/images/typeC_icon.gif" border="0"></a>';
			}
			if (icon_D_area != null) {
				icon_D_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'D\')"><img src="layout/images/typeD_icon.gif" border="0"></a>';
			}
			if (icon_E_area != null) {
				icon_E_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'E\')"><img src="layout/images/typeE_icon.gif" border="0"></a>';
			}
			icon_F_area.innerHTML = '<img src="layout/images/typeF_sel_icon.gif">';
			if (icon_G_area != null) {
				icon_G_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'G\')"><img src="layout/images/typeG_icon.gif" border="0"></a>';
			}
		} 
	} else if (theType == 'G') {
		document.getElementById('GeneralSitePlanPhoto').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_A').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_B').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_C').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_D').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_E').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_F').style.display = 'none'; 
		document.getElementById('SitePlanPhoto_G').style.display = 'block'; 
		//for floor plans
		document.getElementById('FloorsPlanPhotos_A').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_B').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_C').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_D').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_E').style.display = 'none';
		document.getElementById('FloorsPlanPhotos_F').style.display = 'none'; 
		document.getElementById('FloorsPlanPhotos_G').style.display = 'block'; 
		if (document.getElementById) {
			if (icon_A_area != null) {
				icon_A_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'A\')"><img src="layout/images/typeA_icon.gif" border="0"></a>';
			}
			if (icon_B_area != null) {
				icon_B_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'B\')"><img src="layout/images/typeB_icon.gif" border="0"></a>';
			}
			if (icon_C_area != null) {
				icon_C_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'C\')"><img src="layout/images/typeC_icon.gif" border="0"></a>';
			}
			if (icon_D_area != null) {
				icon_D_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'D\')"><img src="layout/images/typeD_icon.gif" border="0"></a>';
			}
			if (icon_E_area != null) {
				icon_E_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'E\')"><img src="layout/images/typeE_icon.gif" border="0"></a>';
			}
			if (icon_F_area != null) {
				icon_F_area.innerHTML = '<a href="javascript:void(0)" onClick="javascript:estates_40_DisplayFloorPlans(\'F\')"><img src="layout/images/typeF_icon.gif" border="0"></a>';
			}
			icon_G_area.innerHTML = '<img src="layout/images/typeG_sel_icon.gif">';
		} 
	}
}