function closemenuOver() {
	document.getElementById('close').childNodes[0].src = "/images/close-menu-over.png";
}

function closemenuOut() {
	document.getElementById('close').childNodes[0].src = "/images/close-menu.png";
}

function movemenuOver() {
	document.getElementById('move_me').style.background = "url(/images/move-me-over.png) no-repeat center center";
}

function movemenuOut() {
	document.getElementById('move_me').style.background = "url(/images/move-me.png) no-repeat center center";
}

var closeOver = new Image();
closeOver.src = "/images/close-menu-over.png";

var moveOver = new Image();
moveOver.src = "/images/move-me-over.png";

var theURL = document.URL;
var thepage = new Array ();
thepage[0] = "Home";
thepage[1] = "About";
thepage[2] = "Web Design";
thepage[3] = "Contact";
thepage[4] = "Resume";
thepage[5] = "My Games";
thepage[6] = "Photos";
thepage[7] = "Art";
thepage[8] = "My Movies";
thepage[9] = "Links";
thepage[10] = "Site map";

var thetrueURL = new Array ();
thetrueURL[0] = "/index.php";
thetrueURL[1] = "/about.html";
thetrueURL[2] = "/web.html";
thetrueURL[3] = "/contact.html";
thetrueURL[4] = "/resume.html";
thetrueURL[5] = "/flash/";
thetrueURL[6] = "/images/photos/index.php";
thetrueURL[7] = "/art.html";
thetrueURL[8] = "/mymovies.php";
thetrueURL[9] = "/links.html";
thetrueURL[10] = "/sitemap.html";

var theURLalt = new Array();
theURLalt[0] = "BufferedBrain - Affordable Web Design Services and More";
theURLalt[1] = "About BufferedBrain";
theURLalt[2] = "Professional Web Design Services and Database Management";
theURLalt[3] = "Contact me for affordable web service and more";
theURLalt[4] = "View my resume";
theURLalt[5] = "My Flash Games";
theURLalt[6] = "My photography";
theURLalt[7] = "My Art works";
theURLalt[8] = "My DVD collection";
theURLalt[9] = "Cool links";
theURLalt[10] = "Sitemap";

var theURLsLength = thetrueURL.length;

theURL = theURL.toLowerCase();

var theURLtoCHECK;
var theURLtoCHECKsmaller;


//theURL.indexOf(

//var isWindows = false;
//if (navigator.userAgent.indexOf(“Win”) != -1) {
//isWindows = true;
//}


document.write("<ul>");
for ( var i = 0; i < theURLsLength; i++) {
	theURLtoCHECK = "http://www.bufferedbrain.com" + thetrueURL[i];
	theURLtoCHECKsmaller = "http://bufferedbrain.com" + thetrueURL[i];
	if ((theURL.indexOf(theURLtoCHECK) != -1) || (theURL.indexOf(theURLtoCHECKsmaller) != -1)) {
		document.write("<li><a href=\""+thetrueURL[i]+"\" alt=\""+theURLalt[i]+"\" style=\"background: url(/images/visited.png) no-repeat right top;\"><font color=\"#FF0000\">"+thepage[i]+"</font></a></li>");
	}
	else {
		document.write("<li><a href=\""+thetrueURL[i]+"\"  alt=\""+theURLalt[i]+"\" class=\"\">"+thepage[i]+"</a></li>");
	}
}
document.write("</ul>");
document.write("<div style=\"clear:both;\">&nbsp;</div>");
document.write("<a href=\"#\" onclick=\"hideMenu(); return false;\" id=\"close\" onMouseOver=\"closemenuOver();\" onMouseOut=\"closemenuOut();\"><img src=\"/images/close-menu.png\" alt=\"close menu\" border=\"0\"></a>");
document.write("<a href=\"\" onClick=\"return false;\" id=\"move_me\" class=\"draggable\" alt=\"Move Me!\" onMouseOver=\"movemenuOver();\" onMouseOut=\"movemenuOut();\">&nbsp;</a>");