$(document).ready(function(){$("#diapoCarousel").jcarousel({scroll:1,auto:0,wrap:"circular",initCallback:carouseldiapo_initCallback,buttonNextHTML:null,buttonPrevHTML:null,itemVisibleInCallback:highlight,itemVisibleOutCallback:removehighlight});});function highlight(c,d,b,a){$(c.container).find(".jcarousel-control a:nth-child("+b+")").attr("class","selected");}function removehighlight(c,d,b,a){$(c.container).find(".jcarousel-control a:nth-child("+b+")").removeAttr("class","selected");}function carouseldiapo_initCallback(a){$(a.container).find(".jcarousel-control a").bind("click",function(){a.scroll(jQuery.jcarousel.intval(jQuery(this).text()));return false;});$(a.container).find(".next").bind("click",function(){a.next();return false;});$(a.container).find(".start").bind("click",function(){$(".jcarousel-control",$(a.container)).hide();$(".stop",$(a.container)).show();$(this).hide();a.startAuto(3);return false;});$(a.container).find(".stop").bind("click",function(){$(".jcarousel-control",$(a.container)).show();$(".start",$(a.container)).show();$(this).hide();a.stopAuto();return false;});$("img.imgDiapo",$("div#diapoCarousel")).show();}
