/**
 * Put any behaviours for all network sites here
 *
 * ==============================================
 * Any logic here will be run through ALL network
 * sites. So don't be stupid and debug here...
 * ==============================================
 */
$(function() {
	
	/**
	 * On hover sub-menu fade in
	 */
	$('#navigation ul.top ul.sub').hide();
	$('#navigation ul.top>li:has(ul.sub)').hover(
		function() {
			$('ul.sub', this).slideDown('fast');
		}, function () {
			$('ul.sub', this).slideUp('fast');
		}
	);

	/**
	 * Expandable List Blocks
	 */
	$('ul.expandable-feature>li>h3:first-child')
		.addClass('inactive')
		.wrap($('<a href="#expand">'))
		.parent()
		.click(function(e) {
			$('ul.expandable-feature>li>*:not(h3:first-child)')
				.not($(this).closest('li').find('*:not(h3:first-child)')).hide();
			$('ul.expandable-feature h3:first-child').removeClass('active').addClass('inactive');
			$(this).closest('li').find('*:not(h3:first-child)').fadeIn();
			$('h3',this).removeClass('inactive').addClass('active');
		
	//		return false;
		});
	$('ul.expandable-feature>li>*:not(h3:first-child)').toggle();
	

});




