jQuery.noConflict();
jQuery(function($) { 

// DROP DOWN MENU
	// http://users.tpg.com.au/j_birch/plugins/superfish/#getting-started
	// http://users.tpg.com.au/j_birch/plugins/superfish/#options
	$(".sf-menu").supersubs({ 
			minWidth:    10,   // minimum width of sub-menus in em units 
			maxWidth:    27,   // maximum width of sub-menus in em units 
			extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
							   // due to slight rounding differences and font-family 
		}).superfish({
			dropShadows:    false,
			delay:			400
			
							}); // call supersubs first, then superfish, so that subs are 
                         		// not display:none when measuring. Call before initialising 
                         		// containing tabs for same reason. 

	
	// Scroll to top animation
	$('.scroll-top').click(function(){ 
		$('html, body').animate({scrollTop:0}, 600); return false; 
	});
	
	
	// Hide parent on click (error messages, etc...)
	$('a.hideparent').click(function(){ 
		$(this).parent().fadeOut();
		return false;
	});

	



	




	
		
		// Toggle Content!
		$(".hidden").hide();
		$("a.toggle").click(function(event){
			if( $(this).text() == 'Show More' ) {
				$(this).text("Show Less");
			}else{
				$(this).text("Show More");
			}
			$(this).parents(".toggle-container").find(".hidden").slideToggle("normal");
			return false;
		});
		
		
		// This script is for demonstration purposes only, you can remove once you are done experimenting with the css/theme switcher
		$('a.switch-theme').click(function(event){
			$('#theme-colors').attr('href', "css/themes/" + $(this).attr('title') + ".css ");
			$('a.switch-theme').css('font-weight','normal');
			$(this).css('font-weight','bold');
			return false;
		});
 		
		
		
}); // end jQuery
