$(function(){
	
		$('#feature-list').animatedinnerfade({ 
           
            timeout:  10000, 
            type: 'sequence', 
            containerheight: '235px', 
            containerwidth: '400px', 
            animationSpeed:'4000', 
            animationtype: 'fade',
			controlBoxClass: 'none',
			controlBox: 'none',
			speed: 4000
		});
		
		
		$("a.feature-next").click(function(ev){
			 ev.preventDefault();
			 ev.target.blur();
    		 $("a.next-button").trigger('click');  
		});
		
		$("a.feature-back").click(function(ev){
			 ev.preventDefault();
			 ev.target.blur();
    		 $("a.back-button").trigger('click');  
		});
		
		$(".read-more").click(function(ev){
			ev.preventDefault();
			ev.target.blur();
			id = $(this).getId();
			
		
			$("#extra-" + id).slideToggle();
			
			if($(this).html() == 'Read More.'){
				$(this).html('Hide');
			}else{
				$(this).html('Read More.');
			}
		});
		
});
