$(document).ready( function() {	preText();	$("#fadeImages").ppFadeImages({
		fadeTime: 8000
	});
});

function preText() {	$(".preface .readmore a").click( function() {		$(this).parent().hide();
		var Pars = $("#prefaceText p").get();
        preTextAni(Pars, 0);
	});
}

function preTextAni(Pars, i) {	$(Pars[i]).animate( {
		'height': 'toggle',
		'margin-top': 'toggle',
		'margin-bottom': 'toggle'
	}, 100);
	if( i < Pars.length ) {
		setTimeout( function() { preTextAni(Pars, i+1) }, 100 );
	}
}
