use slide.width and heights for carousel
[HTML5TV.git] / www / html5tv.js
index 0376c0e..2262545 100644 (file)
@@ -16,7 +16,7 @@ function myCarousel_onBeforeAnimation(carousel, state) {
 \r
         var event = carousel.options.customEventManager.getEvent(i - 1);\r
 \r
-        var html = '<img src="' + event.args.src + '" width="117" height="66" alt="' + event.args.description + '" id="' + event.args.id + '" /><div class="thumbnailOverlay">' + event.args.title + '</div>';\r
+        var html = '<img src="' + event.args.src + '" width="' + html5tv.slide.width + '" height="' + html5tv.slide.height + '" alt="' + event.args.description + '" id="' + event.args.id + '" /><div class="thumbnailOverlay">' + event.args.title + '</div>';\r
 \r
         carousel.add(i, html);\r
 \r
@@ -43,8 +43,8 @@ function chapterChange(isActive, args) {
 }\r
 \r
 $().ready(function() {\r
-       console.debug( video_sync );\r
-       $("#vid").sync( video_sync );\r
+       //console.debug( video_sync );\r
+       $("#vid").sync( html5tv.sync );\r
 \r
     $(".toggleContentPanel").click(function() {\r
         var contentPanelId = "#" + ($(this).attr("class")).split(" ")[1];\r