$(document).ready(function(){
	var windowHeight = $(window).height();
	windowHeight = windowHeight + 1;
	$("#outerwrapper").css({'height':windowHeight+'px'})
});

$(document).ready(function(){
	var leftContentHeight = $("#leftContent").height() ;
	var contentHeight = $("#content").height();
	if (contentHeight < leftContentHeight)
	{
	$("#content").css({'height':leftContentHeight+'px'})
	}
});

$(document).ready(function(){
			$(".menu")
			.superfish({
				animation : { opacity:"show",height:"show"}
			});
});

$(document).ready(function(){
	$('table.course tbody tr td:first').css({'width':'100px'});
});

$(document).ready(function() { 
    $("table#searchResults") 
    .tablesorter({
    	headers: {0: {sorter: false}},
    	widthFixed: true, 
    	widgets: ['zebra']
    }) 
    .tablesorterPager({
    	container: $("#pager"),
    	positionFixed: false
    }); 
}); 

$(document).ready(function(){
	$('.menu li a:last').css({'padding':'0 13px 0 12px'})
});

/*

this slides the first content in

$(function() {
		 var options = {};
		
		$("#tabs").tabs({
			event: 'click',
			//selected : -1,
			show:function(event,ui)
			{
				$(ui.panel).effect("slide",options,500);
	
			}
			
		});
	});
	
this keeps the first tab static
	
	
$(function() {
             var options = {};
            
            $("#tabs").tabs({
                  event: 'click',
                  select:function(event,ui)
                  {
                       $("#tabs").unbind('tabsshow');
                       $("#tabs").bind('tabsshow', function (event, ui){
                              $(ui.panel).effect("slide",options,500);
                              })
                  }
                  
            });
      });

and below is the alternative binding method to achieve the same thing      
      
which is what we used on the site for the sliding......    
      
 $(function() {
                        $('#tabs').tabs({
                                select: function(event, ui) {
                                        $('#tabs').unbind('tabsshow');
                                        $('#tabs').bind('tabsshow',  function (event, ui){
                                                                $('.tabstest').effect( 'slide', 'options', 500);
                                                        });
                                }
                        });
                });
	
*/      
      
  $(function (){
  	$('#tabs').tabs();
  })    
      
	$(function() {
		$("#accordionObtainCard, #accordionRenewCard").accordion({	
			autoHeight: false,
			collapsible: true,
			/*active:false,*/
			icons: {
    			header: "ui-icon-circle-arrow-e",
   				headerSelected: "ui-icon-circle-arrow-s"
			}

		});
	});
	


$(function() {
$(".triggerCards").tooltip(
 {  
	position:['center','left'],
	offset: [-10, -10], 
	effect: 'slideup',
	opacity: 1
 });
});

$(function() {
$(".triggerMembers").tooltip(
 {  
	position:['center','left'],
	offset: [12, -10], 
	effect: 'slideup',
	opacity: 1
 });
});

$(function() {
$(".trigger").tooltip(
 {  
	position:['center','left'],
	offset: [0, 10], 
	effect: 'slideup',
	opacity: 1
 });
});

$(document).ready(function(){
    $("a.readYes").click(function () {
      if ($(".optional").is(":hidden")) {
        $(".optional").slideDown("slow");
      } else {
        $(".optional").hide();
      }
      return false;
    });
    $("a.readNo").click(function () {
    	if ($(".optional").is(":visible")) {
        $(".optional").slideUp("slow");
      } else {
        $(".optional").show();
      }
      return false;
    });  
 });
 
 $(document).ready(function(){
    $("a.readYesCourse").click(function () {
      if ($(".optionalCourse").is(":hidden")) {
        $(".optionalCourse").slideDown("slow");
      } else {
        $(".optionalCourse").hide();
      }
      return false;
    });
    $("a.readNoCourse").click(function () {
    	if ($(".optionalCourse").is(":visible")) {
        $(".optionalCourse").slideUp("slow");
      } else {
        $(".optionalCourse").show();
      }
      return false;
    });  
 });
 

$(document).ready(function() {
  $('#defList').find('dd').hide().end().find('dt').click(function() {
     $(this).next().slideToggle();
 	$('#defList').find('dd').hide().end();
   });   
});

