// MenuBar
var mm_vertical = true;
var mm_BarItemWidth = '148px';				
var mm_styleMenuBarBackgroundColour = '#000066';
var mm_styleMenuBarHighlightBackgroundColour = '#99CCFF';
var mm_styleMenuBarBorderColour = '#000000';
var mm_styleMenuBarBorderWidth = '0 0 0 0';
var mm_styleMenuBarBorderStyle = 'solid';
var mm_styleMenuBarPadding = '0';
if(Browser == Explorer)
	var mm_styleMenuBarItemPadding = '6px 6px 6px 6px';
else
	var mm_styleMenuBarItemPadding = '6px';		
var mm_styleMenuBarItemBorderStyle = 'solid';
var mm_styleMenuBarItemBorderColor = '#FFFFFF #000000 #FFFFFF #000000';
var mm_styleMenuBarItemBorderWidth = '0px 0 1px 0';
var mm_styleMenuBarItemAlign = 'center';
var mm_styleMenuBarMargin = '0 0 0 0';
var mm_styleMenuBar_NORM = "font-family:Verdana; font-size:8pt; font-weight:bold; color:white; text-decoration:none;";
var mm_styleMenuBar_HOVR = "font-family:Verdana; font-size:8pt; font-weight:bold; color:white; text-decoration:none;";
var mm_styleMenuBar_VIST = "font-family:Verdana; font-size:8pt; font-weight:bold; color:white; text-decoration:none;";
var mm_styleMenuBar_LINK = "font-family:Verdana; font-size:8pt; font-weight:bold; color:white; text-decoration:none;";

// Menus
var mm_styleMenuBackgroundColour = 'black';
var mm_styleMenuHighlightBackgroundColour = '#99CCFF';
var mm_styleMenuBorderColour = '#000040';
var mm_styleMenuBorderWidth = '1px 0 0 0';
var mm_styleMenuBorderStyle = 'solid';
var mm_styleMenu_NORM = "font-family:Verdana; font-size:8pt; font-weight:normal; color:white; text-decoration:none;";
var mm_styleMenu_HOVR = "font-family:Verdana; font-size:8pt; font-weight:normal; color:white; text-decoration:none;";
var mm_styleMenu_VIST = "font-family:Verdana; font-size:8pt; font-weight:normal; color:white; text-decoration:none;";
var mm_styleMenu_LINK = "font-family:Verdana; font-size:8pt; font-weight:normal; color:white; text-decoration:none;";

// Menu Items
var mm_imageSubmenu = "";

var mm_styleMenuItemBackgroundColour = '#A0A0A0';
var mm_styleMenuItemHighlightBackgroundColour = '#99CCFF';
var mm_styleMenuItemPadding = '4px 8px 4px 8px';
var mm_styleMenuItemBorderColour = 'black';
var mm_styleMenuItemBorderWidth = '0 1px 1px 0';
var mm_styleMenuItemBorderStyle = 'solid';
var mm_styleMenuItem_NORM = "font-family:Verdana; font-size:8pt; font-weight:normal; color:white; text-decoration:none;";
var mm_styleMenuItem_HOVR = "font-family:Verdana; font-size:8pt; font-weight:normal; color:white; text-decoration:none;";
var mm_styleMenuItem_VIST = "font-family:Verdana; font-size:8pt; font-weight:normal; color:white; text-decoration:none;";
var mm_styleMenuItem_LINK = "font-family:Verdana; font-size:8pt; font-weight:normal; color:white; text-decoration:none;";



// Create Menu Structure

function ShowMenu()
{
	mm_Start();

	var tURL = 'http://www.towingelectrics.com';

	// Create Menus
	var mHome = mm_CreateMenu('Home', 'Home', null, tURL+'/', '_top');
//	var mProduction = mm_CreateMenu('Production', 'Production', null, tURL+'/production.php', '_top');
	var mRelayTypes = mm_CreateMenu('Relay Types', 'Relay Types', null, tURL+'/relays_monitors.php', '_top');
	var mProductRange = mm_CreateMenu('Product Range', 'Product Range', null, tURL+'/product_range.php', '_top');
	var mOtherProducts = mm_CreateMenu('Other Products', 'Other Products', null, tURL+'/other_products.php', '_top');
	var mContact = mm_CreateMenu('Contact Us', 'Contact Us', null, tURL+'/contact.php', '_top');


	// Menu Items
	// Production
//	mm_InsertMenuItem(mProduction, 0, 'The SMT Method', 'The SMT Method', null, tURL+'/production.php', '_top', null);
//	mm_InsertMenuItem(mProduction, 1, 'Advantages of SMT', 'Advantages of SMT', null, tURL+'/production.php#SMT_Advantages', '_top', null);
//	mm_InsertMenuItem(mProduction, 2, 'The Total Package', 'The Total Package', null, tURL+'/production.php#SMT_TotalPackage', '_top', null);
	
	// Relay Types
	mm_InsertMenuItem(mRelayTypes, 0, 'Monitors', 'Monitors', null, tURL+'/relays_monitors.php', '_top', null);
	mm_InsertMenuItem(mRelayTypes, 1, 'Fog Cut-Off Relays', 'Fog Cut-Off Relays', null, tURL+'/relays_fogcutoff.php', '_top', null);
	mm_InsertMenuItem(mRelayTypes, 2, 'Bypass Relays', 'Bypass Relays', null, tURL+'/relays_bypass.php', '_top', null);
	mm_InsertMenuItem(mRelayTypes, 3, 'Caravan Relays', 'Caravan Relays', null, tURL+'/relays_caravan.php', '_top', null);
	mm_InsertMenuItem(mRelayTypes, 4, 'Miscellaneous Devices', 'Miscellaneous Devices', null, tURL+'/relays_misc.php', '_top', null);

	
	// Construct Menus
	mm_AddToMenuBar(mHome);
//	mm_AddToMenuBar(mProduction);
	mm_AddToMenuBar(mRelayTypes);
	mm_AddToMenuBar(mProductRange);
	mm_AddToMenuBar(mOtherProducts);
	mm_AddToMenuBar(mContact);


	// Show Menu
	mm_ShowMenu();

	mnu = document.getElementById("mm_styleMB");
	obj = document.getElementById("MiddleBar");
	pge = document.getElementById("Page");
//	mnu.style.left = pge.offsetLeft + obj.offsetLeft + "px";
//	mnu.style.top = pge.offsetTop + obj.offsetTop + "px";
}
