var str = window.location.toString();
var theleft = str.lastIndexOf("/") + 1;

var directory = str.indexOf("/d");
if(theleft > 0){
	page = str.substring(theleft);
}
else{
	page = '';	
}

if (directory > -1){
	dir = "../";
}
else{
	dir = "";
}

document.write('<table cellpadding="0" cellspacing="0" border="0" align="left">');

document.write('<td class="link">');
if ( page != '' && page != 'index.html' && page != 'indextemplate.html' ){
	document.write('<a href="' + dir + 'index.html">Home</a>');
}
else{
	document.write('<b>Home</b>');
}
document.write('</td>');

document.write('<td class="spacer">&nbsp;</td>');

document.write('<td class="link">');
if ( page != 'about.html'){
	document.write('<a class="menu" href="' + dir + 'about.html">About</a>');
}
else{
	document.write('<b>About</b>');
}
document.write('</td>');

document.write('<td class="spacer">&nbsp;</td>');

document.write('<td class="link">');
if ( page != 'creators.html'){
	document.write('<a class="menu" href="' + dir + 'creators.html">Creators</a>');
}
else{
	document.write('<b>Creators</b>');
}
document.write('</td>');

document.write('<td class="spacer">&nbsp;</td>');

document.write('<td class="link">');
if ( page != 'gallery.html'){
	document.write('<a class="menu" href="' + dir + 'gallery.html">Gallery</a>');
}
else{
	document.write('<b>Gallery</b>');
}
document.write('</td>');

document.write('<td class="spacer">&nbsp;</td>');

document.write('<td class="link">');
if ( page != 'mini-comics.html'){
	document.write('<a class="menu" href="' + dir + 'mini-comics.html">Mini Comics</a>');
}
else{
	document.write('<b>Mini Comics</b>');
}
document.write('</td>');

document.write('</table>');
