// JavaScript Document// Create image objects, preload all active and inactive images.if (document.images) { 	listings_on = new Image();    listings_on.src = "/menu/listings_f2.gif";    listings_off = new Image();    listings_off.src = "/menu/listings.gif";	buying_on = new Image();    buying_on.src = "/menu/buying_f2.gif";    buying_off = new Image();    buying_off.src = "/menu/buying.gif";	selling_on = new Image();    selling_on.src = "/menu/selling_f2.gif";    selling_off = new Image();    selling_off.src = "/menu/selling.gif";	resources_on = new Image();    resources_on.src = "/menu/resources_f2.gif";    resources_off = new Image();    resources_off.src = "/menu/resources.gif";	about_on = new Image();    about_on.src = "/menu/about_f2.gif";    about_off = new Image();    about_off.src = "/menu/about.gif";	contact_on = new Image();    contact_on.src = "/menu/contact_f2.gif";    contact_off = new Image();    contact_off.src = "/menu/contact.gif";	neighborhoods_on = new Image();    neighborhoods_on.src = "/menu/neighborhoods_f2.gif";    neighborhoods_off = new Image();    neighborhoods_off.src = "/menu/neighborhoods.gif";	bclistings_on = new Image();    bclistings_on.src = "/menu/bclistings_f2.gif";    bclistings_off = new Image();    bclistings_off.src = "/menu/bclistings.gif";	searchmls_on = new Image();    searchmls_on.src = "/menu/searchmls_f2.gif";    searchmls_off = new Image();    searchmls_off.src = "/menu/searchmls.gif";	openhouses_on = new Image();    openhouses_on.src = "/menu/openhouses_f2.gif";    openhouses_off = new Image();    openhouses_off.src = "/menu/openhouses.gif";	whoweare_on = new Image();    whoweare_on.src = "/menu/whoweare_f2.gif";    whoweare_off = new Image();    whoweare_off.src = "/menu/whoweare.gif";	agents_on = new Image();    agents_on.src = "/menu/agents_f2.gif";    agents_off = new Image();    agents_off.src = "/menu/agents.gif";	projects_on = new Image();    projects_on.src = "/menu/projects_f2.gif";    projects_off = new Image();    projects_off.src = "/menu/projects.gif";	community_on = new Image();    community_on.src = "/menu/community_f2.gif";    community_off = new Image();    community_off.src = "/menu/community.gif";}// Function to "activate" images.function menuOn(menuName) {    if (document.images) {    document[menuName].src = eval(menuName + "_on.src");    }}// Function to "deactivate" images.function menuOff(menuName) {    if (document.images) {    document[menuName].src = eval(menuName + "_off.src");    }}//Function to reveal submenufunction showSub(currOption) {	document.getElementById('listingssub').style.display='none';	document.getElementById('aboutsub').style.display='none';	if (document.getElementById) {		bcSub=document.getElementById(currOption).style;		if (bcSub.display == "none") {			bcSub.display="block";		}		else {			cbcOption.display="none";		}	}		}//function to hide submenus when rolling over menus without submenusfunction noSub(currOption) {	document.getElementById('listingssub').style.display='none';	document.getElementById('aboutsub').style.display='none';}
