//news Carousel for homepage
(function($){
  $.fn.newsCarousel=function(){
    return this.each(function(){
      var _this=this,mouseovered = false;
      $(this).hover(function(){
        mouseovered=true;
      },function(){
        mouseovered=false;
      });
      if($("div.news_item",_this).length > 1){
        $('div.news_item:gt(0)',_this).hide();
        setInterval(function(){
          if(!mouseovered){
            $('div.news_item:first-child',_this).hide("slow")
              .next("div.news_item").show("slow")
              .end().appendTo(_this);
          }
        },3000);
      }
    });
  };
  
  
  
})(jQuery);
$(function(){
  $("#newsScrollerInner").newsCarousel();
  if($("#pageBanner img").length > 1){
    $('#pageBanner img:gt(0)').hide();
    setInterval(function(){
      var pgbn=$("#pageBanner"),
          frst=$('img:first', pgbn),
          nxt=frst.next("img");
      frst.fadeOut().next('img').fadeIn(function(){
        frst.insertAfter($('img:last', pgbn));
      });
    },3000);  
  }
})

$(document).ready(
				function(){
					$('.freephone ul').innerfade({
						animationtype: 'fade',
						speed: 150,
						timeout: 200,
						type: 'sequence',
						containerheight: '50px'
					});
					
});

