function rollover(imagename) {
	document.images[imagename].src="images/global/"+imagename+"-highlight.gif";
}
function rolloff(imagename) {
	document.images[imagename].src="images/global/"+imagename+".gif";
}
var buttons = ["home", "bio", "works", "recordings", "writing", "press", "contact", "links"];
function bighead() {
	var s = "<img src='images/global/header.jpg'><br>";
	var i;
	for (i=0;i<buttons.length;i++) {
		var img = new Image();
		img.src = "images/global/"+buttons[i]+"-highlight.gif";
		img.src = "images/global/"+buttons[i]+".gif";
		s += "<a href='";
		s += buttons[i]+".html";
		s += "'><img border=0 src='";
		s += img.src;
		s += "' alt='";
		s += buttons[i];
		s += "' name='";
		s += buttons[i];
		s += "' onmouseover='rollover(\"";
		s += buttons[i];
		s += "\");' onmouseout='rolloff(\"";
		s += buttons[i];
		s += "\");'><\/a>";
	}
	return s;
}
function smallhead() {
	var s = "<img src='images/global/header-small.jpg' align='left'><div align='right' style='padding: 8px;'>";
	var i;
	for (i=0;i<buttons.length;i++) {
		var img = new Image();
		img.src = "images/global/"+buttons[i]+"-highlight.gif";
		img.src = "images/global/"+buttons[i]+".gif";
		s += "<a href='";
		s += buttons[i]+".html";
		s += "'><img border=0 src='";
		s += img.src;
		s += "' alt='";
		s += buttons[i];
		s += "' name='";
		s += buttons[i];
		s += "' onmouseover='rollover(\"";
		s += buttons[i];
		s += "\");' onmouseout='rolloff(\"";
		s += buttons[i];
		s += "\");'><\/a>";
	}
	s += "<\/div>";
	return s;
}
function load() {
	bigheadelement = document.getElementById("header");
	smallheadelement = document.getElementById("smallheader");
	if (bigheadelement) { bigheadelement.innerHTML = bighead(); }
	if (smallheadelement) { smallheadelement.innerHTML = smallhead(); }
}
if (document) { load(); }
