var marqueeswitch = "N";
//var marqueemessage = "Weather Conditions in WI may delay pickup and deliveries in WI...contact your local terminal for more information ";
//var marqueemessage = "Eliminate Cumbersome Paper Billing - Receive your Statements and Bills via E-Mail! Setup Today by Contacting our Credit Department at 1-800-888-4950.";
//var marqueemessage = "Weather Update 1:00 PM, Thursday, February 3, 2011: CHI–p/u service only; CHN–limited p/u service only; RIL–limited P&D no out of town routes; CMO-very limited local operations only; SMO-limited if any local operations; NML-limited local operations";
function getMarquee() {
	if (marqueeswitch != "Y") {
 		return "";
 	}
 	var myret = '<MARQUEE direction="left" loop="3" bgcolor="#ffffff" scrolldelay="3" scrollamount="3" behavior="scroll"><i><b><font face="arial" size="2" color="red">' + marqueemessage + '</font></b></i></MARQUEE>';
 
 	return myret;
}

function isPickupUser() {
	var userid = getUserName("lakevilleid");
	var myArray = new Array();
	myArray[0] = 'LMETEST';
	myArray[1] = 'DANNO';
	myArray[2] = 'CURT';
	myArray[3] = 'LJANDRO';
	myArray[4] = 'UNILAB';
	myArray[5] = 'MCERVANTES';
	myArray[6] = 'RROSCOE';
	myArray[7] = 'JDEERE';
	myArray[8] = 'SHAWSTER';
	myArray[9] = 'BELMARK';
	myArray[10] = 'CPAUL';

	for (x in myArray){
		if (myArray[x] == userid) {
			return true;
		}
	}
	return false;
}


function init()
{
	//Main Menu items:
	menus[0] = new menu(25, "horizontal", 10, 65, -1, -1, "white", "white", "Arial,Helvetica", 9, 
		"bold", "bold", "Black", "#DB2147", 1, "White", 2, "", false, true, true, true, 5, false, 0, 0, "white");
	//"rollover:/Includes/tridown.gif:/Includes/tridown.gif"
	menus[0].addItem("http://www.lakevillemotor.com/index.html", "", 85, "center", "Home", 0);
	menus[0].addItem("#", "", 85, "", "About LME", 1);
	menus[0].addItem("#", "", 85, "", "Services", 2);
	menus[0].addItem("#", "", 85, "", "Coverage", 3);
	menus[0].addItem("#", "", 85, "", "eTools", 4);
	menus[0].addItem("#", "", 85, "", "Resources", 5);
	menus[0].addItem("#", "", 85, "", "LME4Me", 6);
	menus[0].addItem("http://www.lakevillemotor.com/ContactUs.html", "", 85, "center", "Contact Us", 0)




//Sub Menu for 2nd Main Menu Item ("About"):
	menus[1] = new menu(160, "vertical", 0, 0, 0, 0, "white", "#DB2147", "Arial,Helvetica", 9, "bold", "bold", "#DB2147", "white", 1, "#DB2147", 2, "rollover:/Includes/tri.gif:/Includes/tri.gif", false, true, false, false, 0, false, 2, 2, "white");
	menus[1].addItem("http://www.lakevillemotor.com/CompanyOverview.html", "", 16, "left", "Company Overview", 0);
	menus[1].addItem("http://www.lakevillemotor.com/CompanyHistory.html", "", 16, "left", "Company History", 0);
	menus[1].addItem("", "", 16, "left", "Press Releases", 7);
	//Notice spelling of Management on the next line
	menus[1].addItem("http://www.lakevillemotor.com/Management.html", "", 16, "left", "Management", 0);
	menus[1].addItem("http://www.lakevillemotor.com/RevenueGrowth.html", "", 16, "left", "Revenue Growth", 0);
	menus[1].addItem("http://www.lakevillemotor.com/Technology.html", "", 16, "left", "Technology", 0);
	menus[1].addItem("http://www.lakevillemotor.com/Employment.html", "", 18, "left", "Employment", 0);

//Sub Menu for 3rd Main Menu Item ("Services"):
	menus[2] = new menu(180, "vertical", 0, 0, 0, 0, "white", "#DB2147", "Arial,Helvetica", 9, "bold", 
		"bold", "#DB2147", "white", 1, "#DB2147", 2, "rollover:/Includes/tri.gif:/Includes/tri.gif", false, true, false, false, 0, false, 2, 2, "white");
	menus[2].addItem("http://www.lakevillemotor.com/LTLService.html", "", 16, "left", "LTL Service", 0);
	menus[2].addItem("http://www.lakevillemotor.com/XpressGold.html", "", 16, "left", "Xpress Gold", 0);
	menus[2].addItem("http://www.lakevillemotor.com/TLLogistics.html", "", 16, "left", "TL & Logistics", 0);
	menus[2].addItem("http://www.lakevillemotor.com/VTD-Virtual Traffic Department.html", "", 16, "left", "VTD-Virtual Traffic Dept", 0);
	menus[2].addItem("http://www.lakevillemotor.com/Freezable.html", "", 18, "left", "Freezable Protection", 0);

//Sub Menu for 4th Main Menu Item ("Coverage"):
	menus[3] = new menu(160, "vertical", 0, 0, 0, 0, "white", "#DB2147", "Arial,Helvetica", 9, "bold", "bold", "#DB2147", "white", 1, "#DB2147", 2, 62, false, true, false, false, 0, false, 2, 2, "white");
	menus[3].addItem("http://www.lakevillemotor.com/RegionalService.html", "", 16, "left", "Regional", 0);
	menus[3].addItem("http://www.lakevillemotor.com/RelianceNetwork.html", "", 18, "left", "Reliance Network", 0);
	//menus[3].addItem("http://www.lakevillemotor.com/nacm.html", "", 18, "left", "North America - Canada & Mexico", 0);
	//menus[3].addItem("http://www.lakevillemotor.com/nacm.html", "NEWWIN", 18, "left", "North America - Canada & Mexico", 0);

//Sub Menu for 5th Main Menu Item ("eTools"):

if (getUserName("lakevilleid")==null){
	

	menus[4] = new menu(200, "vertical", 0, 0, 0, 0, "white", "#DB2147", "Arial,Helvetica", 9, "bold", "bold", "#DB2147", "white", 1, "#DB2147", 2, "rollover:/Includes/tri.gif:/Includes/tri.gif", false, true,false, false, 0, false, 2, 2, "white");
	menus[4].addItem("http://www.lakevillemotor.com/eTools.html", "", 16, "left", "eTools - what they do", 0);
	menus[4].addItem("http://www.lakevillemotor.com/webapp/CustLogon/CheckLogon", "", 16, "left", "LME4Me-Login Required", 6);
	menus[4].addItem("http://www.lakevillemotor.com/ShipmentStatus.html", ""	, 16, "left", "Shipment Status", 0);
	menus[4].addItem("http://www.lakevillemotor.com/TransitTime.html", "", 16, "left", "Transit Times", 0);
	menus[4].addItem("http://www.lakevillemotor.com/TerminalLookup.html", "", 16, "left", "Terminal Lookup", 0);
	menus[4].addItem("http://www.lakevillemotor.com/webapp/NewPricing2/Start", "", 16, "left", "Rate Inquiry", 0);
	menus[4].addItem("/webapp/truckLoadRate/Start.do", "", 16, "left", "Volume/Truckload Rate Inquiry", 0);
	menus[4].addItem("http://www.lakevillemotor.com/webapp/BillOfLading/StartServlet", "", 16, "left", "Bill of Lading Creation", 0);	
      menus[4].addItem("http://www.lakevillemotor.com/webapp/PickupRequest/StartPickupServlet", "", 16, "left", "Schedule a Pickup", 0);
      menus[4].addItem("http://www.lakevillemotor.com/webapp/ClaimsInquiry/ClaimsInquiry.jsp", "", 18, "left", "Claim Inquiry", 0);
}
	
	
else if(getUserName("lakevilleid")!=null){
	
	menus[4] = new menu(160, "vertical", 0, 0, 0, 0, "white", "#DB2147", "Arial,Helvetica", 9, "bold", "bold", "#DB2147", "white", 1, "#DB2147", 2, "rollover:/Includes/tri.gif:/Includes/tri.gif", false, true,false, false, 0, false, 2, 2, "white");
	menus[4].addItem("http://www.lakevillemotor.com/eTools.html", "", 16, "left", "eTools - what they do", 0);
	menus[4].addItem("http://www.lakevillemotor.com/webapp/CustLogon/CheckLogon", "", 16, "left", "LME4Me", 6);
	menus[4].addItem("http://www.lakevillemotor.com/ShipmentStatus.html", "", 16, "left", "Shipment Status", 0);
	menus[4].addItem("http://www.lakevillemotor.com/TransitTime.html", "", 16, "left", "Transit Times", 0);
	menus[4].addItem("http://www.lakevillemotor.com/TerminalLookup.html", "", 16, "left", "Terminal Lookup", 0);
	menus[4].addItem("http://www.lakevillemotor.com/webapp/ClaimsInquiry/ClaimsInquiry.jsp", "", 18, "left", "Claim Inquiry", 0);

	//menus[4].addItem("http://www.lakevillemotor.com/webapp/BillOfLading/StartServlet", "", 18, "left", "Bill of Lading Creation", 0);
	
}



//Sub Menu for 6th Main Menu Item ("Resources"):
	menus[5] = new menu(160, "vertical", 0, 0, 0, 0, "white", "#DB2147", "Arial,Helvetica", 9, "bold", "bold", "#DB2147", "white", 1, "#DB2147", 2, ">>", false, true, false, false, 0, false, 2, 2, "white");
	menus[5].addItem("http://www.lakevillemotor.com/FuelSurcharge.html", "", 16, "left", "Fuel Surcharge", 0);
	menus[5].addItem("http://www.lakevillemotor.com/RulesTariff.html", "", 16, "left", "Rules/ACC Charges", 0);
	menus[5].addItem("http://www.lakevillemotor.com/FormsOnLine.html", "", 18, "left", "Forms On-Line", 0);
	//menus[5].addItem("http://www.lakevillemotor.com", "", 18, "left", "Shipment Packaging", 0);

//Sub Menu for 5th Sub Menu Item ("LME4Me"):
	menus[6] = new menu(200, "vertical", 0, 0, 0, 0, "white", "#DB2147", "Arial,Helvetica", 9, "bold", "bold", "#DB2147", "white", 1, "#DB2147", 2, ">>", false, true, false, false, 0, false, 2, 2, "white");
	menus[6].addItem("http://www.lakevillemotor.com/webapp/DocsOnLine/Start", "", 16, "left", "Documents On-Line", 0);
	menus[6].addItem("http://www.lakevillemotor.com/webapp/CustomPricing/Start", "", 16, "left", "Customer Rate Inquiry", 0);
	menus[6].addItem("/webapp/truckLoadRate/Start.do?login=Y", "", 16, "left", "Volume/Truckload Rate Inquiry", 0);
	
	//if (isPickupUser()) {
		menus[6].addItem("http://www.lakevillemotor.com/webapp/BillOfLading/StartServlet?Logon~Y", "", 16, "left", "Bill of Lading Creation", 0);
		menus[6].addItem("http://www.lakevillemotor.com/webapp/PickupRequest/StartPickupServlet?Logon~Y", "", 16, "left", "Schedule a Pickup", 0);
		menus[6].addItem("http://www.lakevillemotor.com/webapp/CustomPricing/StartQuoteRate", "", 16, "left", "Rate Quote Inquiry Lookup", 0);

	//} else {
	//	menus[6].addItem("http://www.lakevillemotor.com/webapp/BillOfLading/StartServlet?Logon~Y", "", 18, "left", "Bill of Lading Creation", 0);
	//}
	menus[6].addItem("https://www.myvtd.com/live/go?s=vtd&plCompany_id=123607", "", 16, "left", "Virtual Traffic Department", 0);
	menus[6].addItem("/webapp/rateDownloader/Start.do", "", 18, "left", "Download LKVL500 Rates", 0);

//Sub Menu for 6th Sub Menu Item ("News"):
	menus[7] = new menu(200, "vertical", 0, 0, 0, 0, "white", "#DB2147", "Arial,Helvetica", 9, "bold", "bold", "#DB2147", "white", 1, "#DB2147", 2, "rollover:/Includes/tri.gif:/Includes/tri.gif", false, true, false, false, 0, false, 2, 2, "white");
	menus[7].addItem("http://www.lakevillemotor.com/News2005.html", "", 16, "left", "Recent Press Releases", 0);
	menus[7].addItem("http://www.lakevillemotor.com/NewsArchive.html", "", 18, "left", "Press Release Archives", 0);




} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.
