// 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,

			'background-item':{
				'width':333, 'height':23,
				'left': 0, 'top': 0,
				'class':'container'
			},
				
			/* alphaTrans settings */
			'alphaTrans':{
				'delta':5,
				'delay':10
			},

			1:{
				'content':'<a href="../index.html">Home</a>',
				'cursor':'hand',
				'width':100, 'height':20, 'offsetLeft':1, 'offsetTop':1,
				'class':'win9x_off',
				'class_rollover':'win9x_rollover'
			},
			2:{
				'content':'<a href="../index.html">More Info &nbsp; <img src="../menus/win9x/arrow.gif" /></a>',
				'content_menuopen':'<a href="../index.html">More Info &nbsp; <img src="../menus/win9x/arrowover.gif" /></a>',
				'width':100, 'height':20,
				'offsetLeft':100,
				'class':'win9x_off',
				'class_menuopen':'win9x_rollover',

				'items':{
					'top':18,
					'left':0,

					'background-item':{
						'width':203, 'height':153,
						'left':0, 'top': 2,
						'class':'container'
					},
				
					/* alphaTrans settings */
					'alphaTrans':{
						'delta':5,
						'delay':5,
						'maxOpacity':75,
						'direction':'in'
					},

					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':200, 'height':150,
						'offsetLeft':1, 'offsetTop': 1,
						'class':'win9x_off',
						'class_rollover':'win9x_rollover'
					}
				}
			},
			3:{
				'content':'JavaScript Calls &nbsp; <img src="../menus/win9x/arrow.gif" />',
				'content_menuopen':'JavaScript Calls &nbsp; <img src="../menus/win9x/arrowover.gif" />',
				'url':'index.html',
				'width':130, 'height':20,
				'offsetLeft':100,
				'class':'win9x_off',
				'class_menuopen':'win9x_rollover',

				'items':{
					'top':18,
					'left':0,

					'background-item':{
						'width':133, 'height':63,
						'left':0, 'top':1,
						'class':'container'
					},
				
					/* alphaTrans settings */
					'alphaTrans':{
						'delta':10,
						'delay':5,
						'maxOpacity':75
					},

					1:{
						'content':'<a href="javascript:alert(\'Hello world!\');">Alert box</a>',
						'cursor':'hand',
						'width':130, 'height':20,
						'offsetLeft':1, 'offsetTop':1,
						'class':'win9x_off',
						'class_rollover':'win9x_rollover'
					},
					2:{
						'content':'<a href="javascript:void confirm(\'You wanna confirm or what?\');">Confirm box',
						'cursor':'hand',
						'width':130, 'height':20,
						'offsetTop':20,
						'class':'win9x_off',
						'class_rollover':'win9x_rollover'
					},
					3:{
						'content':'<a href="javascript:void window.open(\'../index.html\')">Open window</a>',
						'cursor':'hand',
						'width':130, 'height':20,
						'offsetTop':20,
						'class':'win9x_off',
						'class_rollover':'win9x_rollover'
					}
				}
			}
		}
	};

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