function getURL(name) {

var x = document.getElementById(name);

var z = x.name;

if (z  == document.URL){
alert("You're already on that page, buddy.");
}
else {
window.location = z;
}
}

function getLinks() {

var fullLink = null;
var x = 0;

var location = new Array();
var id = new Array();
var text = new Array();

var linksFront = "<li><a name='";
var idHead = "' id='";
var action = "' onClick='getURL(\"";
var linkEnd = "\")' >";
var endTag = "</a></li>";


location[0] = "http://www.xoid.us/";
id[0] = "main";
text[0] = "Main Page";
location[1] = "http://forums.xoid.us/";
id[1] = "forums";
text[1] = "Forums";
location[2] = "http://www.xoid.us/arcade/index.html";
id[2] = "arcade";
text[2] = "Xoid Arcade";
location[3] = "http://www.xoid.us/guest-book/index.php";
id[3] = "guest";
text[3] = "Guest Book";
location[4] = "http://xoid.us/about.html";
id[4] = "about";
text[4] = "About Xoid";
location[5] = "http://xoid.us/search.html";
id[5] = "search";
text[5] = "Search";
location[6] = "http://xoid.us/feedback.html";
id[6] = "feedback";
text[6] = "Feedback";

/*
location[0] = "http://www.xoid.us/";
id[0] = "main";
text[0] = "Main Page"; */

location[7] = "http://xoid.us/blog";
id[7] = "blog";
text[7] = "Blog";


document.write("<div id='linkwrap'><ul>");
for (x = 0; x < id.length; x++){
fullLink = linksFront + location[x] + idHead + id[x] + action + id[x] + linkEnd + text[x] + endTag;
document.write(fullLink);
}
document.write("</ul></div>");



}

function getGetLinks(){

getBanner();
getLinks();
}
function getBanner() {

document.write("<h1>Xoid</h1>");
}
