fires when a new view is shown in carousel
carousel.attachEvent("onShow", function(id){ //... some code here ... });