//-----******Remove Inhearited Frames******-----




if (parent != self){
    top.location=self.document.location;
}









//-----******Page Body and Style******-----




document.writeln('<style>');
document.writeln('body  {');
document.writeln('background: #ffffff;');
document.writeln('margin-top: 4px;');
document.writeln('margin-left: 4px;');
document.writeln('margin-right: 0px;');
document.writeln(' }');
  document.writeln('a:link{');
  document.writeln('text-decoration: none;');
  document.writeln('color: #0000ff;');
  document.writeln(' }');
  document.writeln('a:visited{');
  document.writeln('text-decoration: none;');
  document.writeln('color: #6666ff;');
  document.writeln(' }');
  document.writeln('a:hover{');
  document.writeln('text-decoration: none;');
  document.writeln('color: #ff0000;');
  document.writeln(' }');
  document.writeln('a:alink{');
  document.writeln('text-decoration: none;');
  document.writeln('color: #0000ff;');
  document.writeln(' }');

  
document.writeln('.menu  {');
document.writeln('font-family: Verdana , Arial , Helvetica , sans-serif;');
document.writeln('text-indent: 8px;');
document.writeln('font-size: 8pt;');
document.writeln('color: #ffffff;');
document.writeln('text-decoration: none;');
document.writeln(' }');
  document.writeln('.menulink:link  {');
  document.writeln('font-family: Verdana , Arial , Helvetica , sans-serif;');
  document.writeln('font-size: 8pt;');
  document.writeln('color: #ffffff;');
  document.writeln('text-decoration: none;');
  document.writeln(' }');
  document.writeln('.menulink:visited  {');
  document.writeln('font-family: Verdana , Arial , Helvetica , sans-serif;');
  document.writeln('font-size: 8pt;');
  document.writeln('color: #b7b7ff;');
  document.writeln('text-decoration: none;');
  document.writeln(' }');
  document.writeln('.menulink:hover  {');
  document.writeln('font-family: Verdana , Arial , Helvetica , sans-serif;');
  document.writeln('font-size: 8pt;');
  document.writeln('color: #ff0000;');
  document.writeln('text-decoration: none;');
  document.writeln(' }');
  document.writeln('.menulink:alink  {');
  document.writeln('font-family: Verdana , Arial , Helvetica , sans-serif;');
  document.writeln('font-size: 8pt;');
  document.writeln('color: #ff0000;');
  document.writeln('text-decoration: none;');
  document.writeln(' }');

  document.writeln('.menusub:link  {');
  document.writeln('font-family: sans-serif , Helvetica , Arial;');
  document.writeln('font-size: 8pt;');
  document.writeln('color: #ffffff;');
  document.writeln('text-decoration: none;');
  document.writeln(' }');
  document.writeln('.menusub:visited  {');
  document.writeln('font-family: sans-serif , Helvetica , Arial;');
  document.writeln('font-size: 8pt;');
  document.writeln('color: #b7b7ff;');
  document.writeln('text-decoration: none;');
  document.writeln(' }');
  document.writeln('.menusub:hover  {');
  document.writeln('font-family: sans-serif , Helvetica , Arial;');
  document.writeln('font-size: 8pt;');
  document.writeln('color: #ff0000;');
  document.writeln('text-decoration: none;');
  document.writeln(' }');
  document.writeln('.menusub:alink  {');
  document.writeln('font-family: sans-serif , Helvetica , Arial;');
  document.writeln('font-size: 8pt;');
  document.writeln('color: #ff0000;');
  document.writeln('text-decoration: none;');
  document.writeln(' }');

document.writeln('</style>');











//-------******Page Header******-------
//Note: MAKE SURE to change root directory to the proper name 




function writeheader(){


//location writer code





   var rootdir = "dbneese";		// !!!!!!!!!!!!  Place ROOT DIRECTORY name here  !!!!!!!!!!

	rootdir = rootdir + "/";

//older ver bak
//   var type = location.href.split("//");
//	type[0] = type[0] + "//";
//   var loctmp = type[1].split( rootdir );

   var loctmp = location.href.split( rootdir );
   var type = loctmp[0].split( ":/" );
	type[0] = type[0] + ":/";
	loctmp[0] = type[1];


if ( loctmp[1] == null ){

	document.writeln('<b>Error: The root directory cannot be found!! <br><br>Please check the name of the root directory written in the javascript file (look in the page header function)</b><br><br><br>');
}

   var b4root_h = loctmp[0];
	b4root = b4root_h.split ("/");
   var aftroot_h = loctmp[1];
	aftroot = aftroot_h.split ("/");
   var revdir = "";




	for(l=0;l<aftroot.length-1;l++){
   		revdir = revdir + "../";
	}



	var deep = revdir;
	var imgloc = deep + "images/"; //location of images


document.writeln('<table align="center" width="770" border="0" cellpadding="0" cellspacing="0">');
document.writeln('    <tr><td width="292" align="right" valign="bottom" rowspan="2">');






//-----**Check for flash**-----



    // Check for Mac
    if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.indexOf("Mac") != -1 ) { 
	document.writeln('	<img src="' + imgloc + 'toplft_logo.gif" border="0" width="292" height="99"></td>');
	document.writeln('	<td width="478" align="left" background="' + imgloc + 'toprgt.jpg">');
	document.writeln('	<img src="' + imgloc + 'clear.gif" border="0" height="62" width="468"></td></tr>');

    }


    var bName = navigator.appName;








//-----Check for Netscape ver < 5------

var fname = (document.title.substring(0,4));

fname = "logo";  //no other flash files yet
var hFix = 62;


    if (bName == "Netscape") {
        var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

	if( (parseFloat(navigator.appVersion)) >= 5){

	    hFix = 57;
	}

	if ( plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4 ) {
	    // Check for Flash version 4 or greater in Netscape
	    // Flash 4 is found
	   
		    document.writeln('	<EMBED src="' + deep + 'flash/' + fname + '.swf" quality=high bgcolor=#FFFFFF  WIDTH=292 HEIGHT=99 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></td>');
		    document.writeln('	<td width="478" align="right" background="' + imgloc + 'toprgt.jpg">');
		    document.writeln('	    <img src="' + imgloc + 'clear.gif" border="0" height="' + hFix + '" width="10"></td></tr>');

	} 
	else {
	    // Netscape w/Flash 4 is not detected
	document.writeln('	<img src="' + imgloc + 'toplft_logo.gif" border="0" width="292" height="99"></td>');
	document.writeln('	<td width="478" align="left" background="' + imgloc + 'toprgt.jpg">');
	document.writeln('	<img src="' + imgloc + 'clear.gif" border="0" height="' + hFix + '" width="468"></td></tr>');
	    
	}
    }







//-----Check for IE, etc.-----



    else {
	var TestFlash = true;

	document.writeln('	<script language="VBScript">');
	document.writeln('	on error resume next');
	document.writeln('	FlashInstalled = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))');
	document.writeln('	TestFlash = FlashInstalled');
	document.writeln('	</script>');

	if (TestFlash == true ) {
	    //Flash 4 is found in IE or compatible

		    document.writeln('	<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID=logo WIDTH=292 HEIGHT=99><PARAM NAME=movie value="' + deep + 'flash/logo.swf"><PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF></object></td>');
	    	    document.writeln('	<td width="478" align="left" background="' + imgloc + 'toprgtie.jpg">');
	    	    document.writeln('	    <img src="' + imgloc + 'clear.gif" border="0" height="62" width="10"></td></tr>');    


	}
	else {
	    // IE w/Flash 4 is not detected
	document.writeln('	<img src="' + imgloc + 'toplft_logo.gif" border="0" width="292" height="99"></td>');
	document.writeln('	<td width="478" align="left" background="' + imgloc + 'toprgt.jpg">');
	document.writeln('	<img src="' + imgloc + 'clear.gif" border="0" height="62" width="468"></td></tr>');
	}
    }


document.writeln('    <tr><td width="478" align="right" background="' + imgloc + 'btmrgt.jpg">');
document.writeln('	<font face="verdana,arial,helvetica" size="1">');


scmenu(deep); //writes shortcut menu


document.writeln('</font></td></tr>');


sidemenu(deep, imgloc); //writes left side menu



document.writeln('		<img src="' + imgloc + 'btmenu.gif" border="0" height="12" width="130"></td>');
document.writeln('	    <td width="12" height="30" valign="top">');
document.writeln('		<img src="' + imgloc + 'insdcnr.gif" border="0" height="12" width="12"></td>');
document.writeln('	    <td width="628" valign="center">');

docloc(rootdir); //writes document location


document.writeln('<table align="center" border="0" cellpadding="0" cellspaging="0" width="98%">');
document.writeln('    <tr><td>');
















//-----******InPage functions******-----



//-------Shortcut Menu--------

function scmenu(deep){



if(parseInt(navigator.appVersion) >= 4) {

    
document.writeln('	<form name="quickjump" onSubmit="return jumplink(quickjump);" action="">');
document.writeln('	<select name="navmenu" onChange="return jumplink(quickjump);">');
document.writeln('	<option selected>Shortcut to:</option>');
document.writeln('	<option></option>');
document.writeln('	<option value="' + deep + 'home.html">Home Page</option>');
document.writeln('	<option>--------</option>');
document.writeln('	<option value="' + deep + 'archive/">MP3s</option>');
document.writeln('	<option value="' + deep + 'archive/">&#149; MP3 Archive</option>');
document.writeln('	<option value="' + deep + 'charts/billboard/">&#149; Billboard Top 50</option>');
document.writeln('	<option value="' + deep + 'charts/mtv/">&#149; MTV Top 20</option>');
document.writeln('	<option>--------</option>');
document.writeln('	<option value="' + deep + 'snes/">SNES</option>');
document.writeln('	<option value="' + deep + 'snes/popemu.html">&#149; Emulators</option>');
document.writeln('	<option value="' + deep + 'snes/roms.html"> &#149; SNES Roms</option>');
document.writeln('	<option value="' + deep + 'snes/sites.html"> &#149; SNES Sites</option>');
document.writeln('	<option>--------</option>');
document.writeln('	<option value="' + deep + 'genesis/">Genesis</option>');
document.writeln('	<option value="' + deep + 'genesis/popemu.html"> &#149; Emulators</option>');
document.writeln('	<option value="' + deep + 'genesis/roms.html"> &#149; Genesis Roms</option>');
document.writeln('	<option value="' + deep + 'genesis/sites.html"> &#149; Genesis Sites</option>');
document.writeln('	<option>--------</option>');
document.writeln('	<option value="' + deep + 'me/">About Me</option>');
document.writeln('	<option value="' + deep + 'me/pics.html"> &#149; Pictures</option>');
document.writeln('	<option value="' + deep + 'me/resume.html"> &#149; My Resume</option>');
document.writeln('	<option>--------</option>');
document.writeln('	<option value="' + deep + 'humor/">Humor</option>');
document.writeln('	<option value="' + deep + 'humor/page1.html"> &#149; Speed Limit</option>');
document.writeln('	<option value="' + deep + 'humor/page2.html"> &#149; Blond & Lawyer</option>');
document.writeln('	<option value="' + deep + 'humor/page4.html"> &#149; Bridge To Hawaii</option>');
document.writeln('	<option value="' + deep + 'humor/"> &#149; Other...</option>');
document.writeln('	<option>--------</option>');
document.writeln('	<option value="' + deep + 'info/">Help/Info</option>');
document.writeln('	<option value="' + deep + 'info/index.html#mp3"> &#149; Help on MP3s</option>');
document.writeln('	<option value="' + deep + 'info/index.html#emu"> &#149; Roms/Emulators</option>');
document.writeln('	<option value="' + deep + 'info/upbrows.html"> &#149; Update Browser</option>');
document.writeln('	<option value="' + deep + 'info/contact.html"> &#149; Cont. Webmater</option>');
document.write('	</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</form>');

}

else {

document.writeln('	</font><font face="verdana,arial,helvetica," size="1" color="#ffffff"><b>');
document.writeln('	<a href="' + deep + 'info/upbrows.html" class="menulink">Please <blink>click here</blink> to update your browser</a>');
document.writeln('	</b>');

    if (navigator.appName.substring(0,8) == "Netscape"){
	document.write('	<img src="' + deep + 'images/clear.gif" border="0" height="31" width="10">');
    }
    else {
	document.write('	<img src="' + deep + 'images/clear.gif" border="0" height="39" width="10">');
    }
}

} //end function







//----------Side Menu----------



function sidemenu(deep, imgloc){


var boldon = "<b>";
var boldoff = "</b>";

if ( (navigator.appName == "Netscape") && (parseFloat(navigator.appVersion) < 5) ){

boldon = "";
boldoff = "";

}


document.writeln('    <tr><td width="770" colspan="3">');
document.writeln('	<table align="center" width="770" border="0" cellpadding="0" cellspacing="0">');
document.writeln('	    <tr><td valign="top" rowspan="2" width="130">');
document.writeln('	    <img src="' + imgloc + 'topmenu.jpg" border="0" height="30" width="130"><br>');
document.writeln('	    <table align="center" width="130" border="0" cellpadding="0" cellspacing="0">');
document.writeln('		<tr><td valign="top" rowspan="2" width="130" bgcolor="#000066">');
document.writeln('		   <table align="center" height="225" width="115" border="0" cellpadding="0" cellspacing="0">');
document.writeln('			<tr><td width="115" valign="top">');


document.writeln('				<b>');


    switch (document.title.substring(0,4)){


      case "Home" :
	document.writeln('				<a href="' + deep + 'home.html" class="menulink">Home</a><br>');

	document.writeln('				<a href="' + deep + 'archive/" class="menulink">MP3s</a><br>');
	document.writeln('				<a href="' + deep + 'snes/" class="menulink">Snes</a><br>');
	document.writeln('				<a href="' + deep + 'genesis/" class="menulink">Genesis</a><br>');
	document.writeln('				<a href="' + deep + 'me/" class="menulink">About Me</a><br>');
	document.writeln('				<a href="' + deep + 'humor/" class="menulink">Humor</a><br>');
	document.writeln('				<a href="' + deep + 'info/" class="menulink">Information</a><br>');
		    break;

      case "MP3 " :
	document.writeln('				<a href="' + deep + 'home.html" class="menulink">Home</a><br>');
	document.writeln('				<a href="' + deep + 'archive/" class="menulink"><u>MP3s</u></a><br>');
	document.writeln('					<img src="' + imgloc + 'clear.gif" border="0" height="3" width="1"><br>');
	     document.writeln('					<a href="' + deep + 'archive/" class="menusub">' + boldoff + '&nbsp;&nbsp;&nbsp;MP3 Archive</font></a><br>');
	     document.writeln('					<a href="' + deep + 'charts/billboard/" class="menusub">&nbsp;&nbsp;&nbsp;Billboard Top 50</font></a><br>');
	     document.writeln('					<a href="' + deep + 'charts/mtv/" class="menusub">&nbsp;&nbsp;&nbsp;MTV Top 20' + boldon + '</font></a><br>');
	document.writeln('					<img src="' + imgloc + 'clear.gif" border="0" height="4" width="1"><br>');
	document.writeln('				<b>');
	document.writeln('				<a href="' + deep + 'snes/" class="menulink">Snes</a><br>');
	document.writeln('				<a href="' + deep + 'genesis/" class="menulink">Genesis</a><br>');
	document.writeln('				<a href="' + deep + 'me/" class="menulink">About Me</a><br>');
	document.writeln('				<a href="' + deep + 'humor/" class="menulink">Humor</a><br>');
	document.writeln('				<a href="' + deep + 'info/" class="menulink">Information</a><br>');
		    break;

      case "SNES" :
	document.writeln('				<a href="' + deep + 'home.html" class="menulink">Home</a><br>');
	document.writeln('				<a href="' + deep + 'archive/" class="menulink">MP3s</a><br>');
	document.writeln('				<a href="' + deep + 'snes/" class="menulink"><u>Snes</u></a><br>');
	document.writeln('					<img src="' + imgloc + 'clear.gif" border="0" height="3" width="1"><br>');
	     document.writeln('					<a href="' + deep + 'snes/popemu.html" class="menusub">' + boldoff + '&nbsp;&nbsp;&nbsp;Emulators</font></a><br>');
	     document.writeln('					<a href="' + deep + 'snes/roms.html" class="menusub">&nbsp;&nbsp;&nbsp;Roms</font></a><br>');
	     document.writeln('					<a href="' + deep + 'snes/sites.html" class="menusub">&nbsp;&nbsp;&nbsp;Sites' + boldon + '</font></a><br>');
	document.writeln('					<img src="' + imgloc + 'clear.gif" border="0" height="4" width="1"><br>');
	document.writeln('				<b>');
	document.writeln('				<a href="' + deep + 'genesis/" class="menulink">Genesis</a><br>');
	document.writeln('				<a href="' + deep + 'me/" class="menulink">About Me</a><br>');
	document.writeln('				<a href="' + deep + 'humor/" class="menulink">Humor</a><br>');
	document.writeln('				<a href="' + deep + 'info/" class="menulink">Information</a><br>');
		    break;

      case "Gene" :
	document.writeln('				<a href="' + deep + 'home.html" class="menulink">Home</a><br>');
	document.writeln('				<a href="' + deep + 'archive/" class="menulink">MP3s</a><br>');
	document.writeln('				<a href="' + deep + 'snes/" class="menulink">Snes</a><br>');
	document.writeln('				<a href="' + deep + 'genesis/" class="menulink"><u>Genesis</u></a><br>');
	document.writeln('					<img src="' + imgloc + 'clear.gif" border="0" height="3" width="1"><br>');
	     document.writeln('					<a href="' + deep + 'genesis/popemu.html" class="menusub">' + boldoff + '&nbsp;&nbsp;&nbsp;Emulators</font></a><br>');
	     document.writeln('					<a href="' + deep + 'genesis/roms.html" class="menusub">&nbsp;&nbsp;&nbsp;Roms</font></a><br>');
	     document.writeln('					<a href="' + deep + 'genesis/sites.html" class="menusub">&nbsp;&nbsp;&nbsp;Sites' + boldon + '</font></a><br>');
	document.writeln('					<img src="' + imgloc + 'clear.gif" border="0" height="4" width="1"><br>');
	document.writeln('				<b>');
	document.writeln('				<a href="' + deep + 'me/" class="menulink">About Me</a><br>');
	document.writeln('				<a href="' + deep + 'humor/" class="menulink">Humor</a><br>');
	document.writeln('				<a href="' + deep + 'info/" class="menulink">Information</a><br>');
		    break;

      case "Abou" :
	document.writeln('				<a href="' + deep + 'home.html" class="menulink">Home</a><br>');
	document.writeln('				<a href="' + deep + 'archive/" class="menulink">MP3s</a><br>');
	document.writeln('				<a href="' + deep + 'snes/" class="menulink">Snes</a><br>');
	document.writeln('				<a href="' + deep + 'genesis/" class="menulink">Genesis</a><br>');
	document.writeln('				<a href="' + deep + 'me/" class="menulink"><u>About Me</u></a><br>');
	document.writeln('					<img src="' + imgloc + 'clear.gif" border="0" height="3" width="1"><br>');
	     document.writeln('					<a href="' + deep + 'me/" class="menusub">' + boldoff + '&nbsp;&nbsp;&nbsp;Background</font></a><br>');
	     document.writeln('					<a href="' + deep + 'me/pics.html" class="menusub">&nbsp;&nbsp;&nbsp;Pictures</font></a><br>');
	     document.writeln('					<a href="' + deep + 'me/resume.html" class="menusub">&nbsp;&nbsp;&nbsp;Resume' + boldon + '</font></a><br>');
	document.writeln('					<img src="' + imgloc + 'clear.gif" border="0" height="4" width="1"><br>');
	document.writeln('				<b>');
	document.writeln('				<a href="' + deep + 'humor/" class="menulink">Humor</a><br>');
	document.writeln('				<a href="' + deep + 'info/" class="menulink">Information</a><br>');
		    break;

      case "Humo" :
	document.writeln('				<a href="' + deep + 'home.html" class="menulink">Home</a><br>');
	document.writeln('				<a href="' + deep + 'archive/" class="menulink">MP3s</a><br>');
	document.writeln('				<a href="' + deep + 'snes/" class="menulink">Snes</a><br>');
	document.writeln('				<a href="' + deep + 'genesis/" class="menulink">Genesis</a><br>');
	document.writeln('				<a href="' + deep + 'me/" class="menulink">About Me</a><br>');
	document.writeln('				<a href="' + deep + 'humor/" class="menulink"><u>Humor</u></a><br>');
	document.writeln('					<img src="' + imgloc + 'clear.gif" border="0" height="3" width="1"><br>');
	     document.writeln('					<a href="' + deep + 'humor/stories/page1.html" class="menusub">' + boldoff + '&nbsp;&nbsp;&nbsp;Stories</font></a><br>');
	     document.writeln('					<a href="' + deep + 'humor/jokes/page1.html" class="menusub">&nbsp;&nbsp;&nbsp;Jokes</font></a><br>');
	     document.writeln('					<a href="' + deep + 'humor/endpage.html" class="menusub">&nbsp;&nbsp;&nbsp;Submit a Joke/Story' + boldon + '</font></a><br>');
	document.writeln('					<img src="' + imgloc + 'clear.gif" border="0" height="4" width="1"><br>');
	document.writeln('				<b>');
	document.writeln('				<a href="' + deep + 'info/" class="menulink">Information</a><br>');
		    break;

      case "Upda" :
      case "Info" :
	document.writeln('				<a href="' + deep + 'home.html" class="menulink">Home</a><br>');
	document.writeln('				<a href="' + deep + 'archive/" class="menulink">MP3s</a><br>');
	document.writeln('				<a href="' + deep + 'snes/" class="menulink">Snes</a><br>');
	document.writeln('				<a href="' + deep + 'genesis/" class="menulink">Genesis</a><br>');
	document.writeln('				<a href="' + deep + 'me/" class="menulink">About Me</a><br>');
	document.writeln('				<a href="' + deep + 'humor/" class="menulink">Humor</a><br>');
	document.writeln('				<a href="' + deep + 'info/" class="menulink"><u>Information</u></a><br>');
	document.writeln('					<img src="' + imgloc + 'clear.gif" border="0" height="3" width="1"><br>');
	     document.writeln('					<a href="' + deep + 'info/" class="menusub">' + boldoff + '&nbsp;&nbsp;&nbsp;FAQs</font></a><br>');
	     document.writeln('					<a href="' + deep + 'info/upbrows.html" class="menusub">&nbsp;&nbsp;&nbsp;Update Your Browser</font></a><br>');
	     document.writeln('					<a href="' + deep + 'info/contact.html" class="menusub">&nbsp;&nbsp;&nbsp;Contact Webmaster' + boldon + '</font></a><br>');
	document.writeln('					<img src="' + imgloc + 'clear.gif" border="0" height="4" width="1"><br>');
	document.writeln('				<b>');
		    break;

      default :
	document.writeln('				<a href="' + deep + 'home.html" class="menulink">Home</a><br>');
	document.writeln('				<a href="' + deep + 'archive/" class="menulink">MP3s</a><br>');
	document.writeln('				<a href="' + deep + 'snes/" class="menulink">Snes</a><br>');
	document.writeln('				<a href="' + deep + 'genesis/" class="menulink">Genesis</a><br>');
	document.writeln('				<a href="' + deep + 'me/" class="menulink">About Me</a><br>');
	document.writeln('				<a href="' + deep + 'humor/" class="menulink">Humor</a><br>');
	document.writeln('				<a href="' + deep + 'info/" class="menulink">Information</a><br>');
	}




document.writeln('				</b>');

document.writeln('			</tr></td>');
document.writeln('	    	   </table>');
document.writeln('		</tr></td>');
document.writeln('	    </table>   ');


}  //end function











//-----Location Display----



function docloc(rootdr){

rootdr = rootdr.substring(0,(rootdr.length-1));

//older ver bak
//   var type = location.href.split("//");
//	type[0] = type[0] + "//";
//   var loctmp = type[1].split( rootdr );

   var loctmp = location.href.split( rootdr );
   var type = loctmp[0].split( ":/" );
	type[0] = type[0] + ":/";
	loctmp[0] = type[1]; 




   var b4root_h = loctmp[0];
	b4root = b4root_h.split ("/");
   var aftroot_h = loctmp[1];
	aftroot = aftroot_h.split ("/");





   var printloc = '<a href="' + (type[0] + b4root_h + rootdr) + '"><u>' + rootdr + '</u></a>';


	for(l=0;l<aftroot.length;l++){

	    if ( (aftroot[l].substring(0,5)) != "index" && aftroot[l] != ""  ){

		if ( aftroot[l+1] != null ){

		    printloc = printloc + ' > ' + '<a href="' + (type[0] + b4root_h + rootdr);

			for(m=0;m<l+1;m++){

			     printloc = printloc + aftroot[m] + '/';
			}

		    printloc= printloc + ' "><u> ' + aftroot[l] + '</u></a>' ;
		}
		else{

		    printloc = printloc + ' : ' + '<a href="' + (type[0] + b4root_h + rootdr);

			for(m=0;m<l+1;m++){

			     printloc= printloc + aftroot[m];

				if ( aftroot[m+1] != null ){

				    printloc = printloc + '/';
				}
			}

		    printloc= printloc + ' "><u> ' + aftroot[l] + '</u></a>' ;
		}
	    }
	}


if ( (aftroot[1].substring(0,5)) == "index" || (loctmp[1] == "/") || (loctmp[1] == "") ){

    document.writeln('		<table align="center" valign="top" height="30" border="0" cellpadding="4" cellspacing="0">');
    document.writeln('		    <tr><td>');
    document.writeln('		    <font face="Verdana, Arial, Helvetica" size="1" color="#999999"><b>');

    document.writeln('Welcome Welcome </b></font><font face="Verdana, Arial, Helvetica" size="1" color="#000033"><b>' + document.title + '</b></font><font face="Verdana, Arial, Helvetica" size="1" color="#999999"><b> Welcome Welcome');

}
else{

    document.writeln('		<table align="left" valign="top" height="30" border="0" cellpadding="4" cellspacing="0">');
    document.writeln('		    <tr><td>');
    document.writeln('');
    document.writeln('');
    document.write('		    <font face="Verdana, Arial, Helvetica" size="1" color="#000066"><b>');
    document.write( printloc );
}

document.writeln('</b></font>');
    document.writeln('');
    document.writeln('');
document.writeln('		    </tr></td>');
document.writeln('		</table>   ');
document.writeln('	    </td></tr>');
document.writeln('	<tr><td width="640" colspan="2">');
}

}  //end function












//-----Shortcut Navigation-----



function jumplink(form){       
    jplink = form.navmenu.options[form.navmenu.selectedIndex].value;     
    if (jplink != "" && jplink != "Shortcut to:" && jplink != "--------"){

	    window.location.href = "" + jplink;


    }
    else {
	form.reset();
    }
}







function addMe(){
    document.mfrm.q.value = document.mfrm.extra.value + " ";
}













//-----Humor Section Menu-----


function writehumor(){



	var humor = "humor";		//place name of humor directory here
	var stories = "stories";       	//place name of stories directory here (if placed in humor directory leave blank)
	var jokes = "jokes";		//place name of jokes directory here (if placed in humor directory leave blank)
	var s_endnum = 7;  		//the number of the last story page
	var j_endnum = 0;  		//the number of the last joke page
	var intitle = "Humor"; 		//place title of index document (eg. "Humor") if used here Note: CAsE CeNsitiVE


	    humor = humor + "/";
	    stories = stories + "/";
	    jokes = jokes + "/";
   var loctmp = location.href.split( humor );
   var type = loctmp[0].split( ":/" );
	type[0] = type[0] + ":/";
	loctmp[0] = type[1];


if ( loctmp[1] == null ){

	document.writeln('<b>Error: The humor directory cannot be found!!<br><br>Please check the name of the humor directory written in the javascript file (look in the writehumor function)</b><br><br><br>');
	return;
}

   var b4root_h = loctmp[0];
	b4root = b4root_h.split ("/");
   var aftroot_h = loctmp[1];
	aftroot = aftroot_h.split ("/");
   var revdir = "";




	for(l=0;l<aftroot.length-1;l++){
   		revdir = revdir + "../";
	}



	var deep = revdir;
	var ttpg = document.title.split(" > Page ");
	var jors = ttpg[0].split(" > ");
	    if (jors[1] == "Stories"){jors[1] = stories;}
	    if (jors[1] == "Jokes"){jors[1] = jokes;}
	var endnum = (jors[1] == "stories/") ? s_endnum : j_endnum;
	var hpnum = (parseInt(ttpg[1]));
	var hpnumbk = deep + jors[1] + "page" + (hpnum - 1);
	var hpnumfd = deep + jors[1] + "page" + (hpnum + 1);


document.writeln('<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">');
document.writeln('    <tr><td align="center">');

document.writeln('	<font face="verdana,arial,helvetica," size="1"><b>');

	    if (document.title == intitle){
		
		hpnum = 0;
		jors[1] = stories;
		hpnumbk = deep + jors[1] + "page" + (hpnum - 1);
		hpnumfd = deep + jors[1] + "page" + (hpnum + 1);
		document.write('<center><u>Stories</u><br>We currantly have ' + s_endnum + ' stories<br><br>');

		for (i=1;i<(s_endnum + 1);i++){

		    document.write(' &nbsp;&nbsp;&nbsp;<a href="' + deep + jors[1] + 'page' + i + '.html">Page&nbsp;' + i + '</a>');
		}

		document.write('	    <a href="' + hpnumfd + '.html"> &nbsp;&nbsp;&nbsp;First&nbsp;Story&nbsp;Page&gt;&gt;</a><br><br><br>');
		document.write('<u>Jokes</u><br>We currantly have ' + j_endnum + ' Jokes<br><br>');

		jors[1] = jokes;
		hpnumbk = deep + jors[1] + "page" + (hpnum - 1);
		hpnumfd = deep + jors[1] + "page" + (hpnum + 1);
		for (i=1;i<(j_endnum + 1);i++){

		    document.write(' &nbsp;&nbsp;&nbsp;<a href="' + deep + jors[1] + 'page' + i + '.html">Page&nbsp;' + i + '</a>');
		}

		document.write('	    <a href="' + hpnumfd + '.html"> &nbsp;&nbsp;&nbsp;First&nbsp;Joke&nbsp;Page&gt;&gt;</a></center>');
		document.writeln('<br><br>');

		document.writeln('	</b></font>');

		document.writeln('    </tr></td>');
		document.writeln('</table>');
		return;

	    }
	    if ((jors[1] != stories) && (jors[1] != jokes)){

		document.write('	    <center><a href="#">&lt;&lt;Back</a> &nbsp;&nbsp;&nbsp;<a href="' + deep + 'index.html">Humor&nbsp;Home&nbsp;Page</a></center>');
		document.writeln('<br><br>');

		document.writeln('	</b></font>');

		document.writeln('    </tr></td>');
		document.writeln('</table>');
		return;
	    }



//print back if needed
if (hpnum > 0){

    if (hpnum != 1){

	document.write('	    <a href="' + hpnumbk + '.html">&lt;&lt;Back</a>');

    }
    else{

	document.write('	    <a href="' + deep + 'index.html">&lt;&lt;Back</a>');

    }
}



//prints pages
for (i=1;i<(endnum + 2);i++){

    document.write(' &nbsp;&nbsp;&nbsp;<a href="' + deep + jors[1] + 'page' + i + '.html">Page&nbsp;' + i + '</a>');
}



//prints forward if needed
if (hpnum < (endnum + 1)){

    document.write('&nbsp;&nbsp;&nbsp;&nbsp;<a href="' + hpnumfd + '.html">Forward&gt;&gt;</a>');
}
else{

    document.write('&nbsp;&nbsp;&nbsp;&nbsp;<a href="' + deep + 'endpage.html">Forward&gt;&gt;</a>');

}


document.writeln('<br><br>');

document.writeln('	</b></font>');

document.writeln('    </tr></td>');
document.writeln('</table>');

}











//-----******Page Footer******-----



function writefooter(){


	if (document.title.substring(0,4) == "Humo"){

	    writehumor();
	    document.writeln('<br><br><br>');

	}


    document.writeln('			</td></tr>');
    document.writeln('		    </table>');

    document.writeln('		</td></tr>');
    document.writeln('	    </table>');

    document.writeln('    </tr></td>');
    document.writeln('</table>');

document.writeln('<center><font face="verdana" size="1"><a href="mailto:dr_qt@hotmail.com?subject=page error: ' + location.href + '"><u>Click Here to report any errors found on this page</u></a></font></center>');

    if ( (location.href.substring(0,23)) == "http://www.geocities.com"){
	document.write('<\!-- Yahoo! Menu service \-\-></table></noscript></script><script language="JavaScript" src="http://a372.g.a.yimg.com/f/372/27/1d/www.geocities.com/js_source/ygIELib5.js"></script><script language="JavaScript">yfEA(1);</script><\!-- END Yahoo! Menu Service \-\->');
	document.write('<\!-- <SERVICE NAME="ybeacon"> \-\->');
	document.write('<IMG SRC="http://geo.yahoo.com/serv?s=76000011&t=950918175" WIDTH=1 HEIGHT=1>');
	document.write('<\!-- </SERVICE> \-\->');
    }

}

