function tsCarousel_itemVisibleInCallback(f,d,c,e,b){var a=f.index(c,tsCarousel_itemList.length);f.add(c,tsCarousel_getItemHTML(tsCarousel_itemList[a-1]));setDelWidth(f,d,c,e,b)}function tsCarousel_itemVisibleOutCallback(e,c,b,d,a){e.remove(b)}function tsCarousel_getItemHTML(b){var a=".png";if(jQuery.browser.msie&&jQuery.browser.version==6){a=".gif"}if("Truck"!==tsCarouselFlag){return'<div class="tsCarouselItem"><div class="tsCarouselImg"><a href="'+b.url+'"><img src="'+b.src+'" height="100%" alt="'+b.alt+'" /></a></div><div class="tsCarouselDesc"><p><a href="'+b.url+'">'+b.title+'</a></p><p class="price"><img src="../static/images/common/redpen'+a+'" class="tsRedPen" width="20" height="22" /><img src="../static/images/common/del'+a+'" class="tsDel" width="71" height="10" /><span class="tsOldPrice">'+b.currency+" "+b.oldPrice+"</span> "+b.currency+" "+b.price+'</p><p><span class="tsVat">'+b.vat+"</span></p></div></div>"}return'<div class="tsCarouselItem"><div class="tsCarouselImg"><a href="'+b.url+'"><img src="'+b.src+'" height="100%" alt="'+b.alt+'" /></a></div><div class="tsCarouselDesc"><p><a href="'+b.url+'">'+b.title+"</a></p><p>"+b.center+'</p><p class="price">'+b.currency+" "+b.price+' <span class="tsVat">'+b.vat+"</span></p></div></div>"}function setDelWidth(g,e,d,f,b){if(jQuery(".tsOldPrice",".tsGalleryNavigator").get(0)){var c=jQuery(".tsOldPrice",".tsGalleryNavigator");var a=0;if("next"===f){a=jQuery(c[c.length-1]).width()}else{a=jQuery(c[0]).width()}jQuery("img.tsDel",".tsGalleryNavigator").attr("width",a).css({"margin-right":(-1*a)})}};