WebDDM_preloadImages(arrowImageLeft, arrowImageDown);

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

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

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

			1:{
				'content':'<a href="http://www.cortex-creations.com/">Cortex Creations</a>',
				'cursor':'hand',
				'width':130, 'height':26, 'offsetLeft':3, 'offsetTop':3,
				'class':'js_software_menu_off',
				'class_rollover':'js_software_menu_rollover'
			},
			2:{
				'content':'<a href="'+u_webddm_index+'">' + arrowImageLeft + 'WebDDM</a>',
				'content_menuopen':'<a href="'+u_webddm_index+'">' + arrowImageDown + 'WebDDM</a>',
				'width':100, 'height':26, 'offsetLeft':133, 'offsetTop':0,
				'class':'js_software_menu_off',
				'class_menuopen':'js_software_menu_rollover',

				'items':{
					'top':26,
					'left':-3,

					// Sliding submenu (clipTrans) configuration
					'clipTrans':{
						'duration':500,
						'frames':15,
						'transitionIn':'north-to-south',
						'transitionOut':'southeast-to-northwest'
					},
					
					// Background item
					'background-item':{
						'width':126, 'height':120, 'left':0, 'top':0,
						'class':'container'
					},

					1:{
						'content':'<a href="'+u_webddm_download+'">Download</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':3,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					},
					2:{
						'content':'<a href="'+u_webddm_docs+'">Documentation</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':29,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					},
					3:{
						'content':'<a href="'+u_webddm_examples+'">Examples</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':29,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					},
					4:{
						'content':'<a href="'+u_webddm_compatibility+'">Browser Support</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':29,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					}
				}
			},
			3:{
				'content':'<a href="'+u_phpjso_index+'">' + arrowImageLeft + 'phpJSO</a>',
				'content_menuopen':'<a href="'+u_phpjso_index+'">' + arrowImageDown + 'phpJSO</a>',
				'url':'index.html',
				'width':100, 'height':26, 'offsetLeft':103, 'offsetTop':0,
				'class':'js_software_menu_off',
				'class_menuopen':'js_software_menu_rollover',

				'items':{
					'top':26,
					'left':-3,
					
					// Background item
					'background-item':{
						'width':126, 'height':149, 'left':0, 'top':0,
						'class':'container'
					},

					// Sliding submenu (clipTrans) configuration
					'clipTrans':{
						'duration':500,
						'frames':15,
						'transitionIn':'north-to-south',
						'transitionOut':'southeast-to-northwest'
					},

					1:{
						'content':'<a href="'+u_phpjso_use+'">Use it!</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':3,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					},
					2:{
						'content':'<a href="'+u_phpjso_download+'">Download</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':29,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					},
					3:{
						'content':'<a href="'+u_phpjso_docs+'">Documentation</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':29,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					},
					4:{
						'content':'<a href="'+u_phpjso_examples+'">Examples</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':29,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					},
					5:{
						'content':'<a href="'+u_phpjso_compatibility+'">Browser Support</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':29,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					}
				}
			},
			4:{
				'content':'<a href="'+u_webcombobox_index+'">' + arrowImageLeft + 'WebComboBox</a>',
				'content_menuopen':'<a href="'+u_webcombobox_index+'">' + arrowImageDown + 'WebComboBox</a>',
				'url':'index.html',
				'width':120, 'height':26, 'offsetLeft':103, 'offsetTop':0,
				'class':'js_software_menu_off',
				'class_menuopen':'js_software_menu_rollover',

				'items':{
					'top':26,
					'left':-3,
					
					// Background item
					'background-item':{
						'width':126, 'height':120, 'left':0, 'top':0,
						'class':'container'
					},

					// Sliding submenu (clipTrans) configuration
					'clipTrans':{
						'duration':500,
						'frames':15,
						'transitionIn':'north-to-south',
						'transitionOut':'southeast-to-northwest'
					},

					1:{
						'content':'<a href="'+u_webcombobox_download+'">Download</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':3,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					},
					2:{
						'content':'<a href="'+u_webcombobox_docs+'">Documentation</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':29,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					},
					3:{
						'content':'<a href="'+u_webcombobox_examples+'">Examples</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':29,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					},
					4:{
						'content':'<a href="'+u_webcombobox_compatibility+'">Browser Support</a>',
						'width':120, 'height':26, 'left':3, 'offsetTop':29,
						'class':'js_software_menu_off',
						'class_rollover':'js_software_menu_rollover'
					}
				}
			}
		}
	};
	// End base menu

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