        $(function(){
    	// BUTTONS
    	$('.fg-button').hover(
    		function(){ $(this).removeClass('ui-state-default').addClass('ui-state-focus'); },
    		function(){ $(this).removeClass('ui-state-focus').addClass('ui-state-default'); }
    	);
    	
    	// MENUS    	
		$('#flat').menu({ 
			content: $('#flat').next().html(), // grab content from this page
			showSpeed: 400 
		});
		
		$('#hierarchy').menu({
			content: $('#hierarchy').next().html(),
			crumbDefaultText: ' '
		});
		
		$('#hierarchybreadcrumb').menu({
			content: $('#hierarchybreadcrumb').next().html(),
			backLink: false
		});
		
		// or from an external source
		$.get('menu/links/profile.html', function(data){ // grab content from another page
			$('#profile').menu({ content: data, flyOut: true });
		});
		
		
				$.get('menu/links/sms.html', function(data){ // grab content from another page
			$('#sms').menu({ content: data, flyOut: true });
		});

$.get('menu/links/contact.html', function(data){ // grab content from another page
			$('#contact').menu({ content: data, flyOut: true });
		});


$.get('menu/links/payments.html', function(data){ // grab content from another page
			$('#payment').menu({ content: data, flyOut: true });
		});


$.get('menu/links/autoresponder.html', function(data){ // grab content from another page
			$('#autoresponder').menu({ content: data, flyOut: true });
		});


$.get('menu/links/reseller.html', function(data){ // grab content from another page
			$('#reseller').menu({ content: data, flyOut: true });
		});


$.get('menu/links/help.html', function(data){ // grab content from another page
			$('#help').menu({ content: data, flyOut: true });
		});

		
		
		$.get('menu/links/services.html', function(data){ // grab content from another page
			$('#services').menu({ content: data, flyOut: true });
		});


		$.get('menu/links/faq.html', function(data){ // grab content from another page
			$('#faq').menu({ content: data, flyOut: true });
		});


		$.get('menu/links/price.html', function(data){ // grab content from another page
			$('#price').menu({ content: data, flyOut: true });
		});


		$.get('menu/links/contact-out.html', function(data){ // grab content from another page
			$('#contact-out').menu({ content: data, flyOut: true });
		});


		
    });

