
// The following line is critical for menu operation, and must appear only once.
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
//Please leave the above line intact

////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

//Constants:
effect = "Fade(duration=0.3);Alpha(style=0,opacity=85);Shadow(color='#999999', Direction=135, Strength=5)" // Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
timegap=500			// The time delay for menus to remain visible
followspeed=5			// Follow Scrolling speed
followrate=40			// Follow Scrolling Rate
suboffset_top=10;		// Sub menu offset Top position 
suboffset_left=10;		// Sub menu offset Left position
box_top=60			// Position Pop-up Info	
box_left=400
box_width=300
box_height=200
today= new Date();
day=today.getDate();
month=today.getMonth()+1;
year=today.getYear();

//Dummy Functions:
function addDesc(name,title,text){//Add descriptions easily
	addmenu(menu=[name,
	box_top,box_left,box_width,1,"",style2,,,effect,,,,,,,,,,,,,
	"<table width="+(box_width-10)+" height="+box_height+" border=0><tr><td align=center><b>" +title+"</B></td></tr><tr><td align=center>" +text+"</td></tr></table>",
	"#",
	,,1
	])
}
//Begin:
style1=[				// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"ffffff",				// Mouse Off Font Color
"161616",				// Mouse Off Background Color
"ffffff",				// Mouse On Font Color
"666666",				// Mouse On Background Color
"000000",				// Menu Border Color 
12,					// Font Size in pixels
"normal",				// Font Style (italic or normal)
"bold",					// Font Weight (bold or normal)
"Verdana, Arial",			// Font Name
4,					// Menu Item Padding
"./Images/arrow.gif",			// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
,					// 3D High Color
,					// 3D Low Color
,					// Current Page Item Font Color (leave this blank to disable)
,					// Current Page Item Background Color (leave this blank to disable)
"./Images/arrowdn.gif",		// Top Bar image (Leave this blank to disable)
,					// Menu Header Font Color (Leave blank if headers are not needed)
,					// Menu Header Background Color (Leave blank if headers are not needed)
]

style2=["ffffff","ffffff","000000","ffffff","000000",12,"normal","bold","verdana,helvetica",5,,,"cccccc","000000"]
	
addmenu(menu=[				// This is the array that contains your menu properties and details
"mainmenu",				// Menu Name - This is needed in order for the menu to be called
120,					// Menu Top - The Top position of the menu in pixels
20,					// Menu Left - The Left position of the menu in pixels
,					// Menu Width - Menus width in pixels
1,					// Menu Border Width 
,					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,					// Properties Array - this is set higher up, as above
1,					// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left",					// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect,					// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,					// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
, 					// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,					// Position of TOP sub image left:center:right
,					// ..Now Obsolete..
,					// Right To Left - Used in Hebrew for example. (1=on/0=off)
,					// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,					// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,					// Reserved for future use
,					// Reserved for future use
,					// Reserved for future use
,"Home","show-menu=home","newDali.html","Back to the home page",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"News","show-menu=news",,"",1
,"Downloads","show-menu=downloads",,"",1
,"Search","show-menu=search",,"",1
,"Programming&nbsp;&nbsp;","show-menu=programming",,"",1
,"Misc","show-menu=misc",,"",1
])
	
	//Home:
		addDesc("home","My Web Palette","Navigate my site from here.")

	//News:
		addmenu(menu=["news",
		,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
		,"NY Times","http://www.nytimes.com",,,0
		,"New Yorker","http://www.newyorker.com",,,0
		,"The Onion","show-menu=onion","http://www.theonion.com",,0
		,"Movie Reviews","http://www.mrqe.com",,,0
		])
		addDesc("onion","Weekly Humor Magazine","Not for the easily offended!")
	//Programming:
		addmenu(menu=["programming",
		,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
		,"Perl","http://www.perl.com",,,1
		,"Dev C++","http://www.bloodshed.net/dev/",,,1
		,"Numerical Recipes","http://www.ulib.org/webRoot/Books/Numerical_Recipes/bookc.html",,,1
		,"Web Programming","show-menu=web",,,1//Web Submenu
		])
	
		//Web
			addmenu(menu=["web",
			,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
			,"Web Monkey","http://www.webmonkey.com",,,1
			,"HTML Goodies","show-menu=htm","http://www.htmlgoodies.com",,1
			,"Menu Site","show-menu=men","http://www.milonic.co.uk/menu",,1
			])
			
			addDesc("htm","HTML Goodies","Simple tutorials for web design. Includes HTML, CSS, JavaScript and more") 
			addDesc("men","Milonic Popup DHTML Navigational Menu Website","Nice Menus for your web site and mine!")
	//Downloads:
	addmenu(menu=["downloads",
	,,120,1,,style1,0,"left",effect,0,,,,,,,,,,,
	,"ZDNet","http://www.zdnet.com/downloads/",,,1
	,"Tucows","http://www.tucows.com",,,1
	])
	
	//Search:
	addmenu(menu=["search",
	,,140,1,"",style1,,"",effect,,,,,,,,,,,,
	,"<img src=./Images/google_icon.gif border=0>&nbsp;Google", "http://www.google.com",,,1
	,"Dictionary","show-menu=dict" ,"http://www.m-w.com",,1
	,"Wise Nut", "http://www.wisenut.com/",,,1
	,"Pi-Search","show-menu=pi","http://www.angio.net/pi/piquery",,1
	])
	
	addDesc("dict","Merriam-Webster Online","A Dictionary and Thesaurus for all things sesquipedalian")
	addDesc("pi","Search the Digits of Pi","Look for a sequence of up to 120 numbers in the first 100 million digits of the decimal expansion for pi(&pi;)")
	//Misc:
	addmenu(menu=["misc",
	,,140,1,"",style1,,"",effect,,,,,,,,,,,,
	,"My Sunrise","show-menu=sun","http://www.almanac.com/rise/results.php?what%5B%5D=Sun&what%5B%5D=Moon&month="+month+"&day="+day+"&year="+year+"&timezone=3&zipcode=93117 target=_blank",,1
	,"Art","show-menu=art","http://cgfa.floridaimaging.com/index.html",,1
	,"Poetry","show-menu=poet","http://www.library.utoronto.ca/utel/rp/intro.html",,1
	,"Sundram","show-menu=sund","http://www.sundram.org",,1
	])
	addDesc("sun", "Farmer's Almanac", "From Sunrise to Moonset in Goleta, CA")
	addDesc("art", "Carol Gerten's Fine Art", "Browse masterpieces of Western Art")
	addDesc("poet", "Representative Poetry", "Explore the world of poetry through this gateway to great poems by famous poets")	
	addDesc("sund", "Viji Sundram", "Viji was nice enough to give me an email address at his domain. Check out his website, devoted to all things Sundram.")
	/* A Fancy Effect
	addmenu(menu=["Other",,,120,1,,style1,0,"left","randomdissolve(duration=0.5);Shadow(color='#999999', Direction=135, Strength=5)",0,,,,,,,,,,,
	
	])
	*/

dumpmenus()