
//Superfish menu
$("ul.sf-menu").supersubs().superfish(
{
            delay:       1000,                            // one second delay on mouseout
            animation:   {opacity:'show'},  // fade-in and slide-down animation
            speed:       'normal',                          // faster animation speed
            autoArrows:  false,                           // disable generation of arrow mark-up
            dropShadows: false                            // disable drop shadows
        }
);

//Toggle functions
 $("#toggle-all").toggle(
                    function(){
                         $(".excerpt").hide('slow');
			 $("#toggle").attr("class","show-all");
                    }, function() {
                         $(".excerpt").show('slow');
			 $("#toggle").attr("class","hide-all");
                    });

$("#sidebar_show").hide();

$("#hide_s").click(function (event) {
	event.preventDefault();
                         $("#right").hide();
			 $("#left").css("width","880px");
			 $("#sidebar_show").show();
    });

$("#show_s").click(function (event) {
	event.preventDefault();
                         $("#right").show();
			 $("#left").css("width","560px");
			 $("#sidebar_show").hide();
    });

$(".view-excerpt").click(function (event) {
	event.preventDefault();
      $(this).parents(".headline").next(".excerpt").toggle("normal");
    });

$(".widget h4").click(function (event) {
	event.preventDefault();
      $(this).next().toggle();
    });


