if (param("index") == "" && param("override")!="true") {
//	location="http://www.prisonersband.com";
	location="../index.html";
}

var menuArray=new Array(10);
var imageArray=new Array(10);
menuArray[0]="home/index.html";
imageArray[0]="Home";
menuArray[1]="profile/index.html";
imageArray[1]="Profile";
menuArray[2]="news/index.php";
imageArray[2]="News";
menuArray[3]="gallery/index.php";
imageArray[3]="Gallery";
menuArray[4]="lyrics/index.html";
imageArray[4]="Lyrics";
menuArray[5]="downloads/index.html";
imageArray[5]="Downloads";
menuArray[6]="shop/index.html";
imageArray[6]="Shop";
menuArray[7]="contactus/index.php";
imageArray[7]="ContactUs";
menuArray[8]="links/index.php";
imageArray[8]="Links";
menuArray[9]="guestbook/index.php";
imageArray[9]="GuestBook";

document.write('<table align="center"><tr><td>');
for (var i=0;i < menuArray.length;i++) {
	document.write('<td>');
	if (param("index")== i) {
		document.write('<br>');
	}
	document.writeln('<A href="../' + menuArray[i]+ '?index=' + i + '"><IMG src="../images/Button' + imageArray[i]+ '.gif" border=0></A></td>');
}
document.writeln('</td></tr></table>');

function param(name) {
	var regexS = "[\\?&]"+name+"=([^&#]*)";
	var regex = new RegExp(regexS);
	var tmpURL = window.location.href;
	var results = regex.exec(tmpURL);
	if( results == null )
		return "";
	else
 		return results[1];
}
