jQuery(document).ready(function($) {
	
	var readMoreElements = $(".read-more");
	
	if( $(".read-more").length > 0 ) {
		
		for(i=0 ; i<readMoreElements.length ; i++) {
			jQuery(readMoreElements[i]).hide();
			jQuery('#preferred_package_solution_read_more').html('<a class="read-more-link" href="" alt="Read more">' + portfolioTxt + '</a>');
		}
		
	}
	
	$("a.read-more-link").click(function(ev){
		// Prevent the default action of the event --> stop the href in the 
		// anchor from being followed before the animation has started
		
		ev.preventDefault();
		
		// Store a reference to the anchor tag
		var $self = $(this);
		
	
		$(".read-more").slideToggle('slow', function() {
			
			var str = $("a.read-more-link").text();
			if(str == portfolioTxt)
    			$("a.read-more-link").html( hideTxt );
			else
				$("a.read-more-link").html( portfolioTxt );
		
		});
		
	});

	
});
