// Initialize WebDDM
function initWebDDM ()
{
	// Begin base menu
	var menu = {
		'position':'relative',
		'top':0,
		'left':0,
		'width':500,
		'height':30,
		'expand_menu':'auto',

		'items':{
			'top':0,
			'left':0,
			'width':500,
			'height':27,
			
			// Background item
			'background-item':{
				'width':482, 'height':27, 'left':0, 'top':0,
				'class':'macosx_container'
			},

			1:{
				'content':'Home',
				'url':'../index.html',
				'cursor':'hand',
				'width':160, 'height':25, 'offsetLeft':1, 'top':1,
				'class':'macosx',
				'class_rollover':'macosx_rollover'
			},
			2:{
				'content':'More Info',
				'url':'../index.html', 'target':'_BLANK',
				'width':160, 'height':25, 'offsetLeft':160, 'offsetTop':0,
				'class':'macosx',
				'class_menuopen':'macosx_rollover',

				'items':{
					'top':23,
					'left':0,
					'width':201,
					'height':155,

					// Background item
					'background-item':{
						'width':201, 'height':151, 'left':0, 'top':2,
						'class':'macosx_container'
					},

					1:{
						'content':'Any <b>H</b><u>T</u><i>M</i><s>L</s> can be used in items, such as lists and graphics:<ul><li>one</li><li><img src="../WebDDM.gif" /></li></ul>',
						'content_rollover':'Dynamically change content at any time!',
						'width':199, 'height':149, 'offsetLeft':1, 'offsetTop':1,
						'class':'macosx',
						'class_rollover':'macosx_rollover',
						'css':'text-align:center'
					}
				}
			},
			3:{
				'content':'JavaScript Calls',
				'width':160, 'height':25, 'offsetLeft':160, 'offsetTop':0,
				'class':'macosx',
				'class_menuopen':'macosx_rollover',
				// Begin array of items, item 4
				'items':{
					'top':23,
					'left':0,
					'width':136,
					'height':68,
					
					// Background item
					'background-item':{
						'width':132, 'height':64, 'left':0, 'top':3,
						'class':'macosx_container'
					},

					1:{
						'content':'Alert box',
						'url':'javascript:alert("Hello world!");',
						'cursor':'hand',
						'width':130, 'height':21, 'offsetLeft':1, 'offsetTop':0,
						'class':'macosx',
						'class_rollover':'macosx_rollover'
					},
					2:{
						'content':'Confirm box',
						'url':'javascript:confirm("You wanna confirm or what?");',
						'cursor':'hand',
						'width':130, 'height':21, 'offsetLeft':0, 'offsetTop':21,
						'class':'macosx',
						'class_rollover':'macosx_rollover'
					},
					3:{
						'content':'Open window',
						'url':'javascript:window.open("index.html");',
						'cursor':'hand',
						'width':130, 'height':21, 'offsetLeft':0, 'offsetTop':21,
						'class':'macosx',
						'class_rollover':'macosx_rollover'
					}
				}
			}
		}
	};
	// End base menu

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