//################################################################################	
//
//S T A R T   M E N U
//
//This is the code that makes up the Left Menu structure. 
//The entire menu is contaned in one table cell.  This cell
//contains a new table with 2 columns.
//col 1.) An area on the left to place the arrow head that shows the current
//	    possition in the menu.
//col 2.) The actual menu items.
//---------------------------
//The colors, and text properties are defined in the stylesheet "body.css"
//We link to this code at the top of this page, in the line:
//"<link rel="STYLESHEET" type="text/css" href="body.css">"
//--------------------------	
//-	When a menu item is not the current position in the menu the class="menu"
//	defines the look of the text as outlined by the a.menu style within body.css
//	
//-	When a user places the mouse over the menu item the stylesheet has a built-in
//	style called hover, in this case a.menu:hover within body.css.  This is what 
//	cause the change in color, underline, etc when the mouseover takes place.
//	
//-	When a menu item in the active or current position in the menu, the style a.on
//	within body.css defines the look of this text (highlighted color).  we indicate 
//	this with class="on" 
//	
//	The menu ends with the Comment "E N D   M E N U"

// HOME
// 
// ABOUT
// 
// PRODUCTS & SERVICES
// 
//             Overview
//             Consulting
//             Video/CCTV
//             Access Control
//             Alarms
//             Monitoring
//             Electronic Sweeps
//             Guards
//             Private Investigations
//             Background/Records Check
//             C-TPAT Compliance
// 
// CONTACT US

// CUSTOMER LOGIN

//################################################################################		

			
				var strLocation = document.URL ;
				strLocation = strLocation.toUpperCase();
				var mypos ;		
				
				//--------------------------------
				//  O P E N   T H E   T A B L E 
				//--------------------------------	
				//document.write("<table BORDER='0' CELLPADDING='0' CELLSPACING='0'><tr><td width='30' background='images/bk_stripe.gif'><img src='images/bk_stripe.gif' alt='' width='30' height='2' border='0'></td><td>");
				
				document.write("<table BORDER='0' CELLPADDING='0' CELLSPACING='0' height='100%' width='160'><tr><td WIDTH='10'>");
//------------------------------------------------------------------
//  H O M E
//------------------------------------------------------------------
						
						mypos = (document.URL.toUpperCase()).indexOf("INDEX");		
						//checks for the name index.htm in the URL, or the title of the page, if the URL
						//does not show the index.htm - for example the user types in the url, without the 
						//index.htm, which would still process as the default page for the site.						
						if((mypos>=0) || (document.title=="Home")){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td style='padding-top:10px;'>");						
							document.write("<a href='index.htm' class='on'>");	
						}else{
						document.write("</td><td  style='padding-top:10px;'>");						
						document.write("<a href='index.htm' class='menu'>");	
						}											
						document.write("Home</a><br><br></td></tr>");	
						
//------------------------------------------------------------------
//   A B O U T
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("ABOUT");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='about.htm' class='on'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='about.htm' class='menu'>");	
						}											
						document.write("About</a><br><br></td></tr>");
					
//------------------------------------------------------------------
//  P R O D U C T S   &   S E  R V I C E S 
//------------------------------------------------------------------			
				//document.write("<tr><td WIDTH='10'>");
				//mypos = document.URL.indexOf("Products_Services");				
				//if(mypos>=0){ 
					
				//	document.write("</td><td>");						
				//	document.write("<a href='Products_Services.htm' class='on'>");	
				//}else{
				//document.write("</td><td>");						
				//document.write("<a href='Products_Services.htm' class='menu'>");	
				//}											
				//document.write("Products & Services</a></td></tr>");
				
				document.write("<tr><td WIDTH='10'></td><td class='menu'>Products & Services</td></tr>");	
				
				//------------------------------------------------------------------
				//  O V E R V I E W
				//------------------------------------------------------------------	
				
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("OVERVIEW");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='Overview.htm' class='on' style='margin-left:10px;'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='Overview.htm' class='submenu' style='margin-left:10px;'>");	
						}											
						document.write("Overview</a></td></tr>");

				//------------------------------------------------------------------
				//  C o n s u l t i n g
				//------------------------------------------------------------------	
				
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("CONSULTING");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='Consulting.htm' class='on' style='margin-left:10px;'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='Consulting.htm' class='submenu' style='margin-left:10px;'>");	
						}											
						document.write("Consulting</a></td></tr>");

				//------------------------------------------------------------------
				//  V i d e o / C C T V  
				//------------------------------------------------------------------	
				
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("VIDEO_CCTV");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='Video_CCTV.htm' class='on' style='margin-left:10px;'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='Video_CCTV.htm' class='submenu' style='margin-left:10px;'>");	
						}											
						document.write("Video/CCTV</a></td></tr>");

				//------------------------------------------------------------------
				//  A c c e s s   C o n t r o l
				//------------------------------------------------------------------	
				
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("ACCESS_CONTROL");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='Access_Control.htm' class='on' style='margin-left:10px;'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='Access_Control.htm' class='submenu' style='margin-left:10px;'>");	
						}											
						document.write("Access Control</a></td></tr>");
				
				
				//------------------------------------------------------------------
				//  A l a r m s
				//------------------------------------------------------------------	
				
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("ALARMS");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='Alarms.htm' class='on' style='margin-left:10px;'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='Alarms.htm' class='submenu' style='margin-left:10px;'>");	
						}											
						document.write("Alarms</a></td></tr>");
				
				
				
				//------------------------------------------------------------------
				//  M o n i t o r i n g 
				//------------------------------------------------------------------	
				
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("MONITORING");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='Monitoring.htm' class='on' style='margin-left:10px;'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='Monitoring.htm' class='submenu' style='margin-left:10px;'>");	
						}											
						document.write("Monitoring</a></td></tr>");
				
				
				
				//------------------------------------------------------------------
				//  E l e c t r o n i c   S w e e p s
				//------------------------------------------------------------------	
				
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("ELECTRONIC_SWEEPS");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='Electronic_Sweeps.htm' class='on' style='margin-left:10px;'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='Electronic_Sweeps.htm' class='submenu' style='margin-left:10px;'>");	
						}											
						document.write("Electronic Sweeps</a></td></tr>");
				
				
				//------------------------------------------------------------------
				//  G u a r d s
				//------------------------------------------------------------------	
				
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("GUARDS");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='Guards.htm' class='on' style='margin-left:10px;'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='Guards.htm' class='submenu' style='margin-left:10px;'>");	
						}											
						document.write("Guards</a></td></tr>");
				
				
				//------------------------------------------------------------------
				//  P r i v a t e   I n v e s t i g a t i o n s 
				//------------------------------------------------------------------	
				
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("PRIVATE_INVESTIGATIONS");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='Private_Investigations.htm' class='on' style='margin-left:10px;'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='Private_Investigations.htm' class='submenu' style='margin-left:10px;'>");	
						}											
						document.write("Private Investigations</a></td></tr>");
				
				//------------------------------------------------------------------
				//  B a c k g r o u n d  / R e c o r d s   C h e c k
				//------------------------------------------------------------------	
				
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("BACKGROUND_CHECK");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='Background_Check.htm' class='on' style='margin-left:10px;'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='Background_Check.htm' class='submenu' style='margin-left:10px;'>");	
						}											
						document.write("Background Checks</a></td></tr>");
				
				
				//------------------------------------------------------------------
				//  C - T P A T   C o m p l i a n c e
				//------------------------------------------------------------------	
				
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("C-TPAT");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='C-TPAT.htm' class='on' style='margin-left:10px;'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='C-TPAT.htm' class='submenu' style='margin-left:10px;'>");	
						}											
						document.write("C-TPAT Compliance</a></td></tr>");
				
				
				//------------------------------------------------------------------
				//  M e d i c a l   A l e r t 
				//------------------------------------------------------------------	
				
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("MEDICAL");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='medical.htm' class='on' style='margin-left:10px;'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='medical.htm' class='submenu' style='margin-left:10px;'>");	
						}											
						document.write("Medical Alert</a><br><br></td></tr>");
				
				
				
		
//------------------------------------------------------------------
//  C O N T A C T   U S
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("CONTACT");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							document.write("<a href='Contact_Us.htm' class='on'>");	
						}else{
						document.write("</td><td>");						
						document.write("<a href='Contact_Us.htm' class='menu'>");	
						}											
						document.write("Contact Us</a><br><br></td></tr>");			
					
	
				
				
//------------------------------------------------------------------
//  C U S T O M E R   L O G I N
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='10'>");
						mypos = (document.URL.toUpperCase()).indexOf("LOGIN");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td>");						
							//document.write("<a href='http://142.177.37.250/_clients/MaritectCharts/wwwRoot/default.asp' class='on'>");	
							document.write("<a href=javascript:newWindow(\'charts/default.asp\') class='menu'>");
						}else{
						document.write("</td><td>");						
						document.write("<a href=javascript:newWindow(\'charts/default.asp\') class='menu'>");	
						}											
						document.write("Customer Login</a><br><br></td></tr>");			



//<a href="javascript:newWindow('url','name')">
				
				//--------------------------------
				//  C L O S E   T H E   T A B L E 
				document.write("</table>");		
				//--------------------------------</td></tr></table>
				
//<!--- 	
//E N D   M E N U
//--->

