function ani()
	{
		$(".motivation").fadeIn("slow");	
	}
function loadMotivation(rel)
	{
	}
function delMotivation(rel)
	{
		$('.moti_text').html("<img class='wait' src='/images/wait.gif' alt='L&auml;dt ... Bitte warten'/>"); 
		page = "/unterstuetzer/stifter/motivationen/"+rel+"_short.txt";
		$('.moti_text').load(page,'',ani);
		$('#switchajax').html('mehr &raquo;');
		$('#switchajax').removeClass();
		$('#switchajax').addClass("loadmore");
	}
$(document).ready(function(){
//Page Flip on hover

	$("#pageflip").hover(function() {
		$("#pageflip img , .msg_block").stop()
			.animate({
				width: '307px', 
				height: '319px'
			}, 500); 
		} , function() {
		$("#pageflip img").stop() 
			.animate({
				width: '50px', 
				height: '52px'
			}, 220);
		$(".msg_block").stop() 
			.animate({
				width: '50px', 
				height: '50px'
			}, 200);
	});	

// Unterstuetzer: mehr Inhalt laden inkl. Animation
$(".loadmore").bind('click',function()	{
	rel = this.getAttribute('rel');
	class = "."+rel;
	show = class+" a";
	id = "#"+rel+"show";
	
	$(class).html("<img class='wait' src='/images/wait.gif' alt='L&auml;dt ... Bitte warten'/>"); 
	page = "/unterstuetzer/stifter/motivationen/"+rel+"_long.txt";
	$(class).load(page,'',ani);
	$(id).removeClass();
	$(id).html('&laquo; weniger');
	$(id).addClass("min_moti");
});

	//$(document).pngFix(); 
});

$(document).ajaxStop(function()	{
	$(".loadmore").bind('click',function()	{
		rel = this.getAttribute('rel');
		class = "."+rel;
		id = "#"+rel+"show";
		
		$(class).html("<img class='wait' src='/images/wait.gif' alt='L&auml;dt ... Bitte warten'/>"); 
		page = "/unterstuetzer/stifter/motivationen/"+rel+"_long.txt";
		$(class).load(page,'',ani);
		$(id).removeClass();
		$(id).html('&laquo; weniger');
		$(id).addClass("min_moti");
	});
	$(".min_moti").bind('click',function()	{
		rel = this.getAttribute('rel');
		class = "."+rel;
		id = "#"+rel+"show";
		
		$(class).html("<img class='wait' src='/images/wait.gif' alt='L&auml;dt ... Bitte warten'/>"); 
		page = "/unterstuetzer/stifter/motivationen/"+rel+"_short.txt";
		$(class).load(page,'',ani);
		$(id).removeClass();
		$(id).html('mehr &raquo;');
		$(id).addClass("loadmore");
	});
});
