if (typeof(EDU) == 'undefined') {
	EDU		= {};
	EDU.UI	= {};
}

EDU.UI.Global = function() {
	
	var init	= function() {
		
		recentAdded();
		explore();
	}

	
	var recentAdded	= function() {
		
		/* hide the list onload */
		jQuery('#recent #recentadded-list').hide();
		
		/* change the class on the heading*/
		jQuery('#recent #recentadded').removeClass("recent-open");
		
		/* make the heading look like a link*/
		jQuery('#recent h3#recentadded').css({cursor: "pointer"});
		
		jQuery('#recent h3#recentadded').click(function() {
			jQuery('#recent #recentadded-list').slideToggle();
			jQuery('#recent #recentadded').toggleClass("recent-open");
			
		})
		
	}
	
	var explore = function() {
		jQuery('.explore div').hide();
		
		jQuery('.explore h4').addClass("closed");
		
		jQuery('.explore h4').css({cursor: "pointer"});
		
		jQuery('.explore h4').click(function() {
			
			theid = $(this).parent().attr('id');
		
			jQuery('#'+theid+' h4').toggleClass("closed");
			
			jQuery('#'+theid+' div').slideToggle();
			
			
			
		})
	}


	return {
		init: init
	}

}();

jQuery(function($) { EDU.UI.Global.init(); });