qSearch=null;qsDropped=false;qsInitialized=false;function hiMenu(menuItem){eval(menuItem).style.border="solid 1px #0099FF";eval(menuItem).bgColor="#B3E0FF";}function loMenu(menuItem){eval(menuItem).style.border="solid 1px #E1F3FF";eval(menuItem).bgColor="#E1F3FF";}function initializeQSMenu(){if (!qsInitialized){d=document.body.getElementsByTagName("DIV");for (i=0; i<d.length; i++){if (d[i].id=="qsearch"){qSearch=d[i];qSearch.style.position="absolute";}}d=document.body.getElementsByTagName("TD");for (i=0; i<d.length; i++){if (d[i].id=="qsmenu1"){qMenu1=d[i];}else if (d[i].id=="qsmenu2"){qsMenu2=d[i];}else if (d[i].id=="qsmenu3"){qsMenu3=d[i];}else if (d[i].id=="qsmenu4"){qsMenu4=d[i];}else if (d[i].id=="qsmenu5"){qsMenu5=d[i];}else if (d[i].id=="qsmenu6"){qsMenu6=d[i];}}qsInitialized=true;}}function dropQSMenu (){initializeQSMenu();if (qSearch!=null){if (qsDropped==false){qSearch.style.top=26;qSearch.style.left=637;qSearch.style.display="";qSearch.style.height=1;}qsDropped=true;}}function hideQSMenu (){initializeQSMenu();if (qSearch!=null){qSearch.style.display="none"
qsDropped=false;}}function SetCookie(sName, sValue){document.cookie=sName+"="+escape(sValue);}function change_AdminPanel(){if (AdminPanel.style.display=="none"){AdminPanel.style.display=""}else{AdminPanel.style.display="none"}SetCookie("admin_panel", AdminPanel.style.display);}function showHelp(helpID, isDown){switch (helpID){case 1:if (isDown)window.status="Click to hide the Property Search navigation menu"; else window.status="Click to show the Property Search navigation menu";break;case 2:if (isDown)window.status="Click to hide the Property Listing navigation menu"; else window.status="Click to show the Property Listing navigation menu";break;case 3:if (isDown)window.status="Click to hide the Company Information navigation menu"; else window.status="Click to show the Company Information navigation menu";break;case 4:if (isDown)window.status="Click to hide the Quick Currency Converter"; else window.status="Click to show the Quick Currency Converter";break;case 5:if (isDown)window.status="Click to hide the Intranet navigation menu"; else window.status="Click to show the Intranet navigation menu";break;case 6:if (isDown)window.status="Click to hide the @ VillaCare navigation menu"; else window.status="Click to show the @ VillaCare navigation menu";break;}}function change_Menu(menuItem, menuName){if (menuItem!=null){if (menuItem.style.display=="none"){menuItem.style.display=""
document.images["img_"+menuName].src="images/minus.gif";}else{menuItem.style.display="none"
document.images["img_"+menuName].src="images/plus.gif";}SetCookie(menuName+"_menu", menuItem.style.display);showHelp(1, menuItem.style.display=="");}}function changeme2(me, helpID, itemDown){if (itemDown!=null){eval(me).bgColor="#B3E0FF";showHelp(helpID, itemDown.style.display=="");}}function unchangeme2(me){eval(me).bgColor="#E1F3FF";window.status='';}function MM_jumpMenu(targ, selObj, restore){eval(targ+".location='search.php?terms="+selObj.options[selObj.selectedIndex].value+"'");if (restore) selObj.selectedIndex=0;}function MM_openBrWindow(theURL,winName,features){return window.open(theURL,winName,features,false);}function showOnlineHelp(thePage, itsTitle){w=window.open("/help/index.php?page="+thePage+"&title="+itsTitle,"villacarekenya_online_help","width=300,height=400,scrollbars=no,resizable=no,location=no");w.setActive;}searchTR=null;listingTR=null;corporateTR=null;intranetTR=null;advertTR=null;convertTR=null;atvillaTR=null;function getUIObject(tag, id){d=document.getElementsByTagName(tag);for (i=0; i<d.length; i++)if (d[i].id==id) return d[i];return null;}function getMenuTRs(){searchTR=getUIObject("TR", "SearchMenu");listingTR=getUIObject("TR", "ListingMenu");corporateTR=getUIObject("TR", "CorporateMenu");ContactTR=getUIObject("TR", "ContactMenu");intranetTR=getUIObject("TR", "IntranetMenu");convertTR=getUIObject("TR", "ConvertMenu");atvillaTR=getUIObject("TR", "AtVillaMenu");}var objCount=0;var pics=new Array();function preload(theImage){pics[objCount]=new Array(2);pics[objCount][0]=new Image();pics[objCount][1]=new Image();pics[objCount][0].src="images/"+theImage+".gif";pics[objCount][1].src="images/"+theImage+"_h.gif";ret=objCount;objCount++;return ret;}function _img(id, imgIndex, state, tag){d=getUIObject(tag, id);if (d!=null) d.src=pics[imgIndex][state].src;}function img(id, imgIndex, state){_img(id, imgIndex, state, "IMG")}function img_fm(id, imgIndex, state){_img(id, imgIndex, state, "INPUT")}function menuHi(theMenu){theMenu.style.background="#FFFFFF";theMenu.style.border="solid 1px #999999";}function menuLo(theMenu){theMenu.style.background="";theMenu.style.border="";}function hilite(obj,on){if (on==1)obj.style.color="#ff0000"; else obj.style.color="#0099ff";}