mymenu = new POTMenu;
// Defines the size of the main menu items, width and height;
mymenu.mainmenuitemsize(127,19);
// Defines the size of the sub menu items, width and height;
mymenu.submenuitemsize(327,19);
// Defines the position of the sub menus in relation to the parent;
mymenu.submenuplacing(0,0);
// Images that make up the border of the main menu. Optional.;
mymenu.mainborderimages("images/bluepixel.gif","images/bluepixel.gif","images/bluepixel.gif","images/bluepixel.gif");
// Corners of the images that make up the main menu border.;
mymenu.mainbordercorners("images/bluepixel.gif","images/bluepixel.gif","images/bluepixel.gif","images/bluepixel.gif");
// Left width, right width and height of the top and bottom of the border;
mymenu.mainborderdimensions(1,1,1);
// These lines are for the sub menu borders;
mymenu.subborderimages("images/blackpixel.gif","images/blackpixel.gif","images/blackpixel.gif","images/blackpixel.gif");
mymenu.subbordercorners("images/blackpixel.gif","images/blackpixel.gif","images/blackpixel.gif","images/blackpixel.gif");
mymenu.subborderdimensions(1,1,1);
// Main menu cell color;
mymenu.mainmenucolor("#6699CC");
// Sub menu cell color;
mymenu.submenucolor("#6699CC");
// Graphical "join" between a menu and its sub menu. Optional;
//mymenu.definejoin("images/join.gif",25);
// Centers text for Netscape 4.7;
mymenu.netscapeadjust(3,3);
// The image that is show between the main menu items;
mymenu.definemainspacer("images/blackpixel.gif",1);
// The image that is show between the sub menu items;
mymenu.definesubspacer("images/blackpixel.gif",1);
// This line is required here;
mymenu.startMenu();
// Define the main menu.;
mymenu.addMenu("home","<b>home</b>", "index.shtml");
mymenu.addMenu("aboutus","<b>about us</b>", "aboutus.shtml");
mymenu.addMenu("bwwizard","<b>strutswizard</b>", "");
mymenu.addMenu("linksmenu","<b>useful links</b>", "index.shtml");
mymenu.addMenu("contact","<b>contact us</b>", "mailto:sales@strutswizard.com");
// This line is required after the main menu is defined.;
mymenu.showMainMenu();
// Define the sub menus;
mymenu.addSubMenu("bwwizard", "wizinf0", "<b>what is StrutsWizard?</b>", "wizinf0.shtml");
mymenu.addSubMenu("bwwizard", "wizinf2", "<b>how do you use StrutsWizard?</b>", "wizinf2.shtml");
mymenu.addSubMenu("bwwizard", "wizinf1", "<b>how does StrutsWizard work?</b>", "wizinf1.shtml");
mymenu.addSubMenu("bwwizard", "wizpricing", "<b>pricing</b>", "wizpricing.shtml");
mymenu.addSubMenu("bwwizard", "wizinf3", "<b>FAQ</b>", "wizinf3.shtml");
mymenu.addSubMenu("linksmenu", "bridgewater", "<b>bridgewater.com</b>", "http://www.bridgewater.com");
mymenu.addSubMenu("linksmenu", "struts", "<b>Jakarta Struts</b>", "http://jakarta.apache.org/struts/index.html");
;
;
// This line is required after all menu definitions are finished;
mymenu.showMenu();
