function Header(h) {
	this.h = h;
}

Header.prototype.width = 150;

Header.prototype.write = function(num) {
	var width = this.width * this.h.length;
	document.write("<table class=header width=\"" + width + "\" cellpadding=0 cellboder=0 cellspacing=0><tr class=headerRow>");
	for (var e in this.h) {
		document.write("<td class=headerCol width=\"" + this.h[e].width + "\">");
		this.h[e].write();
		document.write("</td>");
		if (e < this.h.length - 1) {
			document.write("<td valign=middle width=\"1\"><img src=\"images/black.gif\" height=25 width=1></td>");
		}
	}
	document.write("</tr></table>");
}

function MainHeader(ext) {
	var h = new Header([
				new ISLink("home", "images/home_in.gif", "images/home_out.gif", "index.htm", ext),
				new ISLink("weddings", "images/weddings_in.gif", "images/weddings_out.gif", "weddings.htm", ext), 
				new ISLink("profile", "images/artistProfile_in.gif", "images/artistProfile_out.gif", "profile.htm", ext),
				new ISLink("contact", "images/contact_in.gif", "images/contact_out.gif", "contact.htm", ext)
				]);
	h.write();
}


