1 2(function (A) { 3 A.fn.th_video_focus = function (E) { 4 var G = { 5 actClass: "cur", 6 navContainerClass: ".focus_pic_preview", 7 focusContainerClass: ".focus_pic", 8 animTime: 600, 9 delayTime: 5000 10 }; 11 if (E) { 12 A.extend(G, E) 13 } 14 var C = G.actClass, D = G.navContainerClass, B = G.focusContainerClass, F = G.animTime, H = G.delayTime, I = null; 15 return this.each(function () { 16 var O = A(this), M = A(D + " li", O), P = A(B + " li", O), L = M.length, K = O.height(); 17 function N(R) { 18 var V = K * R * -1; 19 var U = A(B + " li", O), W = null, T = null; 20 for (var S = 0; S <= R; S++) { 21 W = U.eq(S); 22 T = W.find('script[type="text/templ"]'); 23 if (T.length > 0) { 24 W.html(T.html()) 25 } 26 } 27 A(B, O).stop().animate({ top: V }, F, function () { 28 var Y = O.find("h3"), X = Y.height(); 29 Y.height(0).html(A(B + " li").eq(R).find("img").attr("alt")).animate({ height: X }, 600) 30 }); 31 A(D + " li").eq(R).addClass(C).siblings().removeClass(C) 32 } 33 function Q() { 34 if (I) { 35 clearInterval(I) 36 } 37 I = setInterval(function () { 38 var R = A(D + " li." + C).index(); 39 N((R + 1) % L) 40 }, H) 41 } 42 O.hover(function () { 43 if (I) { 44 clearInterval(I) 45 } 46 }, function () { 47 Q() 48 }); 49 var J = null; 50 M.hover(function () { 51 var R = A(this).index(); 52 if (I) { 53 clearInterval(I) 54 } 55 J = setTimeout(function () { 56 N(R) 57 }, 300) 58 }, function () { 59 if (J) { 60 clearTimeout(J) 61 } 62 Q() 63 }).click(function (T) { 64 var R = A(this).index(), S = P.eq(R).find("a"); 65 if (document.uniqueID || window.opera) { 66 S[0].click(); 67 T.stopPropagation(); 68 T.preventDefault() 69 } 70 }); 71 Q() 72 }) 73 } 74 75})(jQuery); 76$(function(){ 77 $(".pic_focus").th_video_focus({ 78 navContainerClass: ".pic_focus_nav", 79 focusContainerClass: ".pic_focus_imgs", 80 delayTime: 4000 81 }); 82}) 83 84 85 86 87
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.