function switchOrientation(_menuname)
{
	_mn=getMenuByName(_menuname)
	_gm=gmobj("menu"+_mn)

	if(_m[_mn][12])_m[_mn][12]=0; else _m[_mn][12]=1
	
	_el=_m[_mn][0][0];
	innerText=_drawMenu(_mn,0)

	_gm.innerHTML=innerText
	_fixMenu(_mn)
	updateScreenPosition("top","left")	
}

function updateScreenPosition(_vpos,_hpos)
{
	_mn=getMenuByName("Main Menu")
	_gm=gmobj("menu"+_mn)
	if(window._fS)clearTimeout(_fS);
	_m[_mn][2]=null
	_m[_mn][3]=null

	if(_vpos)_screenPos = _vpos	
	if(_hpos)_screenPos = _hpos
	if(_vpos&&_hpos)_screenPos = _vpos+";"+_hpos
	_m[_mn][6]=_screenPos
		
	_setPosition(_mn)
}

function topright(){
	_vpos="top"
	_hpos="right"
	updateScreenPosition(_vpos,_hpos)
}

function topleft(){
	_vpos="top"
	_hpos="left"
	updateScreenPosition(_vpos,_hpos)
}

function topcenter(){
	_vpos="top"
	_hpos="center"
	updateScreenPosition(_vpos,_hpos)
}

function bottomright(){
	_vpos="bottom"
	_hpos="right"
	updateScreenPosition(_vpos,_hpos)
}
function bottomleft(){
	_vpos="bottom"
	_hpos="left"
	updateScreenPosition(_vpos,_hpos)
}

function bottomcenter(){
	_vpos="bottom"
	_hpos="center"
	updateScreenPosition(_vpos,_hpos)
}

function middleright(){
	_vpos="middle"
	_hpos="right"
	updateScreenPosition(_vpos,_hpos)
}
function middleleft(){
	_vpos="middle"
	_hpos="left"
	updateScreenPosition(_vpos,_hpos)
}


_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=50                // Follow scrolling Rate
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x



with(menuStyle=new mm_style()){
onbgcolor="#cc0000";
oncolor="#ffffff";
offbgcolor="#0000cc";
offcolor="#ffffcc";
bordercolor="#333333";
borderstyle="solid";
borderwidth=1;
separatorcolor="#888888";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="http://www.markspp.com/don/menu/Folder_Closed.gif";
onsubimage="http://www.markspp.com/don/menu/Folder_Open.gif";
subimagepadding="2";
overfilter="Fade(duration=0.4);Alpha(opacity=75);Shadow(color='#777777', Direction=135, Strength=8)";
outfilter="wheel(spokes=7, duration=0.5)";
}


with(milonic=new menuname("Main Menu")){
style=menuStyle;
alwaysvisible=1;
overflow="scroll";
screenposition="center";
top="offset=5"
orientation="horizontal";
aI("text=Home;url=http://www.markspp.com/don;status=Back To Home Page;showmenu=homemenu;image=http://www.markspp.com/don/menu/home.gif;");
aI("text=Arcade;showmenu=arcade;");
aI("text=Board;showmenu=board;");
aI("text=Misc;showmenu=other;");
aI("text=Puzzles;showmenu=puzzles;");
aI("text=Stategy;showmenu=strategy;");
aI("text=Word;showmenu=wordgames;");
aI("text=Links;showmenu=Links;");
}

with(milonic=new menuname("homemenu")){
style=menuStyle;
aI("text=DVD Collection;url=http://www.markspp.com/don/movies/;image=http://www.markspp.com/don/menu/dvd.gif;");
aI("text=Photo Album;showmenu=pictures;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Move This Menu;showmenu=movemenu;image=http://www.markspp.com/don/menu/pin.gif;");
}

with(milonic=new menuname("arcade")){
style=menuStyle;
overflow="scroll";
aI("text=Asteriods;showmenu=asteroids;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Breakout;url=http://www.markspp.com/don/breakout/breakout.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Centipede;url=http://www.markspp.com/don/centipedo/cent.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Fill It;url=http://www.markspp.com/don/fillit/fillit.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Javaball;url=http://www.markspp.com/don/javaball/javaball.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Missle Command;url=http://www.markspp.com/don/mcii/mcii.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Missle Crisis;url=http://www.markspp.com/don/missile/missile.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Nibbles;url=http://www.markspp.com/don/nibbles/nibbles.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Pengo;url=http://www.markspp.com/don/pengo/index.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Real Invaders;url=http://www.markspp.com/don/invaders/ri.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Stoneroids;showmenu=stoneroids;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Tailgunner;showmenu=tailgunner;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Tetris;url=http://www.markspp.com/don/tetris/tetris.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Zapper;url=http://www.markspp.com/don/zapper/zapper.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Ultimate Shockwave Arcade;url=http://www.markspp.com/don/flashgames.htm;image=http://www.markspp.com/don/menu/dot.gif;");
}

with(milonic=new menuname("asteroids")){
style=menuStyle;
overflow="scroll";
aI("text=Asteroids (640x480);url=http://www.markspp.com/don/asteroids/asteroids1.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Asteroids (800x600);url=http://www.markspp.com/don/asteroids/asteroids2.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Asteroids (1024x768);url=http://www.markspp.com/don/asteroids/asteroids3.html;image=http://www.markspp.com/don/menu/dot.gif;");
}

with(milonic=new menuname("stoneroids")){
style=menuStyle;
overflow="scroll";
aI("text=Stoneroids (Regular);url=http://www.markspp.com/don/stoneroids/stoneroids.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Stoneroids (Large);url=http://www.markspp.com/don/stoneroids/stoneroids2.html;image=http://www.markspp.com/don/menu/blank.gif;");
}

with(milonic=new menuname("tailgunner")){
style=menuStyle;
overflow="scroll";
aI("text=Tailgunner (640x480);url=http://www.markspp.com/don/tailgunner/tailgunner1.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Tailgunner (1024x768);url=http://www.markspp.com/don/tailgunner/tailgunner2.html;image=http://www.markspp.com/don/menu/blank.gif;");
}

with(milonic=new menuname("board")){
style=menuStyle;
overflow="scroll";
aI("text=Backgammon;url=http://www.markspp.com/don/backgammon/go.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Checkers;url=http://www.darkfish.com/checkers/Checkers.html;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Chess;showmenu=chess;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Othello;url=http://www.markspp.com/don/othello/othello.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Reversi;url=http://www.darkfish.com/turncoat/Turncoat.html;image=http://www.markspp.com/don/menu/world.gif;");
}

with(milonic=new menuname("chess")){
style=menuStyle;
overflow="scroll";
aI("text=Chess;url=http://www.markspp.com/don/chess1/chess.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Another Version (Small);url=http://www.markspp.com/don/chess/jchess0.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Another Version (Large);url=http://www.markspp.com/don/chess/jchess1.html;image=http://www.markspp.com/don/menu/blank.gif;");
}

with(milonic=new menuname("other")){
style=menuStyle;
overflow="scroll";
aI("text=Black Box;url=http://www.markspp.com/don/blackbox/blackbox.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Clix!;url=http://www.markspp.com/don/clix/clix.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Diceridoo (Yahtzee);url=http://www.pimpernel.com/diceridoo/;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Liberty Fireworks;url=http://www.markspp.com/don/liberty/;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Lines;url=http://www.markspp.com/don/lines/lines.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Mahjongg;url=http://www.pimpernel.com/mahjongg/mahjongg.html;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Magic Card Trick;url=http://www.markspp.com/don/cardtrick/index.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Nibbly;url=http://www.markspp.com/don/nibbly/index.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Robix;url=http://www.markspp.com/don/robix.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Twinning;url=http://www.pimpernel.com/twinning/twinning.html;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Yahtzee;url=http://www.markspp.com/don/yahtzee/yahtzee.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Same Game;url=http://www.markspp.com/don/samegame/samegame.html;image=http://www.markspp.com/don/menu/blank.gif;");
}

with(milonic=new menuname("puzzles")){
style=menuStyle;
overflow="scroll";
aI("text=Chess Puzzles;url=http://www.markspp.com/don/puzzles/chess/chess.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Cross Rings Puzzle;url=http://www.markspp.com/don/CrossRingsPuzzle/CrossRingsPuzzle.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=English 16;url=http://www.markspp.com/don/puzzles/english16/sample.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Towers of Hanoi;url=http://www.markspp.com/don/puzzles/hanoi/sample.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Jumping Puzzles;url=http://www.markspp.com/don/puzzles/jump.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=IQ Tester;url=http://www.markspp.com/don/iqgame/iq.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Nim Skulls;url=http://www.darkfish.com/nimskulls/nimskulls.html;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Panex;url=http://www.markspp.com/don/puzzles/panex/panex.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Peg Puzzle (10 in 1);url=http://www.markspp.com/don/puzzles/peggy/sample.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Pentalpha;url=http://www.darkfish.com/pentalpha/Pentalpha.html;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Rubic's Cube;url=http://www.markspp.com/don/rcube/cube.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Rush Hour;url=http://www.markspp.com/don/rushhour/rushhour.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Slider Puzzles;url=http://www.markspp.com/don/puzzles/slide.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Slider (Japanese Style);url=http://www.markspp.com/don/puzzles/slide2/slide.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Sokoban (Javascript);url=http://www.markspp.com/don/sokoban/sokoban.htm;image=http://www.markspp.com/don/menu/dot.gif;");
}

with(milonic=new menuname("strategy")){
style=menuStyle;
overflow="scroll";
aI("text=A Taxi;url=http://www.darkfish.com/Taxi/taxi.html;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Bridges;url=http://www.markspp.com/don/bridges/bridges.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Connect Four;showmenu=connect4;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Five Field Kono;url=http://www.darkfish.com/kono/FiveFieldKono.html;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Fiver (Lights Out);url=http://www.markspp.com/don/fiver/fiver.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Gomoku (get 5 in a row);url=http://www.markspp.com/don/fiverow/fiverow.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Mastermind;url=http://www.markspp.com/don/puzzles/mastermind.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Mindsweeper;showmenu=minesweep;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Rocks;url=http://www.markspp.com/don/rocks/rocks.html;image=http://www.markspp.com/don/menu/dot.gif;");

}

with(milonic=new menuname("minesweep")){
style=menuStyle;
overflow="scroll";
aI("text=Applet Version;url=http://www.markspp.com/don/mine/mine.html;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Javascript Version;url=http://www.markspp.com/don/minesweeper/wm1.htm;image=http://www.markspp.com/don/menu/blank.gif;");
}

with(milonic=new menuname("connect4")){
style=menuStyle;
overflow="scroll";
aI("text=Connect Four (Small);url=http://www.markspp.com/don/connect4/connect4.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Connect Four (Large);url=http://www.markspp.com/don/connect4/connect4b.html;image=http://www.markspp.com/don/menu/blank.gif;");
}

with(milonic=new menuname("wordgames")){
style=menuStyle;
overflow="scroll";
aI("text=Word Searches;showmenu=wordsearch;image=http://www.markspp.com/don/menu/dot.gif;");
aI("text=Crossword I;url=http://www.markspp.com/don/crossword/crossword.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Crossword II;url=http://www.pimpernel.com/crosswords;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Hangman;url=http://www.markspp.com/don/Hangman/hangman.html;image=http://www.markspp.com/don/menu/blank.gif;");
}

with(milonic=new menuname("wordsearch")){
style=menuStyle;
overflow="scroll";
aI("text=Countries;url=http://www.markspp.com/don/wordsearch/countries.html;");
aI("text=Creatures;url=http://www.markspp.com/don/wordsearch/creatures.html;");
aI("text=Famous People;url=http://www.markspp.com/don/wordsearch/famous.html;");
aI("text=Precious Gems;url=http://www.markspp.com/don/wordsearch/gems.html;");
aI("text=Units of Measure;url=http://www.markspp.com/don/wordsearch/measures.html;");
aI("text=Movies;url=http://www.markspp.com/don/wordsearch/movies.html;");
aI("text=Night Sky;url=http://www.markspp.com/don/wordsearch/nightsky.html;");
aI("text=Winter Olympics;url=http://www.markspp.com/don/wordsearch/olympics.html;");
aI("text=Sports;url=http://www.markspp.com/don/wordsearch/sports.html;");
aI("text=U.S. Cities;url=http://www.markspp.com/don/wordsearch/uscities.html;");
}

with(milonic=new menuname("pictures")){
style=menuStyle;
overflow="scroll";
aI("text=Botanical Gardens;url=http://www.markspp.com/don/Pictures/grapevine/index.htm;image=http://www.markspp.com/don/menu/camera.gif;");
aI("text=Megan's Graduation;url=http://www.markspp.com/don/Pictures/megan/index.htm;image=http://www.markspp.com/don/menu/camera.gif;");
aI("text=Our House (Before Purchase);url=http://www.markspp.com/don/Pictures/house1/index.htm;image=http://www.markspp.com/don/menu/camera.gif;");
aI("text=Our Wedding Part 1;url=http://www.markspp.com/don/Pictures/ourwed1/index.htm;image=http://www.markspp.com/don/menu/camera.gif;");
aI("text=Our Wedding Part 2;url=http://www.markspp.com/don/Pictures/ourwed2/index.htm;image=http://www.markspp.com/don/menu/camera.gif;");
aI("text=Our Wedding Part 3;url=http://www.markspp.com/don/Pictures/ourwed3/index.htm;image=http://www.markspp.com/don/menu/camera.gif;");
aI("text=Our Wedding Part 4;url=http://www.markspp.com/don/Pictures/ourwed4/index.htm;image=http://www.markspp.com/don/menu/camera.gif;");
aI("text=Rhonda Bridal Portraits;url=http://www.markspp.com/don/Pictures/rhonda/index.htm;image=http://www.markspp.com/don/menu/camera.gif;");
aI("text=Rhonda/Roger Wedding;url=http://www.markspp.com/don/Pictures/rr-wed/index.htm;image=http://www.markspp.com/don/menu/camera.gif;");

}

with(milonic=new menuname("Links")){
style=menuStyle;
aI("text=CandyStand.com;url=http://www.candystand.com;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Color Cube Javascript;url=http://www.markspp.com/don/misc/ColorCube.html;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=RGB Color Picker;url=http://www.markspp.com/don/misc/rgb.htm;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Java Lake Applet;url=http://www.markspp.com/don/misc/lake.html;status=Instructions on using this Java lake applet;image=http://www.markspp.com/don/menu/blank.gif;");
aI("text=Over 50 Hot Applets;url=http://anfyjava.com;status=Incredible special effects for the web, the best applet collection for web masters;target=_blank;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Download.com;url=http://www.download.com/;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Gamelan;url=http://www.gamelan.com;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Jars;url=http://www.jars.com/;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Java Boutique;url=http://www.javaboutique.com/;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=Milonic Menu;url=http://www.milonic.com/;status=Menu used on this website;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=MySQL Database Server;url=http://ww.mysql.com/;status=MySQL, Milonic's Prefered Choice of Database Server;target=_blank;image=http://www.markspp.com/don/menu/world.gif;");
aI("text=PHP - Development;url=http://www.php.net/;status=PHP - Web Server Scripting as used by Milonic;target=_blank;image=http://www.markspp.com/don/menu/world.gif;");
}

with(milonic=new menuname("movemenu")){
style=menuStyle;
aI("text=Horizontal Menu Positions;showmenu=horzmenu;");
aI("text=Vertical Menu Positions;showmenu=vertmenu;");
aI("text=Toggle Orientation;url=javascript:switchOrientation('Main Menu');image=http://www.markspp.com/don/menu/pin.gif;");
}

with(milonic=new menuname("vertmenu")){
style=menuStyle;
aI("text=Top Left;url=javascript:topleft();image=http://www.markspp.com/don/menu/pin.gif;");
aI("text=Top Right;url=javascript:topright();image=http://www.markspp.com/don/menu/pin.gif;");
aI("text=Middle Left;url=javascript:middleleft();image=http://www.markspp.com/don/menu/pin.gif;");
aI("text=Middle Right;url=javascript:middleright();image=http://www.markspp.com/don/menu/pin.gif;");
aI("text=Bottom Left;url=javascript:bottomleft();image=http://www.markspp.com/don/menu/pin.gif;");
aI("text=Bottom Right;url=javascript:bottomright();image=http://www.markspp.com/don/menu/pin.gif;");
}

with(milonic=new menuname("horzmenu")){
style=menuStyle;
aI("text=Top Center;url=javascript:topcenter();image=http://www.markspp.com/don/menu/pin.gif;");
aI("text=Bottom Center;url=javascript:bottomcenter();image=http://www.markspp.com/don/menu/pin.gif;");
}


drawMenus();
