$(document).ready(function(){ 
    $("ul.sf-menu").superfish({delay: 500, animation: {opacity:'show'}, autoArrows: false, dropShadows: false}); 
	$("#list1a").accordion({
		header: 'div.title',
		autoHeight: true,
		collapsible: true,
		active: false,
		icons: {
			header: "ui-icon-circle-arrow-e",
				headerSelected: "ui-icon-circle-arrow-s"
		}
	});

	$("#list1a div.title").hover(
	  function(){ $(this).addClass("hover"); },
	  function(){ $(this).removeClass("hover"); }
	);
	
	jQuery.fn.slideFadeToggle = function(speed, easing, callback) {
			return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);  
	};
	jQuery.fn.fadeToggle = function(speed, easing, callback) { 
			return this.animate({opacity: 'toggle'}, speed, easing, callback); 
	}; 
	jQuery.fn.blindToggle = function(speed, easing, callback) {
			var h = this.height() + parseInt(this.css('paddingTop')) + parseInt(this.css('paddingBottom'));
			return this.animate({marginTop: parseInt(this.css('marginTop')) <0 ? 0 : -h}, speed, easing, callback);  
	};
	
	$('.expander').hide();
	//$('.news').append("<div class='read-more'><a href='' title='Read the article'>Read Body</a></div>");
		$(".news .read-more a").click(function(event){
			$(this).parents("div").prev(".expander").slideFadeToggle();
			$(this).parents(".read-more").toggleClass("re-collapse");
			return false;
		});

});