// NOTE: Do NOT use this menu as a start for your own custom menu unless you want a very
// plain, and, indeed, inflexible menu. This menu does not use background-items and it uses
// the "old" style of positioning.
function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("Please make sure the "+shortFieldName+" field was properly completed.");
return false;
}
else
return true;
}
// Initialize WebDDM
function initWebDDM ()
{
	// Begin base menu
	var menu = {
		'position':'relative',
		'top':0,
		'left':0,
		'width':424,
		'height':29,
		'expand_menu':'auto',
		'useOldPositioning':true,

		// Begin array of items, level 0
		'items':{
			'top':0,
			'left':0,
			'width':424,
			'height':29,
			// Begin item 2
			1:{
				'content':'<a href="complete_coverage.php"><img src="images/btn_complete_coverage.jpg" class="noborder" /></a>',
				'cursor':'hand',
				'width':141, 'height':29, 'left':0, 'top':0,
				'class':'other',
				'css':'background-color:#ffffff',
			// Begin array of items, item 2
				'items':{
					'top':34,
					'left':20,
					'width':176,
					'height':158,
					// Begin item 1-1
					1:{
						'content':'<div class="std" onmouseover="this.className = \'std_orange\'; document.getElementById(\'imgrt1\').src=\'images/btn_arrow_orange.jpg\';" onmouseout="this.className = \'std\'; document.getElementById(\'imgrt1\').src=\'images/btn_arrow_green.jpg\';"><img src="images/btn_arrow_green.jpg" style="float: left;position:relative; top:6px; left:4px;" id="imgrt1" /><a href="commercial.php">Commerical</a><div>',
						'cursor':'hand',
						'width':176, 'height':22, 'left':10, 'top':0,
						'class':'otherm_down_top',
						'css':'background-color:#ffffff',

							// Begin array of items
						'items':{
							'top':0,
							'left':170,
							1:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="hospitality.php">Hospitality</a><div>',
								'cursor':'hand',
								'width':190, 'height':22, 'offsetLeft':5, 'offsetTop':2,
								'class':'otherm_down_top'								
							},
							2:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="entertainment.php">Entertainment</a><div>',
								'cursor':'hand',
								'width':190, 'height':22, 'offsetLeft':0, 'offsetTop':21,
								'class':'otherm_down_center'
							},
							3:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="restaurant.php">Restaurant</a><div>',
								'cursor':'hand',
								'width':190, 'height':22, 'offsetLeft':0, 'offsetTop':21,
								'class':'otherm_down_center'
							},
							4:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="banking.php">Banking</a><div>',
								'cursor':'hand',
								'width':190, 'height':22, 'offsetLeft':0, 'offsetTop':21,
								'class':'otherm_down_center'
							},
							5:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="marine.php">Marine</a><div>',
								'cursor':'hand',
								'width':190, 'height':22, 'offsetLeft':0, 'offsetTop':21,
								'class':'otherm_down_center'
							},
							6:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="high_risk_workers_comp.php">High Risk Workers Comp</a><div>',
								'cursor':'hand',
								'width':190, 'height':22, 'offsetLeft':0, 'offsetTop':21,
								'class':'otherm_down_center'
							},
							7:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="contractors.php">Contractors</a><div>',
								'cursor':'hand',
								'width':190, 'height':22, 'offsetLeft':0, 'offsetTop':21,
								'class':'otherm_down_bottom'
							},
							8:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="apartments.php">Apartments & Condos</a><div>',
								'cursor':'hand',
								'width':190, 'height':22, 'offsetLeft':0, 'offsetTop':21,
								'class':'otherm_down_bottom'
							},
							9:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="municipal.php">Municipal & Not-For-Profits</a><div>',
								'cursor':'hand',
								'width':190, 'height':22, 'offsetLeft':0, 'offsetTop':21,
								'class':'otherm_down_bottom'
							},
							10:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="retail_office_buildings.php">Retail & Office Buildings</a><div>',
								'cursor':'hand',
								'width':190, 'height':22, 'offsetLeft':0, 'offsetTop':21,
								'class':'otherm_down_bottom'
							},
							11:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="manufacture_wholesale.php">Manufacture/Wholesale</a><div>',
								'cursor':'hand',
								'width':190, 'height':22, 'offsetLeft':0, 'offsetTop':21,
								'class':'otherm_down_bottom'
							},
							12:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="automotive.php">Automotive</a><div>',
								'cursor':'hand',
								'width':190, 'height':22, 'offsetLeft':0, 'offsetTop':21,
								'class':'otherm_down_bottom'
							}
						}
					},
					// End item 1-1
					// Begin item 1-2
					2:{
						'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="benefits_coverage.php">Benefits Coverage</a><div>',
						'cursor':'hand',
						'width':176, 'height':22, 'left':10, 'offsetTop':21,
						'class':'otherm_down_center',
						'css':'background-color:#ffffff'
					},
					// End item 1-2
					// Begin item 1-3
					3:{
						'content':'<div class="std" onmouseover="this.className = \'std_orange\'; document.getElementById(\'imgrt2\').src=\'images/btn_arrow_orange.jpg\';" onmouseout="this.className = \'std\'; document.getElementById(\'imgrt2\').src=\'images/btn_arrow_green.jpg\';"><img src="images/btn_arrow_green.jpg" style="float: left;position:relative; top:6px; left:4px;" id="imgrt2" /><a href="family_coverage.php">Family Coverage</a><div>',
						'cursor':'hand',
						'width':176, 'height':22, 'left':10, 'offsetTop':21,
						'class':'otherm_down_center',
						'css':'background-color:#ffffff',

							'items':{
							'top':26,
							'left':170,
							1:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'; document.getElementById(\'imgrt3\').src=\'images/btn_arrow_orange.jpg\';" onmouseout="this.className = \'std\'; document.getElementById(\'imgrt3\').src=\'images/btn_arrow_green.jpg\';"><img src="images/btn_arrow_green.jpg" style="float: left;position:relative; top:6px; left:4px;" id="imgrt3" /><a href="family_coverage.php">Essential Coverage</a><div>',
								'cursor':'hand',
								'width':196, 'height':22, 'offsetLeft':5, 'offsetTop':18,
								'class':'otherm_down_top',
									// Begin array of items
									'items':{
										'top':20,
										'left':170,
										1:{
											'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="watercraft.php">Watercraft</a><div>',
											'cursor':'hand',
											'width':156, 'height':22, 'offsetLeft':0, 'offsetTop':21,
											'class':'otherm_down_top'
										},								
										2:{
											'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="aircraft.php">Aircraft</a><div>',
											'cursor':'hand',
											'width':156, 'height':22, 'offsetLeft':0, 'offsetTop':21,
											'class':'otherm_down_center'
										},
										3:{
											'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="home_auto.php">Home & Auto</a><div>',
											'cursor':'hand',
											'width':156, 'height':22, 'offsetLeft':0, 'offsetTop':21,
											'class':'otherm_down_center'
										},
										4:{
											'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="rv.php">Recreational Vehicle</a><div>',
											'cursor':'hand',
											'width':156, 'height':22, 'offsetLeft':0, 'offsetTop':21,
											'class':'otherm_down_center'
										}
									}
							},								
							2:{
								'content':'<div class="std" onmouseover="this.className = \'std_orange\'" onmouseout="this.className = \'std\'"><a href="additional_family_coverage.php">Additional Family Coverage</a><div>',
								'cursor':'hand',
								'width':196, 'height':22, 'offsetLeft':0, 'offsetTop':21,
								'class':'otherm_down_center'
							}
						}
					}
					// End item 1-3
					// Begin item 1-4
				}
			},
			// End item 1

			// Begin item 2
			2:{
				'content':'<a href="completed_peace_of_mind.php"><img src="images/btn_complete_place_of_mind.jpg" class="noborder" /></a>',
				'cursor':'hand',
				'width':141, 'height':28, 'left':141, 'top':0,
				'class':'otherm1',
				'css':'background-color:#ffffff',
			// Begin array of items, item 2
				'items':{
					'top':34,
					'left':146,
					'width':266,
					'height':158,
					// Begin item 2-1
					1:{
						'content':'<div class="std_grey" onmouseover="this.className = \'std_green\'" onmouseout="this.className = \'std_grey\'"><a href="history.php">Who We Are</a><div>',
						'cursor':'hand',
						'width':266, 'height':22, 'left':10, 'top':0,
						'class':'otherm_down_top',
						'css':'background-color:#ffffff'
					},
					// End item 2-1
					// Begin item 2-2
					2:{
						'content':'<div class="std_grey" onmouseover="this.className = \'std_green\'; document.getElementById(\'imgrt2\').src=\'images/btn_arrow_green.jpg\';" onmouseout="this.className = \'std_grey\'; document.getElementById(\'imgrt2\').src=\'images/btn_arrow_grey.jpg\';"><img src="images/btn_arrow_grey.jpg" style="float: left;position:relative; top:6px; left:4px;" id="imgrt2" /><a href="staff.php">Our Expert Staff</a><div>',
						'cursor':'hand',
						'width':266, 'height':22, 'left':10, 'top':22,
						'class':'otherm_down_center',
						'css':'background-color:#ffffff',
							// Begin array of items
							'items':{
								'top':20,
								'left':170,
								1:{
									'content':'<div class="std_grey" onmouseover="this.className = \'std_green\'" onmouseout="this.className = \'std_grey\'"><a href="staff.php#com">Commerical</a><div>',
									'cursor':'hand',
									'width':166, 'height':22, 'offsetLeft':5, 'offsetTop':2,
									'class':'otherm_down_top'
								},
								2:{
									'content':'<div class="std_grey" onmouseover="this.className = \'std_green\'" onmouseout="this.className = \'std_grey\'"><a href="staff.php#fam">Family</a><div>',
									'cursor':'hand',
									'width':166, 'height':22, 'offsetLeft':0, 'offsetTop':21,
									'class':'otherm_down_center'
								},
								3:{
									'content':'<div class="std_grey" onmouseover="this.className = \'std_green\'" onmouseout="this.className = \'std_grey\'"><a href="staff.php#lh">Life & Health</a><div>',
									'cursor':'hand',
									'width':166, 'height':23, 'offsetLeft':0, 'offsetTop':21,
									'class':'otherm_down_bottom'
								},
								4:{
									'content':'<div class="std_grey" onmouseover="this.className = \'std_green\'" onmouseout="this.className = \'std_grey\'"><a href="staff.php#claims">Claims</a><div>',
									'cursor':'hand',
									'width':166, 'height':23, 'offsetLeft':0, 'offsetTop':21,
									'class':'otherm_down_bottom'
								},
								5:{
									'content':'<div class="std_grey" onmouseover="this.className = \'std_green\'" onmouseout="this.className = \'std_grey\'"><a href="staff.php#op">Operations</a><div>',
									'cursor':'hand',
									'width':166, 'height':23, 'offsetLeft':0, 'offsetTop':21,
									'class':'otherm_down_bottom'
								}
							}
						},// END 2-1
					3:{
					'content':'<div class="std_grey" onmouseover="this.className = \'std_green\'" onmouseout="this.className = \'std_grey\'"><a href="independent_agent.php">Why Choose An Independent Agent?<div>',
					'cursor':'hand',
					'width':266, 'height':22, 'left':10, 'top':43,
					'class':'otherm_down_center',
					'css':'background-color:#ffffff'
					},
					4:{
						'content':'<div class="std_grey" onmouseover="this.className = \'std_green\'" onmouseout="this.className = \'std_grey\'"><a href="trusted_choice_agency.php">Trusted Choice Agency<div>',
						'cursor':'hand',
						'width':266, 'height':22, 'left':10, 'top':64,
						'class':'otherm_down_center',
						'css':'background-color:#ffffff'
					},
					5:{
					'content':'<div class="std_grey" onmouseover="this.className = \'std_green\'" onmouseout="this.className = \'std_grey\'"><a href="privacy.php">Privacy Policy<div>',
					'cursor':'hand',
					'width':266, 'height':22, 'left':10, 'top':84,
					'class':'otherm_down_center',
					'css':'background-color:#ffffff'
					}
				}
			},

			// Begin item 3
			3:{
				'content':'<a href="quote_commercial.php"><img src="images/btn_get_quote.jpg" class="noborder" /></a>',
				'cursor':'hand',
				'width':141, 'height':28, 'left':283, 'top':0,
				'class':'otherm1',
				'css':'background-color:#ffffff',
			// Begin array of items, item 3
					'items':{
					'top':34,
					'left':290,
					'width':206,
					'height':158,
					// Begin item 3-1
					1:{
						'content':'<div class="std_orange" onmouseover="this.className = \'std_grey\'" onmouseout="this.className = \'std_orange\'"><a href="quote_commercial.php">Commercial</a><div>',
						'cursor':'hand',
						'width':126, 'height':22, 'left':10, 'top':0,
						'class':'otherm_down_top',
						'css':'background-color:#ffffff'
					},
					// End item 3-1
					// Begin item 3-2
					2:{
						'content':'<div class="std_orange" onmouseover="this.className = \'std_grey\'" onmouseout="this.className = \'std_orange\'"><a href="quote_family.php">Family</a><div>',
						'cursor':'hand',
						'width':126, 'height':22, 'left':10, 'top':22,
						'class':'otherm_down_center',
						'css':'background-color:#ffffff'
					}
					// End item 3-2
				}
				// End array of items, item 3
			}
			// End item 2
		}
		// End array of items, level 0
	};
	// End base menu

	// Activate and build menu
	var otherMenu = new WebDDM('menu_container_id', menu);
}
