// main javascript file

var cache = Array();
cache["search_button_off"] = new Image(30, 23);
cache["search_button_on"] = new Image(30,23);
cache["sb_first_development_off"] = new Image(30, 23);
cache["sb_first_development_on"] = new Image(30, 23);
cache["sb_first_soft_off"] = new Image(30, 23);
cache["sb_first_soft_on"] = new Image(30, 23);
cache["sb_first_support_off"] = new Image(30, 23);
cache["sb_first_support_on"] = new Image(30, 23);
cache["search_button_off"].src = pixurl + "/search.gif";
cache["search_button_on"].src = pixurl + "/search_o.gif";
cache["sb_first_development_off"].src = pixurl + "/searchb.gif";
cache["sb_first_development_on"].src = pixurl + "/searchb_o.gif";
cache["sb_first_soft_off"].src = pixurl + "/searchb.gif";
cache["sb_first_soft_on"].src = pixurl + "/searchb_o.gif";
cache["sb_first_support_off"].src = pixurl + "/searchb.gif";
cache["sb_first_support_on"].src = pixurl + "/searchb_o.gif";

function mnu (action) {
	var todo = document.getElementById("pdmenu_items");
	var line = document.getElementById("line");
	if (action == "show") {
		todo.style.display = "block";
		line.style.width = "643px";
	}
	else if (action == "hide") {
		todo.style.display = "none";
		line.style.width = "800px";
	}
}

function hlimage(id, action) {
	var obj = document.getElementById(id);
	if (action == "on") {
		obj.src = cache[id + "_on"].src;
	}
	else if (action == "off") {
		obj.src = cache[id + "_off"].src;
	}
}
