var $counter = 1;
var $total = 1;

function testi($b) {	

	
	jQuery("#testiminials .prev").attr("onClick","");
	jQuery("#testiminials .next").attr("onClick","");
	
	jQuery(".test").hide();
		
	
	$total = jQuery("#testiminials .test").length;
	
	if($b == 'n') {jQuery("#t2").show();var $counter = 2;}
	if($b == 'p') {jQuery("#t"+$total).show();var $counter = $total;}
			
	
	jQuery("#testiminials .prev").click(function(){

		//alert($counter);		
		$counter = $counter -1;		
		if($counter == 0) {$counter = $total;}
		
		jQuery(".test").hide();	
		jQuery("#t"+$counter).show();
		
		return false;		
		
		});
	jQuery("#testiminials .next").click(function(){
		
		//alert($counter);	
		$counter = $counter +1;		
		if($counter > $total) {$counter = 1;}
		
		jQuery(".test").hide();		
		jQuery("#t"+$counter).show();
		
		//alert("#t"+$counter);
		
		return false;
		
		});
		
	return false;	
  }


