/**
 * this is the main javascript file that is used to initialize and manage client side operation
 */

//do nothing until DOM loads
$(document).ready(function(){	
		//load tabs from the tabs class
		jQuery('.tabs').tabs({navigation:true});
		
		//qtips
		$('a[title]').qtip({ style: { name: 'dark', tip: true },position: {
		      corner: {
		         target: 'bottomRight',
		         tooltip: 'topMiddle'
		      }
		   } });
		
		//Reminders
		$(".reminders").click(function(){
			$('#reminderContent').load('/solutions/list-user-solution-tasks');
			$('#mental_reminders').toggle('slow');
			
		});
		
		$('#mental_reminders').draggable();

		
		$(".sortable-table").tablesorter();
		$("#mainNav li").hover(
			function(){
				$(this).find(".flyout").show();
				$(this).find("a:first").addClass("activeLink");
			},
			function(){
				$(this).find(".flyout").hide();
				$(this).find("a:first").removeClass("activeLink");
			}
		);
		
		
});


