$(document).ready(function(){$(window).load(function(){$("#slideshow_slides").m2carousel()});var c=$(".tabcontrols");var b=c.find("li");var f=b.find("a");var a=c.parent();var d=a.find(".tab");if(f.length!=d.length){throw"tabcontrol - number of controls don't match with number of tabs!"}f.each(function(g){$(this).on("click",function(h){h.preventDefault();h.stopPropagation();e(g)})});function e(g){b.removeClass("selected");$(b.get(g)).addClass("selected");d.removeClass("selected");$(d.get(g)).addClass("selected")}});