// Initialize WebDDM
function initWebDDM ()
{
	// Preload all the images we will be using...
	WebDDM_preloadImages('http://www.marksystems.info/menus/mainmenu/arrowdown.gif',
		'http://www.marksystems.info/menus/mainmenu/arrowleft.gif');
	
	// Set arrow HTML
	var arrowDown = '<span style="position:relative;top:0;left:5;">'+
		'<img src="http://www.marksystems.info/menus/mainmenu/arrowdown.gif" style="border-style: none;" />' +
		'</span>';
	var arrowLeft = '<span style="position:relative;top:0;left:5;">'+
		'<img src="http://www.marksystems.info/menus/mainmenu/arrowleft.gif" style="border-style: none;" />' +
		'</span>';
			
	// Begin base menu
	var menu = {
		'position':'relative',
		'top':0,
		'left':240,
		'width':420,
		'height':26,
		'expand_menu':'auto',

		// Begin array of items, level 0
		'items':{
			'top':0,
			'left':0,
			
			'background-item':{
				'width': 421, 'height': 28,
				'top':0, 'left':0,
				'class': 'container'
			},
			
			1:{
				'content':'Home',
				'content_rollover':'<a href="http://www.marksystems.info/index.php"><u>H</u>ome</a>',
				'cursor':'hand',
				'width':50, 'height':20, 'offsetLeft': 4, 'offsetTop': 4,
				'class':'mainmenu_off',
				'class_rollover':'mainmenu_rollover'
			},

			2:{
				'content':'Products' + arrowLeft,
				'content_menuopen':'<a href="http://www.marksystems.info/product.php"><u>P</u>roducts' + arrowDown + '</a>',
				'cursor':'hand',
				'width':70, 'height':20, 'offsetLeft':52,
				'class':'mainmenu_off',
				'class_menuopen':'mainmenu_rollover',
				// Begin array of items
				'items':{
					'top':20,
					'left':0,

					'background-item':{
						'width':106, 'height':70, 'left':0, 'top':2,
						'class':'container'
					},
					1:{
						'content':'IHMS' + arrowDown,
						'content_menuopen':'<a href="http://www.marksystems.info/product.php"><u>IHMS</u>' + arrowLeft + '</a>',
						'width':100, 'height':20, 'offsetLeft':3, 'offsetTop':3,
						'class':'mainmenu_off',
						'class_menuopen':'mainmenu_rollover',

						// Begin array of items
						'items':{
							'top':0,
							'left':100,

							'background-item':{
								'width':96, 'height':180, 'left':2, 'top':0,
								'class':'container'
							},

							1:{
								'content':'Accounting',
								'content_rollover':'<a href="http://www.marksystems.info/home-builder-accounting.htm"><u>A</u>ccounting</a>',
								'cursor':'hand',
								'width':90, 'height':20, 'offsetLeft':3, 'offsetTop':3,
								'class':'mainmenu_off',
								'class_rollover':'mainmenu_rollover'
							},
							2:{
								'content':'Purchasing',
								'content_rollover':'<a href="http://www.marksystems.info/home-builder-purchasing.htm"><u>P</u>urchasing</a>',
								'cursor':'hand',
								'width':90, 'height':20, 'offsetTop':22,
								'class':'mainmenu_off',
								'class_rollover':'mainmenu_rollover'
							},
							3:{
								'content':'Development',
								'content_rollover':'<a href="http://www.marksystems.info/home-builder-land-development.htm"><u>D</u>evelopment</a>',
								'cursor':'hand',
								'width':90, 'height':20, 'offsetTop':22,
								'class':'mainmenu_off',
								'class_rollover':'mainmenu_rollover'
							},
							4:{
								'content':'Sales',
								'content_rollover':'<a href="http://www.marksystems.info/home-builder-sales-automation.html"><u>S</u>ales</a>',
								'cursor':'hand',
								'width':90, 'height':20, 'offsetTop':22,
								'class':'mainmenu_off',
								'class_rollover':'mainmenu_rollover'
							},
							5:{
								'content':'Documents',
								'content_rollover':'<a href="http://www.marksystems.info/home-builder-document-management.htm"><u>D</u>ocuments</a>',
								'cursor':'hand',
								'width':90, 'height':20, 'offsetTop':22,
								'class':'mainmenu_off',
								'class_rollover':'mainmenu_rollover'
							},
							6:{
								'content':'Scheduling',
								'content_rollover':'<a href="http://www.marksystems.info/home-builder-construction-scheduling.htm"><u>S</u>cheduling</a>',
								'cursor':'hand',
								'width':90, 'height':20, 'offsetTop':22,
								'class':'mainmenu_off',
								'class_rollover':'mainmenu_rollover'
							},
							7:{
								'content':'Internet ToolKit',
								'content_rollover':'<a href="http://www.marksystems.info/home-builder-internet-toolkit.htm"><u>I</u>nternet <u>T</u>oolKit</a>',
								'cursor':'hand',
								'width':90, 'height':20, 'offsetTop':22,
								'class':'mainmenu_off',
								'class_rollover':'mainmenu_rollover'
							},
							8:{
								'content':'Warranty',
								'content_rollover':'<a href="http://www.marksystems.info/home-builder-warranty-service.htm"><u>W</u>arranty</a>',
								'cursor':'hand',
								'width':90, 'height':20, 'offsetTop':22,
								'class':'mainmenu_off',
								'class_rollover':'mainmenu_rollover'
							}
						}
						// End array of items
					},
					2:{
						'content':'Wireless Access',
						'content_rollover':'<a href="http://www.marksystems.info/WirelessAccess.php"><u>W</u>ireless <u>A</u>ccess</a>',
						'cursor':'hand',
						'width':100, 'height':20, 'offsetTop':22,
						'class':'mainmenu_off',
						'class_rollover':'mainmenu_rollover'
					},
					3:{
						'content':'Internet ToolKit',
						'content_rollover':'<a href="http://www.marksystems.info/ITK.php"><u>I</u>nternet <u>T</u>oolKit</a>',
						'cursor':'hand',
						'width':100, 'height':20, 'offsetTop':22,
						'class':'mainmenu_off',
						'class_rollover':'mainmenu_rollover'
					}
										
				}
				
				// End array of items, item 4
			},
			3:{
				'content':'Events'+arrowLeft,
				'content_menuopen':'<a href="http://www.marksystems.info/events2.php"><u>E</u>vents'+arrowDown+'</a>',
				'cursor':'hand',
				'width':60, 'height':20, 'offsetLeft':72,
				'class':'mainmenu_off',
				'class_menuopen':'mainmenu_rollover',

				// Begin array of items
				'items':{
					'top':20,
					'left':0,

					'background-item':{
						'width': 156, 'height': 48,
						'top':2, 'left':0,
						'class': 'container'
					},					
					
					1:{
						'content':'Executive Roundtables' + arrowDown,
						'content_menuopen':'<a href="http://www.marksystems.info/events2.php"><u>E</u>xecutive <u>R</u>oundtables' + arrowLeft + '</a>',
						'width':150, 'height':20, 'offsetLeft':3, 'offsetTop':3,
						'class':'mainmenu_off',
						'class_menuopen':'mainmenu_rollover',
						// Begin array of items
						'items':{
							'top':0,
							'left':150,

							'background-item':{
								'width':96, 'height':26, 'left':2, 'top':0,
								'class':'container'
							},

							1:{
								'content':'Information',
								'content_rollover':'<a href="http://www.marksystems.info/roundtableinfo.php"><u>I</u>nformation</a>',
								'cursor':'hand',
								'width':90, 'height':20, 'offsetLeft':3, 'offsetTop':3,
								'class':'mainmenu_off',
								'class_rollover':'mainmenu_rollover'
							}
						}
						// End array of items
						
					},
					2:{
						'content':'Web Training' + arrowDown,
						'content_menuopen':'<a href="http://www.marksystems.info/events2.php"><u>W</u>eb <u>T</u>raining' + arrowLeft + '</a>',
						'width':150, 'height':20, 'offsetTop':22,
						'class':'mainmenu_off',
						'class_menuopen':'mainmenu_rollover',

						// Begin array of items
						'items':{
							'top':0,
							'left':150,

							'background-item':{
								'width':96, 'height':48, 'left':2, 'top':0,
								'class':'container'
							},

							1:{
								'content':'Descriptions',
								'content_rollover':'<a href="http://www.marksystems.info/webclassdescriptions.php"><u>D</u>escriptions</a>',
								'cursor':'hand',
								'width':90, 'height':20, 'offsetLeft':3, 'offsetTop':3,
								'class':'mainmenu_off',
								'class_rollover':'mainmenu_rollover'
							},

							2:{
								'content':'Registration',
								'content_rollover':'<a href="http://www.marksystems.info/webtrainingreg.asp"><u>R</u>egistration</a>',
								'cursor':'hand',
								'width':90, 'height':20, 'offsetTop':22,
								'class':'mainmenu_off',
								'class_rollover':'mainmenu_rollover'
							}
						}
						// End array of items
					}
				}
				// End array of items
			},
			4:{
				'content':'News' + arrowLeft,
				'content_menuopen':'<a href="http://www.marksystems.info/news.php"><u>N</u>ews' + arrowDown + '</a>',
				'cursor':'hand',
				'width':52, 'height':20, 'offsetLeft':62,
				'class':'mainmenu_off',
				'class_menuopen':'mainmenu_rollover',
				// Begin array of items
				'items':{
					'top':20,
					'left':0,

					'background-item':{
						'width':131, 'height':70, 'left':0, 'top':2,
						'class':'container'
					},
					1:{
						'content':'Homebuilder Update',
						'content_rollover':'<a href="http://www.marksystems.info/HOMEBUILDER.pdf"><u>H</u>omebuilder <u>U</u>pdate</a>',
						'width':125, 'height':20, 'offsetLeft':3, 'offsetTop':3,
						'class':'mainmenu_off',
						'class_rollover':'mainmenu_rollover'

					},
					2:{
						'content':'IHMS Java',
						'content_rollover':'<a href="http://www.ihmsjava.com" target="_blank"><u>I</u>HMS <u>J</u>ava</a>',
						'width':125, 'height':20, 'offsetTop':22,
						'class':'mainmenu_off',
						'class_rollover':'mainmenu_rollover'

					},
					3:{
						'content':'Press Releases',
						'content_rollover':'<a href="http://www.marksystems.info/news.php"><u>P</u>ress <u>R</u>eleases</a>',
						'cursor':'hand',
						'width':125, 'height':20, 'offsetTop':22,
						'class':'mainmenu_off',
						'class_rollover':'mainmenu_rollover'
					}
				}
				// End array of items, item 4
			},
		    5:{
				'content':'Support' + arrowLeft,
				'content_menuopen':'<a href="http://www.marksystems.info/support.php"><u>S</u>upport' + arrowDown + '</a>',
				'cursor':'hand',
				'width':64, 'height':20, 'offsetLeft':54,
				'class':'mainmenu_off',
				'class_menuopen':'mainmenu_rollover',
				// Begin array of items
				'items':{
					'top':20,
					'left':0,

					'background-item':{
						'width':156, 'height':26, 'left':0, 'top':2,
						'class':'container'
					},
					1:{
						'content':'Server Requirements',
						'content_rollover':'<a href="http://www.marksystems.info/SysReq.pdf"><u>S</u>erver <u>R</u>equirements</a>',
						'width':150, 'height':20, 'offsetLeft':3, 'offsetTop':3,
						'class':'mainmenu_off',
						'class_rollover':'mainmenu_rollover'

					}
					
				}
				// End array of items, item 4
			},
			6:{
				'content':'Contact',
				'content_rollover':'<a href="http://www.marksystems.info/contactus.php"><u>C</u>ontact</a>',
				'cursor':'hand',
				'width':55, 'height':20, 'offsetLeft': 66,
				'class':'mainmenu_off',
				'class_rollover':'mainmenu_rollover'
			},
			7:{
				'content':'About',
				'content_rollover':'<a href="http://www.marksystems.info/about.php"><u>A</u>bout</a>',
				'cursor':'hand',
				'width':50, 'height':20, 'offsetLeft': 57,
				'class':'mainmenu_off',
				'class_rollover':'mainmenu_rollover'
			}
		}
		// End array of items
	};
	// End base menu

	// Activate and build menu
	var WebDDM_mainmenu = new WebDDM('mainmenu', menu);
}
