// ************************************************************************************* //
// PURPOSE of this file:
//   Keep SmartMenu creation script which as common for the whole site

function showToolbar()
{
	// Create SmartMenu object
	menu = new Menu();

	// Create MenuStyle object which describes configuration of menu panel
	mstyle = new MenuStyle();
	mstyle.idName = "SmartMenu";	// Unique name
	mstyle.bgColor = "#000000";	// bgColor
	mstyle.fgColor = "#000000";	// fgColor
	mstyle.idStyle = "horizontal";  // "horizontal" or "vertical"
	mstyle.position = null;		// null, "absolute", "relative"
	mstyle.bVisible = true;	        // initially visible; true or false
	mstyle.cellSpacing = 0;         // cellspacing
	mstyle.mainMenuWidth = "100%";  // menu width; "100%" or "640" (or any other integer)
	mstyle.width = "100%";          // menu width; "100%" or "640" (or any other integer)
	mstyle.submenuFrame="null";	// where submenus are displayed or null if non-framed version
	mstyle.mainMenuBorder=1;        // main menu border
	mstyle.menuBorder=0;
	mstyle.onmouseover=null;        // function to call in case of mouse over
	mstyle.onmouseout=null;         // function to call in case of mouse over

	mstyle.holder = "SmartMenu";
	mstyle.level=1;

	// Create MenuItem object which describes configuration of menu item
	mitem = new MenuItem();
	mitem.bgColor = "#000000";
	mitem.fgColor = "#000000";

	// Tell SmartMenu to use style defined in mitem
	menu.setItemStyle(mitem);

	// Add new menu item with configuration defined in mstyle
	menu.newMenu(mstyle);

	// Add options to menu item
	// addItem("SmartMenu"          // the name of menu item where to add menu option
	//         "Search"             // the name of menu option
	//         1                    // menu level: 1 - top, 2 - submenu, 3 - subsubmenu, etc.
        //         "Internet Search Engines" // menu option title
	//         "Internet Search Engines" // hint
        //	   "http://www.somewhere.com" // URL
	//         null                 // parent name or null if dosn't have
        //         "SmartSubMenu"       // the name of submenu item
        //         0                    // where to display submenu: 0 - bottom, 1 - right, 2 - left
        // );

	menu.addItem("SmartMenu", "Search", 1, " Home ", "Home",  "/default.htm", null, null, 0); 


	menu.addItem("SmartMenu", "Search2", 1, "  Gallery I", " Gallery I",   "/gallery.html", null, null, 0);
	menu.addItem("SmartMenu", "Search3", 1, " Gallery II ", "Gallery II",   "/gallery2.html", null, null, 0);
	menu.addItem("SmartMenu", "Search4", 1, " Design Plans I" , "Design Plans I",  "/designplans.html", null, null, 0);
	menu.addItem("SmartMenu", "Search5", 1, " Design Plans II" , "Design Plans II",  "/designplans2.html", null, null, 0);
///////////////////


	showMenu();
}
