vendor: 5,669 bytes, lines 1-167
1if (!jQuery.easing.easeInQuad) { 2 jQuery.extend(jQuery.easing, { 3 easeInQuad: function (e, f, a, h, g) { 4 return h * (f /= g) * f + a 5 }, 6 easeOutQuad: function (e, f, a, h, g) { 7 return -h * (f /= g) * (f - 2) + a 8 }, 9 easeInOutQuad: function (e, f, a, h, g) { 10 if ((f /= g / 2) < 1) { 11 return h / 2 * f * f + a 12 } 13 return -h / 2 * ((--f) * (f - 2) - 1) + a 14 }, 15 easeInCubic: function (e, f, a, h, g) { 16 return h * (f /= g) * f * f + a 17 }, 18 easeOutCubic: function (e, f, a, h, g) { 19 return h * ((f = f / g - 1) * f * f + 1) + a 20 }, 21 easeInOutCubic: function (e, f, a, h, g) { 22 if ((f /= g / 2) < 1) { 23 return h / 2 * f * f * f + a 24 } 25 return h / 2 * ((f -= 2) * f * f + 2) + a 26 }, 27 easeInOutQuint: function (e, f, a, h, g) { 28 if ((f /= g / 2) < 1) { 29 return h / 2 * f * f * f * f * f + a 30 } 31 return h / 2 * ((f -= 2) * f * f * f * f + 2) + a 32 }, 33 easeInExpo: function (e, f, a, h, g) { 34 return (f === 0) ? a : h * Math.pow(2, 10 * (f / g - 1)) + a 35 }, 36 easeOutExpo: function (e, f, a, h, g) { 37 return (f == g) ? a + h : h * (-Math.pow(2, -10 * f / g) + 1) + a 38 }, 39 easeInOutExpo: function (e, f, a, h, g) { 40 if (f === 0) { 41 return a 42 } 43 if (f == g) { 44 return a + h 45 } 46 if ((f /= g / 2) < 1) { 47 return h / 2 * Math.pow(2, 10 * (f - 1)) + a 48 } 49 return h / 2 * (-Math.pow(2, -10 * --f) + 2) + a 50 }, 51 easeInElastic: function (f, h, e, l, k) { 52 var i = 1.70158; 53 var j = 0; 54 var g = l; 55 if (h === 0) { 56 return e 57 } 58 if ((h /= k) == 1) { 59 return e + l 60 } 61 if (!j) { 62 j = k * 0.3 63 } 64 if (g < Math.abs(l)) { 65 g = l; 66 i = j / 4 67 } else { 68 i = j / (2 * Math.PI) * Math.asin(l / g) 69 } 70 return -(g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e 71 }, 72 easeOutElastic: function (f, h, e, l, k) { 73 var i = 1.70158; 74 var j = 0; 75 var g = l; 76 if (h === 0) { 77 return e 78 } 79 if ((h /= k) == 1) { 80 return e + l 81 } 82 if (!j) { 83 j = k * 0.3 84 } 85 if (g < Math.abs(l)) { 86 g = l; 87 i = j / 4 88 } else { 89 i = j / (2 * Math.PI) * Math.asin(l / g) 90 } 91 return g * Math.pow(2, -10 * h) * Math.sin((h * k - i) * (2 * Math.PI) / j) + l + e 92 }, 93 easeInOutElastic: function (f, h, e, l, k) { 94 var i = 1.70158; 95 var j = 0; 96 var g = l; 97 if (h === 0) { 98 return e 99 } 100 if ((h /= k / 2) == 2) { 101 return e + l 102 } 103 if (!j) { 104 j = k * (0.3 * 1.5) 105 } 106 if (g < Math.abs(l)) { 107 g = l; 108 i = j / 4 109 } else { 110 i = j / (2 * Math.PI) * Math.asin(l / g) 111 } if (h < 1) { 112 return -0.5 * (g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e 113 } 114 return g * Math.pow(2, -10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j) * 0.5 + l + e 115 }, 116 easeInBack: function (e, f, a, i, h, g) { 117 if (g === undefined) { 118 g = 1.70158 119 } 120 return i * (f /= h) * f * ((g + 1) * f - g) + a 121 }, 122 easeOutBack: function (e, f, a, i, h, g) { 123 if (g === undefined) { 124 g = 1.70158 125 } 126 return i * ((f = f / h - 1) * f * ((g + 1) * f + g) + 1) + a 127 }, 128 easeInOutBack: function (e, f, a, i, h, g) { 129 if (g === undefined) { 130 g = 1.70158 131 } 132 if ((f /= h / 2) < 1) { 133 return i / 2 * (f * f * (((g *= (1.525)) + 1) * f - g)) + a 134 } 135 return i / 2 * ((f -= 2) * f * (((g *= (1.525)) + 1) * f + g) + 2) + a 136 }, 137 easeInBounce: function (e, f, a, h, g) { 138 return h - jQuery.easing.easeOutBounce(e, g - f, 0, h, g) + a 139 }, 140 easeOutBounce: function (e, f, a, h, g) { 141 if ((f /= g) < (1 / 2.75)) { 142 return h * (7.5625 * f * f) + a 143 } else { 144 if (f < (2 / 2.75)) { 145 return h * (7.5625 * (f -= (1.5 / 2.75)) * f + 0.75) + a 146 } else { 147 if (f < (2.5 / 2.75)) { 148 return h * (7.5625 * (f -= (2.25 / 2.75)) * f + 0.9375) + a 149 } else { 150 return h * (7.5625 * (f -= (2.625 / 2.75)) * f + 0.984375) + a 151 } 152 } 153 } 154 }, 155 easeInOutBounce: function (e, f, a, h, g) { 156 if (f < g / 2) { 157 return jQuery.easing.easeInBounce(e, f * 2, 0, h, g) * 0.5 + a 158 } 159 return jQuery.easing.easeOutBounce(e, f * 2 - g, 0, h, g) * 0.5 + h * 0.5 + a 160 } 161 }) 162}; 163(function (a) { 164 a.logos = a.logos || { 165 version: "1.0.0" 166 }; 167 a.logos.Geom = {
168 getScaler: function (o, j, k, n, g, i, c) { 169 var e = {}; 170 var d = n / i; 171 var m = g / c; 172 var b; 173 if (typeof o == "string") { 174 switch (o) { 175 case "fill": 176 case "fillmax": 177 b = d > m ? d : m; 178 if (o == "fill") { 179 b = Math.min(1, b) 180 } 181 break; 182 case "fit": 183 case "fitmax": 184 b = d < m ? d : m; 185 if (o == "fit") { 186 b = Math.min(1, b) 187 } 188 break; 189 case "none": 190 b = 1; 191 break 192 } 193 } else { 194 b = o 195 } 196 e.ratio = b; 197 e.diff = {}; 198 e.offset = {}; 199 e.align = { 200 w: j, 201 h: k 202 }; 203 var l = e.diff; 204 var f = e.offset; 205 l.w = f.w = n - i * b; 206 l.h = f.h = g - c * b; 207 switch (j) { 208 case "center": 209 f.w = l.w / 2; 210 break; 211 case "left": 212 f.w = 0; 213 break 214 } 215 switch (k) { 216 case "center": 217 f.h = l.h / 2; 218 break; 219 case "top": 220 f.h = 0; 221 break 222 } 223 return e 224 }, 225 splitProps: function (b, d) { 226 var c = b.split(/,/); 227 return d ? { 228 h: parseFloat(c[0]), 229 w: parseFloat(c[1]) 230 } : { 231 h: c[0], 232 w: c[1] 233 } 234 } 235 } 236}(jQuery)); 237(function (c) { 238 c.logos = c.logos || { 239 version: "1.0.0" 240 }; 241 if (c.logos.ticker) { 242 return 243 } 244 var i = []; 245 var b = 0; 246 247 function a() { 248 return (new Date()).getTime() 249 } 250 var h, f, d; 251 var g = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || false; 252 253 function e() { 254 var m, l; 255 if (b > 0) { 256 m = a(); 257 for (var k in i) { 258 l = i[k]; 259 if (l.paused) { 260 continue 261 } 262 if (m - l.last >= l.each) { 263 l.callback(l.last, m); 264 l.last = m 265 } 266 } 267 if (g) { 268 g(e) 269 } 270 } 271 } 272 var j = c.logos.ticker = { 273 register: function (l, k) { 274 b++; 275 k = (typeof k == "undefined") ? 33 : k; 276 if (k > 0) { 277 k = parseInt(1000 / k, 10) 278 } else { 279 if (c.browser.mozilla) { 280 k = parseInt(1000 / 50, 10) 281 } 282 } 283 i.push({ 284 callback: l, 285 last: a(), 286 each: k, 287 delay: 0 288 }); 289 if (b == 1) { 290 if (g) { 291 g(e) 292 } else { 293 h = setInterval(e, 16); 294 f = setInterval(e, 20); 295 d = setInterval(e, 30) 296 } 297 } 298 }, 299 pause: function (l) { 300 for (var k in i) { 301 if (i[k].callback == l) { 302 i[k].paused = true 303 } 304 } 305 }, 306 resume: function (l) { 307 for (var k in i) { 308 if (i[k].callback == l) { 309 i[k].paused = false 310 } 311 } 312 }, 313 unregister: function (l) { 314 for (var k in i) { 315 if (i[k].callback == l) { 316 delete i[k]; 317 b-- 318 } 319 } 320 if (b <= 0) { 321 clearInterval(h); 322 clearInterval(f); 323 clearInterval(d) 324 } 325 } 326 } 327}(jQuery)); 328(function (e) { 329 e.logos = e.logos || { 330 version: "1.0.0" 331 }; 332 if (e.logos.youtube) { 333 return 334 } 335 var f = false;
336 var a = window.YT && window.YT.Player; 337 var d = []; 338 339 function b() { 340 for (var g = 0; g < d.length; g++) { 341 d[g](a) 342 } 343 } 344 345 function c() { 346 if (f) { 347 return 348 } 349 f = true; 350 var g = document.createElement("script"); 351 g.src = "http://www.youtube.com/player_api"; 352 var h = document.getElementsByTagName("script")[0]; 353 h.parentNode.insertBefore(g, h); 354 window.onYouTubePlayerAPIReady = function () { 355 a = YT.Player; 356 b() 357 } 358 } 359 e.logos.youtube = function (g) { 360 if (a) { 361 g(a) 362 } else { 363 d.push(g); 364 c() 365 } 366 } 367}(jQuery)); 368(function (c) { 369 c.logos = c.logos || { 370 version: "1.0.0" 371 }; 372 if (c.logos.vimeo) { 373 return 374 } 375 var a = 0; 376 377 function b(h, e) { 378 var d = this; 379 var f; 380 381 function j() { 382 a++; 383 var k = c('<iframe id="lg_vimeo_player' + a + '" src="http://player.vimeo.com/video/' + e.videoId + "?autoplay=" + (e.playerVars.autoplay ? 1 : 0) + "&loop=" + (e.playerVars.loop ? 1 : 0) + "&api=1&player_id=lg_vimeo_player" + a + "&origin=" + location.href.match(/:\/\/(.[^\/]+)/)[1] + '" width="' + e.width + '" height="' + e.height + '" frameborder="0"></iframe>')[0]; 384 c(h).append(k); 385 f = new Froogaloop(k); 386 f.addEvent("ready", g); 387 setTimeout(g, 4000) 388 } 389 390 function g() { 391 if (f) { 392 f.removeEvent("ready", g); 393 c(d).trigger("video_ready.logos"); 394 f.addEvent("finish", i) 395 } 396 } 397 398 function i() { 399 c(d).trigger("video_ended.logos") 400 } 401 c.extend(d, { 402 destroy: function () { 403 if (f) { 404 f.removeEvent("ready", g); 405 f.removeEvent("finish", i); 406 c(f.element).remove(); 407 delete f.element; 408 f = undefined 409 } 410 d = undefined 411 } 412 }); 413 j() 414 } 415 c.logos.vimeo = function (d) { 416 d(b) 417 } 418}(jQuery)); 419(function (f) { 420 var l = "0px 0px"; 421 var k = "bilinear"; 422 var d = function (ad, ac, ab) { 423 function C(o, m) { 424 for (var p in o) { 425 if (U[o[p]] !== ab) { 426 return m == "pfx" ? o[p] : !0 427 } 428 } 429 return !1 430 } 431 432 function D(o, m) { 433 return !!~("" + o).indexOf(m) 434 } 435 436 function E(o, m) { 437 return typeof o === m 438 } 439 440 function F(o, m) { 441 return G(R.join(o + ";") + (m || "")) 442 } 443 444 function G(m) { 445 U.cssText = m 446 } 447 var aa = "2.0.6", 448 Z = {}, Y = ac.documentElement, 449 X = ac.head || ac.getElementsByTagName("head")[0], 450 W = "modernizr", 451 V = ac.createElement(W), 452 U = V.style, 453 T, S = Object.prototype.toString, 454 R = " -webkit- -moz- -o- -ms- -khtml- ".split(" "), 455 Q = {}, P = {}, O = {}, M = [], 456 K = function (m, u, t, s) { 457 var r, q, p, o = ac.createElement("div"); 458 if (parseInt(t, 10)) { 459 while (t--) { 460 p = ac.createElement("div"), p.id = s ? s[t] : W + (t + 1), o.appendChild(p) 461 } 462 } 463 r = ["­", "<style>", m, "</style>"].join(""), o.id = W, o.innerHTML += r, Y.appendChild(o), q = u(o, m), o.parentNode.removeChild(o); 464 return !!q 465 }, J, I = {}.hasOwnProperty, 466 H; 467 !E(I, ab) && !E(I.call, ab) ? H = function (o, m) { 468 return I.call(o, m) 469 } : H = function (o, m) { 470 return m in o && E(o.constructor.prototype[m], ab) 471 }; 472 var N = function (m, q) { 473 var p = m.join(""), 474 o = q.length; 475 K(p, function (r, w) { 476 var v = ac.styleSheets[ac.styleSheets.length - 1], 477 u = v.cssRules && v.cssRules[0] ? v.cssRules[0].cssText : v.cssText || "", 478 t = r.childNodes, 479 s = {}; 480 while (o--) { 481 s[t[o].id] = t[o] 482 } 483 Z.csstransforms3d = s.csstransforms3d.offsetLeft === 9 484 }, o, q) 485 }([, ["@media (", R.join("transform-3d),("), W, ")", "{#csstransforms3d{left:9px;position:absolute}}"].join("")], [, "csstransforms3d"]); 486 Q.csstransforms3d = function () { 487 var m = !! C(["perspectiveProperty", "WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"]); 488 m && "webkitPerspective" in Y.style && (m = Z.csstransforms3d); 489 return m 490 }; 491 for (var L in Q) { 492 H(Q, L) && (J = L.toLowerCase(), Z[J] = Q[L](), M.push((Z[J] ? "" : "no-") + J)) 493 } 494 G(""), V = T = null, Z._version = aa, Z._prefixes = R, Z.testProp = function (m) { 495 return C([m]) 496 }, Z.testStyles = K; 497 return Z 498 }(this, this.document); 499 var g = /progid:DXImageTransform\.Microsoft\.Matrix\(.*?\)/; 500 var c = document.createElement("modernizr"), 501 e = c.style; 502 503 function j() { 504 var m = { 505 transformProperty: "", 506 MozTransform: "-moz-", 507 WebkitTransform: "-webkit-", 508 OTransform: "-o-", 509 msTransform: "-ms-" 510 }; 511 for (var o in m) { 512 if (typeof e[o] != "undefined") { 513 return m[o] 514 } 515 } 516 return null 517 } 518 519 function n() { 520 var o = ["transformProperty", "WebkitTransform", "MozTransform", "OTransform", "msTransform"]; 521 for (var m in o) { 522 if (e[o[m]] !== undefined) { 523 return true 524 } 525 } 526 return false 527 } 528 var a = j(), 529 h = a !== null ? a + "transform" : false, 530 i = a !== null ? a + "transform-origin" : false;
531 f.support.csstransforms = n(); 532 f.support.hw3dTransform = (d.csstransforms3d && f.browser.webkit); 533 if (a == "-ms-") { 534 h = "msTransform"; 535 i = "msTransformOrigin" 536 } 537 538 function b(p, s, y, x, v, q) { 539 if (f.support.csstransforms) { 540 var t; 541 var u = "px"; 542 if (v && q && (parseInt(y) != y || parseInt(x) != x)) { 543 y = 100 * y / v; 544 x = 100 * x / q; 545 u = "%" 546 } 547 if (f.support.hw3dTransform) { 548 t = (y !== undefined) ? "translate3d(" + y + u + "," + x + u + ",0) " : "translateZ(0) " 549 } else { 550 t = (y !== undefined) ? "translate(" + y + u + "," + x + u + ") " : "" 551 } 552 f(p).css(i, l).css(h, t + "scale(" + s + ")") 553 } else { 554 if (f.browser.msie) { 555 var m = p.style; 556 var r = 'progid:DXImageTransform.Microsoft.Matrix(FilterType="' + k + '",M11=' + s + ",M12=0,M21=0,M22=" + s + ",Dx=" + y + ",Dy=" + x + ")"; 557 var o = m.filter || f.css(p, "filter") || ""; 558 m.filter = g.test(o) ? o.replace(g, r) : o ? o + " " + r : r 559 } 560 } 561 } 562 f.fn.transform = function (r, p, o, m, q) { 563 this.each(function () { 564 b(this, r, p, o, m, q) 565 }); 566 return this 567 } 568})(jQuery); 569var Froogaloop = (function () { 570 function c(m) { 571 return new c.fn.init(m) 572 } 573 var l = {}, e = false, 574 k = Array.prototype.slice; 575 c.fn = c.prototype = { 576 playerDomain: "", 577 element: null, 578 init: function (m) { 579 if (typeof m === "string") { 580 m = document.getElementById(m) 581 } 582 this.element = m; 583 return this 584 }, 585 api: function (s, p) { 586 if (!this.element || !s) { 587 return false 588 } 589 var m = this, 590 o = m.element, 591 n = o.id != "" ? o.id : null, 592 q = !d(p) ? p : null, 593 r = d(p) ? p : null; 594 if (r) { 595 i(s, r, n) 596 } 597 j(s, q, o); 598 return m 599 }, 600 addEvent: function (n, q) { 601 if (!this.element) { 602 return false 603 } 604 var m = this, 605 p = m.element, 606 o = p.id != "" ? p.id : null; 607 i(n, q, o); 608 if (n != "ready") { 609 j("addEventListener", n, p) 610 } 611 if (e) { 612 return m 613 } 614 playerDomain = a(p.getAttribute("src")); 615 if (window.addEventListener) { 616 window.addEventListener("message", b, false) 617 } else { 618 window.attachEvent("onmessage", b, false) 619 } 620 e = true; 621 return m 622 }, 623 removeEvent: function (n) { 624 if (!this.element) { 625 return false 626 } 627 var m = this, 628 p = m.element, 629 o = p.id != "" ? p.id : null, 630 q = f(n, o); 631 if (n != "ready" && q) { 632 j("removeEventListener", n, p) 633 } 634 } 635 }; 636 637 function j(q, p, o) { 638 if (!o.contentWindow.postMessage) { 639 return false 640 } 641 var m = o.getAttribute("src").split("?")[0], 642 n = JSON.stringify({ 643 method: q, 644 value: p 645 }); 646 o.contentWindow.postMessage(n, m) 647 } 648 649 function b(o) { 650 if (o.origin != playerDomain) { 651 return false 652 } 653 var q = JSON.parse(o.data), 654 p = q.value, 655 t = q.event || q.method, 656 n = q.data, 657 m = m == "" ? null : q.player_id, 658 s = g(t, m), 659 r = []; 660 if (!s) { 661 return false 662 } 663 if (p !== undefined) { 664 r.push(p) 665 } 666 if (n) { 667 r.push(n) 668 } 669 if (m) { 670 r.push(m) 671 } 672 return r.length > 0 ? s.apply(null, r) : s.call() 673 } 674 675 function i(m, o, n) { 676 if (n) { 677 if (!l[n]) { 678 l[n] = {} 679 } 680 l[n][m] = o 681 } else { 682 l[m] = o 683 } 684 } 685 686 function g(m, n) { 687 if (n) { 688 return l[n][m] 689 } else { 690 return l[m] 691 } 692 } 693 694 function f(m, n) { 695 if (n && l[n]) { 696 if (!l[n][m]) { 697 return false 698 } 699 l[n][m] = null 700 } else { 701 if (!l[m]) { 702 return false 703 } 704 l[m] = null 705 } 706 return true 707 } 708 709 function a(n) { 710 var q = n.split("/"), 711 m = ""; 712 for (var o = 0, p = q.length; o < p; o++) { 713 if (o < 3) { 714 m += q[o] 715 } else { 716 break 717 } if (o < 2) { 718 m += "/" 719 } 720 } 721 return m 722 } 723 724 function d(m) { 725 return !!(m && m.constructor && m.call && m.apply) 726 } 727 728 function h(m) { 729 return toString.call(m) === "[object Array]" 730 } 731 c.fn.init.prototype = c.fn; 732 return (window.Froogaloop = c) 733})(); 734(function (c) { 735 c.logos = c.logos || { 736 version: "1.0.0" 737 }; 738 c.logos.video = { 739 conf: {}, 740 getType: function (e) { 741 return "video/" + e.match(/(\w+)$/)[1].replace("ogv", "ogg") 742 }, 743 fallbackPlayer: "" 744 };
745 var a = navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/); 746 var d = 0; 747 748 function b(s, l) { 749 var j = c(this); 750 var k = s; 751 var p; 752 var q; 753 var n = false; 754 755 function f() { 756 switch (l.type) { 757 case "youtube": 758 c.logos.youtube(i); 759 break; 760 case "vimeo": 761 c.logos.vimeo(e); 762 break; 763 case "vidly": 764 g(["http://vid.ly/" + l.videoId + "?content=video&format=mp4", "http://vid.ly/" + l.videoId + "?content=video&format=webm", "http://vid.ly/" + l.videoId + "?content=video&format=ogv"], l.poster); 765 break; 766 case "local": 767 g(l.videoId, l.poster); 768 break 769 } 770 } 771 772 function g(w, y) { 773 d++; 774 var x = "lg_local_player_" + (d); 775 var t = c('<div id="' + (x) + '"/>').css({ 776 "background-color": "black", 777 width: l.width, 778 height: l.height 779 }); 780 k.html(t[0]); 781 var v = {}; 782 for (var u = 0; u < w.length; u++) { 783 v[u] = { 784 src: w[u], 785 type: c.logos.video.getType(w[u]) 786 } 787 } 788 p = new projekktor("#" + x, { 789 controls: true, 790 volume: 0.9, 791 _width: l.width, 792 _height: l.height, 793 _autoplay: true, 794 enableFullscreen: false, 795 imageScaling: "fill", 796 videoScaling: "aspectratio", 797 poster: y, 798 playerFlashMP4: c.logos.video.fallbackPlayer, 799 playerFlashMP3: c.logos.video.fallbackPlayer, 800 playlist: [v] 801 }); 802 p.addListener(a ? "ready" : "buffer", h) 803 } 804 805 function h(t) { 806 if (a) { 807 setTimeout(o, 100); 808 p.removeListener("ready", h) 809 } else { 810 if (t == "FULL") { 811 p.removeListener("buffer", h); 812 o() 813 } 814 } 815 } 816 817 function i(t) { 818 var u = c("<div/>"); 819 k.append(u); 820 p = new t(u[0], { 821 height: l.height, 822 width: l.width, 823 videoId: l.videoId, 824 playerVars: { 825 theme: "dark", 826 wmode: "opaque", 827 autohide: 0, 828 enablejsapi: 1, 829 origin: location.href.match(/:\/\/(.[^\/]+)/)[1], 830 loop: l.loop ? 1 : 0, 831 hd: l.hd ? 1 : 0, 832 autoplay: l.autoPlay ? 1 : 0, 833 showinfo: 0, 834 iv_load_policy: 3, 835 modestbranding: 1, 836 showsearch: 0, 837 fs: 0 838 }, 839 events: { 840 onStateChange: r, 841 onReady: o 842 } 843 }); 844 q = setInterval(r, 250); 845 if (c.browser.msie && c.browser.version < 8) { 846 setTimeout(o, 1000) 847 } 848 } 849 850 function o() { 851 if (!n) { 852 j.trigger("video_ready.logos"); 853 n = true 854 } 855 } 856 857 function e(t) { 858 p = new t(k[0], { 859 height: l.height, 860 width: l.width, 861 videoId: l.videoId, 862 playerVars: { 863 autohide: 0, 864 origin: location.href.match(/:\/\/(.[^\/]+)/)[1], 865 loop: l.loop ? 1 : 0, 866 autoplay: l.autoPlay ? 1 : 0 867 } 868 }); 869 c(p).one("video_ready.logos", o).one("video_ended.logos", m) 870 } 871 872 function m() { 873 j.trigger("video_ended.logos") 874 } 875 876 function r() { 877 if (!p) { 878 return 879 } 880 if (p.getPlayerState) { 881 switch (p.getPlayerState()) { 882 case YT.PlayerState.ENDED: 883 j.trigger("video_ended.logos"); 884 break; 885 case YT.PlayerState.PLAYING: 886 if ((p.getDuration() - p.getCurrentTime()) < 0.4) { 887 j.trigger("video_ended.logos") 888 } 889 break 890 } 891 } 892 } 893 c.extend(this, { 894 bind: function (u, t) { 895 j.bind(u, t) 896 }, 897 one: function (u, t) { 898 j.one(u, t) 899 }, 900 destroy: function () { 901 clearInterval(q); 902 if (j) { 903 j.remove() 904 } 905 j = undefined; 906 if (p) { 907 c(p).unbind("video_ended.logos"); 908 switch (l.type) { 909 case "vidly": 910 case "local": 911 p.removeListener(a ? "ready" : "buffer", h); 912 if (p.selfDestruct) {
913 p.selfDestruct() 914 } 915 break; 916 default: 917 if (p.destroy) { 918 p.destroy() 919 } 920 } 921 } 922 p = undefined; 923 k.data("peVideo", null); 924 k = undefined 925 } 926 }); 927 f() 928 } 929 c.fn.peVideo = function (e) { 930 var f = this.data("peVideo"); 931 if (f) { 932 return f 933 } 934 e = c.extend(true, {}, c.logos.video.conf, e); 935 this.each(function () { 936 f = new b(c(this), e); 937 c(this).data("peVideo", f) 938 }); 939 return e.api ? f : this 940 } 941}(jQuery)); 942(function (h) { 943 h.logos = h.logos || { 944 version: "1.0.0" 945 }; 946 h.logos.motionsImg = { 947 conf: { 948 zoom: "random", 949 align: "random", 950 pan: "random", 951 duration: "15", 952 paused: false 953 } 954 }; 955 var c = { 956 width: 0, 957 height: 0, 958 "margin-left": 0, 959 "margin-top": 0 960 }; 961 var k = ["top", "center", "bottom"]; 962 var i = ["left", "center", "right"]; 963 var j = false; 964 var a = false; 965 var f = false;
966 var e = h.browser.msie && h.browser.version > 8; 967 if (h.browser.msie) { 968 j = true; 969 f = h.browser.msie 970 } 971 if (!j && !! document.createElement("canvas").getContext) { 972 a = true 973 } 974 var b = navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/); 975 if (b) { 976 j = true; 977 a = false 978 } 979 980 function d(s, n, m, r, q, p, o) { 981 if (a) { 982 if (n) { 983 try { 984 n.clearRect(0, 0, n.canvas.width, n.canvas.height) 985 } catch (l) {} 986 n.drawImage(s[0], p, o, m * q, r * q) 987 } 988 } else { 989 if (j) { 990 if (s) { 991 s.transform(q, p, o, m, r) 992 } 993 } else { 994 c.width = Math.round(m * q); 995 c.height = Math.round(r * q); 996 c["margin-left"] = p; 997 c["margin-top"] = o; 998 if (s) { 999 s.css(c) 1000 } 1001 } 1002 } 1003 } 1004 1005 function g(D, z) { 1006 var E = this; 1007 var O = D; 1008 if (a) { 1009 D.hide() 1010 } 1011 var N, v, B, J, p, K, P, G, F, r, M, C, A, m = 500, 1012 y = 0, 1013 q, l; 1014 var n, H, I; 1015 var L = false; 1016 1017 function o() { 1018 var t; 1019 if (y > 0) { 1020 P = G; 1021 F = r; 1022 p = K 1023 } else { 1024 t = h.logos.Geom.getScaler(n == "out" ? "fill" : "none", I.w, I.h, B, J, N, v); 1025 P = t.offset.w; 1026 F = t.offset.h; 1027 p = t.ratio 1028 } 1029 t = h.logos.Geom.getScaler(n == "in" ? "fill" : "none", H.w, H.h, B, J, N, v); 1030 G = t.offset.w; 1031 r = t.offset.h; 1032 K = t.ratio; 1033 M = 0; 1034 C = 0; 1035 m = parseFloat(z.duration) * 33; 1036 A = e ? 20 : 0; 1037 y++ 1038 } 1039 1040 function u() { 1041 return k[parseInt(Math.random() * 2 + 0.5, 10)] + "," + i[parseInt(Math.random() * 2 + 0.5, 10)] 1042 } 1043 1044 function x() { 1045 n = z.zoom == "random" ? (Math.random() > 0.5 ? "out" : "in") : z.zoom; 1046 I = h.logos.Geom.splitProps(z.align == "random" ? u() : z.align); 1047 H = h.logos.Geom.splitProps(z.pan == "random" ? u() : z.pan) 1048 } 1049 1050 function s() { 1051 if (L) { 1052 return 1053 } 1054 var t = A / m; 1055 var R = p + (K - p) * t; 1056 var Q = P + (G - P) * t; 1057 var w = F + (r - F) * t; 1058 d(O, q, N, v, R, Q, w); 1059 A++; 1060 if ((A + (e ? 20 : 0)) > m) { 1061 E.pause() 1062 } 1063 } 1064 h.extend(E, { 1065 init: function (w) { 1066 N = D.width() || D[0].width; 1067 v = D.height() || D[0].height; 1068 var t = D.parent(); 1069 while (t && !t.width()) { 1070 t = t.parent() 1071 } 1072 B = t ? t.width() : 800; 1073 J = t ? t.height() : 600; 1074 O.css("image-rendering", "optimizeQuality").css("-ms-interpolation-mode", "bicubic"); 1075 if (f) { 1076 O.parent().css("background-color", "black") 1077 } 1078 E.start() 1079 }, 1080 start: function () { 1081 y = 0; 1082 x(); 1083 o(); 1084 L = false; 1085 if (a) { 1086 if (!q) { 1087 l = h('<canvas width="' + B + '" height="' + J + '"></canvas>'); 1088 q = l[0]; 1089 O.hide().after(l); 1090 q = q.getContext("2d"); 1091 q.fillStyle = "rgb(255,255,255)" 1092 } 1093 } 1094 if (z.paused) { 1095 s(); 1096 L = true 1097 } 1098 h.logos.ticker.register(s) 1099 }, 1100 stop: function () { 1101 h.logos.ticker.unregister(s) 1102 }, 1103 reset: function () { 1104 L = true; 1105 y = 0; 1106 x(); 1107 o(); 1108 L = false 1109 }, 1110 getTarget: function () { 1111 if (l) { 1112 return l 1113 } 1114 return O 1115 }, 1116 pause: function () { 1117 L = true 1118 }, 1119 resume: function () { 1120 L = false 1121 }, 1122 destroy: function () { 1123 E.paused = true; 1124 E.stop(); 1125 if (a && l) { 1126 l.remove(); 1127 l = undefined; 1128 q = undefined 1129 } 1130 E = undefined; 1131 O.data("lgMotionsImg", null); 1132 O = undefined 1133 } 1134 }); 1135 if ((!D.width()) && (!D[0].width)) { 1136 D.one("load", E.init) 1137 } else { 1138 E.init() 1139 } 1140 } 1141 h.fn.lgMotionsImg = function (l) { 1142 var m = this.data("lgMotionsImg"); 1143 if (m) { 1144 m.start(); 1145 return m 1146 } 1147 l = h.extend(true, {}, h.logos.motionsImg.conf, l); 1148 this.each(function () { 1149 m = new g(h(this), l); 1150 h(this).data("lgMotionsImg", m) 1151 }); 1152 return l.api ? m : this 1153 } 1154})(jQuery); 1155(function (d) { 1156 d.logos = d.logos || { 1157 version: "1.0.0" 1158 }; 1159 d.logos.motionsSlider = { 1160 conf: { 1161 externalFont: false 1162 } 1163 }; 1164 var f = ["id", "class", "data-src"]; 1165 var e = d.browser.msie && d.browser.version > 7 && d.browser.version < 9; 1166 1167 function b(j, l, k, h) { 1168 var i = (1 << 24) | (parseInt(l, 10) << 16) | (parseInt(k, 10) << 8) | parseInt(h, 10); 1169 return "#" + i.toString(16).substr(1) 1170 } 1171 var a = navigator.userAgent.toLowerCase().match(/chrome\/(\d+)/); 1172 if (a) { 1173 a = a[1] == 18 1174 } 1175 1176 function c(ao, aY) { 1177 var a6 = this; 1178 var aM = ao.addClass("lgMotions").removeClass("peNoJs"); 1179 var aI = false;
1180 var q = true; 1181 var aO; 1182 if (aM.is("img")) { 1183 var C = false; 1184 if (ao.parent().is("a")) { 1185 C = true 1186 } 1187 var bl = '<img src="' + ao.attr("src") + '" data-src="' + (ao.attr("data-src") || "") + '"/>'; 1188 var m = d('<div class="lgMotions" data-autopause="none" data-controls="disabled" data-shadow="' + (ao.attr("data-shadow") || "disabled") + '" data-logo="disabled"><div class="lgMt_slides" ><div class="lgMt_active" data-delay="' + (ao.attr("data-delay") || "3") + '" data-duration="' + (ao.attr("data-duration") || "10") + '">' + bl + (ao.attr("alt") ? "<h1>" + ao.attr("alt") + "</h1>" : "") + '</div><div data-delay="' + (ao.attr("data-delay") || "3") + '" data-duration="' + (ao.attr("data-duration") || "15") + '">' + bl + "</div></div></div>"); 1189 ao.replaceWith(m); 1190 aM = ao = m; 1191 ao.data("lgMotionsSlider", this); 1192 if (C) { 1193 ao.css("cursor", "pointer") 1194 } 1195 aI = true 1196 } else { 1197 ao.css({ 1198 "background-color": "transparent", 1199 "-moz-border-radius": "0px", 1200 "-webkit-border-radius": "0px", 1201 "border-radius": "0px", 1202 padding: "0px" 1203 }) 1204 } 1205 aM.addClass("peActiveWidget").bind("enable.logos ", ap).bind("disable.logos ", Z); 1206 var aN = d.logos && d.logos.motionsImg && (ao.attr("data-mode") != "swipe"); 1207 var L = false; 1208 var bc = true; 1209 (function () { 1210 var h = ao.attr("data-autopause"); 1211 if (h) { 1212 L = h.match(/controls/) !== null; 1213 bc = h.match(/image/) !== null 1214 } 1215 })(); 1216 var aF = d('<div class="lgMt_spinner"></div>'); 1217 var G = d('<div class="lgMt_videooverlay"></div>'); 1218 var aL = ""; 1219 if (ao.attr("data-captions") != "disabled") { 1220 aL = d('<div class="lgMt_caption"></div>') 1221 } 1222 var bt = false; 1223 if (ao.attr("data-thumb") != "disabled") { 1224 bt = d('<div class="lgMt_Thumb"><div>'); 1225 var p = bt.find("div"); 1226 var aj = bt.find("img"); 1227 var aQ = false 1228 } 1229 var aq = d('<div class="lgMt_timer"><div class="lgMt_overlay"></div></div>'); 1230 var N; 1231 var ar; 1232 var be; 1233 var X; 1234 var R; 1235 var U = 0; 1236 var aT = 0; 1237 var l = 0; 1238 var aa = 800; 1239 var ag = 0; 1240 var y; 1241 var aU; 1242 var v = -1; 1243 var ah; 1244 var K = []; 1245 var Q = false; 1246 var aC = false; 1247 var am = ao.width(); 1248 var av = ao.height(); 1249 var Y = !(d.browser.msie && d.browser.version >= 7 && d.browser.version < 9); 1250 var A = false; 1251 var H; 1252 var I = 0; 1253 var bj = -1; 1254 var a1 = false; 1255 var g = false;
1256 var bm = false; 1257 var ab = false; 1258 var bn = 0; 1259 var ai; 1260 var k = false; 1261 var W = false; 1262 var s = false; 1263 var ac = false; 1264 var aV = (ao.attr("data-shadow") != "disabled"); 1265 var au = (ao.attr("data-controls") != "disabled"); 1266 var D = (ao.attr("data-controls") == "inner" || ao.attr("data-controls") == "inner-over"); 1267 var n = (ao.attr("data-logo") == "enabled"); 1268 var aP = navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/); 1269 var bo = ao.attr("data-caption-align") || false; 1270 if (bo) { 1271 bo = d.logos.Geom.splitProps(bo) 1272 } 1273 var aw = ao.attr("data-fade") || 0; 1274 aw = parseInt(aw * 1000, 10); 1275 if (n) { 1276 ao.css("overflow", "visible") 1277 } 1278 if (aI && aV) { 1279 av -= 36 1280 } 1281 if (!aI && aV && !au) { 1282 av -= 50 1283 } 1284 if (!aI && !aV && D) { 1285 av += 50 1286 } 1287 var bf = ao.find("div.lgMt_slides"); 1288 if (bf.length === 0) { 1289 ao.wrapInner('<div class="lgMt_slides"></div>'); 1290 bf = ao.find("div.lgMt_slides") 1291 } 1292 var P = parseInt(bf.css("padding-left").replace(/px/, ""), 10) || 0; 1293 var bq = ""; 1294 if (au) { 1295 bq += '<div class="lgMt_controls"><div class="lgMt_holder"><div class="lgMt_mainPanel"><div class="lgMt_iebg"><ul class="lgMt_slideBtns"><li><a href="#" class="lgMt_currentSlide">1</a></li></ul><div class="lgMt_arrows"><a class="lgMt_prev" href="#">p</a><a class="lgMt_next" href="#">n</a></div><span class="lgMt_iebgRight"></span></div></div><div class="lgMt_videoClose"><a href="#">close</a></div></div></div>' 1296 } 1297 if (n) { 1298 bq += '<div class="lgMt_logoLabel"><a href="' + (ao.attr("data-logo-link") || "#") + '" target="' + (ao.attr("data-logo-target") || "_self") + '" >logo</a></div>' 1299 } 1300 if (aV) { 1301 bq += '<div class="lgMt_shadow"><div class="lgMt_left"></div><div class="lgMt_middle"></div><div class="lgMt_right"></div></div>' 1302 } 1303 var r = bq ? d(bq) : false; 1304 var bp = 0; 1305 if (r) { 1306 if (d.browser.msie) { 1307 var bu = ""; 1308 if (d.browser.version < 10) { 1309 ao.wrap('<div class="ie' + Math.floor(d.browser.version) + '"></div>') 1310 } 1311 } 1312 bf.after(r); 1313 if (D) { 1314 var ax = r.filter(".lgMt_controls"); 1315 r.addClass("lgMt_controlsInner"); 1316 bp = r.height(); 1317 ax.css("margin-top", -bp - P + 10 + (aP ? 1 : 0)) 1318 } else { 1319 if (P != 15) { 1320 r.filter(".lgMt_controls").css("margin-top", -(P + 1)) 1321 } 1322 } if (aV) { 1323 var a9 = r.filter(".lgMt_shadow").css("z-index", "0"); 1324 bf.before(a9) 1325 } 1326 } 1327 1328 function at(h) { 1329 a8 = d(h.currentTarget).hasClass("lgMt_next") ? "next" : "prev"; 1330 T(M(ag, a8)); 1331 return false 1332 } 1333 1334 function al() { 1335 z(); 1336 return false 1337 } 1338 if (au) { 1339 bf.before(aq.hide()); 1340 X = aq.css("color").replace(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/g, b); 1341 var a5 = aq.find(".lgMt_overlay"); 1342 be = (a5.width() || 22); 1343 if (document.createElement("canvas").getContext) { 1344 N = d('<canvas width="' + be + '" height="' + be + '"></canvas>'); 1345 a5.after(N); 1346 N = N[0].getContext("2d") 1347 } else { 1348 ar = d('<div class="lgMt_sprite"></div>'); 1349 aq.find(".lgMt_overlay").after(ar) 1350 } 1351 r.find(".lgMt_prev, .lgMt_next").click(at).end(); 1352 bp = r.height(); 1353 var J = r.find("ul.lgMt_slideBtns").empty(); 1354 var an = r.find(".lgMt_videoClose"); 1355 var bh = r.find(".lgMt_mainPanel"); 1356 var aH = (d.browser.msie && d.browser.version >= 8 && d.browser.version < 9) ? "top" : "margin-top"; 1357 an.find("a").click(al).end(); 1358 if (D) { 1359 an.fadeOut(0) 1360 } else { 1361 an.css(aH, -bp) 1362 } 1363 } 1364 var bi = am - 2 * P; 1365 var br = av - 2 * P - bp; 1366 if (aV) { 1367 var u = ao.find(".lgMt_shadow"); 1368 u.width(am).find(".lgMt_middle").width(am - u.find(".lgMt_left").width() - u.find(".lgMt_right").width()) 1369 } 1370 ao.append(bt); 1371 if (bt) { 1372 var aG = ao.offset(); 1373 aG.top = aG.top + br + P - bt.height() + 13; 1374 if (D) { 1375 aG.top -= bp - 10 1376 } 1377 bt.data("top", aG.top); 1378 bt.offset(aG); 1379 bt.hide() 1380 } 1381 aO = true; 1382 var V = { 1383 width: bi, 1384 height: br, 1385 left: 0, 1386 overflow: "hidden", 1387 visible: true, 1388 display: "block", 1389 opacity: 0 1390 }; 1391 var a8 = "next"; 1392 var aK = bf.width(bi).height(br).find(" > div"); 1393 var ay = d('<div class="lgMt_frame"></div>').width(bi).height(br); 1394 1395 function aX(t) { 1396 ab = false;
1397 if (bn) { 1398 clearTimeout(bn) 1399 } 1400 if (t.currentTarget == ao[0]) { 1401 switch (t.type) { 1402 case "mouseenter": 1403 if (L && !(k)) { 1404 a1 = true 1405 } 1406 if (ai != "always" && ai != "inner") { 1407 x() 1408 } 1409 break; 1410 case "mouseleave": 1411 if (!A && L) { 1412 a1 = false 1413 } 1414 if (ai != "always" && ai != "inner") { 1415 a0() 1416 } 1417 break 1418 } 1419 } else { 1420 k = (t.type === "mouseenter"); 1421 var h; 1422 switch (t.type) { 1423 case "mouseenter": 1424 if (aI) { 1425 a1 = false; 1426 h = aD(); 1427 h && h.resume(); 1428 F(0) 1429 } else { 1430 if (bc) { 1431 a1 = true 1432 } else { 1433 if (L && !A) { 1434 a1 = false 1435 } 1436 } 1437 } 1438 g = true; 1439 break; 1440 case "mouseleave": 1441 if (aI) { 1442 a1 = true; 1443 h = aD(); 1444 h && h.pause(); 1445 F(1) 1446 } else { 1447 if (!A && bc && !L) { 1448 a1 = false 1449 } else { 1450 if (L) { 1451 a1 = true 1452 } 1453 } 1454 } 1455 g = false;
1456 break 1457 } 1458 } 1459 } 1460 ao.find("div.lgMt_slides").append(aF).append(G).append(aL).bind("mouseenter", aX).bind("mouseleave", aX).end(); 1461 var a7 = 0; 1462 var bb = 0; 1463 if (aL) { 1464 a7 = parseInt(aL.css("margin-bottom").replace(/px/), 10); 1465 bb = parseInt(aL.css("margin-left").replace(/px/), 10) 1466 } 1467 if (!aN) { 1468 bf.wrapInner('<div class="lgMt_slides"></div>'); 1469 var aW = bf.find("> div"); 1470 aW.width(bi).height(br).css({ 1471 position: "absolute", 1472 "border-width": 0, 1473 "border-radius": 0, 1474 "background-image": "none", 1475 "background-color": ay.css("background-color"), 1476 "z-index": 1, 1477 top: P, 1478 left: P, 1479 padding: "0px", 1480 margin: "0px" 1481 }).show(); 1482 if (aL) { 1483 aL.width(bi).height(br) 1484 } 1485 } else { 1486 aK.css("margin-left", P); 1487 if (aL) { 1488 aL.width(bi).height(br).css("margin-top", P).css("margin-left", P) 1489 } 1490 } 1491 bf.prepend(ay); 1492 var bg = ay.css("background-color").replace(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/g, b); 1493 1494 function aB(bB, bC, bE) { 1495 bE = bB ? bE : "fade"; 1496 aa = aw || (bE == "swipe" ? 700 : 1000); 1497 y = bC; 1498 1499 function bz() { 1500 O(); 1501 if (bB) { 1502 bB.fadeOut(0); 1503 bB.find("img:eq(0)").css("margin-left", 0) 1504 } 1505 } 1506 if (bB) { 1507 var by = bB.find("img:eq(0)").data("lgMotionsImg"); 1508 if (by) { 1509 by.stop() 1510 } 1511 } 1512 var bD; 1513 if (bC.find("a.video").length > 0) { 1514 G.empty().removeClass("lgMt_noBack").fadeIn(0); 1515 if (!aO) { 1516 bD = d("<a>"); 1517 bD.attr("href", bC.find("a.video").attr("href")).attr("target", "_blank"); 1518 bD.width(G.width()).height(G.height()).css("position", "absolute").show(); 1519 G.empty().append(bD) 1520 } else { 1521 if (bC.find("a.video").hasClass("autostart")) { 1522 if (A) { 1523 setTimeout(function () { 1524 G.triggerHandler("click") 1525 }, 500) 1526 } else { 1527 G.triggerHandler("click") 1528 } 1529 } 1530 } 1531 } else { 1532 if (bC.find("a").length > 0) { 1533 G.fadeIn(0); 1534 bD = d("<a>"); 1535 var bF = false; 1536 var w = bC.find("a"); 1537 try { 1538 if (d._data) { 1539 bF = d._data(w[0], "events") 1540 } else { 1541 bF = w.data("events") 1542 } 1543 } catch (bA) {} 1544 if (bF) { 1545 d.each(bF, function (bG, bH) { 1546 d.each(bH, function (bI, bJ) { 1547 bD.bind(bG, bJ.handler) 1548 }) 1549 }) 1550 } 1551 bD.attr("href", bC.find("a").attr("href")).attr("target", bC.find("a").attr("target")); 1552 bD.width(G.width()).height(G.height()).css("position", "absolute").show(); 1553 G.empty().addClass("lgMt_noBack").append(bD) 1554 } else { 1555 G.empty().removeClass("lgMt_noBack").fadeOut(0) 1556 } 1557 } 1558 switch (bE) { 1559 case "fade": 1560 if (bB) { 1561 if (a) { 1562 bB.css(V).css("opacity", 1) 1563 } else { 1564 bB.css(V).css("opacity", 1).fadeTo(aa, 0) 1565 } 1566 } 1567 if (a) { 1568 bC.css(V).css("opacity", 0).fadeTo(aa, 1, function () { 1569 O(); 1570 if (bB) { 1571 bB.css("opacity", 0) 1572 } 1573 }) 1574 } else { 1575 bC.css(V).css("opacity", 0).fadeTo(aa, 1, O) 1576 } 1577 break; 1578 case "color": 1579 bC.css(V).css("opacity", 0); 1580 bB.css(V).css("opacity", 1).fadeTo(aa / 2, 0, "easeOutQuad", function () { 1581 bC.fadeTo(aa / 2, 1, "easeInQuad", O) 1582 }); 1583 break; 1584 case "side": 1585 if (a8 == "next") { 1586 if (bB) { 1587 bB.css(V).css("opacity", 1) 1588 } 1589 bC.css(V).css("left", 50); 1590 if (bB) { 1591 bB.animate({ 1592 left: -100, 1593 opacity: 0 1594 }, aa, "easeOutCubic") 1595 } 1596 bC.animate({ 1597 left: 0, 1598 opacity: 1 1599 }, aa, "easeOutCubic", O) 1600 } else { 1601 if (bB) { 1602 bB.css(V).css("opacity", 1) 1603 } 1604 bC.css(V).css("left", -50); 1605 if (bB) { 1606 bB.animate({ 1607 left: 100, 1608 opacity: 0 1609 }, aa, "easeOutCubic") 1610 } 1611 bC.animate({ 1612 left: 0, 1613 opacity: 1 1614 }, aa, "easeOutCubic", O) 1615 } 1616 break; 1617 case "swipe": 1618 var bx; 1619 var h = 0; 1620 bC.css(V); 1621 if (bB) { 1622 bB.css(V).css("opacity", 1) 1623 } 1624 bx = (a8 == "next") ? bC.find("img:eq(0)") : bB ? bB.find("img:eq(0)") : null; 1625 1626 function t(bG, bI) { 1627 var bH = Math.round(bG * bi); 1628 var bJ = Math.round(h * (1 - bG)); 1629 bC.css("left", -bJ).width(bH + h); 1630 if (bx) { 1631 bx.css("margin-left", -bH) 1632 } 1633 if (bB) { 1634 bB.css("opacity", 0.5 + 0.5 * (1 - bG)).css("left", bH + h - bJ).width(bi - bH) 1635 } 1636 } 1637 1638 function bw(bG, bI) { 1639 var bH = Math.round(bG * bi); 1640 var bJ = Math.round(h * (1 - bG)); 1641 bC.css("left", bi - bH + bJ).width(bH); 1642 if (bx) { 1643 bx.css("margin-left", bH - bi) 1644 } 1645 if (bB) { 1646 bB.css("opacity", 0.5 + 0.5 * (1 - bG)).css("left", bJ - h).width(bi - bH + h) 1647 } 1648 } 1649 bC.animate({ 1650 opacity: 1 1651 }, { 1652 duration: aa, 1653 easing: "easeOutQuad", 1654 complete: bz, 1655 step: a8 == "next" ? bw : t 1656 }); 1657 break 1658 } 1659 } 1660 1661 function bk(h) { 1662 Q = false;
1663 T(parseInt(h.target.id, 10), true) 1664 } 1665 1666 function O() { 1667 Q = false 1668 } 1669 1670 function a3(t, h) { 1671 var w = K[t].resource; 1672 if (!w) { 1673 return true 1674 } 1675 var bw = d(w).attr("src") ? "" : d(w).attr("data-src"); 1676 if (bw) { 1677 d(w).attr("src", bw) 1678 } 1679 if (!w.complete) { 1680 if (h) { 1681 d(w).one("error", h).one("load", h) 1682 } 1683 } 1684 return w.complete 1685 } 1686 1687 function aZ() { 1688 if (!bm && aU && !aC) { 1689 aq.show().offset(aU.offset()) 1690 } 1691 } 1692 1693 function aA() { 1694 aC = false; 1695 aZ() 1696 } 1697 1698 function az(h) { 1699 if (J) { 1700 aU = J.find("a").removeClass("lgMt_currentSlide").eq(h).addClass("lgMt_currentSlide"); 1701 aS(0); 1702 aZ() 1703 } 1704 } 1705 1706 function F(h) { 1707 if (!W) { 1708 return 1709 } 1710 var t = K[h].caption; 1711 var bw; 1712 var w; 1713 if (t) { 1714 bw = t.find(".lgMt_real"); 1715 w = t.find(".lgMt_background"); 1716 bw.css("margin-left", 10).css("opacity", 0).width(0).show(); 1717 w.css("margin-left", 100).css("opacity", 0).width(0).show(); 1718 bw.stop(true).delay(aI ? 500 : 500).animate({ 1719 "margin-left": 0, 1720 opacity: 1, 1721 width: w.data("width") 1722 }, 1000, "easeOutCubic"); 1723 w.stop(true).delay(aI ? 0 : 200).animate({ 1724 "margin-left": 0, 1725 opacity: 0.5, 1726 width: w.data("width") 1727 }, 1000, "easeOutCubic") 1728 } 1729 if (ah) { 1730 bw = ah.find(".lgMt_real"); 1731 w = ah.find(".lgMt_background"); 1732 bw.stop(true).fadeTo(aI ? 0 : 500, 0); 1733 w.stop(true).fadeTo(aI ? 0 : 500, 0) 1734 } 1735 ah = t 1736 } 1737 1738 function E() { 1739 a0() 1740 } 1741 1742 function T(h, bw) { 1743 if (v != h && !Q) { 1744 Q = true; 1745 if (!bw && !a3(h, bk)) { 1746 aF.fadeIn(500); 1747 return 1748 } 1749 aM.trigger("change.logos", { 1750 slideIdx: h + 1 1751 }); 1752 var by = aK.eq(h).find("a.video.autostart").length > 0; 1753 z(by); 1754 a3(M(h, "next")); 1755 if (!aI) { 1756 az(h); 1757 F(h) 1758 } 1759 ag = v = h; 1760 if (!by) { 1761 aF.fadeOut(100) 1762 } 1763 var bA = aK.filter(".lgMt_active").removeClass("lgMt_active"); 1764 var bz = aK.eq(h).addClass("lgMt_active"); 1765 var bx = bz.attr("data-transition") || "swipe"; 1766 var t; 1767 if (aN) { 1768 t = bz.find("img"); 1769 if (t) { 1770 bx = "fade" 1771 } 1772 } 1773 var w = bz.attr("data-delay"); 1774 if (w) { 1775 U = parseFloat(w) * 1000; 1776 l = d.now(); 1777 aT = 0 1778 } else { 1779 aT = -1; 1780 aS(360) 1781 } 1782 bz.show().fadeOut(0); 1783 if (t) { 1784 t = t.lgMotionsImg({ 1785 zoom: bz.attr("data-zoom"), 1786 align: bz.attr("data-align"), 1787 pan: bz.attr("data-pan"), 1788 duration: bz.attr("data-duration"), 1789 paused: aI, 1790 api: true 1791 }); 1792 if (aI && g) { 1793 t.resume() 1794 } 1795 } 1796 aB(bA[0] ? bA : null, bz, bx); 1797 if (ab) { 1798 ab = false;
1799 bn = setTimeout(E, 1000) 1800 } 1801 } 1802 } 1803 1804 function aS(w) { 1805 if (!J) { 1806 return 1807 } 1808 if (N) { 1809 var t = be - 1; 1810 var h = be / 2; 1811 var bw = h + 1; 1812 N.clearRect(0, 0, be, be); 1813 if (w > 0) { 1814 N.beginPath(); 1815 N.moveTo(h, bw); 1816 N.arc(h, bw, t / 2, (270 / 360) * 2 * Math.PI, ((w + 270) / 360) * 2 * Math.PI, false); 1817 N.lineTo(h, bw); 1818 N.closePath(); 1819 N.fillStyle = X; 1820 N.fill() 1821 } 1822 } else { 1823 ar.css("background-position-y", "-" + Math.round(12 - (12 * (w / 360))) * be + "px") 1824 } 1825 } 1826 1827 function af() { 1828 if (aT < 0) { 1829 return 1830 } 1831 var t = d.now(); 1832 var h = d.now() - l; 1833 l = t; 1834 if (a1) { 1835 return 1836 } 1837 aT += h; 1838 if (aT > U) { 1839 aT = U 1840 } 1841 aS(360 * aT / U); 1842 if (aT >= U) { 1843 aT = -1; 1844 T(M(ag, "next")) 1845 } 1846 } 1847 1848 function M(w, h) { 1849 var t = w; 1850 t += (h == "prev" ? -1 : 1); 1851 t %= K.length; 1852 if (t < 0) { 1853 t += K.length 1854 } 1855 return t 1856 } 1857 1858 function o(t) { 1859 var h = parseInt(t.currentTarget.id, 10); 1860 a8 = h >= ag ? "next" : "prev"; 1861 T(h); 1862 return false 1863 } 1864 1865 function a2() { 1866 var bB; 1867 var t; 1868 if (s) { 1869 clearTimeout(s) 1870 } 1871 for (var bw = 0; bw < K.length; bw++) { 1872 bB = K[bw].caption; 1873 if (bB) { 1874 bB.width(bi); 1875 t = false; 1876 var bz = bB.find(".lgMt_real"); 1877 var bx = bB.find(".lgMt_background"); 1878 if (bB == ah) { 1879 bz.stop().css("margin-left", 0).css("opacity", 1); 1880 bx.stop().css("margin-left", 0).css("opacity", 0.5); 1881 t = true 1882 } 1883 var w; 1884 var h; 1885 if (aI) { 1886 w = bi - 2 * a7 1887 } else { 1888 bz.width("auto"); 1889 bx.width("auto"); 1890 w = bz.outerWidth() 1891 } 1892 h = bz.outerHeight(); 1893 bx.width(w).height(h).data("width", w); 1894 bB.width(w).height(h); 1895 if (bo) { 1896 var bA = a7; 1897 if (bo.h == "top") { 1898 bA = -bA 1899 } else { 1900 if (bo.h == "center") { 1901 bA = 0 1902 } 1903 } 1904 var by = d.logos.Geom.getScaler("none", bo.w, bo.h, bi, br, bx.width(), bx.height() + (D ? (bp - 10) : 0)); 1905 bB.css("margin-left", by.offset.w); 1906 bB.css("margin-top", by.offset.h - bA) 1907 } else { 1908 bB.css("margin-left", (bi - bx.width()) / 2); 1909 bB.css("margin-top", (br - bx.height() - a7 - (D ? (bp - 10) : 0))) 1910 } if (!t) { 1911 bz.fadeOut(0); 1912 bx.fadeOut(0) 1913 } 1914 } 1915 } 1916 W = true 1917 } 1918 1919 function S(h, bw) { 1920 var by = d(bw).attr("id", h); 1921 var w = by.find("> h1,> h2,> h3,> h4,> p").detach(); 1922 if (aL && w.length > 0) { 1923 w.wrap('<div class="lgMt_real" />'); 1924 w = w.parent(); 1925 w.wrap('<div class="lgMt_holder" />'); 1926 w = w.parent(); 1927 w.append('<div class="lgMt_background" />'); 1928 aL.append(w); 1929 w.find(".lgMt_real").fadeOut(0); 1930 w.find(".lgMt_background").fadeOut(0) 1931 } else { 1932 w = false 1933 } 1934 var bx = by.find("img").attr({ 1935 id: h 1936 })[0]; 1937 var t = by.attr("data-thumb"); 1938 K[h] = { 1939 caption: w, 1940 resource: bx, 1941 thumb: t 1942 }; 1943 if (J) { 1944 J.append('<li><a href="#" ' + (h === 0 ? 'class="lgMt_currentSlide"' : "") + ' id="' + h + '">1</a></li>') 1945 } 1946 } 1947 1948 function i() { 1949 aF.empty(); 1950 A = false;
1951 if (!g) { 1952 a1 = false 1953 } 1954 } 1955 1956 function bv(h) { 1957 if (!an) { 1958 return 1959 } 1960 if (D) { 1961 if (d.browser.msie) { 1962 an[h ? "show" : "hide"]() 1963 } else { 1964 an.stop().fadeTo(300, h ? 1 : 0, "easeOutCubic") 1965 } 1966 aJ(!h) 1967 } else { 1968 var t = {}; 1969 t[aH] = (h ? 0 : -bp); 1970 an.stop().animate(t, 300, "easeOutCubic") 1971 } 1972 } 1973 1974 function aJ(h, t) { 1975 if (!bh) { 1976 return 1977 } 1978 bm = !h; 1979 if (!h) { 1980 bd(false) 1981 } 1982 t = t === null ? 300 : t; 1983 bh.stop(); 1984 if (!D && A) { 1985 bv(h) 1986 } 1987 aq.hide(); 1988 aC = true; 1989 if (D) { 1990 bm = false; 1991 if (!(d.browser.msie && d.browser.version < 8)) { 1992 r.css("z-index", h ? 209 : 0); 1993 if (h && aV) { 1994 bf.before(r.filter(".lgMt_shadow").css("z-index", "0")) 1995 } 1996 } 1997 if (h) { 1998 r.find(".lgMt_holder").show(); 1999 aA() 2000 } else { 2001 r.find(".lgMt_holder").hide() 2002 } 2003 } else { 2004 bh.animate({ 2005 "margin-top": (h ? 0 : -bp) 2006 }, { 2007 duration: t, 2008 easing: "easeOutCubic", 2009 complete: aA 2010 }) 2011 } 2012 } 2013 2014 function j() { 2015 bv(true) 2016 } 2017 2018 function ae() { 2019 bv(false) 2020 } 2021 2022 function x(h) { 2023 aJ(true, h) 2024 } 2025 2026 function a0(h) { 2027 aJ(false, h) 2028 } 2029 2030 function z(t) { 2031 if (A) { 2032 if (H) { 2033 H.destroy(); 2034 H = undefined 2035 } 2036 if (t) { 2037 aF.empty(); 2038 A = false 2039 } else { 2040 aF.css("background-color", "none"); 2041 aF.fadeOut(500, i); 2042 G.fadeIn(0); 2043 ae() 2044 } if (!(L || bc)) { 2045 a1 = false 2046 } 2047 var h = aK.filter(".lgMt_active").find("img:eq(0)").data("lgMotionsImg"); 2048 if (h) { 2049 h.resume() 2050 } 2051 aM.trigger("video.logos", { 2052 status: "stop" 2053 }) 2054 } 2055 return false 2056 } 2057 2058 function bs(t) { 2059 var h = d(t.currentTarget); 2060 if (h.hasClass("video")) { 2061 B(h[0].href, h.hasClass("hd"), h.hasClass("autoplay"), h.hasClass("loop"), h.hasClass("skiptonext")); 2062 return false 2063 } 2064 return true 2065 } 2066 2067 function B(t, bz, w, h, by) { 2068 if (A) { 2069 return false 2070 } 2071 var bA, bx; 2072 if ((bA = t.match(/http:\/\/www.youtube.com\/watch\?v=([\w|\-]+)/))) { 2073 bx = "youtube" 2074 } else { 2075 if ((bA = t.match(/http:\/\/vimeo.com\/(\w+)/))) { 2076 bx = "vimeo" 2077 } 2078 } if (bx) { 2079 z(); 2080 A = true; 2081 a1 = true; 2082 var bw = aK.filter(".lgMt_active").find("img:eq(0)").data("lgMotionsImg"); 2083 if (bw) { 2084 bw.pause() 2085 } 2086 aF.css("background-color", bg); 2087 aF.fadeIn(500); 2088 j(); 2089 G.fadeOut(0); 2090 H = aF.peVideo({ 2091 api: true, 2092 width: bi, 2093 height: br, 2094 type: bx, 2095 videoId: bA[1], 2096 hd: bz, 2097 autoPlay: w, 2098 loop: h 2099 }); 2100 if (by) { 2101 d(H).bind("video_ended.logos", ak) 2102 } 2103 aM.trigger("video.logos", { 2104 status: "play" 2105 }) 2106 } 2107 } 2108 2109 function ak() { 2110 d(H).bind("video_ended.logos", ak); 2111 T(M(ag, "next")) 2112 } 2113 2114 function ba() { 2115 var h = y.find("a.video"); 2116 if (h.length > 0) { 2117 h.trigger("click") 2118 } 2119 } 2120 2121 function aR() { 2122 aQ = false;
2123 bt.hide() 2124 } 2125 2126 function bd(h, t) { 2127 if (!ac || !bt) { 2128 return 2129 } 2130 if (h) { 2131 bt.stop(true); 2132 if (Y) { 2133 bt.fadeTo(500, 1, "easeOutQuad") 2134 } else { 2135 bt.show() 2136 } 2137 } else { 2138 if (parseInt(t, 10) > 0) { 2139 bt.delay(t) 2140 } else { 2141 bt.stop(true) 2142 } if (Y) { 2143 bt.fadeTo(300, 0, "easeOutQuad", aR) 2144 } else { 2145 bt.queue(aR) 2146 } 2147 } 2148 } 2149 2150 function aE(h) { 2151 if (h.type == "error") { 2152 aR(); 2153 return 2154 } 2155 p.html(aj); 2156 if (ao.attr("data-thumb") != "fixed") { 2157 aj.lgMotionsImg({ 2158 zoom: "in", 2159 align: "top,center", 2160 pan: "center,center", 2161 duration: "10" 2162 }) 2163 } 2164 p.stop(true).fadeTo(0, 0).fadeTo(300, 1, "easeInQuad") 2165 } 2166 2167 function ad(h) { 2168 if (aU) { 2169 aU.triggerHandler(h.type) 2170 } 2171 } 2172 2173 function a4(bx) { 2174 var h = bx.currentTarget.id; 2175 switch (bx.type) { 2176 case "mouseenter": 2177 var w = K[h].thumb; 2178 if (!w) { 2179 return 2180 } 2181 ac = true; 2182 bd(true); 2183 var t = d(bx.currentTarget).width(); 2184 var bw = d(bx.currentTarget).offset(); 2185 bw.top = ao.offset().top + br + P - bt.height() + 13; 2186 if (D) { 2187 bw.top -= bp - 10 2188 } 2189 bw.left = bw.left - (bt.width() - t) / 2; 2190 if (aQ != w) { 2191 if (aj.data("lgMotionsImg")) { 2192 aj.data("lgMotionsImg").destroy() 2193 } 2194 aj = d("<img>"); 2195 p.html(""); 2196 aj.one("error", aE).one("load", aE); 2197 aj.attr("src", w) 2198 } 2199 bt.offset(bw); 2200 aQ = w; 2201 break; 2202 case "mouseleave": 2203 bd(false, 200); 2204 break 2205 } 2206 } 2207 2208 function aD() { 2209 var h; 2210 if (y) { 2211 h = y.find("img:eq(0)"); 2212 if (h) { 2213 h = h.data("lgMotionsImg") 2214 } 2215 } 2216 return h || false 2217 } 2218 2219 function ap() { 2220 if (!q) { 2221 q = true; 2222 var h = aD(); 2223 h && h.resume(); 2224 a1 = false 2225 } 2226 } 2227 2228 function Z() { 2229 if (q) { 2230 q = false; 2231 var h = aD(); 2232 h && h.pause(); 2233 a1 = true 2234 } 2235 } 2236 d.extend(a6, { 2237 init: function (w) { 2238 if (d.browser.msie) { 2239 aK.find("img[src*='blank.png']").replaceWith(function () { 2240 var bx = d("<img>"); 2241 var bw = d(this); 2242 var by = bw.width(); 2243 if (by > 1) { 2244 bx.attr("width", by) 2245 } 2246 by = bw.height(); 2247 if (by > 1) { 2248 bx.attr("height", by) 2249 } 2250 d.each(f, function (bz, bA) { 2251 by = bw.attr(bA); 2252 if (by) { 2253 bx.attr(bA, by) 2254 } 2255 }); 2256 return bx[0] 2257 }).end() 2258 } 2259 if (d.browser.msie && d.browser.version > 8) { 2260 aK.find("img").each(function () { 2261 var bw = d(this); 2262 if (!bw.attr("data-src")) { 2263 bw.attr("data-src", bw.attr("src")); 2264 bw.removeAttr("src") 2265 } 2266 }).end() 2267 } 2268 aF.width(bi).height(br); 2269 G.width(bi).height(br); 2270 aK.width(bi).height(br).show().fadeOut(0).removeClass("lgMt_active").find("img[src*='blank.png']").removeAttr("src").end().find("a").click(bs).end().each(S).end(); 2271 if (au && bh) { 2272 bh.css("margin-left", (am - bh.width()) / 2); 2273 if (D) { 2274 if (d.browser.msie && d.browser.version < 8) { 2275 r.filter(".lgMt_shadow").css("z-index", "-1") 2276 } 2277 an.css("z-index", 204); 2278 an.css("position", "absolute"); 2279 an.css("margin-left", 0); 2280 an.css("margin-top", -av + an.height() + P); 2281 an.css("margin-left", P); 2282 an.detach(); 2283 aM.append(an); 2284 an = aM.find(".lgMt_videoClose"); 2285 an.addClass("lgMt_videoCloseInner") 2286 } 2287 } 2288 if (aY.externalFont) { 2289 s = setTimeout(a2, 10000) 2290 } else { 2291 a2() 2292 } if (J) { 2293 var h = J.find("a"); 2294 h.click(o); 2295 if (bt) { 2296 h.bind("mouseenter", a4).bind("mouseleave", a4); 2297 aq.bind("mouseenter", ad).bind("mouseleave", ad) 2298 } 2299 } 2300 if (aO) { 2301 G.hide().click(ba) 2302 } 2303 var t = true; 2304 ai = ao.attr("data-controls") || "always"; 2305 if (aP) { 2306 ai = (ai == "over" || ai == "hideOnFirst") ? "always" : ai 2307 } 2308 switch (ai) { 2309 case "over": 2310 a0(0); 2311 break; 2312 case "hideOnFirst": 2313 case "inner-over": 2314 ab = true; 2315 break; 2316 case "disabled": 2317 a0(0); 2318 t = false;
2319 break; 2320 default: 2321 t = true; 2322 break 2323 } 2324 if (t) { 2325 ao.bind("mouseenter", aX).bind("mouseleave", aX) 2326 } 2327 a1 = true; 2328 R = setInterval(af, 50); 2329 a6.start() 2330 }, 2331 start: function () { 2332 a1 = aI; 2333 T(0) 2334 }, 2335 fontsLoaded: function () { 2336 a2(); 2337 F(ag) 2338 }, 2339 pauseTimer: function () { 2340 a1 = true 2341 }, 2342 resumeTimer: function () { 2343 a1 = false 2344 }, 2345 pause: function () { 2346 var h = aD(); 2347 h && h.pause(); 2348 a6.pauseTimer() 2349 }, 2350 resume: function () { 2351 var h = aD(); 2352 h && h.resume(); 2353 a6.resumeTimer() 2354 }, 2355 prev: function () { 2356 a6.resumeTimer(); 2357 T(M(ag, "prev")) 2358 }, 2359 next: function () { 2360 a6.resumeTimer(); 2361 T(M(ag, "next")) 2362 }, 2363 show: function (h) { 2364 a6.resumeTimer(); 2365 h = parseInt(h, 10) - 1; 2366 if (h >= 0 && h < K.length) { 2367 T(h) 2368 } 2369 }, 2370 length: function () { 2371 return (K && K.length) || 0 2372 }, 2373 bind: function () { 2374 return aM.bind.apply(aM, arguments) 2375 }, 2376 stopVideo: z, 2377 destroy: function () { 2378 var h; 2379 z(); 2380 aM.unbind("enable.logos ", ap).unbind("disable.logos ", Z); 2381 aK.each(function () { 2382 h = d(this).find("img:eq(0)"); 2383 if ((h = h.data("lgMotionsImg"))) { 2384 h.destroy() 2385 } 2386 }); 2387 h = undefined; 2388 clearInterval(R); 2389 a6 = undefined; 2390 if (H) { 2391 H.destroy(); 2392 H = undefined 2393 } 2394 aM.data("lgMotionsSlider", null); 2395 aM.remove(); 2396 aM = undefined 2397 } 2398 }); 2399 if ((!ao.width()) && (!ao[0].width)) { 2400 ao.one("load", a6.init) 2401 } else { 2402 a6.init() 2403 } 2404 } 2405 d.fn.lgMotionsSlider = function (g) { 2406 var h = this.data("lgMotionsSlider"); 2407 if (h) { 2408 h.start(); 2409 return h 2410 } 2411 g = d.extend(true, {}, d.logos.motionsSlider.conf, g); 2412 this.each(function () { 2413 h = new c(d(this), g); 2414 d(this).data("lgMotionsSlider", h) 2415 }); 2416 return g.api ? h : this 2417 } 2418})(jQuery);
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.