jQuery(document).ready(function($){




//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");
                    });

$(".hide-excerpt").click(function (event) {
	event.preventDefault();
      $(this).parents(".excerpt").hide("normal");
    });

$(".view-excerpt").click(function (event) {
	
      
    });

//$("#newstitle").click(
//
//   function(event) {
//    event.preventDefault();
//    //$(this).parents(".headline").next(".excerpt").hide("normal");
//    //$(this).parents(".excerpt").hide("normal");
//    $("div#newsheadings.tabs").children("#14").toggle("normal");
//
//    }
//);

$("li.newstitle").click(function(event) {
    clear();
    event.preventDefault();
    $(this).next().toggle("normal");

}
);//

//$('#newsheadings > ul').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });

//{
  //                      fx:{
      //                              height:'toggle',
      //                              opacity:'toggle'
      //                  }
      //              }

$("#mostread").tabs(
                    
                    );
$(".tabs-container:first").removeClass("ui-tabs-hide");
$(".tabs-container:first").addClass("ui-tabs-show");
//$('#mostread').tabs({ fx: { height: 'toggle', opacity: 'toggle' }});  

$(".ui-tabs-panel:first").removeClass("ui-tabs-hide");
$(".ui-tabs-panel:first").addClass("ui-tabs-show");


//$(".featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
$(".featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);

//$(".featured").tabs({ fxSlide: true });
//$(".featured > ul").tabs({ fxSlide: true });
//$(".featured").tabs({ fxSlide: true, fxFade: true, fxSpeed: 'normal' }).tabs("rotate", 5000, true);
$(".featured").hover(function() {
//$(".featured").tabs("rotate",5000,true);
}
);
//$(".featured").tabs({ fxSlide: true, effect: 'slide', event: 'mousedown' });
//$(".featured > ul").tabs({ fxSlide: true, effect: 'horizontal'  });


 });






