$.fn.divSwitcher2 = function() 
{

	// show intro paragraph - is optional
	$("#intro").show();
	
	// add "switcher" class to children of the "container" div
	$('.testimonial').children().each(function(){
		$(this).addClass("switcher");
	});

	// add unique id's to each of the divs with the "switcher class"  - is numerical index: 0,1,2,3 etc
	$(".switcher").each(function(index, element){
		$(element).attr("id", index);
	});

	
	// create array for div id's
	var itemNames=new Array();	
	
	// get ids from the divs with the class "switcher" and add to array
	$(".switcher").each(function(i){
		itemNames[i] = this.id;
	});

	// hide items
	$(".click").removeClass("selected");
	$(".switcher").hide();	
	
    /*
// show the first item
    if (itemNames.length > 0)
    {
        $("#" + itemNames[0]).show();
		$("#" + itemNames[0] + "Link").addClass("selected");
    }
*/

	// pick up item click and determine which id	
	$(this).click(function(){      
		var showItem = this.id.replace(/Link/,'');
			  
		// hide items
		$(".click").removeClass("selected");
	    $(".switcher").hide();	
			
		// show target div
		$("#" + showItem).slideDown(1400);
		$(this).addClass("selected");
			
	});	
	
};

$(document).ready(function() {
	$(".click2").divSwitcher2() // go!
});	