//menu objects

function onLoad() {
    window.onResize = onLoad;
    loadMenus();
}

function loadMenus () {
	window.Home = new Menu("Home");
	Home.addMenuItem("physicsdemos.cwru.edu", "top.window.frames[1].location='homemain.html'");
		Home.menuHiliteBgColor = "#6699CC";

	window.Index = new Menu("Index");
	Index.addMenuItem("List of All Demos", "top.window.frames[1].location='biglistmain.html'");
		Index.menuHiliteBgColor = "#6699CC";

	window.DemoTopics = new Menu("DemoTopics");
	DemoTopics.addMenuItem("Measurement", "top.window.frames[1].location='measurement/measmain.html'");
	DemoTopics.addMenuItem("Mechanics", "top.window.frames[1].location='mechanics/mechmain.html'");
	DemoTopics.addMenuItem("Thermodynamics", "top.window.frames[1].location='thermo/thermmain.html'");
	DemoTopics.addMenuItem("Waves", "top.window.frames[1].location='waves/wavemain.html'");
	DemoTopics.addMenuItem("Fluids", "top.window.frames[1].location='fluids/fluidmain.html'");
	DemoTopics.addMenuItem("E and M", "top.window.frames[1].location='elecmag/emmain.html'");
	DemoTopics.addMenuItem("Optics", "top.window.frames[1].location='optics/opticsmain.html'");
	DemoTopics.addMenuItem("Modern", "top.window.frames[1].location='modern/modern.html'");
    		DemoTopics.menuHiliteBgColor = "#6699CC";

	window.CWRUphys = new Menu("CWRUphys");
	CWRUphys.addMenuItem("www.phys.case.edu", "top.window.location='http://www.phys.case.edu'");
		CWRUphys.menuHiliteBgColor = "#6699CC";

	window.CWRUhome = new Menu("CWRUhome");
	CWRUhome.addMenuItem("www.case.edu", "top.window.location='http://www.case.edu'");
		CWRUhome.menuHiliteBgColor = "#6699CC";

	window.Other = new Menu("Other");
	Other.addMenuItem("Links", "top.window.frames[1].location='links.html'");
		Other.menuHiliteBgColor = "#6699CC";

	window.Contact = new Menu("Contact");
	Contact.addMenuItem("Contact Us", "top.window.frames[1].location='contact.html'");
		Contact.menuHiliteBgColor = "#6699CC";

	window.Topics = new Menu("Topics");
	Topics.addMenuItem("Hot Topics in Physics", "top.window.frames[1].location='topics.html'");
		Topics.menuHiliteBgColor = "#6699CC";


	Topics.writeMenus();
}
