
	var timer = null; 
	var now = 1;
	function loadUpDown(I){
		$("#c_"+I).slideToggle("slow");
	}

	function menuSlide(I,J,lebar){
		if(I==1){
			$('#m_'+J).animate({
				left: '-='+lebar
			}, 300, function() {
	
			});
		}
		else {
			$('#m_'+J).animate({
				left: '+='+lebar
			}, 300, function() {
	
			});
		}
	}

	function menuHSlide(I,J){
		if(I==1){
			$('#am_'+J).animate({
				top: '-='+31
			}, 300, function() {
	
			});
		}
		else {
			$('#am_'+J).animate({
				top: '+='+31
			}, 300, function() {
	
			});
		}
	}


	function getTestimony() 
	{ 
		var maxTesti = $('#maxTesti').val();
		if(maxTesti==0) return;
		var old = now;
		now = now + 1;
		if(now>maxTesti) now = 1;
		
		$('#testi_'+old).animate({
				 "opacity": "hide"
		}, 1000, function() {
			
			$('#testi_'+now).animate({
				"opacity": "show"


			}, 1000, function() {
	
			});
		});
		if(timer != null) clearTimeout(timer);
		timer = setTimeout( 
			function(){		
				getTestimony();
			}, 7000 
		);
	}  

	$(document).ready(function(){ 
		if(timer != null) clearTimeout(timer);
		timer = setTimeout( 
			function(){		
				getTestimony();
			}, 5000 
		);
	
	}); 

	
