/* google code */
// Load jQuery and UI
google.load("jquery", "1.3.2");
google.load("jqueryui", "1.7.1");

/* hover for header */
jq(document).ready(function(){
	$(".portlet-static-uofl-title").hover(function(){
		$("#portal-header").addClass("portal-header-switch");
	}, function() {
  $("#portal-header").removeClass('portal-header-switch');
	});
});

/* Toggle for news items */
jq(document).ready(function() {

    /* toggle */
    $('[id^=toggle-item]').hide();
    $('[id^=dotoggle]').click(function() {
        var $this = $(this);
        var x = $this.attr("id");
        $('#toggle-item-' + x).toggle();
        $this.toggleClass("section-open");
    });
    
    /* toggle all */
    $('#toggleall').click(function() {
    	$('[id^=toggle-item]').show();
    	$('[id^=dotoggle]').addClass("section-open");
    });
});
