/*	PAX Menu dropdown demo
	
	The below javascript will render the dropdown menu, and setup a button that toggles the orientation
*/
pax.load.onloaded( function() {
	//	Initialise the menu
	var menu = pax.$("pax.widget.menu.dropdown.example1");
	pax.widget.menu.dropdown.init( menu );
	//	Setup the button that changes menu aspect
	pax.event.bind( pax.$('toggleOrientation'), 'click', function() {
		pax.widget.menu.dropdown.init( menu, { vertical: ! ( pax.util.hasClassName( menu, 'vertical') ) } );
	} );
} );
