var topnav = [];
topnav.customer = new Rollover("customer", "/images/topnav/customer-service.gif", "/images/topnav/customer-service_on.gif");
topnav.ordering = new Rollover("ordering", "/images/topnav/ordering-information.gif", "/images/topnav/ordering-information_on.gif");
topnav.contact = new Rollover("contact", "/images/topnav/contact-us.gif", "/images/topnav/contact-us_on.gif");

standard="Title, Artist or Item #";

function searchBox(field, focused) {
	if(focused) {
		if(field.value==standard)
			field.value=""
	} else {
		if(field.value.replace(/\s+/, "")=="")
			field.value=standard;
	}
}

navLayers = ["a1", "a2", "categories", "prices", "sizes"];

function show(layerKey) {
	for (x = 0; x < navLayers.length; x++)
		document.getElementById("index_" + navLayers[x]).style.display = (navLayers[x] == layerKey) ? "block" : "none";
}

function verifySearch() {
	if (document.forms["search"].query.value.replace(/\s+/, "") != "" && document.forms["search"].query.value != standard)
		document.forms["search"].submit();
}
