document.write(
	'<link rel="stylesheet" type="text/css" href="http://patricklewis.net/nav/nav.css">'+
	'<link rel="shortcut icon" href="favicon.ico" >'
	);



nav = new Array();
overlink = new Array();
// Content setup
nav[1] = new Array("100",
	"http://www.patricklewis.net/index.php*Home",
	"http://www.patricklewis.net/download/*Downloads",
	"http://www.patricklewis.net/deliciouslibrary/*DVD library",
	"http://www.patricklewis.net/mame/*MacMame",
	"http://www.patricklewis.net/marquee/default.php*Marquees",
	"http://www.patricklewis.net/contact.php*Contact me",
	"http://www.patricklewis.net/newsletter.php*Newsletter",
	"http://www.patricklewis.net/sitemap.php*Site map"
	);
nav[2] = new Array("195",
	"http://www.patricklewis.net/games/*Games",
	"http://www.patricklewis.net/games/aggrevation/*Aggrevation",
	"http://www.patricklewis.net/games/allenslider/*Allen Slider",
	"http://www.patricklewis.net/games/battleship/*Battleship",
	"http://www.patricklewis.net/games/bouncer/*Bouncer",
	"http://www.patricklewis.net/games/concentration/*Concentration",
	"http://www.patricklewis.net/games/crossword/*Crossword",
	"http://www.patricklewis.net/games/dropwords/*Dropwords &copy;",
	"http://www.patricklewis.net/games/DOND/*Deal or No Deal",
	"http://www.patricklewis.net/games/duckhunter/*Duck Hunter",
	"http://www.patricklewis.net/games/lightningyahtzee/*Lightning Yahtzee",
	"http://www.patricklewis.net/games/lightsout/*Lights out",
	"http://www.patricklewis.net/games/mahjong/*Mah Jong",
	"http://www.patricklewis.net/games/mjConcentration/*Mah Jong Concentration",
	"http://www.patricklewis.net/games/maleswimsuitslider/*Male Swimsuit Slider",
	"http://www.patricklewis.net/games/mancala/*Mancala",
	"http://www.patricklewis.net/games/mastermind/*Mastermind",
	"http://www.patricklewis.net/games/maze/*Maze Keeper&copy;",
	"http://www.patricklewis.net/games/maze2/*Maze Keeper II&copy;",
	"http://www.patricklewis.net/games/minesweeper/*Minesweeper",
	"http://www.patricklewis.net/games/poker/*Poker",
	"http://www.patricklewis.net/games/pyramid/*Pyramid Solitare",
	"http://www.patricklewis.net/games/pyramid2/*Pyramid Solitare 2",
	"http://www.patricklewis.net/games/quadcolors/*Quad Colors&copy;",
	"http://www.patricklewis.net/games/raceway/*Raceway",
	"http://www.patricklewis.net/games/rings/*Rings&copy;",
	"http://www.patricklewis.net/games/ringsjr/*Rings Jr&copy;",
	"http://www.patricklewis.net/games/RoadGames/*Road Games",
	"http://www.patricklewis.net/games/seeknfind/*Seek N Find",
	"http://www.patricklewis.net/games/shifty1/*Shifty v1&copy;",
	"http://www.patricklewis.net/games/shifty2/*Shifty v2&copy;",
	"http://www.patricklewis.net/games/simon/*Simon",
	"http://www.patricklewis.net/games/snake/*Snake",
	"http://www.patricklewis.net/games/spinpuz/*Spinpuz",
	"http://www.patricklewis.net/games/sudoku/*Sudoku",
	"http://www.patricklewis.net/games/superquadcolors/*Super Quad Colors&copy;",
	"http://www.patricklewis.net/games/swimsuitslider/*Swimsuit Slider",
	"http://www.patricklewis.net/games/swimsuitswitcher/*Swimsuit Switcher",
	"http://www.patricklewis.net/games/text/*Text Adventure",
	"http://www.patricklewis.net/games/war/*War",
	"http://www.patricklewis.net/games/wheel/*Wheel of Riches",
	"http://www.patricklewis.net/games/WordLinks/*Word Links&copy;",
	"http://www.patricklewis.net/games/WordLinksPro/*Word Links Pro&copy;",
	"http://www.patricklewis.net/games/yahtzee/*Yahtzee",
	"http://www.patricklewis.net/games/zork/*Zork",
	"http://www.patricklewis.net/games/zorkipod/*Zork on iPod "
	);
nav[3] = new Array("170",
	"http://www.patricklewis.net/javascript/*Javascript",
	"http://www.patricklewis.net/javascript/DateSort2.0.php*Date Sort 2.0",
	"http://www.patricklewis.net/javascript/dblchinese.php*Double Chinese",
	"http://www.patricklewis.net/javascript/fadermenu.php*Fader Menu",
	"http://www.patricklewis.net/javascript/form_validation.php*Form Validation",
	"http://www.patricklewis.net/javascript/Fractionsflash.php*Fractions Flash",
	"http://www.patricklewis.net/javascript/heirarchal_horiz.php*Heirarchal Horizontal",
	"http://www.patricklewis.net/javascript/heirarchal_vert.php*Heirarchal Vertical",
	"http://www.patricklewis.net/javascript/HorizGraph.php*Horizontal Bar Graph",
	"http://www.patricklewis.net/javascript/interactiveslideshow.php*Interactive Slideshow",
	"http://www.patricklewis.net/javascript/linkpopup_horiz.php*Link Pop-up Horizontal",
	"http://www.patricklewis.net/javascript/linkpopup_vert.php*Link Pop-up Vertical",
	"http://www.patricklewis.net/javascript/linkrotator1.html*Link Rotator",
	"http://www.patricklewis.net/javascript/mathflash.php*Math Flash",
	"http://www.patricklewis.net/javascript/menu2.0.php*Menu 2.0",
	"http://www.patricklewis.net/javascript/mphtorpm.php*MPH to RPM",
	"http://www.patricklewis.net/javascript/radiofree.php*Radio-free Images",
	"http://www.patricklewis.net/javascript/slotmachine.php*Slot Machine",
	"http://www.patricklewis.net/javascript/sliderNav/slider.php*Slider Menu",
	"http://www.patricklewis.net/javascript/tabular.php*Tabular Nav",
	"http://www.patricklewis.net/javascript/tilecalc3.html*Tile Calculator",
	"http://www.patricklewis.net/javascript/VertGraph.php*Vertical Bar Graph",
	"http://www.patricklewis.net/javascript/whirlpool.php*Whirlpool Text",
	"http://www.patricklewis.net/javascript/wordcounter.php*Word Counter "
	);
nav[4] = new Array("160",
	"http://www.patricklewis.net/swimsuit/*Swimsuits",
	"http://www.patricklewis.net/games/swimsuitslider/*Slider Puzzle",
	"http://www.patricklewis.net/games/swimsuitswitcher/*Switcher Puzzle",
	"http://www.patricklewis.net/swimsuit/si96swim.html*SI Swimsuit 1996 ",
	"http://www.patricklewis.net/swimsuit/si97swim.html*SI Swimsuit 1997 ",
	"http://www.patricklewis.net/swimsuit/si98swim.html*SI Swimsuit 1998 ",
	"http://www.patricklewis.net/swimsuit/si99swim.html*SI Swimsuit 1999 ",
	"http://www.patricklewis.net/swimsuit/si2kswim.html*SI Swimsuit 2000 ",
	"http://www.patricklewis.net/swimsuit/si2k30swim.html*SI Swimsuit 2000(3D) ",
	"http://www.patricklewis.net/swimsuit/2001siswim.html*SI Swimsuit 2001 ",
	"http://www.patricklewis.net/swimsuit/2002siswim.html*SI Swimsuit 2002 ",
	"http://www.patricklewis.net/swimsuit/2003siswim.html*SI Swimsuit 2003 ",
	"http://www.patricklewis.net/swimsuit/2004siswim.html*SI Swimsuit 2004 ",
	"http://www.patricklewis.net/swimsuit/2005siswim.html*SI Swimsuit 2005 ",
	"http://www.patricklewis.net/swimsuit/2006siswim.html*SI Swimsuit 2006 ",
	"http://www.patricklewis.net/swimsuit/2007siswim.html*SI Swimsuit 2007 ",
	"http://www.patricklewis.net/swimsuit/2007si3dswim.html*SI Swimsuit 2007(3D) ",
	"http://www.patricklewis.net/swimsuit/2008siswim.html*SI Swimsuit 2008 ",
	"http://www.patricklewis.net/swimsuit/2009siswim.html*SI Swimsuit 2009 ",
	"http://www.patricklewis.net/swimsuit/2010siswim.html*SI Swimsuit 2010 "
	);

// Display Menu
Menu ="<div style='z-index:10; position:absolute; '><TABLE cellspacing=0 cellpadding=0 ><TR><TD valign=top>";
for (x=1;x<nav.length;x++) {
	// menu header
	Link = nav[x][1].split("*");
	Menu += "<table class='tableframe'>"+
	"<tr><td onmouseout=\"setTimeout('hidecols("+x+");',100);\" onmouseover='showcols("+x+");' class=\"TBLhead\" width="+nav[x][0]+">"+
	"<a onmouseover='showcols("+x+"); overlink["+x+"]=true;' onmouseout='setTimeout(\"hidecols("+x+");\",100); overlink["+x+"]=false;' class='headfield' href="+ Link[0] +">"+ Link[1] +"</a>"+
	"</td></tr>";
	// menu content (pop up)
		Menu += "<tr  id='row"+x+"' onmouseover='overpop=true;' onmouseout=\"overpop=false; setTimeout('hidecols("+x+");',100);\" class=TBLcell style='display:none;'>"+
	"<td width="+nav[x][0]+">";
	for (y=2;y<nav[x].length;y++) {
		Link = nav[x][y].split("*");
		Menu += "<a onmouseover='showcols("+x+"); overlink["+x+"]=true;' onmouseout='setTimeout(\"hidecols("+x+");\",100); overlink["+x+"]=false;' class='field' href="+ Link[0] +">"+ Link[1] +"</a><br>";
		}
	// closing column
	Menu += "</td></tr></table>";
	if (x < nav.length) {Menu +="</td><td valign=top>";}
	}
//closing menu
Menu += "</TD></TR></TABLE></div><br><br><br>";
// writing to window
document.write(Menu);

// Menu functions
overpop=false;
function showcols(THISONE){
document.getElementById("row"+THISONE).style.display = "block";
}

function hidecols(THISONE){
if (!overpop && !overlink[THISONE]) {
	document.getElementById("row"+THISONE).style.display = "none";
	}
}



