jQuery(function($){

	var adjustheight = 153;
	var moreText = "+  More";
	
	$(".more-less").each( function( index ) {
		$(this).addClass('more-'+index);
		$(this).append('<p class="continued">[&hellip;]</p><p><a href="#" class="adjust" id="togg-'+ index +'"></a></p>');
	})
	$(".title_adjust").css('cursor', 'pointer');
	$("a.adjust").text(moreText);
	
	$(".adjust").live('click', function() {
		var current_height = $(this).parents("div:first").find(".more-block").height();
		if(current_height == 153) {
			$(this).parents("div:first").find(".more-block").css('height', 'auto').css('overflow', 'visible');
			$(this).parents("div:first").find("p.continued").css('display', 'none');
			$(this).text("- Less");
		} else {
			$(this).parents("div:first").find(".more-block").css('height', adjustheight).css('overflow', 'hidden');
			$(this).parents("div:first").find("p.continued").css('display', 'block');
			$(this).text(moreText);
		}
		return false;
	});	
});
function toggle_details( index ){
	var current_height = jQuery('.more-' + index).children(".more-block").height();
	if ( current_height == 153 ) {
		jQuery('.more-' + index).children(".more-block").css({'height':'auto', 'overflow':'visible'});	
		jQuery('.more-' + index).children("p.continued").css('display', 'none');
		jQuery('#togg-'+ index).text("- Less");
	} else {
		jQuery('.more-' + index).children(".more-block").css({'height':'153px', 'overflow': 'hidden'});	
		jQuery('.more-' + index).children("p.continued").css('display', 'block');
		jQuery('#togg-'+ index).text("+ More");
	}	
}
