/*
*
*Autor: Vampaynani
*Hide y Show de divs con eventos de hipervínculo
*
*/

$.fn.hideAndShow = function(i) {
    	var indice = i;
     	this.hide();
     	this.eq(indice).fadeIn();
};

$(document).ready(function(){

	var i=0;
	
	$(".text").hideAndShow(i);
    
    $(".pest").bind("click", function(e) {
      	i = $(".pest").index(this);
      	$(".text").hideAndShow(i);    
    });
});