/*	PAX Menu dropdown demo
	
	The below javascript will render the dropdown menu, and setup a button that toggles the orientation
*/
pax.load.onloaded( function() {
	//	JSON structure
	var model = {
		'Entre': {
			'0': '<a href="javascript:alert(\'Now with so much garlic it will make you cry!\');">Garlic bread</a>',
			'1': '<a href="javascript:alert(\'Its the bacon that makes it good!\');">Mini Ceasar salad</a>'
		},
		'Mains': {
			'0': '<a href="javascript:alert(\'Its extra roasted to hide the mutton-ness\');">Roast Lamb</a>',
			'1': '<a href="javascript:alert(\'We only use the cheapest herbs and spices!\');">Grill Chicken</a>',
			'2': '<a href="javascript:alert(\'How would you like it? Well done? Please say well done.\');">Sirloin steak</a>',
			'Main specials of the day': {
				'0': '<a href="javascript:alert(\'It is 40% flake sir, not sure what the rest is...\');">Fish (ask waiter for details)</a>',
				'1': '<a href="javascript:alert(\'Now guaranteed to be genetically modified!\');">Chicken (like the fish ;o)</a>',
				'Not so specials': {
					'0': '<a href="javascript:alert(\'Watch out for the crunchiness...\');">Yesterdays Tuna melt</a>',
					'1': '<a href="javascript:alert(\'The brie is a bit runny...\');">Yesterdays Tuna brie</a>',
					'2': '<a href="javascript:alert(\'Gorganzola? I think its from Hungary\');">Yesterdays Tuna gorganzola</a>',
					'3': '<a href="javascript:alert(\'Its so Goorda youd want to eat it all!\');">Yesterdays Tuna chunky gorda</a>'
				}
			}
		},
		'Specials of the day': {
			'0': '<a href="javascript:alert(\'Watch out for the crunchiness...\');">Tuna melt</a>',
			'1': '<a href="javascript:alert(\'The brie is a bit runny...\');">Tuna brie</a>',
			'2': '<a href="javascript:alert(\'Gorganzola? I think its from Hungary\');">Tuna gorganzola</a>',
			'3': '<a href="javascript:alert(\'Its so Goorda youd want to eat it all!\');">Tuna chunky gorda</a>'
		}
	};
	
	//	Initialise the menu
	pax.widget.menu.dropdown.init( pax.$("pax.widget.menu.dropdown.example2"), { model: model } );
} );
