var linklist = new Array()

var linkindex = 0

var cur_page = ""

var doc_out = ""


// constructs a single link entry

function construct(title, url)

{

   this.title = title

   this.url = url 

   return this

}



function addindex()

{

	linkindex = linkindex + 1

	return linkindex

}



linklist[addindex()] = new construct("HOME", "index.html")

linklist[addindex()] = new construct("ABOUT", "about.html")

linklist[addindex()] = new construct("SERVICES", "services.html")

linklist[addindex()] = new construct("RFP", "rfp.html")

linklist[addindex()] = new construct("CONTACT", "contact.html")



cur_page = location.href.substring(location.href.lastIndexOf("/") + 1)

// if index.html is defaulted, cur_page will be empty

if (cur_page == "") cur_page = "index.html"



for (var index = 1; index < linklist.length; index ++) {

//	<tr>
//		<td><a href="rfp.html">&nbsp;RFP</a></td>
//	</tr>
//	<tr height="2">
//		<td bgcolor="#8c8c8c" height="2">
//		<img src="globalImages/snglPxl.gif" width="1" height="2" border="0"></td>
//	</tr>
	doc_out += '<table border="0" cellpadding="0" cellspacing="2" width="100%">'
	doc_out += "<tr><td>"


	// only make this a live link if it isn't for the current page
	

	if (linklist[index].url != cur_page) {

		doc_out += "<a href=\"" + linklist[index].url + "\">&nbsp;"
		doc_out += linklist[index].title + "</a>"

	}

	else {
		doc_out += "<span class=\"menuNav\">&nbsp;"
		doc_out += linklist[index].title
		doc_out += "</span>"

	}

	doc_out += "</td></tr>"
	doc_out += "<tr height=\"2\">"

	doc_out += "<td bgcolor=\"#8c8c8c\" height=\"2\">"
	doc_out += "<img src=\"globalImages/snglPxl.gif\" width=\"1\" height=\"2\" border=\"0\"></td></tr>"
}

doc_out += '</table>'

document.write(doc_out)



		
