function switchpage(select) 
{
	// JavaScript function for switching to web page when user
	// selects option from the given list box.
	var thisForm=document.forms[0];
	var index;
	for(index=0; index<select.options.length; index++)
		if(select.options[index].selected)
		{
			if (select.options[index].value != "") {
				thisForm.action = select.options[index].value;
			}
			thisForm.submit();
			return true;
		}
	return false;
}
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

	var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		search_over = newImage("/images/layout/search-over.gif");
		buy_over = newImage("/images/layout/buy-over.gif");
		sell_over = newImage("/images/layout/sell-over.gif");
		view_over = newImage("/images/layout/view-over.gif");
		comm_over = newImage("/images/layout/comm-over.gif");
		reloc_over = newImage("/images/layout/reloc-over.gif");
		other_over = newImage("/images/layout/other-over.gif");
		about_over = newImage("/images/layout/about-over.gif");
		agent_over = newImage("/images/layout/agent-over.gif");
		contact_over = newImage("/images/layout/contact-over.gif");
		tour_over = newImage("/images/layout/tour-over.gif");
		preloadFlag = true;
	}
}