// Initialize WebDDM
function initWebDDM ()
{
	// Begin base menu
	var menu = {
		'position':'relative',
		'top':0,
		'left':0,
		'width':20,
		'height':2,
		'expand_menu':'auto',
		
		// We use 'em' throughout this menu. You can also use '%' (percent),
		// 'in' (inches), 'cm' (centimeters), 'mm' (millimeters), or 'px' (pixels - the
		// default).
		'defaultMeasurementUnit':'em',

		// Begin array of items, level 0
		'items':{
			'top':0,
			'left':0,

			// Background item
			'background-item':{
				'width':28.3, 'height':1.8, 'left':0, 'top':0,
				'class':'container'
			},

			1:{
				'content':'<a href="../index.html">Home</a>',
				'cursor':'hand',
				'width':6, 'height':1, 'offsetLeft': 0.2, 'offsetTop': 0.2,
				'class':'msdn_off',
				'class_rollover':'msdn_rollover'
			},
			2:{
				'content':'<a href="../index.html">More Info &nbsp; <img src="../menus/msdn/arrowdown.gif" /></a>',
				'width':8, 'height':1, 'offsetLeft':6.2, 'offsetTop':0,
				'class':'msdn_off',
				'class_menuopen':'msdn_rollover',

				'items':{
					'top':1.49,
					'left':0,
					
					// Background item
					'background-item':{
						'width':17.6, 'height':11.87, 'left':0, 'top':0.2,
						'class':'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>',
						'width':15, 'height':10, 'offsetLeft':0.2, 'offsetTop':0.2,
						'class':'msdn_off',
						'class_rollover':'msdn_rollover'
					}
				}
			},
			3:{
				'content':'<a href="../index.html">JavaScript Calls &nbsp; <img src="../menus/msdn/arrowdown.gif" /></a>',
				'url':'index.html',
				'width':10, 'height':1, 'offsetLeft':8.2, 'offsetTop':0,
				'class':'msdn_off',
				'class_menuopen':'msdn_rollover',

				'items':{
					'top':1.49,
					'left':0,
					
					// Background item
					'background-item':{
						'width':11.87, 'height':4.9, 'left':0, 'top':0.2,
						'class':'container'
					},

					1:{
						'content':'<a href="javascript:alert(\'Hello world!\');">Alert Box</a>',
						'cursor':'hand',
						'width':10, 'height':1, 'offsetLeft':0.2, 'offsetTop':0.2,
						'class':'msdn_off',
						'class_rollover':'msdn_rollover'
					},
					2:{
						'content':'<a href="javascript:void confirm(\'You wanna confirm or what?\');">Confirm Box</a>',
						'cursor':'hand',
						'width':10, 'height':1, 'offsetLeft':0, 'offsetTop':1.4,
						'class':'msdn_off',
						'class_rollover':'msdn_rollover'
					},
					3:{
						'content':'<a href="javascript:void window.open(\'index.html\');">Open Window</a>',
						'cursor':'hand',
						'width':10, 'height':1, 'offsetLeft':0, 'offsetTop':1.4,
						'class':'msdn_off',
						'class_rollover':'msdn_rollover'
					}
				}
			}
		}
	};
	// End base menu

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