Gallery of employees with dynamic filtering
Make a lookup table. Then access by index:

var expertises = ["asset", "insurance", "wealth"];
expertise = expertises[$(this).index()];
showConsultant();


If you're worried about going out of bounds, add a range check:

var expertises = ["asset", "insurance", "wealth"];
var index = $(this).index();
if (0 &lt;= index &amp;&amp; index &lt; expertises.length) {
    expertise = expertises[index];
    showConsultant();
}


You could even globally define these lists somewhere, so you could write enums.getExpertise(index).