1/************************************************************************** 2 * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider 3 * @version: 4.6.7 (05.01.2015) 4 * @requires jQuery v1.7 or later (tested on 1.9) 5 * @author ThemePunch 6 **************************************************************************/ 7 8function revslider_showDoubleJqueryError(e) { 9 var t = "Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include."; 10 t += "<br> This includes make eliminates the revolution slider libraries, and make it not work."; 11 t += "<br><br> To fix it you can:<br> 1. In the Slider Settings -> Troubleshooting set option: <strong><b>Put JS Includes To Body</b></strong> option to true."; 12 t += "<br> 2. Find the double jquery.js include and remove it."; 13 t = "<span style='font-size:16px;color:#BC0C06;'>" + t + "</span>"; 14 jQuery(e).show().html(t) 15} 16(function (e, t) { 17 function n() { 18 var e = false; 19 if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/iPad/i)) { 20 if (navigator.userAgent.match(/OS 4_\d like Mac OS X/i)) { 21 e = true 22 } 23 } else { 24 e = false 25 } 26 return e 27 } 28 29 function r(r, i) { 30 if (r == t)return false; 31 if (r.data("aimg") != t) { 32 if (r.data("aie8") == "enabled" && a(8) || r.data("amobile") == "enabled" && J())r.html('<img class="tp-slider-alternative-image" src="' + r.data("aimg") + '">') 33 } 34 if (i.navigationStyle == "preview1" || i.navigationStyle == "preview3" || i.navigationStyle == "preview4") { 35 i.soloArrowLeftHalign = "left"; 36 i.soloArrowLeftValign = "center"; 37 i.soloArrowLeftHOffset = 0; 38 i.soloArrowLeftVOffset = 0; 39 i.soloArrowRightHalign = "right"; 40 i.soloArrowRightValign = "center"; 41 i.soloArrowRightHOffset = 0; 42 i.soloArrowRightVOffset = 0; 43 i.navigationArrows = "solo" 44 } 45 if (i.simplifyAll == "on" && (a(8) || n())) { 46 r.find(".tp-caption").each(function () { 47 var t = e(this); 48 t.removeClass("customin").removeClass("customout").addClass("fadein").addClass("fadeout"); 49 t.data("splitin", ""); 50 t.data("speed", 400) 51 }); 52 r.find(">ul>li").each(function () { 53 var t = e(this); 54 t.data("transition", "fade"); 55 t.data("masterspeed", 500); 56 t.data("slotamount", 1); 57 var n = t.find(">img").first(); 58 n.data("kenburns", "off") 59 }) 60 } 61 i.desktop = !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i); 62 if (i.fullWidth != "on" && i.fullScreen != "on")i.autoHeight = "off"; 63 if (i.fullScreen == "on")i.autoHeight = "on"; 64 if (i.fullWidth != "on" && i.fullScreen != "on")forceFulWidth = "off"; 65 if (i.fullWidth == "on" && i.autoHeight == "off")r.css({maxHeight: i.startheight + "px"}); 66 if (J() && i.hideThumbsOnMobile == "on" && i.navigationType == "thumb")i.navigationType = "none"; 67 if (J() && i.hideBulletsOnMobile == "on" && i.navigationType == "bullet")i.navigationType = "none"; 68 if (J() && i.hideBulletsOnMobile == "on" && i.navigationType == "both")i.navigationType = "none"; 69 if (J() && i.hideArrowsOnMobile == "on")i.navigationArrows = "none"; 70 if (i.forceFullWidth == "on" && r.closest(".forcefullwidth_wrapper_tp_banner").length == 0) { 71 var f = r.parent().offset().left; 72 var v = r.parent().css("marginBottom"); 73 var m = r.parent().css("marginTop"); 74 if (v == t)v = 0; 75 if (m == t)m = 0; 76 r.parent().wrap('<div style="position:relative;width:100%;height:auto;margin-top:' + m + ";margin-bottom:" + v + '" class="forcefullwidth_wrapper_tp_banner"></div>'); 77 r.closest(".forcefullwidth_wrapper_tp_banner").append('<div class="tp-fullwidth-forcer" style="width:100%;height:' + r.height() + 'px"></div>'); 78 r.css({ 79 backgroundColor: r.parent().css("backgroundColor"), 80 backgroundImage: r.parent().css("backgroundImage") 81 }); 82 r.parent().css({left: 0 - f + "px", position: "absolute", width: e(window).width()}); 83 i.width = e(window).width() 84 } 85 try { 86 if (i.hideThumbsUnderResolution > e(window).width() && i.hideThumbsUnderResolution != 0) { 87 r.parent().find(".tp-bullets.tp-thumbs").css({display: "none"}) 88 } else { 89 r.parent().find(".tp-bullets.tp-thumbs").css({display: "block"}) 90 } 91 } catch (g) { 92 } 93 if (!r.hasClass("revslider-initialised")) { 94 r.addClass("revslider-initialised"); 95 if (r.attr("id") == t)r.attr("id", "revslider-" + Math.round(Math.random() * 1e3 + 5)); 96 i.firefox13 = false;
97 i.ie = !e.support.opacity; 98 i.ie9 = document.documentMode == 9; 99 i.origcd = i.delay; 100 var b = e.fn.jquery.split("."), w = parseFloat(b[0]), E = parseFloat(b[1]), S = parseFloat(b[2] || "0"); 101 if (w == 1 && E < 7) { 102 r.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:' + b + " <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>") 103 } 104 if (w > 1)i.ie = false; 105 if (!e.support.transition)e.fn.transition = e.fn.animate; 106 r.find(".caption").each(function () { 107 e(this).addClass("tp-caption") 108 }); 109 if (J()) { 110 r.find(".tp-caption").each(function () { 111 var t = e(this); 112 if (t.data("autoplayonlyfirsttime") == true || t.data("autoplayonlyfirsttime") == "true")t.data("autoplayonlyfirsttime", "false"); 113 if (t.data("autoplay") == true || t.data("autoplay") == "true")t.data("autoplay", false) 114 }) 115 } 116 var x = 0; 117 var T = 0; 118 var C = 0; 119 var k = "http"; 120 if (location.protocol === "https:") { 121 k = "https" 122 } 123 r.find(".tp-caption").each(function (n) { 124 try { 125 if ((e(this).data("ytid") != t || e(this).find("iframe").attr("src").toLowerCase().indexOf("youtube") > 0) && x == 0) { 126 x = 1; 127 var r = document.createElement("script"); 128 var i = "https"; 129 r.src = i + "://www.youtube.com/iframe_api"; 130 var s = document.getElementsByTagName("script")[0]; 131 var o = true; 132 e("head").find("*").each(function () { 133 if (e(this).attr("src") == i + "://www.youtube.com/iframe_api")o = false 134 }); 135 if (o) { 136 s.parentNode.insertBefore(r, s) 137 } 138 } 139 } catch (u) { 140 } 141 try { 142 if ((e(this).data("vimeoid") != t || e(this).find("iframe").attr("src").toLowerCase().indexOf("vimeo") > 0) && T == 0) { 143 T = 1; 144 var a = document.createElement("script"); 145 a.src = k + "://a.vimeocdn.com/js/froogaloop2.min.js"; 146 var s = document.getElementsByTagName("script")[0]; 147 var o = true; 148 e("head").find("*").each(function () { 149 if (e(this).attr("src") == k + "://a.vimeocdn.com/js/froogaloop2.min.js")o = false 150 }); 151 if (o)s.parentNode.insertBefore(a, s) 152 } 153 } catch (u) { 154 } 155 try { 156 if (e(this).data("videomp4") != t || e(this).data("videowebm") != t) { 157 } 158 } catch (u) { 159 } 160 }); 161 r.find(".tp-caption video").each(function (t) { 162 e(this).removeClass("video-js").removeClass("vjs-default-skin"); 163 e(this).attr("preload", ""); 164 e(this).css({display: "none"}) 165 }); 166 r.find(">ul:first-child >li").each(function () { 167 var t = e(this); 168 t.data("origindex", t.index()) 169 }); 170 if (i.shuffle == "on") { 171 var L = new Object, A = r.find(">ul:first-child >li:first-child"); 172 L.fstransition = A.data("fstransition"); 173 L.fsmasterspeed = A.data("fsmasterspeed"); 174 L.fsslotamount = A.data("fsslotamount"); 175 for (var O = 0; O < r.find(">ul:first-child >li").length; O++) { 176 var M = Math.round(Math.random() * r.find(">ul:first-child >li").length); 177 r.find(">ul:first-child >li:eq(" + M + ")").prependTo(r.find(">ul:first-child")) 178 } 179 var _ = r.find(">ul:first-child >li:first-child"); 180 _.data("fstransition", L.fstransition); 181 _.data("fsmasterspeed", L.fsmasterspeed); 182 _.data("fsslotamount", L.fsslotamount) 183 } 184 i.slots = 4; 185 i.act = -1; 186 i.next = 0; 187 if (i.startWithSlide != t)i.next = i.startWithSlide;
188 var D = o("#")[0]; 189 if (D.length < 9) { 190 if (D.split("slide").length > 1) { 191 var P = parseInt(D.split("slide")[1], 0); 192 if (P < 1)P = 1; 193 if (P > r.find(">ul:first >li").length)P = r.find(">ul:first >li").length; 194 i.next = P - 1 195 } 196 } 197 i.firststart = 1; 198 if (i.navigationHOffset == t)i.navOffsetHorizontal = 0; 199 if (i.navigationVOffset == t)i.navOffsetVertical = 0; 200 r.append('<div class="tp-loader ' + i.spinner + '">' + '<div class="dot1"></div>' + '<div class="dot2"></div>' + '<div class="bounce1"></div>' + '<div class="bounce2"></div>' + '<div class="bounce3"></div>' + "</div>"); 201 if (r.find(".tp-bannertimer").length == 0)r.append('<div class="tp-bannertimer" style="visibility:hidden"></div>'); 202 var H = r.find(".tp-bannertimer"); 203 if (H.length > 0) { 204 H.css({width: "0%"}) 205 } 206 r.addClass("tp-simpleresponsive"); 207 i.container = r; 208 i.slideamount = r.find(">ul:first >li").length; 209 if (r.height() == 0)r.height(i.startheight); 210 if (i.startwidth == t || i.startwidth == 0)i.startwidth = r.width(); 211 if (i.startheight == t || i.startheight == 0)i.startheight = r.height(); 212 i.width = r.width(); 213 i.height = r.height(); 214 i.bw = i.startwidth / r.width(); 215 i.bh = i.startheight / r.height(); 216 if (i.width != i.startwidth) { 217 i.height = Math.round(i.startheight * (i.width / i.startwidth)); 218 r.height(i.height) 219 } 220 if (i.shadow != 0) { 221 r.parent().append('<div class="tp-bannershadow tp-shadow' + i.shadow + '"></div>'); 222 var f = 0; 223 if (i.forceFullWidth == "on")f = 0 - i.container.parent().offset().left; 224 r.parent().find(".tp-bannershadow").css({width: i.width, left: f}) 225 } 226 r.find("ul").css({display: "none"}); 227 var B = r; 228 r.find("ul").css({display: "block"}); 229 y(r, i); 230 if (i.parallax != "off")et(r, i); 231 if (i.slideamount > 1)l(r, i); 232 if (i.slideamount > 1 && i.navigationType == "thumb")nt(r, i); 233 if (i.slideamount > 1)c(r, i); 234 if (i.keyboardNavigation == "on")h(r, i); 235 p(r, i); 236 if (i.hideThumbs > 0)d(r, i); 237 setTimeout(function () { 238 N(r, i) 239 }, i.startDelay); 240 i.startDelay = 0; 241 if (i.slideamount > 1)$(r, i); 242 setTimeout(function () { 243 r.trigger("revolution.slide.onloaded") 244 }, 500); 245 e("body").data("rs-fullScreenMode", false); 246 e(window).on("mozfullscreenchange webkitfullscreenchange fullscreenchange", function () { 247 e("body").data("rs-fullScreenMode", !e("body").data("rs-fullScreenMode")); 248 if (e("body").data("rs-fullScreenMode")) { 249 setTimeout(function () { 250 e(window).trigger("resize") 251 }, 200) 252 } 253 }); 254 var j = "resize.revslider-" + r.attr("id"); 255 e(window).on(j, function () { 256 if (r == t)return false; 257 if (e("body").find(r) != 0)if (i.forceFullWidth == "on") { 258 var n = i.container.closest(".forcefullwidth_wrapper_tp_banner").offset().left; 259 i.container.parent().css({left: 0 - n + "px", width: e(window).width()}) 260 } 261 if (r.outerWidth(true) != i.width || r.is(":hidden")) { 262 u(r, i) 263 } 264 }); 265 try { 266 if (i.hideThumbsUnderResoluition != 0 && i.navigationType == "thumb") { 267 if (i.hideThumbsUnderResoluition > e(window).width())e(".tp-bullets").css({display: "none"}); else e(".tp-bullets").css({display: "block"}) 268 } 269 } catch (g) { 270 } 271 r.find(".tp-scrollbelowslider").on("click", function () { 272 var t = 0; 273 try { 274 t = e("body").find(i.fullScreenOffsetContainer).height() 275 } catch (n) { 276 } 277 try { 278 t = t - parseInt(e(this).data("scrolloffset"), 0) 279 } catch (n) { 280 } 281 e("body,html").animate({scrollTop: r.offset().top + r.find(">ul >li").height() - t + "px"}, {duration: 400}) 282 }); 283 var F = r.parent(); 284 if (e(window).width() < i.hideSliderAtLimit) { 285 r.trigger("stoptimer"); 286 if (F.css("display") != "none")F.data("olddisplay", F.css("display")); 287 F.css({display: "none"}) 288 } 289 if (!i.disableFocusListener && i.disableFocusListener != "true" && i.disableFocusListener !== true)s(r, i) 290 } 291 } 292 293 e.fn.extend({ 294 revolution: function (n) { 295 var i = { 296 delay: 9e3, 297 startheight: 500, 298 startwidth: 960, 299 fullScreenAlignForce: "off", 300 autoHeight: "off", 301 hideTimerBar: "off", 302 hideThumbs: 200, 303 hideNavDelayOnMobile: 1500, 304 thumbWidth: 100,
305 thumbHeight: 50, 306 thumbAmount: 3, 307 navigationType: "bullet", 308 navigationArrows: "solo", 309 navigationInGrid: "off", 310 hideThumbsOnMobile: "off", 311 hideBulletsOnMobile: "off", 312 hideArrowsOnMobile: "off", 313 hideThumbsUnderResoluition: 0, 314 navigationStyle: "round", 315 navigationHAlign: "center", 316 navigationVAlign: "bottom", 317 navigationHOffset: 0, 318 navigationVOffset: 20, 319 soloArrowLeftHalign: "left", 320 soloArrowLeftValign: "center", 321 soloArrowLeftHOffset: 20, 322 soloArrowLeftVOffset: 0, 323 soloArrowRightHalign: "right", 324 soloArrowRightValign: "center", 325 soloArrowRightHOffset: 20, 326 soloArrowRightVOffset: 0, 327 keyboardNavigation: "on", 328 touchenabled: "on", 329 onHoverStop: "on", 330 stopAtSlide: -1, 331 stopAfterLoops: -1, 332 hideCaptionAtLimit: 0, 333 hideAllCaptionAtLimit: 0, 334 hideSliderAtLimit: 0, 335 shadow: 0, 336 fullWidth: "off", 337 fullScreen: "off", 338 minFullScreenHeight: 0, 339 fullScreenOffsetContainer: "", 340 fullScreenOffset: "0", 341 dottedOverlay: "none", 342 forceFullWidth: "off", 343 spinner: "spinner0", 344 swipe_treshold: 75, 345 swipe_min_touches: 1, 346 drag_block_vertical: false, 347 isJoomla: false, 348 parallax: "off", 349 parallaxLevels: [10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85], 350 parallaxBgFreeze: "off", 351 parallaxOpacity: "on", 352 parallaxDisableOnMobile: "off", 353 panZoomDisableOnMobile: "off", 354 simplifyAll: "on", 355 minHeight: 0, 356 nextSlideOnWindowFocus: "off", 357 disableFocusListener: true, 358 startDelay: 0 359 }; 360 n = e.extend({}, i, n); 361 return this.each(function () { 362 if (window.tplogs == true)try { 363 console.groupCollapsed("Slider Revolution 4.6.3 Initialisation on " + e(this).attr("id")); 364 console.groupCollapsed("Used Options:"); 365 console.info(n); 366 console.groupEnd(); 367 console.groupCollapsed("Tween Engine:") 368 } catch (i) { 369 } 370 if (punchgs.TweenLite == t) { 371 if (window.tplogs == true)try { 372 console.error("GreenSock Engine Does not Exist!") 373 } catch (i) { 374 } 375 return false 376 } 377 punchgs.force3D = true; 378 if (window.tplogs == true)try { 379 console.info("GreenSock Engine Version in Slider Revolution:" + punchgs.TweenLite.version) 380 } catch (i) { 381 } 382 if (n.simplifyAll == "on") { 383 } else { 384 punchgs.TweenLite.lagSmoothing(1e3, 16); 385 punchgs.force3D = "true" 386 } 387 if (window.tplogs == true)try { 388 console.groupEnd(); 389 console.groupEnd() 390 } catch (i) { 391 } 392 r(e(this), n) 393 }) 394 }, revscroll: function (n) { 395 return this.each(function () { 396 var r = e(this); 397 if (r != t && r.length > 0 && e("body").find("#" + r.attr("id")).length > 0)e("body,html").animate({scrollTop: r.offset().top + r.find(">ul >li").height() - n + "px"}, {duration: 400}) 398 }) 399 }, revredraw: function (n) { 400 return this.each(function () { 401 var n = e(this); 402 if (n != t && n.length > 0 && e("body").find("#" + n.attr("id")).length > 0) { 403 var r = n.parent().find(".tp-bannertimer"); 404 var i = r.data("opt"); 405 u(n, i) 406 } 407 }) 408 }, revkill: function (n) { 409 var r = this, i = e(this); 410 if (i != t && i.length > 0 && e("body").find("#" + i.attr("id")).length > 0) {
411 i.data("conthover", 1); 412 i.data("conthover-changed", 1); 413 i.trigger("revolution.slide.onpause"); 414 var s = i.parent().find(".tp-bannertimer"); 415 var o = s.data("opt"); 416 o.bannertimeronpause = true; 417 i.trigger("stoptimer"); 418 punchgs.TweenLite.killTweensOf(i.find("*"), false); 419 punchgs.TweenLite.killTweensOf(i, false); 420 i.unbind("hover, mouseover, mouseenter,mouseleave, resize"); 421 var u = "resize.revslider-" + i.attr("id"); 422 e(window).off(u); 423 i.find("*").each(function () { 424 var n = e(this); 425 n.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer"); 426 n.off("on, hover, mouseenter,mouseleave,mouseover, resize"); 427 n.data("mySplitText", null); 428 n.data("ctl", null); 429 if (n.data("tween") != t)n.data("tween").kill(); 430 if (n.data("kenburn") != t)n.data("kenburn").kill(); 431 n.remove(); 432 n.empty(); 433 n = null 434 }); 435 punchgs.TweenLite.killTweensOf(i.find("*"), false); 436 punchgs.TweenLite.killTweensOf(i, false); 437 s.remove(); 438 try { 439 i.closest(".forcefullwidth_wrapper_tp_banner").remove() 440 } catch (a) { 441 } 442 try { 443 i.closest(".rev_slider_wrapper").remove() 444 } catch (a) { 445 } 446 try { 447 i.remove() 448 } catch (a) { 449 } 450 i.empty(); 451 i.html(); 452 i = null; 453 o = null; 454 delete r.container; 455 delete r.opt; 456 return true 457 } else { 458 return false 459 } 460 }, revpause: function (n) { 461 return this.each(function () { 462 var n = e(this); 463 if (n != t && n.length > 0 && e("body").find("#" + n.attr("id")).length > 0) { 464 n.data("conthover", 1); 465 n.data("conthover-changed", 1); 466 n.trigger("revolution.slide.onpause"); 467 var r = n.parent().find(".tp-bannertimer"); 468 var i = r.data("opt"); 469 i.bannertimeronpause = true; 470 n.trigger("stoptimer") 471 } 472 }) 473 }, revresume: function (n) { 474 return this.each(function () { 475 var n = e(this); 476 if (n != t && n.length > 0 && e("body").find("#" + n.attr("id")).length > 0) { 477 n.data("conthover", 0); 478 n.data("conthover-changed", 1); 479 n.trigger("revolution.slide.onresume"); 480 var r = n.parent().find(".tp-bannertimer"); 481 var i = r.data("opt"); 482 i.bannertimeronpause = false; 483 n.trigger("starttimer") 484 } 485 }) 486 }, revnext: function (n) { 487 return this.each(function () { 488 var n = e(this); 489 if (n != t && n.length > 0 && e("body").find("#" + n.attr("id")).length > 0)n.parent().find(".tp-rightarrow").click() 490 }) 491 }, revprev: function (n) { 492 return this.each(function () { 493 var n = e(this); 494 if (n != t && n.length > 0 && e("body").find("#" + n.attr("id")).length > 0)n.parent().find(".tp-leftarrow").click() 495 }) 496 }, revmaxslide: function (t) { 497 return e(this).find(">ul:first-child >li").length 498 }, revcurrentslide: function (n) { 499 var r = e(this); 500 if (r != t && r.length > 0 && e("body").find("#" + r.attr("id")).length > 0) { 501 var i = r.parent().find(".tp-bannertimer"); 502 var s = i.data("opt"); 503 return s.act 504 } 505 }, revlastslide: function (n) { 506 var r = e(this); 507 if (r != t && r.length > 0 && e("body").find("#" + r.attr("id")).length > 0) { 508 var i = r.parent().find(".tp-bannertimer"); 509 var s = i.data("opt"); 510 return s.lastslide 511 } 512 }, revshowslide: function (n) { 513 return this.each(function () { 514 var r = e(this); 515 if (r != t && r.length > 0 && e("body").find("#" + r.attr("id")).length > 0) { 516 r.data("showus", n); 517 r.parent().find(".tp-rightarrow").click() 518 } 519 }) 520 } 521 }); 522 var i = function () { 523 var e, t, n = { 524 hidden: "visibilitychange", 525 webkitHidden: "webkitvisibilitychange", 526 mozHidden: "mozvisibilitychange", 527 msHidden: "msvisibilitychange" 528 }; 529 for (e in n) { 530 if (e in document) { 531 t = n[e]; 532 break 533 } 534 } 535 return function (n) { 536 if (n)document.addEventListener(t, n); 537 return !document[e] 538 } 539 }(); 540 var s = function (n, r) { 541 var i = document.documentMode === t, s = window.chrome; 542 if (i && !s) { 543 e(window).on("focusin", function () { 544 if (n == t)return false;
545 setTimeout(function () { 546 if (r.nextSlideOnWindowFocus == "on")n.revnext(); 547 n.revredraw() 548 }, 300) 549 }).on("focusout", function () { 550 }) 551 } else { 552 if (window.addEventListener) { 553 window.addEventListener("focus", function (e) { 554 if (n == t)return false; 555 setTimeout(function () { 556 if (r.nextSlideOnWindowFocus == "on")n.revnext(); 557 n.revredraw() 558 }, 300) 559 }, false); 560 window.addEventListener("blur", function (e) { 561 }, false) 562 } else { 563 window.attachEvent("focus", function (e) { 564 setTimeout(function () { 565 if (n == t)return false; 566 if (r.nextSlideOnWindowFocus == "on")n.revnext(); 567 n.revredraw() 568 }, 300) 569 }); 570 window.attachEvent("blur", function (e) { 571 }) 572 } 573 } 574 }; 575 var o = function (e) { 576 var t = [], n; 577 var r = window.location.href.slice(window.location.href.indexOf(e) + 1).split("_"); 578 for (var i = 0; i < r.length; i++) { 579 r[i] = r[i].replace("%3D", "="); 580 n = r[i].split("="); 581 t.push(n[0]); 582 t[n[0]] = n[1] 583 } 584 return t 585 }; 586 var u = function (n, r) { 587 if (n == t)return false; 588 try { 589 if (r.hideThumbsUnderResoluition != 0 && r.navigationType == "thumb") { 590 if (r.hideThumbsUnderResoluition > e(window).width())e(".tp-bullets").css({display: "none"}); else e(".tp-bullets").css({display: "block"}) 591 } 592 } catch (i) { 593 } 594 n.find(".defaultimg").each(function (t) { 595 g(e(this), r) 596 }); 597 var s = n.parent(); 598 if (e(window).width() < r.hideSliderAtLimit) { 599 n.trigger("stoptimer"); 600 if (s.css("display") != "none")s.data("olddisplay", s.css("display")); 601 s.css({display: "none"}) 602 } else { 603 if (n.is(":hidden")) { 604 if (s.data("olddisplay") != t && s.data("olddisplay") != "undefined" && s.data("olddisplay") != "none")s.css({display: s.data("olddisplay")}); else s.css({display: "block"}); 605 n.trigger("restarttimer"); 606 setTimeout(function () { 607 u(n, r) 608 }, 150) 609 } 610 } 611 var o = 0; 612 if (r.forceFullWidth == "on")o = 0 - r.container.parent().offset().left; 613 try { 614 n.parent().find(".tp-bannershadow").css({width: r.width, left: o}) 615 } catch (i) { 616 } 617 var a = n.find(">ul >li:eq(" + r.act + ") .slotholder"); 618 var f = n.find(">ul >li:eq(" + r.next + ") .slotholder"); 619 E(n, r, n); 620 punchgs.TweenLite.set(f.find(".defaultimg"), {opacity: 0}); 621 a.find(".defaultimg").css({opacity: 1}); 622 f.find(".defaultimg").each(function () { 623 var i = e(this); 624 if (r.panZoomDisableOnMobile == "on") { 625 } else { 626 if (i.data("kenburn") != t) { 627 i.data("kenburn").restart(); 628 Q(n, r, true) 629 } 630 } 631 }); 632 var l = n.find(">ul >li:eq(" + r.next + ")"); 633 var c = n.parent().find(".tparrows"); 634 if (c.hasClass("preview2"))c.css({width: parseInt(c.css("minWidth"), 0)}); 635 j(l, r, true); 636 v(n, r) 637 }; 638 var a = function (t, n) { 639 var r = e('<div style="display:none;"/>').appendTo(e("body")); 640 r.html("<!--[if " + (n || "") + " IE " + (t || "") + "]><a> </a><![endif]-->"); 641 var i = r.find("a").length; 642 r.remove(); 643 return i 644 }; 645 var f = function (e, t) { 646 if (e.next == t.find(">ul >li").length - 1) { 647 e.looptogo = e.looptogo - 1; 648 if (e.looptogo <= 0)e.stopLoop = "on" 649 } 650 N(t, e) 651 }; 652 var l = function (t, n) { 653 var r = "hidebullets"; 654 if (n.hideThumbs == 0)r = ""; 655 if (n.navigationType == "bullet" || n.navigationType == "both") { 656 t.parent().append('<div class="tp-bullets ' + r + " simplebullets " + n.navigationStyle + '"></div>') 657 } 658 var i = t.parent().find(".tp-bullets"); 659 t.find(">ul:first >li").each(function (e) { 660 var n = t.find(">ul:first >li:eq(" + e + ") img:first").attr("src"); 661 i.append('<div class="bullet"></div>'); 662 var r = i.find(".bullet:first") 663 }); 664 i.find(".bullet").each(function (r) { 665 var i = e(this); 666 if (r == n.slideamount - 1)i.addClass("last"); 667 if (r == 0)i.addClass("first"); 668 i.click(function () { 669 var e = false, r = i.index(); 670 if (n.navigationArrows == "withbullet" || n.navigationArrows == "nexttobullets")r = i.index() - 1; 671 if (r == n.act)e = true; 672 if (n.transition == 0 && !e) { 673 n.next = r; 674 f(n, t) 675 } 676 }) 677 }); 678 i.append('<div class="tpclear"></div>'); 679 v(t, n) 680 }; 681 var c = function (e, n) { 682 function u(t) { 683 e.parent().append('<div style="' + i + '" class="tp-' + t + "arrow " + s + " tparrows " + o + '"><div class="tp-arr-allwrapper"><div class="tp-arr-iwrapper"><div class="tp-arr-imgholder"></div><div class="tp-arr-imgholder2"></div><div class="tp-arr-titleholder"></div><div class="tp-arr-subtitleholder"></div></div></div></div>') 684 } 685 686 var r = e.find(".tp-bullets"), i = "", s = "hidearrows", o = n.navigationStyle; 687 if (n.hideThumbs == 0)s = "";
688 if (n.navigationArrows == "none")i = "visibility:hidden;display:none"; 689 n.soloArrowStyle = "default" + " " + n.navigationStyle; 690 if (n.navigationArrows != "none" && n.navigationArrows != "nexttobullets")o = n.soloArrowStyle; 691 u("left"); 692 u("right"); 693 e.parent().find(".tp-rightarrow").click(function () { 694 if (n.transition == 0) { 695 if (e.data("showus") != t && e.data("showus") != -1)n.next = e.data("showus") - 1; else n.next = n.next + 1; 696 e.data("showus", -1); 697 if (n.next >= n.slideamount)n.next = 0; 698 if (n.next < 0)n.next = 0; 699 if (n.act != n.next)f(n, e) 700 } 701 }); 702 e.parent().find(".tp-leftarrow").click(function () { 703 if (n.transition == 0) { 704 n.next = n.next - 1; 705 n.leftarrowpressed = 1; 706 if (n.next < 0)n.next = n.slideamount - 1; 707 f(n, e) 708 } 709 }); 710 v(e, n) 711 }; 712 var h = function (n, r) { 713 e(document).keydown(function (e) { 714 if (r.transition == 0 && e.keyCode == 39) { 715 if (n.data("showus") != t && n.data("showus") != -1)r.next = n.data("showus") - 1; else r.next = r.next + 1; 716 n.data("showus", -1); 717 if (r.next >= r.slideamount)r.next = 0; 718 if (r.next < 0)r.next = 0; 719 if (r.act != r.next)f(r, n) 720 } 721 if (r.transition == 0 && e.keyCode == 37) { 722 r.next = r.next - 1; 723 r.leftarrowpressed = 1; 724 if (r.next < 0)r.next = r.slideamount - 1; 725 f(r, n) 726 } 727 }); 728 v(n, r) 729 }; 730 var p = function (t, n) { 731 var r = "vertical"; 732 if (n.touchenabled == "on") { 733 if (n.drag_block_vertical == true)r = "none"; 734 t.swipe({ 735 allowPageScroll: r, 736 fingers: n.swipe_min_touches, 737 treshold: n.swipe_treshold, 738 swipe: function (i, s, o, u, a, l) { 739 switch (s) { 740 case"left": 741 if (n.transition == 0) { 742 n.next = n.next + 1; 743 if (n.next == n.slideamount)n.next = 0; 744 f(n, t) 745 } 746 break; 747 case"right": 748 if (n.transition == 0) { 749 n.next = n.next - 1; 750 n.leftarrowpressed = 1; 751 if (n.next < 0)n.next = n.slideamount - 1; 752 f(n, t) 753 } 754 break; 755 case"up": 756 if (r == "none")e("html, body").animate({scrollTop: t.offset().top + t.height() + "px"}); 757 break; 758 case"down": 759 if (r == "none")e("html, body").animate({scrollTop: t.offset().top - e(window).height() + "px"}); 760 break 761 } 762 } 763 }) 764 } 765 }; 766 var d = function (e, t) { 767 var n = e.parent().find(".tp-bullets"), r = e.parent().find(".tparrows"); 768 if (n == null) { 769 e.append('<div class=".tp-bullets"></div>'); 770 var n = e.parent().find(".tp-bullets") 771 } 772 if (r == null) { 773 e.append('<div class=".tparrows"></div>'); 774 var r = e.parent().find(".tparrows") 775 } 776 e.data("hideThumbs", t.hideThumbs); 777 n.addClass("hidebullets"); 778 r.addClass("hidearrows"); 779 if (J()) { 780 try { 781 e.hammer().on("touch", function () { 782 e.addClass("hovered"); 783 if (t.onHoverStop == "on")e.trigger("stoptimer"); 784 clearTimeout(e.data("hideThumbs")); 785 n.removeClass("hidebullets"); 786 r.removeClass("hidearrows") 787 }); 788 e.hammer().on("release", function () { 789 e.removeClass("hovered"); 790 e.trigger("starttimer"); 791 if (!e.hasClass("hovered") && !n.hasClass("hovered"))e.data("hideThumbs", setTimeout(function () { 792 n.addClass("hidebullets"); 793 r.addClass("hidearrows"); 794 e.trigger("starttimer") 795 }, t.hideNavDelayOnMobile)) 796 }) 797 } catch (i) { 798 } 799 } else { 800 n.hover(function () { 801 t.overnav = true; 802 if (t.onHoverStop == "on")e.trigger("stoptimer"); 803 n.addClass("hovered"); 804 clearTimeout(e.data("hideThumbs")); 805 n.removeClass("hidebullets"); 806 r.removeClass("hidearrows") 807 }, function () { 808 t.overnav = false;
809 e.trigger("starttimer"); 810 n.removeClass("hovered"); 811 if (!e.hasClass("hovered") && !n.hasClass("hovered"))e.data("hideThumbs", setTimeout(function () { 812 n.addClass("hidebullets"); 813 r.addClass("hidearrows") 814 }, t.hideThumbs)) 815 }); 816 r.hover(function () { 817 t.overnav = true; 818 if (t.onHoverStop == "on")e.trigger("stoptimer"); 819 n.addClass("hovered"); 820 clearTimeout(e.data("hideThumbs")); 821 n.removeClass("hidebullets"); 822 r.removeClass("hidearrows") 823 }, function () { 824 t.overnav = false; 825 e.trigger("starttimer"); 826 n.removeClass("hovered") 827 }); 828 e.on("mouseenter", function () { 829 e.addClass("hovered"); 830 if (t.onHoverStop == "on")e.trigger("stoptimer"); 831 clearTimeout(e.data("hideThumbs")); 832 n.removeClass("hidebullets"); 833 r.removeClass("hidearrows") 834 }); 835 e.on("mouseleave", function () { 836 e.removeClass("hovered"); 837 e.trigger("starttimer"); 838 if (!e.hasClass("hovered") && !n.hasClass("hovered"))e.data("hideThumbs", setTimeout(function () { 839 n.addClass("hidebullets"); 840 r.addClass("hidearrows") 841 }, t.hideThumbs)) 842 }) 843 } 844 }; 845 var v = function (t, n) { 846 var r = t.parent(); 847 var i = r.find(".tp-bullets"); 848 if (n.navigationType == "thumb") { 849 i.find(".thumb").each(function (t) { 850 var r = e(this); 851 r.css({width: n.thumbWidth * n.bw + "px", height: n.thumbHeight * n.bh + "px"}) 852 }); 853 var s = i.find(".tp-mask"); 854 s.width(n.thumbWidth * n.thumbAmount * n.bw); 855 s.height(n.thumbHeight * n.bh); 856 s.parent().width(n.thumbWidth * n.thumbAmount * n.bw); 857 s.parent().height(n.thumbHeight * n.bh) 858 } 859 var o = r.find(".tp-leftarrow"); 860 var u = r.find(".tp-rightarrow"); 861 if (n.navigationType == "thumb" && n.navigationArrows == "nexttobullets")n.navigationArrows = "solo"; 862 if (n.navigationArrows == "nexttobullets") { 863 o.prependTo(i).css({"float": "left"}); 864 u.insertBefore(i.find(".tpclear")).css({"float": "left"}) 865 } 866 var a = 0; 867 if (n.forceFullWidth == "on")a = 0 - n.container.parent().offset().left; 868 var f = 0, l = 0; 869 if (n.navigationInGrid == "on") { 870 f = t.width() > n.startwidth ? (t.width() - n.startwidth) / 2 : 0, l = t.height() > n.startheight ? (t.height() - n.startheight) / 2 : 0 871 } 872 if (n.navigationArrows != "none" && n.navigationArrows != "nexttobullets") { 873 var c = n.soloArrowLeftValign, h = n.soloArrowLeftHalign, p = n.soloArrowRightValign, d = n.soloArrowRightHalign, v = n.soloArrowLeftVOffset, m = n.soloArrowLeftHOffset, g = n.soloArrowRightVOffset, y = n.soloArrowRightHOffset; 874 o.css({position: "absolute"}); 875 u.css({position: "absolute"}); 876 if (c == "center")o.css({ 877 top: "50%", 878 marginTop: v - Math.round(o.innerHeight() / 2) + "px" 879 }); else if (c == "bottom")o.css({ 880 top: "auto", 881 bottom: 0 + v + "px" 882 }); else if (c == "top")o.css({bottom: "auto", top: 0 + v + "px"}); 883 if (h == "center")o.css({ 884 left: "50%", 885 marginLeft: a + m - Math.round(o.innerWidth() / 2) + "px" 886 }); else if (h == "left")o.css({left: f + m + a + "px"}); else if (h == "right")o.css({right: f + m - a + "px"}); 887 if (p == "center")u.css({ 888 top: "50%", 889 marginTop: g - Math.round(u.innerHeight() / 2) + "px" 890 }); else if (p == "bottom")u.css({ 891 top: "auto", 892 bottom: 0 + g + "px" 893 }); else if (p == "top")u.css({bottom: "auto", top: 0 + g + "px"}); 894 if (d == "center")u.css({ 895 left: "50%", 896 marginLeft: a + y - Math.round(u.innerWidth() / 2) + "px" 897 }); else if (d == "left")u.css({left: f + y + a + "px"}); else if (d == "right")u.css({right: f + y - a + "px"}); 898 if (o.position() != null)o.css({top: Math.round(parseInt(o.position().top, 0)) + "px"}); 899 if (u.position() != null)u.css({top: Math.round(parseInt(u.position().top, 0)) + "px"}) 900 } 901 if (n.navigationArrows == "none") { 902 o.css({visibility: "hidden"}); 903 u.css({visibility: "hidden"}) 904 } 905 var b = n.navigationVAlign, w = n.navigationHAlign, E = n.navigationVOffset * n.bh, S = n.navigationHOffset * n.bw; 906 if (b == "center")i.css({top: "50%", marginTop: E - Math.round(i.innerHeight() / 2) + "px"}); 907 if (b == "bottom")i.css({bottom: 0 + E + "px"}); 908 if (b == "top")i.css({top: 0 + E + "px"}); 909 if (w == "center")i.css({left: "50%", marginLeft: a + S - Math.round(i.innerWidth() / 2) + "px"}); 910 if (w == "left")i.css({left: 0 + S + a + "px"}); 911 if (w == "right")i.css({right: 0 + S - a + "px"}) 912 }; 913 var m = function (n) { 914 var r = n.container; 915 n.beforli = n.next - 1; 916 n.comingli = n.next + 1; 917 if (n.beforli < 0)n.beforli = n.slideamount - 1; 918 if (n.comingli >= n.slideamount)n.comingli = 0; 919 var i = r.find(">ul:first-child >li:eq(" + n.comingli + ")"), s = r.find(">ul:first-child >li:eq(" + n.beforli + ")"), o = s.find(".defaultimg").attr("src"), u = i.find(".defaultimg").attr("src"); 920 if (n.arr == t) { 921 n.arr = r.parent().find(".tparrows"), n.rar = r.parent().find(".tp-rightarrow"), n.lar = r.parent().find(".tp-leftarrow"), n.raimg = n.rar.find(".tp-arr-imgholder"), n.laimg = n.lar.find(".tp-arr-imgholder"), n.raimg_b = n.rar.find(".tp-arr-imgholder2"), n.laimg_b = n.lar.find(".tp-arr-imgholder2"), n.ratit = n.rar.find(".tp-arr-titleholder"), n.latit = n.lar.find(".tp-arr-titleholder") 922 } 923 var a = n.arr, f = n.rar, l = n.lar, c = n.raimg, h = n.laimg, p = n.raimg_b, d = n.laimg_b, v = n.ratit, m = n.latit; 924 if (i.data("title") != t)v.html(i.data("title")); 925 if (s.data("title") != t)m.html(s.data("title")); 926 if (f.hasClass("itishovered")) { 927 f.width(v.outerWidth(true) + parseInt(f.css("minWidth"), 0)) 928 } 929 if (l.hasClass("itishovered")) { 930 l.width(m.outerWidth(true) + parseInt(l.css("minWidth"), 0)) 931 } 932 if (a.hasClass("preview2") && !a.hasClass("hashoveralready")) { 933 a.addClass("hashoveralready"); 934 if (!J())a.hover(function () { 935 var t = e(this), n = t.find(".tp-arr-titleholder"); 936 if (e(window).width() > 767)t.width(n.outerWidth(true) + parseInt(t.css("minWidth"), 0)); 937 t.addClass("itishovered") 938 }, function () { 939 var t = e(this), n = t.find(".tp-arr-titleholder"); 940 t.css({width: parseInt(t.css("minWidth"), 0)}); 941 t.removeClass("itishovered") 942 }); else { 943 var a = e(this), g = a.find(".tp-arr-titleholder"); 944 g.addClass("alwayshidden"); 945 punchgs.TweenLite.set(g, {autoAlpha: 0}) 946 } 947 } 948 if (s.data("thumb") != t)o = s.data("thumb"); 949 if (i.data("thumb") != t)u = i.data("thumb"); 950 if (!a.hasClass("preview4")) { 951 punchgs.TweenLite.to(c, .5, { 952 autoAlpha: 0, onComplete: function () { 953 c.css({backgroundImage: "url(" + u + ")"}); 954 h.css({backgroundImage: "url(" + o + ")"}) 955 } 956 }); 957 punchgs.TweenLite.to(h, .5, { 958 autoAlpha: 0, onComplete: function () { 959 punchgs.TweenLite.to(c, .5, {autoAlpha: 1, delay: .2}); 960 punchgs.TweenLite.to(h, .5, {autoAlpha: 1, delay: .2}) 961 } 962 }) 963 } else { 964 p.css({backgroundImage: "url(" + u + ")"}); 965 d.css({backgroundImage: "url(" + o + ")"}); 966 punchgs.TweenLite.fromTo(p, .8, {force3D: punchgs.force3d, x: 0}, { 967 x: -c.width(), 968 ease: punchgs.Power3.easeOut, 969 delay: 1, 970 onComplete: function () { 971 c.css({backgroundImage: "url(" + u + ")"}); 972 punchgs.TweenLite.set(p, {x: 0}) 973 } 974 }); 975 punchgs.TweenLite.fromTo(d, .8, {force3D: punchgs.force3d, x: 0}, { 976 x: c.width(), 977 ease: punchgs.Power3.easeOut, 978 delay: 1, 979 onComplete: function () { 980 h.css({backgroundImage: "url(" + o + ")"}); 981 punchgs.TweenLite.set(d, {x: 0}) 982 } 983 }); 984 punchgs.TweenLite.fromTo(c, .8, {x: 0}, { 985 force3D: punchgs.force3d, 986 x: -c.width(), 987 ease: punchgs.Power3.easeOut, 988 delay: 1, 989 onComplete: function () { 990 punchgs.TweenLite.set(c, {x: 0}) 991 } 992 }); 993 punchgs.TweenLite.fromTo(h, .8, {x: 0}, { 994 force3D: punchgs.force3d, 995 x: c.width(), 996 ease: punchgs.Power3.easeOut, 997 delay: 1, 998 onComplete: function () { 999 punchgs.TweenLite.set(h, {x: 0}) 1000 } 1001 }) 1002 } 1003 if (f.hasClass("preview4") && !f.hasClass("hashoveralready")) { 1004 f.addClass("hashoveralready"); 1005 f.hover(function () { 1006 var t = e(this).find(".tp-arr-iwrapper"); 1007 var n = e(this).find(".tp-arr-allwrapper"); 1008 punchgs.TweenLite.fromTo(t, .4, {x: t.width()}, { 1009 x: 0, 1010 delay: .3, 1011 ease: punchgs.Power3.easeOut, 1012 overwrite: "all" 1013 }); 1014 punchgs.TweenLite.to(n, .2, {autoAlpha: 1, overwrite: "all"}) 1015 }, function () { 1016 var t = e(this).find(".tp-arr-iwrapper"); 1017 var n = e(this).find(".tp-arr-allwrapper"); 1018 punchgs.TweenLite.to(t, .4, {x: t.width(), ease: punchgs.Power3.easeOut, delay: .2, overwrite: "all"}); 1019 punchgs.TweenLite.to(n, .2, {delay: .6, autoAlpha: 0, overwrite: "all"}) 1020 }); 1021 l.hover(function () { 1022 var t = e(this).find(".tp-arr-iwrapper"); 1023 var n = e(this).find(".tp-arr-allwrapper"); 1024 punchgs.TweenLite.fromTo(t, .4, {x: 0 - t.width()}, { 1025 x: 0, 1026 delay: .3, 1027 ease: punchgs.Power3.easeOut, 1028 overwrite: "all" 1029 }); 1030 punchgs.TweenLite.to(n, .2, {autoAlpha: 1, overwrite: "all"}) 1031 }, function () { 1032 var t = e(this).find(".tp-arr-iwrapper"); 1033 var n = e(this).find(".tp-arr-allwrapper"); 1034 punchgs.TweenLite.to(t, .4, { 1035 x: 0 - t.width(), 1036 ease: punchgs.Power3.easeOut, 1037 delay: .2, 1038 overwrite: "all" 1039 }); 1040 punchgs.TweenLite.to(n, .2, {delay: .6, autoAlpha: 0, overwrite: "all"}) 1041 }) 1042 } 1043 }; 1044 var g = function (n, r) { 1045 r.container.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css({height: r.container.height()}); 1046 r.container.closest(".rev_slider_wrapper").css({height: r.container.height()}); 1047 r.width = parseInt(r.container.width(), 0); 1048 r.height = parseInt(r.container.height(), 0); 1049 r.bw = r.width / r.startwidth; 1050 r.bh = r.height / r.startheight; 1051 if (r.bh > r.bw)r.bh = r.bw; 1052 if (r.bh < r.bw)r.bw = r.bh; 1053 if (r.bw < r.bh)r.bh = r.bw; 1054 if (r.bh > 1) { 1055 r.bw = 1; 1056 r.bh = 1 1057 } 1058 if (r.bw > 1) { 1059 r.bw = 1; 1060 r.bh = 1 1061 }
1062 r.height = Math.round(r.startheight * (r.width / r.startwidth)); 1063 if (r.height > r.startheight && r.autoHeight != "on")r.height = r.startheight; 1064 if (r.fullScreen == "on") { 1065 r.height = r.bw * r.startheight; 1066 var i = r.container.parent().width(); 1067 var s = e(window).height(); 1068 if (r.fullScreenOffsetContainer != t) { 1069 try { 1070 var o = r.fullScreenOffsetContainer.split(","); 1071 e.each(o, function (t, n) { 1072 s = s - e(n).outerHeight(true); 1073 if (s < r.minFullScreenHeight)s = r.minFullScreenHeight 1074 }) 1075 } catch (u) { 1076 } 1077 try { 1078 if (r.fullScreenOffset.split("%").length > 1 && r.fullScreenOffset != t && r.fullScreenOffset.length > 0) { 1079 s = s - e(window).height() * parseInt(r.fullScreenOffset, 0) / 100 1080 } else { 1081 if (r.fullScreenOffset != t && r.fullScreenOffset.length > 0)s = s - parseInt(r.fullScreenOffset, 0) 1082 } 1083 if (s < r.minFullScreenHeight)s = r.minFullScreenHeight 1084 } catch (u) { 1085 } 1086 } 1087 r.container.parent().height(s); 1088 r.container.closest(".rev_slider_wrapper").height(s); 1089 r.container.css({height: "100%"}); 1090 r.height = s; 1091 if (r.minHeight != t && r.height < r.minHeight)r.height = r.minHeight 1092 } else { 1093 if (r.minHeight != t && r.height < r.minHeight)r.height = r.minHeight; 1094 r.container.height(r.height) 1095 } 1096 r.slotw = Math.ceil(r.width / r.slots); 1097 if (r.fullScreen == "on")r.sloth = Math.ceil(e(window).height() / r.slots); else r.sloth = Math.ceil(r.height / r.slots); 1098 if (r.autoHeight == "on")r.sloth = Math.ceil(n.height() / r.slots) 1099 }; 1100 var y = function (n, r) { 1101 n.find(".tp-caption").each(function () { 1102 e(this).addClass(e(this).data("transition")); 1103 e(this).addClass("start") 1104 }); 1105 n.find(">ul:first").css({ 1106 overflow: "hidden", 1107 width: "100%", 1108 height: "100%", 1109 maxHeight: n.parent().css("maxHeight") 1110 }).addClass("tp-revslider-mainul"); 1111 if (r.autoHeight == "on") { 1112 n.find(">ul:first").css({overflow: "hidden", width: "100%", height: "100%", maxHeight: "none"}); 1113 n.css({maxHeight: "none"}); 1114 n.parent().css({maxHeight: "none"}) 1115 } 1116 n.find(">ul:first >li").each(function (r) { 1117 var i = e(this); 1118 i.addClass("tp-revslider-slidesli"); 1119 i.css({width: "100%", height: "100%", overflow: "hidden"}); 1120 if (i.data("link") != t) { 1121 var s = i.data("link"); 1122 var o = "_self"; 1123 var u = 60; 1124 if (i.data("slideindex") == "back")u = 0; 1125 var a = checksl = i.data("linktoslide"); 1126 if (a != t) { 1127 if (a != "next" && a != "prev")n.find(">ul:first-child >li").each(function () { 1128 var t = e(this); 1129 if (t.data("origindex") + 1 == checksl)a = t.index() + 1 1130 }) 1131 } 1132 if (i.data("target") != t)o = i.data("target"); 1133 if (s != "slide")a = "no"; 1134 var f = '<div class="tp-caption sft slidelink" style="width:100%;height:100%;z-index:' + u + ';" data-x="center" data-y="center" data-linktoslide="' + a + '" data-start="0"><a style="width:100%;height:100%;display:block"'; 1135 if (s != "slide")f = f + ' target="' + o + '" href="' + s + '"'; 1136 f = f + '><span style="width:100%;height:100%;display:block"></span></a></div>'; 1137 i.append(f) 1138 } 1139 }); 1140 n.parent().css({overflow: "visible"}); 1141 n.find(">ul:first >li >img").each(function (n) { 1142 var i = e(this); 1143 i.addClass("defaultimg"); 1144 if (i.data("lazyload") != t && i.data("lazydone") != 1) { 1145 } else { 1146 g(i, r) 1147 } 1148 if (a(8)) { 1149 i.data("kenburns", "off") 1150 }
1151 if (r.panZoomDisableOnMobile == "on" && J()) { 1152 i.data("kenburns", "off"); 1153 i.data("bgfit", "cover") 1154 } 1155 i.wrap('<div class="slotholder" style="width:100%;height:100%;"' + 'data-duration="' + i.data("duration") + '"' + 'data-zoomstart="' + i.data("zoomstart") + '"' + 'data-zoomend="' + i.data("zoomend") + '"' + 'data-rotationstart="' + i.data("rotationstart") + '"' + 'data-rotationend="' + i.data("rotationend") + '"' + 'data-ease="' + i.data("ease") + '"' + 'data-duration="' + i.data("duration") + '"' + 'data-bgpositionend="' + i.data("bgpositionend") + '"' + 'data-bgposition="' + i.data("bgposition") + '"' + 'data-duration="' + i.data("duration") + '"' + 'data-kenburns="' + i.data("kenburns") + '"' + 'data-easeme="' + i.data("ease") + '"' + 'data-bgfit="' + i.data("bgfit") + '"' + 'data-bgfitend="' + i.data("bgfitend") + '"' + 'data-owidth="' + i.data("owidth") + '"' + 'data-oheight="' + i.data("oheight") + '"' + "></div>"); 1156 if (r.dottedOverlay != "none" && r.dottedOverlay != t)i.closest(".slotholder").append('<div class="tp-dottedoverlay ' + r.dottedOverlay + '"></div>'); 1157 var s = i.attr("src"), o = i.data("lazyload"), u = i.data("bgfit"), f = i.data("bgrepeat"), l = i.data("bgposition"); 1158 if (u == t)u = "cover"; 1159 if (f == t)f = "no-repeat"; 1160 if (l == t)l = "center center"; 1161 var c = i.closest(".slotholder"); 1162 i.replaceWith('<div class="tp-bgimg defaultimg" data-lazyload="' + i.data("lazyload") + '" data-bgfit="' + u + '"data-bgposition="' + l + '" data-bgrepeat="' + f + '" data-lazydone="' + i.data("lazydone") + '" src="' + s + '" data-src="' + s + '" style="background-color:' + i.css("backgroundColor") + ";background-repeat:" + f + ";background-image:url(" + s + ");background-size:" + u + ";background-position:" + l + ';width:100%;height:100%;"></div>'); 1163 if (a(8)) { 1164 c.find(".tp-bgimg").css({backgroundImage: "none", "background-image": "none"}); 1165 c.find(".tp-bgimg").append('<img class="ieeightfallbackimage defaultimg" src="' + s + '" style="width:100%">') 1166 } 1167 i.css({opacity: 0}); 1168 i.data("li-id", n) 1169 }) 1170 }; 1171 var b = function (e, n, r, i) { 1172 var s = e, o = s.find(".defaultimg"), u = s.data("zoomstart"), f = s.data("rotationstart"); 1173 if (o.data("currotate") != t)f = o.data("currotate"); 1174 if (o.data("curscale") != t && i == "box")u = o.data("curscale") * 100; else if (o.data("curscale") != t)u = o.data("curscale"); 1175 g(o, n); 1176 var l = o.data("src"), c = o.css("backgroundColor"), h = n.width, p = n.height, d = o.data("fxof"), v = 0; 1177 if (n.autoHeight == "on")p = n.container.height(); 1178 if (d == t)d = 0; 1179 var m = 0, y = o.data("bgfit"), b = o.data("bgrepeat"), E = o.data("bgposition"); 1180 if (y == t)y = "cover"; 1181 if (b == t)b = "no-repeat"; 1182 if (E == t)E = "center center"; 1183 if (a(8)) { 1184 s.data("kenburns", "off"); 1185 var S = l; 1186 l = "" 1187 } 1188 switch (i) { 1189 case"box": 1190 var x = 0, T = 0, N = 0; 1191 if (n.sloth > n.slotw)x = n.sloth; else x = n.slotw; 1192 if (!r) { 1193 var m = 0 - x 1194 } 1195 n.slotw = x; 1196 n.sloth = x; 1197 var T = 0; 1198 var N = 0; 1199 if (s.data("kenburns") == "on") { 1200 y = u; 1201 if (y.toString().length < 4)y = K(y, s, n) 1202 } 1203 for (var C = 0; C < n.slots; C++) { 1204 N = 0; 1205 for (var k = 0; k < n.slots; k++) { 1206 s.append('<div class="slot" ' + 'style="position:absolute;' + "top:" + (v + N) + "px;" + "left:" + (d + T) + "px;" + "width:" + x + "px;" + "height:" + x + "px;" + 'overflow:hidden;">' + '<div class="slotslide" data-x="' + T + '" data-y="' + N + '" ' + 'style="position:absolute;' + "top:" + 0 + "px;" + "left:" + 0 + "px;
1206" + "width:" + x + "px;" + "height:" + x + "px;" + 'overflow:hidden;">' + '<div style="position:absolute;' + "top:" + (0 - N) + "px;" + "left:" + (0 - T) + "px;" + "width:" + h + "px;" + "height:" + p + "px;" + "background-color:" + c + ";" + "background-image:url(" + l + ");" + "background-repeat:" + b + ";" + "background-size:" + y + ";background-position:" + E + ';">' + "</div></div></div>"); 1207 N = N + x; 1208 if (a(8)) { 1209 s.find(".slot ").last().find(".slotslide").append('<img src="' + S + '">'); 1210 w(s, n) 1211 } 1212 if (u != t && f != t)punchgs.TweenLite.set(s.find(".slot").last(), {rotationZ: f}) 1213 } 1214 T = T + x 1215 } 1216 break; 1217 case"vertical": 1218 case"horizontal": 1219 if (s.data("kenburns") == "on") { 1220 y = u; 1221 if (y.toString().length < 4)y = K(y, s, n) 1222 } 1223 if (i == "horizontal") { 1224 if (!r)var m = 0 - n.slotw; 1225 for (var k = 0; k < n.slots; k++) { 1226 s.append('<div class="slot" style="position:absolute;' + "top:" + (0 + v) + "px;" + "left:" + (d + k * n.slotw) + "px;" + "overflow:hidden;width:" + (n.slotw + .6) + "px;" + "height:" + p + 'px">' + '<div class="slotslide" style="position:absolute;' + "top:0px;left:" + m + "px;" + "width:" + (n.slotw + .6) + "px;" + "height:" + p + 'px;overflow:hidden;">' + '<div style="background-color:' + c + ";" + "position:absolute;top:0px;" + "left:" + (0 - k * n.slotw) + "px;" + "width:" + h + "px;height:" + p + "px;" + "background-image:url(" + l + ");" + "background-repeat:" + b + ";" + "background-size:" + y + ";background-position:" + E + ';">' + "</div></div></div>"); 1227 if (u != t && f != t)punchgs.TweenLite.set(s.find(".slot").last(), {rotationZ: f}); 1228 if (a(8)) { 1229 s.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="' + S + '" style="width:100%;height:auto">'); 1230 w(s, n) 1231 } 1232 } 1233 } else { 1234 if (!r)var m = 0 - n.sloth; 1235 for (var k = 0; k < n.slots + 2; k++) { 1236 s.append('<div class="slot" style="position:absolute;' + "top:" + (v + k * n.sloth) + "px;" + "left:" + d + "px;" + "overflow:hidden;" + "width:" + h + "px;" + "height:" + n.sloth + 'px">' + '<div class="slotslide" style="position:absolute;' + "top:" + m + "px;" + "left:0px;width:" + h + "px;" + "height:" + n.sloth + "px;" + 'overflow:hidden;">' + '<div style="background-color:' + c + ";" + "position:absolute;" + "top:" + (0 - k * n.sloth) + "px;" + "left:0px;" + "width:" + h + "px;height:" + p + "px;" + "background-image:url(" + l + ");" + "background-repeat:" + b + ";" + "background-size:" + y + ";background-position:" + E + ';">' + "</div></div></div>"); 1237 if (u != t && f != t)punchgs.TweenLite.set(s.find(".slot").last(), {rotationZ: f}); 1238 if (a(8)) { 1239 s.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="' + S + '" style="width:100%;height:auto;">'); 1240 w(s, n) 1241 } 1242 } 1243 } 1244 break 1245 } 1246 }; 1247 var w = function (e, t) { 1248 if (a(8)) { 1249 var n = e.find(".ieeightfallbackimage"); 1250 var r = n.width(), i = n.height(); 1251 if (t.startwidth / t.startheight < e.data("owidth") / e.data("oheight"))n.css({ 1252 width: "auto", 1253 height: "100%" 1254 }); else n.css({width: "100%", height: "auto"}); 1255 setTimeout(function () { 1256 var r = n.width(), i = n.height(), s = e.data("bgposition"); 1257 if (s == "center center")n.css({ 1258 position: "absolute",
1259 top: t.height / 2 - i / 2 + "px", 1260 left: t.width / 2 - r / 2 + "px" 1261 }); 1262 if (s == "center top" || s == "top center")n.css({ 1263 position: "absolute", 1264 top: "0px", 1265 left: t.width / 2 - r / 2 + "px" 1266 }); 1267 if (s == "center bottom" || s == "bottom center")n.css({ 1268 position: "absolute", 1269 bottom: "0px", 1270 left: t.width / 2 - r / 2 + "px" 1271 }); 1272 if (s == "right top" || s == "top right")n.css({position: "absolute", top: "0px", right: "0px"}); 1273 if (s == "right bottom" || s == "bottom right")n.css({ 1274 position: "absolute", 1275 bottom: "0px", 1276 right: "0px" 1277 }); 1278 if (s == "right center" || s == "center right")n.css({ 1279 position: "absolute", 1280 top: t.height / 2 - i / 2 + "px", 1281 right: "0px" 1282 }); 1283 if (s == "left bottom" || s == "bottom left")n.css({position: "absolute", bottom: "0px", left: "0px"}); 1284 if (s == "left center" || s == "center left")n.css({ 1285 position: "absolute", 1286 top: t.height / 2 - i / 2 + "px", 1287 left: "0px" 1288 }) 1289 }, 20) 1290 } 1291 }; 1292 var E = function (t, n, r) { 1293 r.find(".slot").each(function () { 1294 e(this).remove() 1295 }); 1296 n.transition = 0 1297 }; 1298 var S = function (n, r) { 1299 n.find("img, .defaultimg").each(function (n) { 1300 var i = e(this), s = i.data("lazyload"); 1301 if (s != i.attr("src") && r < 3 && s != t && s != "undefined") { 1302 if (s != t && s != "undefined") { 1303 i.attr("src", s); 1304 var o = new Image; 1305 o.onload = function (e) { 1306 i.data("lazydone", 1); 1307 if (i.hasClass("defaultimg"))x(i, o) 1308 }; 1309 o.error = function () { 1310 i.data("lazydone", 1) 1311 }; 1312 o.src = i.attr("src"); 1313 if (o.complete) { 1314 if (i.hasClass("defaultimg"))x(i, o); 1315 i.data("lazydone", 1) 1316 } 1317 } 1318 } else { 1319 if ((s === t || s === "undefined") && i.data("lazydone") != 1) { 1320 var o = new Image; 1321 o.onload = function () { 1322 if (i.hasClass("defaultimg"))x(i, o); 1323 i.data("lazydone", 1) 1324 }; 1325 o.error = function () { 1326 i.data("lazydone", 1) 1327 }; 1328 if (i.attr("src") != t && i.attr("src") != "undefined") { 1329 o.src = i.attr("src") 1330 } else o.src = i.data("src"); 1331 if (o.complete) { 1332 if (i.hasClass("defaultimg")) { 1333 x(i, o) 1334 } 1335 i.data("lazydone", 1) 1336 } 1337 } 1338 } 1339 }) 1340 }; 1341 var x = function (e, t) { 1342 var n = e.closest("li"), r = t.width, i = t.height; 1343 n.data("owidth", r); 1344 n.data("oheight", i); 1345 n.find(".slotholder").data("owidth", r); 1346 n.find(".slotholder").data("oheight", i); 1347 n.data("loadeddone", 1) 1348 }; 1349 var T = function (n, r, i) { 1350 S(n, 0); 1351 var s = setInterval(function () { 1352 i.bannertimeronpause = true; 1353 i.container.trigger("stoptimer"); 1354 i.cd = 0; 1355 var o = 0; 1356 n.find("img, .defaultimg").each(function (t) { 1357 if (e(this).data("lazydone") != 1) { 1358 o++ 1359 } 1360 }); 1361 if (o > 0)S(n, o); else { 1362 clearInterval(s); 1363 if (r != t)r() 1364 } 1365 }, 100) 1366 }; 1367 var N = function (e, n) { 1368 try { 1369 var r = e.find(">ul:first-child >li:eq(" + n.act + ")") 1370 } catch (i) { 1371 var r = e.find(">ul:first-child >li:eq(1)") 1372 } 1373 n.lastslide = n.act; 1374 var s = e.find(">ul:first-child >li:eq(" + n.next + ")"); 1375 var o = s.find(".defaultimg"); 1376 n.bannertimeronpause = true; 1377 e.trigger("stoptimer"); 1378 n.cd = 0; 1379 if (o.data("lazyload") != t && o.data("lazyload") != "undefined" && o.data("lazydone") != 1) { 1380 if (!a(8))o.css({backgroundImage: 'url("' + s.find(".defaultimg").data("lazyload") + '")'}); else { 1381 o.attr("src", s.find(".defaultimg").data("lazyload")) 1382 } 1383 o.data("src", s.find(".defaultimg").data("lazyload")); 1384 o.data("lazydone", 0); 1385 o.data("orgw", 0); 1386 s.data("loadeddone", 1); 1387 e.find(".tp-loader").css({display: "block"}); 1388 T(e.find(".tp-static-layers"), function () { 1389 T(s, function () { 1390 var t = s.find(".slotholder"); 1391 if (t.data("kenburns") == "on") { 1392 var r = setInterval(function () { 1393 var i = t.data("owidth"); 1394 if (i >= 0) { 1395 clearInterval(r); 1396 C(n, o, e) 1397 } 1398 }, 10) 1399 } else C(n, o, e) 1400 }, n) 1401 }, n) 1402 } else { 1403 if (s.data("loadeddone") === t) { 1404 s.data("loadeddone", 1); 1405 T(s, function () { 1406 C(n, o, e) 1407 }, n) 1408 } else C(n, o, e) 1409 } 1410 }; 1411 var C = function (e, t, n) { 1412 e.bannertimeronpause = false;
1413 e.cd = 0; 1414 n.trigger("nulltimer"); 1415 n.find(".tp-loader").css({display: "none"}); 1416 g(t, e); 1417 v(n, e); 1418 g(t, e); 1419 k(n, e) 1420 }; 1421 var k = function (e, n) { 1422 e.trigger("revolution.slide.onbeforeswap"); 1423 n.transition = 1; 1424 n.videoplaying = false; 1425 try { 1426 var r = e.find(">ul:first-child >li:eq(" + n.act + ")") 1427 } catch (i) { 1428 var r = e.find(">ul:first-child >li:eq(1)") 1429 } 1430 n.lastslide = n.act; 1431 var s = e.find(">ul:first-child >li:eq(" + n.next + ")"); 1432 setTimeout(function () { 1433 m(n) 1434 }, 200); 1435 var o = r.find(".slotholder"), u = s.find(".slotholder"); 1436 if (u.data("kenburns") == "on" || o.data("kenburns") == "on") { 1437 Z(e, n); 1438 e.find(".kenburnimg").remove() 1439 } 1440 if (s.data("delay") != t) { 1441 n.cd = 0; 1442 n.delay = s.data("delay") 1443 } else { 1444 n.delay = n.origcd 1445 } 1446 if (n.firststart == 1)punchgs.TweenLite.set(r, {autoAlpha: 0}); 1447 punchgs.TweenLite.set(r, {zIndex: 18}); 1448 punchgs.TweenLite.set(s, {autoAlpha: 0, zIndex: 20}); 1449 var a = 0; 1450 if (r.index() != s.index() && n.firststart != 1) { 1451 a = z(r, n) 1452 } 1453 if (r.data("saveperformance") != "on")a = 0; 1454 setTimeout(function () { 1455 e.trigger("restarttimer"); 1456 L(e, n, s, r, o, u) 1457 }, a) 1458 }; 1459 var L = function (n, r, i, s, o, u) { 1460 function x() { 1461 e.each(d, function (e, t) { 1462 if (t[0] == h || t[8] == h) { 1463 f = t[1]; 1464 p = t[2]; 1465 g = y 1466 } 1467 y = y + 1 1468 }) 1469 } 1470 1471 if (i.data("differentissplayed") == "prepared") { 1472 i.data("differentissplayed", "done"); 1473 i.data("transition", i.data("savedtransition")); 1474 i.data("slotamount", i.data("savedslotamount")); 1475 i.data("masterspeed", i.data("savedmasterspeed")) 1476 } 1477 if (i.data("fstransition") != t && i.data("differentissplayed") != "done") { 1478 i.data("savedtransition", i.data("transition")); 1479 i.data("savedslotamount", i.data("slotamount")); 1480 i.data("savedmasterspeed", i.data("masterspeed")); 1481 i.data("transition", i.data("fstransition")); 1482 i.data("slotamount", i.data("fsslotamount")); 1483 i.data("masterspeed", i.data("fsmasterspeed")); 1484 i.data("differentissplayed", "prepared") 1485 } 1486 n.find(".active-revslide").removeClass(".active-revslide"); 1487 i.addClass("active-revslide"); 1488 if (i.data("transition") == t)i.data("transition", "random"); 1489 var f = 0, l = i.data("transition").split(","), c = i.data("nexttransid") == t ? -1 : i.data("nexttransid"); 1490 if (i.data("randomtransition") == "on")c = Math.round(Math.random() * l.length); else c = c + 1; 1491 if (c == l.length)c = 0; 1492 i.data("nexttransid", c); 1493 var h = l[c]; 1494 if (r.ie) { 1495 if (h == "boxfade")h = "boxslide"; 1496 if (h == "slotfade-vertical")h = "slotzoom-vertical"; 1497 if (h == "slotfade-horizontal")h = "slotzoom-horizontal" 1498 } 1499 if (a(8)) { 1500 h = 11 1501 } 1502 var p = 0; 1503 if (r.parallax == "scroll" && r.parallaxFirstGo == t) { 1504 r.parallaxFirstGo = true; 1505 tt(n, r); 1506 setTimeout(function () { 1507 tt(n, r) 1508 }, 210); 1509 setTimeout(function () { 1510 tt(n, r) 1511 }, 420) 1512 } 1513 if (h == "slidehorizontal") { 1514 h = "slideleft"; 1515 if (r.leftarrowpressed == 1)h = "slideright" 1516 } 1517 if (h == "slidevertical") { 1518 h = "slideup"; 1519 if (r.leftarrowpressed == 1)h = "slidedown" 1520 } 1521 if (h == "parallaxhorizontal") { 1522 h = "parallaxtoleft"; 1523 if (r.leftarrowpressed == 1)h = "parallaxtoright" 1524 } 1525 if (h == "parallaxvertical") { 1526 h = "parallaxtotop"; 1527 if (r.leftarrowpressed == 1)h = "parallaxtobottom" 1528 } 1529 var d = [["boxslide", 0, 1, 10, 0, "box", false, null, 0], ["boxfade", 1, 0, 10, 0, "box", false, null, 1], ["slotslide-horizontal", 2, 0, 0, 200, "horizontal", true, false, 2], ["slotslide-vertical", 3, 0, 0, 200, "vertical", true, false, 3], ["curtain-1", 4, 3, 0, 0, "horizontal", true, true, 4], ["curtain-2", 5, 3, 0, 0, "horizontal", true, true, 5], ["curtain-3", 6, 3, 25, 0, "horizontal", true, true, 6], ["slotzoom-horizontal", 7, 0, 0, 400, "horizontal", true, true, 7], ["slotzoom-vertical", 8, 0, 0, 0, "vertical", true, true, 8], ["slotfade-horizontal", 9, 0, 0, 500, "horizontal", true, null, 9], ["slotfade-vertical", 10, 0, 0, 500, "vertical", true, null, 10], ["fade", 11, 0, 1, 300, "horizontal", true, null, 11], ["slideleft", 12, 0, 1, 0, "horizontal", true, true, 12], ["slideup", 13, 0, 1, 0, "horizontal", true, true, 13], ["slidedown", 14, 0, 1, 0, "horizontal", true, true, 14], ["slideright", 15, 0, 1, 0, "horizontal", true, true, 15], ["papercut", 16, 0, 0, 600, "", null, null, 16], ["3dcurtain-horizontal", 17, 0, 20, 100, "vertical", false, true, 17], ["3dcurtain-vertical", 18, 0, 10, 100, "horizontal", false, true, 18], ["cubic", 19, 0, 20, 600, "horizontal", false, true, 19], ["cube", 19, 0, 20, 600, "horizontal", false, true, 20], ["flyin", 20, 0, 4, 600, "vertical", false, true, 21], ["turnoff", 21, 0, 1, 1600, "horizontal", false, true, 22], ["incube", 22, 0, 20, 200, "horizontal", false, true, 23], ["cubic-horizontal", 23, 0, 20, 500, "vertical", false, true, 24], ["cube-horizontal", 23, 0, 20, 500, "vertical", false, true, 25], ["incube-horizontal", 24, 0, 20, 500, "vertical", false, true, 26], ["turnoff-vertical", 25, 0, 1, 200, "horizontal", false, true, 27], ["fadefromright", 12, 1, 1, 0, "horizontal", true, true, 28], ["fadefromleft", 15, 1, 1, 0, "horizontal", true, true, 29], ["fadefromto
1529p", 14, 1, 1, 0, "horizontal", true, true, 30], ["fadefrombottom", 13, 1, 1, 0, "horizontal", true, true, 31], ["fadetoleftfadefromright", 12, 2, 1, 0, "horizontal", true, true, 32], ["fadetorightfadetoleft", 15, 2, 1, 0, "horizontal", true, true, 33], ["fadetobottomfadefromtop", 14, 2, 1, 0, "horizontal", true, true, 34], ["fadetotopfadefrombottom", 13, 2, 1, 0, "horizontal", true, true, 35], ["parallaxtoright", 12, 3, 1, 0, "horizontal", true, true, 36], ["parallaxtoleft", 15, 3, 1, 0, "horizontal", true, true, 37], ["parallaxtotop", 14, 3, 1, 0, "horizontal", true, true, 38], ["parallaxtobottom", 13, 3, 1, 0, "horizontal", true, true, 39], ["scaledownfromright", 12, 4, 1, 0, "horizontal", true, true, 40], ["scaledownfromleft", 15, 4, 1, 0, "horizontal", true, true, 41], ["scaledownfromtop", 14, 4, 1, 0, "horizontal", true, true, 42], ["scaledownfrombottom", 13, 4, 1, 0, "horizontal", true, true, 43], ["zoomout", 13, 5, 1, 0, "horizontal", true, true, 44], ["zoomin", 13, 6, 1, 0, "horizontal", true, true, 45], ["notransition", 26, 0, 1, 0, "horizontal", true, null, 46]]; 1530 var v = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45]; 1531 var m = [16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27]; 1532 var f = 0; 1533 var p = 1; 1534 var g = 0; 1535 var y = 0; 1536 var w = new Array; 1537 if (u.data("kenburns") == "on") { 1538 if (h == "boxslide" || h == 0 || h == "boxfade" || h == 1 || h == "papercut" || h == 16)h = 11; 1539 Q(n, r, true, true) 1540 } 1541 if (h == "random") { 1542 h = Math.round(Math.random() * d.length - 1); 1543 if (h > d.length - 1)h = d.length - 1 1544 } 1545 if (h == "random-static") { 1546 h = Math.round(Math.random() * v.length - 1); 1547 if (h > v.length - 1)h = v.length - 1; 1548 h = v[h] 1549 } 1550 if (h == "random-premium") { 1551 h = Math.round(Math.random() * m.length - 1); 1552 if (h > m.length - 1)h = m.length - 1; 1553 h = m[h] 1554 } 1555 var E = [12, 13, 14, 15, 16, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45]; 1556 if (r.isJoomla == true && window.MooTools != t && E.indexOf(h) != -1) { 1557 var S = Math.round(Math.random() * (m.length - 2)) + 1; 1558 if (S > m.length - 1)S = m.length - 1; 1559 if (S == 0)S = 1; 1560 h = m[S] 1561 } 1562 x(); 1563 if (a(8) && f > 15 && f < 28) { 1564 h = Math.round(Math.random() * v.length - 1); 1565 if (h > v.length - 1)h = v.length - 1; 1566 h = v[h]; 1567 y = 0; 1568 x() 1569 } 1570 var T = -1; 1571 if (r.leftarrowpressed == 1 || r.act > r.next)T = 1; 1572 r.leftarrowpressed = 0; 1573 if (f > 26)f = 26; 1574 if (f < 0)f = 0; 1575 var N = 300; 1576 if (i.data("masterspeed") != t && i.data("masterspeed") > 99 && i.data("masterspeed") < r.delay)N = i.data("masterspeed"); 1577 if (i.data("masterspeed") != t && i.data("masterspeed") > r.delay)N = r.delay; 1578 w = d[g]; 1579 n.parent().find(".bullet").each(function () { 1580 var t = e(this), n = t.index(); 1581 t.removeClass("selected"); 1582 if (r.navigationArrows == "withbullet" || r.navigationArrows == "nexttobullets")n = t.index() - 1; 1583 if (n == r.next)t.addClass("selected") 1584 }); 1585 var C = new punchgs.TimelineLite({ 1586 onComplete: function () { 1587 A(n, r, u, o, i, s, C) 1588 } 1589 }); 1590 C.add(punchgs.TweenLite.set(u.find(".defaultimg"), {opacity: 0})); 1591 C.pause(); 1592 if (i.data("slotamount") == t || i.data("slotamount") < 1) { 1593 r.slots = Math.round(Math.random() * 12 + 4); 1594 if (h == "boxslide")r.slots = Math.round(Math.random() * 6 + 3); else if (h == "flyin")r.slots = Math.round(Math.random() * 4 + 1) 1595 } else { 1596 r.slots = i.data("slotamount") 1597 } 1598 if (i.data("rotate") == t)r.rotate = 0; else if (i.data("rotate") == 999)r.rotate = Math.round(Math.random() * 360); else r.rotate = i.data("rotate"); 1599 if (!e.support.transition || r.ie || r.ie9)r.rotate = 0; 1600 if (r.firststart == 1)r.firststart = 0; 1601 N = N + w[4]; 1602 if ((f == 4 || f == 5 || f == 6) && r.slots < 3)r.slots = 3; 1603 if (w[3] != 0)r.slots = Math.min(r.slots, w[3]); 1604 if (f == 9)r.slots = r.width / 20; 1605 if (f == 10)r.slots = r.height / 20; 1606 if (w[7] != null)b(o, r, w[7], w[5]); 1607 if (w[6] != null)b(u, r, w[6], w[5]); 1608 if (f == 0) { 1609 var k = Math.ceil(r.height / r.sloth); 1610 var L = 0; 1611 u.find(".slotslide").each(function (t) { 1612 var n = e(this); 1613 L = L + 1; 1614 if (L == k)L = 0; 1615 C.add(punchgs.TweenLite.from(n, N / 600, { 1616 opacity: 0, 1617 top: 0 - r.sloth, 1618 left: 0 - r.slotw, 1619 rotation: r.rotate, 1620 force3D: "auto", 1621 ease: punchgs.Power2.easeOut 1622 }), (t * 15 + L * 30) / 1500) 1623 }) 1624 } 1625 if (f == 1) { 1626 var O, M = 0; 1627 u.find(".slotslide").each(function (t) { 1628 var n = e(this), i = Math.random() * N + 300, s = Math.random() * 500 + 200; 1629 if (i + s > O) { 1630 O = s + s; 1631 M = t 1632 } 1633 C.add(punchgs.TweenLite.from(n, i / 1e3, { 1634 autoAlpha: 0, 1635 force3D: "auto", 1636 rotation: r.rotate, 1637 ease: punchgs.Power2.easeInOut 1638 }), s / 1e3) 1639 }) 1640 } 1641 if (f == 2) { 1642 var _ = new punchgs.TimelineLite; 1643 o.find(".slotslide").each(function () { 1644 var t = e(this); 1645 _.add(punchgs.TweenLite.to(t, N / 1e3, {left: r.slotw, force3D: "auto", rotation: 0 - r.rotate}), 0); 1646 C.add(_, 0) 1647 }); 1648 u.find(".slotslide").each(function () { 1649 var t = e(this); 1650 _.add(punchgs.TweenLite.from(t, N / 1e3, {left: 0 - r.slotw, force3D: "auto", rotation: r.rotate}), 0); 1651 C.add(_, 0) 1652 }) 1653 } 1654 if (f == 3) { 1655 var _ = new punchgs.TimelineLite; 1656 o.find(".slotslide").each(function () { 1657 var t = e(this); 1658 _.add(punchgs.TweenLite.to(t, N / 1e3, { 1659 top: r.sloth, 1660 rotation: r.rotate, 1661 force3D: "auto", 1662 transformPerspective: 600 1663 }), 0); 1664 C.add(_, 0) 1665 }); 1666 u.find(".slotslide").each(function () { 1667 var t = e(this); 1668 _.add(punchgs.TweenLite.from(t, N / 1e3, { 1669 top: 0 - r.sloth, 1670 rotation: r.rotate, 1671 ease: punchgs.Power2.easeOut, 1672 force3D: "auto", 1673 transformPerspective: 600 1674 }), 0); 1675 C.add(_, 0) 1676 }) 1677 } 1678 if (f == 4 || f == 5) { 1679 setTimeout(function () { 1680 o.find(".defaultimg").css({opacity: 0}) 1681 }, 100); 1682 var D = N / 1e3, P = D, _ = new punchgs.TimelineLite; 1683 o.find(".slotslide").each(function (t) { 1684 var n = e(this); 1685 var i = t * D / r.slots; 1686 if (f == 5)i = (r.slots - t - 1) * D / r.slots / 1.5; 1687 _.add(punchgs.TweenLite.to(n, D * 3, { 1688 transformPerspective: 600, 1689 force3D: "auto", 1690 top: 0 + r.height, 1691 opacity: .5, 1692 rotation: r.rotate, 1693 ease: punchgs.Power2.easeInOut, 1694 delay: i 1695 }), 0); 1696 C.add(_, 0) 1697 }); 1698 u.find(".slotslide").each(function (t) { 1699 var n = e(this); 1700 var i = t * D / r.slots; 1701 if (f == 5)i = (r.slots - t - 1) * D / r.slots / 1.5; 1702 _.add(punchgs.TweenLite.from(n, D * 3, { 1703 top: 0 - r.height, 1704 opacity: .5, 1705 rotation: r.rotate, 1706 force3D: "auto", 1707 ease: punchgs.Power2.easeInOut, 1708 delay: i 1709 }), 0); 1710 C.add(_, 0) 1711 }) 1712 } 1713 if (f == 6) { 1714 if (r.slots < 2)r.slots = 2; 1715 if (r.slots % 2)r.slots = r.slots + 1; 1716 var _ = new punchgs.TimelineLite; 1717 setTimeout(function () { 1718 o.find(".defaultimg").css({opacity: 0}) 1719 }, 100); 1720 o.find(".slotslide").each(function (t) { 1721 var n = e(this); 1722 if (t + 1 < r.slots / 2)var i = (t + 2) * 90; else var i = (2 + r.slots - t) * 90; 1723 _.add(punchgs.TweenLite.to(n, (N + i) / 1e3, { 1724 top: 0 + r.height, 1725 opacity: 1, 1726 force3D: "auto", 1727 rotation: r.rotate, 1728 ease: punchgs.Power2.easeInOut 1729 }), 0); 1730 C.add(_, 0) 1731 }); 1732 u.find(".slotslide").each(function (t) { 1733 var n = e(this); 1734 if (t + 1 < r.slots / 2)var i = (t + 2) * 90; else var i = (2 + r.slots - t) * 90; 1735 _.add(punchgs.TweenLite.from(n, (N + i) / 1e3, { 1736 top: 0 - r.height, 1737 opacity: 1, 1738 force3D: "auto", 1739 rotation: r.rotate, 1740 ease: punchgs.Power2.easeInOut 1741 }), 0); 1742 C.add(_, 0) 1743 }) 1744 } 1745 if (f == 7) { 1746 N = N * 2; 1747 if (N > r.delay)N = r.delay; 1748 var _ = new punchgs.TimelineLite; 1749 setTimeout(function () { 1750 o.find(".defaultimg").css({opacity: 0}) 1751 }, 100); 1752 o.find(".slotslide").each(function () { 1753 var t = e(this).find("div"); 1754 _.add(punchgs.TweenLite.to(t, N / 1e3, { 1755 left: 0 - r.slotw / 2 + "px", 1756 top: 0 - r.height / 2 + "px", 1757 width: r.slotw * 2 + "px", 1758 height: r.height * 2 + "px", 1759 opacity: 0, 1760 rotation: r.rotate, 1761 force3D: "auto", 1762 ease: punchgs.Power2.easeOut 1763 }), 0); 1764 C.add(_, 0) 1765 }); 1766 u.find(".slotslide").each(function (t) { 1767 var n = e(this).find("div"); 1768 _.add(punchgs.TweenLite.fromTo(n, N / 1e3, { 1769 left: 0, 1770 top: 0, 1771 opacity: 0, 1772 transformPerspective: 600 1773 }, { 1774 left: 0 - t * r.slotw + "px", 1775 ease: punchgs.Power2.easeOut, 1776 force3D: "auto", 1777 top: 0 + "px", 1778 width: r.width, 1779 height: r.height, 1780 opacity: 1, 1781 rotation: 0, 1782 delay: .1 1783 }), 0); 1784 C.add(_, 0) 1785 }) 1786 } 1787 if (f == 8) { 1788 N = N * 3; 1789 if (N > r.delay)N = r.delay; 1790 var _ = new punchgs.TimelineLite; 1791 o.find(".slotslide").each(function () { 1792 var t = e(this).find("div"); 1793 _.add(punchgs.TweenLite.to(t, N / 1e3, { 1794 left: 0 - r.width / 2 + "px", 1795 top: 0 - r.sloth / 2 + "px", 1796 width: r.width * 2 + "px", 1797 height: r.sloth * 2 + "px", 1798 force3D: "auto", 1799 opacity: 0, 1800 rotation: r.rotate 1801 }), 0); 1802 C.add(_, 0) 1803 }); 1804 u.find(".slotslide").each(function (t) { 1805 var n = e(this).find("div"); 1806 _.add(punchgs.TweenLite.fromTo(n, N / 1e3, { 1807 left: 0, 1808 top: 0, 1809 opacity: 0, 1810 force3D: "auto" 1811 }, { 1812 left: 0 + "px", 1813 top: 0 - t * r.sloth + "px", 1814 width: u.find(".defaultimg").data("neww") + "px", 1815 height: u.find(".defaultimg").data("newh") + "px", 1816 opacity: 1, 1817 rotation: 0 1818 }), 0); 1819 C.add(_, 0) 1820 }) 1821 } 1822 if (f == 9 || f == 10) { 1823 var H = 0; 1824 u.find(".slotslide").each(function (t) { 1825 var n = e(this); 1826 H++; 1827 C.add(punchgs.TweenLite.fromTo(n, N / 1e3, { 1828 autoAlpha: 0, 1829 force3D: "auto", 1830 transformPerspective: 600 1831 }, {autoAlpha: 1, ease: punchgs.Power2.easeInOut, delay: t * 5 / 1e3}), 0) 1832 }) 1833 } 1834 if (f == 11 || f == 26) { 1835 var H = 0; 1836 if (f == 26)N = 0; 1837 u.find(".slotslide").each(function (t) { 1838 var n = e(this); 1839 C.add(punchgs.TweenLite.from(n, N / 1e3, { 1840 autoAlpha: 0, 1841 force3D: "auto", 1842 ease: punchgs.Power2.easeInOut 1843 }), 0) 1844 }) 1845 } 1846 if (f == 12 || f == 13 || f == 14 || f == 15) { 1847 N = N; 1848 if (N > r.delay)N = r.delay; 1849 setTimeout(function () { 1850 punchgs.TweenLite.set(o.find(".defaultimg"), {autoAlpha: 0}) 1851 }, 100); 1852 var B = r.width, F = r.height, I = u.find(".slotslide"), q = 0, R = 0, U = 1, z = 1, W = 1, X = punchgs.Power2.easeInOut, V = punchgs.Power2.easeInOut, $ = N / 1e3, J = $; 1853 if (r.fullWidth == "on" || r.fullScreen == "on") { 1854 B = I.width(); 1855 F = I.height() 1856 } 1857 if (f == 12)q = B; else if (f == 15)q = 0 - B; else if (f == 13)R = F; else if (f == 14)R = 0 - F; 1858 if (p == 1)U = 0; 1859 if (p == 2)U = 0; 1860 if (p == 3) { 1861 X = punchgs.Power2.easeInOut; 1862 V = punchgs.Power1.easeInOut; 1863 $ = N / 1200 1864 } 1865 if (p == 4 || p == 5)z = .6; 1866 if (p == 6)z = 1.4; 1867 if (p == 5 || p == 6) { 1868 W = 1.4; 1869 U = 0; 1870 B = 0; 1871 F = 0; 1872 q = 0; 1873 R = 0 1874 } 1875 if (p == 6)W = .6; 1876 var K = 0; 1877 C.add(punchgs.TweenLite.from(I, $, { 1878 left: q, 1879 top: R, 1880 scale: W, 1881 opacity: U, 1882 rotation: r.rotate, 1883 ease: V, 1884 force3D: "auto" 1885 }), 0); 1886 var G = o.find(".slotslide"); 1887 if (p == 4 || p == 5) { 1888 B = 0; 1889 F = 0 1890 } 1891 if (p != 1)switch (f) { 1892 case 12: 1893 C.add(punchgs.TweenLite.to(G, J, { 1894 left: 0 - B + "px", 1895 force3D: "auto", 1896 scale: z, 1897 opacity: U, 1898 rotation: r.rotate, 1899 ease: X 1900 }), 0); 1901 break; 1902 case 15: 1903 C.add(punchgs.TweenLite.to(G, J, { 1904 left: B + "px", 1905 force3D: "auto", 1906 scale: z, 1907 opacity: U, 1908 rotation: r.rotate, 1909 ease: X 1910 }), 0); 1911 break; 1912 case 13: 1913 C.add(punchgs.TweenLite.to(G, J, { 1914 top: 0 - F + "px", 1915 force3D: "auto", 1916 scale: z, 1917 opacity: U, 1918 rotation: r.rotate, 1919 ease: X 1920 }), 0)
1920; 1921 break; 1922 case 14: 1923 C.add(punchgs.TweenLite.to(G, J, { 1924 top: F + "px", 1925 force3D: "auto", 1926 scale: z, 1927 opacity: U, 1928 rotation: r.rotate, 1929 ease: X 1930 }), 0); 1931 break 1932 } 1933 } 1934 if (f == 16) { 1935 var _ = new punchgs.TimelineLite; 1936 C.add(punchgs.TweenLite.set(s, {position: "absolute", "z-index": 20}), 0); 1937 C.add(punchgs.TweenLite.set(i, {position: "absolute", "z-index": 15}), 0); 1938 s.wrapInner('<div class="tp-half-one" style="position:relative; width:100%;height:100%"></div>'); 1939 s.find(".tp-half-one").clone(true).appendTo(s).addClass("tp-half-two"); 1940 s.find(".tp-half-two").removeClass("tp-half-one"); 1941 var B = r.width, F = r.height; 1942 if (r.autoHeight == "on")F = n.height(); 1943 s.find(".tp-half-one .defaultimg").wrap('<div class="tp-papercut" style="width:' + B + "px;height:" + F + 'px;"></div>'); 1944 s.find(".tp-half-two .defaultimg").wrap('<div class="tp-papercut" style="width:' + B + "px;height:" + F + 'px;"></div>'); 1945 s.find(".tp-half-two .defaultimg").css({position: "absolute", top: "-50%"}); 1946 s.find(".tp-half-two .tp-caption").wrapAll('<div style="position:absolute;top:-50%;left:0px;"></div>'); 1947 C.add(punchgs.TweenLite.set(s.find(".tp-half-two"), { 1948 width: B, 1949 height: F, 1950 overflow: "hidden", 1951 zIndex: 15, 1952 position: "absolute", 1953 top: F / 2, 1954 left: "0px", 1955 transformPerspective: 600, 1956 transformOrigin: "center bottom" 1957 }), 0); 1958 C.add(punchgs.TweenLite.set(s.find(".tp-half-one"), { 1959 width: B, 1960 height: F / 2, 1961 overflow: "visible", 1962 zIndex: 10, 1963 position: "absolute", 1964 top: "0px", 1965 left: "0px", 1966 transformPerspective: 600, 1967 transformOrigin: "center top" 1968 }), 0); 1969 var Y = s.find(".defaultimg"), Z = Math.round(Math.random() * 20 - 10), et = Math.round(Math.random() * 20 - 10), nt = Math.round(Math.random() * 20 - 10), rt = Math.random() * .4 - .2, it = Math.random() * .4 - .2, st = Math.random() * 1 + 1, ot = Math.random() * 1 + 1, ut = Math.random() * .3 + .3; 1970 C.add(punchgs.TweenLite.set(s.find(".tp-half-one"), {overflow: "hidden"}), 0); 1971 C.add(punchgs.TweenLite.fromTo(s.find(".tp-half-one"), N / 800, { 1972 width: B, 1973 height: F / 2, 1974 position: "absolute", 1975 top: "0px", 1976 left: "0px", 1977 force3D: "auto", 1978 transformOrigin: "center top" 1979 }, {scale: st, rotation: Z, y: 0 - F - F / 4, autoAlpha: 0, ease: punchgs.Power2.easeInOut}), 0); 1980 C.add(punchgs.TweenLite.fromTo(s.find(".tp-half-two"), N / 800, { 1981 width: B, 1982 height: F, 1983 overflow: "hidden", 1984 position: "absolute", 1985 top: F / 2, 1986 left: "0px", 1987 force3D: "auto", 1988 transformOrigin: "center bottom" 1989 }, { 1990 scale: ot, 1991 rotation: et, 1992 y: F + F / 4, 1993 ease: punchgs.Power2.easeInOut, 1994 autoAlpha: 0, 1995 onComplete: function () { 1996 punchgs.TweenLite.set(s, {position: "absolute", "z-index": 15}); 1997 punchgs.TweenLite.set(i, {position: "absolute", "z-index": 20}); 1998 if (s.find(".tp-half-one").length > 0) { 1999 s.find(".tp-half-one .defaultimg").unwrap(); 2000 s.find(".tp-half-one .slotholder").unwrap() 2001 } 2002 s.find(".tp-half-two").remove() 2003 } 2004 }), 0); 2005 _.add(punchgs.TweenLite.set(u.find(".defaultimg"), {autoAlpha: 1}), 0); 2006 if (s.html() != null)C.add(punchgs.TweenLite.fromTo(i, (N - 200) / 1e3, { 2007 scale: ut, 2008 x: r.width / 4 * rt, 2009 y: F / 4 * it, 2010 rotation: nt, 2011 force3D: "auto", 2012 transformOrigin: "center center", 2013 ease: punchgs.Power2.easeOut 2014 }, {autoAlpha: 1, scale: 1, x: 0, y: 0, rotation: 0}), 0); 2015 C.add(_, 0) 2016 } 2017 if (f == 17) { 2018 u.find(".slotslide").each(function (t) { 2019 var n = e(this); 2020 C.add(punchgs.TweenLite.fromTo(n, N / 800, { 2021 opacity: 0, 2022 rotationY: 0, 2023 scale: .9, 2024 rotationX: -110, 2025 force3D: "auto", 2026 transformPerspective: 600, 2027 transformOrigin: "center center" 2028 }, { 2029 opacity: 1, 2030 top: 0, 2031 left: 0, 2032 scale: 1, 2033 rotation: 0, 2034 rotationX: 0, 2035 force3D: "auto", 2036 rotationY: 0, 2037 ease: punchgs.Power3.easeOut, 2038 delay: t * .06 2039 }), 0) 2040 }) 2041 } 2042 if (f == 18) { 2043 u.find(".slotslide").each(function (t) { 2044 var n = e(this); 2045 C.add(punchgs.TweenLite.fromTo(n, N / 500, { 2046 autoAlpha: 0, 2047 rotationY: 310, 2048 scale: .9, 2049 rotationX: 10, 2050 force3D: "auto", 2051 transformPerspective: 600, 2052 transformOrigin: "center center" 2053 }, { 2054 autoAlpha: 1, 2055 top: 0, 2056 left: 0, 2057 scale: 1, 2058 rotation: 0, 2059 rotationX: 0, 2060 force3D: "auto", 2061 rotationY: 0, 2062 ease: punchgs.Power3.easeOut, 2063 delay: t * .06 2064 }), 0) 2065 }) 2066 } 2067 if (f == 19 || f == 22) { 2068 var _ = new punchgs.TimelineLite; 2069 C.add(punchgs.TweenLite.set(s, {zIndex: 20}), 0); 2070 C.add(punchgs.TweenLite.set(i, {zIndex: 20}), 0); 2071 setTimeout(function () { 2072 o.find(".defaultimg").css({opacity: 0}) 2073 }, 100); 2074 var at = i.css("z-index"), ft = s.css("z-index"), lt = 90, U = 1, ct = "center center "; 2075 if (T == 1)lt = -90; 2076 if (f == 19) { 2077 ct = ct + "-" + r.height / 2; 2078 U = 0 2079 } else { 2080 ct = ct + r.height / 2 2081 } 2082 punchgs.TweenLite.set(n, {transformStyle: "flat", backfaceVisibility: "hidden", transformPerspective: 600}); 2083 u.find(".slotslide").each(function (t) { 2084 var n = e(this); 2085 _.add(punchgs.TweenLite.fromTo(n, N / 1e3, { 2086 transformStyle: "flat", 2087 backfaceVisibility: "hidden", 2088 left: 0, 2089 rotationY: r.rotate, 2090 z: 10, 2091 top: 0, 2092 scale: 1, 2093 force3D: "auto", 2094 transformPerspective: 600, 2095 transformOrigin: ct, 2096 rotationX: lt 2097 }, { 2098 left: 0, 2099 rotationY: 0, 2100 top: 0, 2101 z: 0, 2102 scale: 1, 2103 force3D: "auto", 2104 rotationX: 0, 2105 delay: t * 50 / 1e3, 2106 ease: punchgs.Power2.easeInOut 2107 }), 0); 2108 _.add(punchgs.TweenLite.to(n, .1, {autoAlpha: 1, delay: t * 50 / 1e3}), 0); 2109 C.add(_) 2110 }); 2111 o.find(".slotslide").each(function (t) { 2112 var n = e(this); 2113 var i = -90; 2114 if (T == 1)i = 90; 2115 _.add(punchgs.TweenLite.fromTo(n, N / 1e3, { 2116 transformStyle: "flat", 2117 backfaceVisibility: "hidden", 2118 autoAlpha: 1, 2119 rotationY: 0, 2120 top: 0, 2121 z: 0, 2122 scale: 1, 2123 force3D: "auto", 2124 transformPerspective: 600, 2125 transformOrigin: ct, 2126 rotationX: 0 2127 }, { 2128 autoAlpha: 1, 2129 rotationY: r.rotate, 2130 top: 0, 2131 z: 10, 2132 scale: 1, 2133 rotationX: i, 2134 delay: t * 50 / 1e3, 2135 force3D: "auto", 2136 ease: punchgs.Power2.easeInOut 2137 }), 0); 2138 C.add(_) 2139 }) 2140 } 2141 if (f == 20) { 2142 setTimeout(function () { 2143 o.find(".defaultimg").css({opacity: 0}) 2144 }, 100); 2145 var at = i.css("z-index"), ft = s.css("z-index"); 2146 if (T == 1) { 2147 var ht = -r.width; 2148 var lt = 70; 2149 var ct = "left center -" + r.height / 2 2150 } else { 2151 var ht = r.width; 2152 var lt = -70; 2153 var ct = "right center -" + r.height / 2 2154 } 2155 u.find(".slotslide").each(function (t) { 2156 var n = e(this); 2157 C.add(punchgs.TweenLite.fromTo(n, N / 1500, { 2158 left: ht, 2159 rotationX: 40,
2160 z: -600, 2161 opacity: U, 2162 top: 0, 2163 force3D: "auto", 2164 transformPerspective: 600, 2165 transformOrigin: ct, 2166 rotationY: lt 2167 }, {left: 0, delay: t * 50 / 1e3, ease: punchgs.Power2.easeInOut}), 0); 2168 C.add(punchgs.TweenLite.fromTo(n, N / 1e3, { 2169 rotationX: 40, 2170 z: -600, 2171 opacity: U, 2172 top: 0, 2173 scale: 1, 2174 force3D: "auto", 2175 transformPerspective: 600, 2176 transformOrigin: ct, 2177 rotationY: lt 2178 }, { 2179 rotationX: 0, 2180 opacity: 1, 2181 top: 0, 2182 z: 0, 2183 scale: 1, 2184 rotationY: 0, 2185 delay: t * 50 / 1e3, 2186 ease: punchgs.Power2.easeInOut 2187 }), 0); 2188 C.add(punchgs.TweenLite.to(n, .1, {opacity: 1, force3D: "auto", delay: t * 50 / 1e3 + N / 2e3}), 0) 2189 }); 2190 o.find(".slotslide").each(function (t) { 2191 var n = e(this); 2192 if (T != 1) { 2193 var i = -r.width; 2194 var s = 70; 2195 var o = "left center -" + r.height / 2 2196 } else { 2197 var i = r.width; 2198 var s = -70; 2199 var o = "right center -" + r.height / 2 2200 } 2201 C.add(punchgs.TweenLite.fromTo(n, N / 1e3, { 2202 opacity: 1, 2203 rotationX: 0, 2204 top: 0, 2205 z: 0, 2206 scale: 1, 2207 left: 0, 2208 force3D: "auto", 2209 transformPerspective: 600, 2210 transformOrigin: o, 2211 rotationY: 0 2212 }, { 2213 opacity: 1, 2214 rotationX: 40, 2215 top: 0, 2216 z: -600, 2217 left: i, 2218 force3D: "auto", 2219 scale: .8, 2220 rotationY: s, 2221 delay: t * 50 / 1e3, 2222 ease: punchgs.Power2.easeInOut 2223 }), 0); 2224 C.add(punchgs.TweenLite.to(n, .1, { 2225 force3D: "auto", 2226 opacity: 0, 2227 delay: t * 50 / 1e3 + (N / 1e3 - N / 1e4) 2228 }), 0) 2229 }) 2230 } 2231 if (f == 21 || f == 25) { 2232 setTimeout(function () { 2233 o.find(".defaultimg").css({opacity: 0}) 2234 }, 100); 2235 var at = i.css("z-index"), ft = s.css("z-index"), lt = 90, ht = -r.width, pt = -lt; 2236 if (T == 1) { 2237 if (f == 25) { 2238 var ct = "center top 0"; 2239 lt = r.rotate 2240 } else { 2241 var ct = "left center 0"; 2242 pt = r.rotate 2243 } 2244 } else { 2245 ht = r.width; 2246 lt = -90; 2247 if (f == 25) { 2248 var ct = "center bottom 0"; 2249 pt = -lt; 2250 lt = r.rotate 2251 } else { 2252 var ct = "right center 0"; 2253 pt = r.rotate 2254 } 2255 } 2256 u.find(".slotslide").each(function (t) { 2257 var n = e(this); 2258 C.add(punchgs.TweenLite.fromTo(n, N / 1e3, { 2259 left: 0, 2260 transformStyle: "flat", 2261 rotationX: pt, 2262 z: 0, 2263 autoAlpha: 0, 2264 top: 0, 2265 scale: 1, 2266 force3D: "auto", 2267 transformPerspective: 600, 2268 transformOrigin: ct, 2269 rotationY: lt 2270 }, { 2271 left: 0, 2272 rotationX: 0, 2273 top: 0, 2274 z: 0, 2275 autoAlpha: 1, 2276 scale: 1, 2277 rotationY: 0, 2278 force3D: "auto", 2279 ease: punchgs.Power3.easeInOut 2280 }), 0) 2281 }); 2282 if (T != 1) { 2283 ht = -r.width; 2284 lt = 90; 2285 if (f == 25) { 2286 ct = "center top 0"; 2287 pt = -lt; 2288 lt = r.rotate 2289 } else { 2290 ct = "left center 0"; 2291 pt = r.rotate 2292 } 2293 } else { 2294 ht = r.width; 2295 lt = -90; 2296 if (f == 25) { 2297 ct = "center bottom 0"; 2298 pt = -lt; 2299 lt = r.rotate 2300 } else { 2301 ct = "right center 0"; 2302 pt = r.rotate 2303 } 2304 } 2305 o.find(".slotslide").each(function (t) { 2306 var n = e(this); 2307 C.add(punchgs.TweenLite.fromTo(n, N / 1e3, { 2308 left: 0, 2309 transformStyle: "flat", 2310 rotationX: 0, 2311 z: 0, 2312 autoAlpha: 1, 2313 top: 0, 2314 scale: 1, 2315 force3D: "auto", 2316 transformPerspective: 600, 2317 transformOrigin: ct, 2318 rotationY: 0 2319 }, { 2320 left: 0, 2321 rotationX: pt, 2322 top: 0, 2323 z: 0, 2324 autoAlpha: 1, 2325 force3D: "auto", 2326 scale: 1, 2327 rotationY: lt, 2328 ease: punchgs.Power1.easeInOut 2329 }), 0) 2330 }) 2331 } 2332 if (f == 23 || f == 24) { 2333 setTimeout(function () { 2334 o.find(".defaultimg").css({opacity: 0}) 2335 }, 100); 2336 var at = i.css("z-index"), ft = s.css("z-index"), lt = -90, U = 1, dt = 0; 2337 if (T == 1)lt = 90; 2338 if (f == 23) { 2339 var ct = "center center -" + r.width / 2; 2340 U = 0 2341 } else var ct = "center center " + r.width / 2; 2342 punchgs.TweenLite.set(n, {transformStyle: "preserve-3d", backfaceVisibility: "hidden", perspective: 2500}); 2343 u.find(".slotslide").each(function (t) { 2344 var n = e(this); 2345 C.add(punchgs.TweenLite.fromTo(n, N / 1e3, { 2346 left: dt, 2347 rotationX: r.rotate, 2348 force3D: "auto", 2349 opacity: U, 2350 top: 0, 2351 scale: 1, 2352 transformPerspective: 600, 2353 transformOrigin: ct, 2354 rotationY: lt 2355 }, { 2356 left: 0, 2357 rotationX: 0, 2358 autoAlpha: 1, 2359 top: 0, 2360 z: 0, 2361 scale: 1, 2362 rotationY: 0, 2363 delay: t * 50 / 500, 2364 ease: punchgs.Power2.easeInOut 2365 }), 0) 2366 }); 2367 lt = 90; 2368 if (T == 1)lt = -90; 2369 o.find(".slotslide").each(function (t) { 2370 var n = e(this); 2371 C.add(punchgs.TweenLite.fromTo(n, N / 1e3, { 2372 left: 0, 2373 autoAlpha: 1, 2374 rotationX: 0, 2375 top: 0, 2376 z: 0, 2377 scale: 1, 2378 force3D: "auto", 2379 transformPerspective: 600, 2380 transformOrigin: ct, 2381 rotationY: 0 2382 }, { 2383 left: dt, 2384 autoAlpha: 1, 2385 rotationX: r.rotate, 2386 top: 0, 2387 scale: 1, 2388 rotationY: lt, 2389 delay: t * 50 / 500, 2390 ease: punchgs.Power2.easeInOut 2391 }), 0) 2392 }) 2393 } 2394 C.pause(); 2395 j(i, r, null, C); 2396 punchgs.TweenLite.to(i, .001, {autoAlpha: 1}); 2397 var vt = {}; 2398 vt.slideIndex = r.next + 1; 2399 vt.slide = i; 2400 n.trigger("revolution.slide.onchange", vt); 2401 setTimeout(function () { 2402 n.trigger("revolution.slide.onafterswap") 2403 }, N); 2404 n.trigger("revolution.slide.onvideostop") 2405 }; 2406 var A = function (e, t, n, r, i, s, o) { 2407 punchgs.TweenLite.to(n.find(".defaultimg"), .001, { 2408 autoAlpha: 1, onComplete: function () { 2409 E(e, t, i) 2410 } 2411 }); 2412 if (i.index() != s.index()) { 2413 punchgs.TweenLite.to(s, .2, { 2414 autoAlpha: 0, onComplete: function () { 2415 E(e, t, s) 2416 } 2417 }) 2418 } 2419 t.act = t.next; 2420 if (t.navigationType == "thumb")rt(e); 2421 if (n.data("kenburns") == "on") { 2422 Q(e, t) 2423 } 2424 e.find(".current-sr-slide-visible").removeClass("current-sr-slide-visible"); 2425 i.addClass("current-sr-slide-visible"); 2426 if (t.parallax == "scroll" || t.parallax == "scroll+mouse" || t.parallax == "mouse+scroll") { 2427 tt(e, t) 2428 } 2429 o.clear() 2430 }; 2431 var O = function (t) { 2432 var n = t.target.getVideoEmbedCode(); 2433 var r = e("#" + n.split('id="')[1].split('"')[0]); 2434 var i = r.closest(".tp-simpleresponsive"); 2435 var s = r.parent().data("player"); 2436 if (t.data == YT.PlayerState.PLAYING) { 2437 var o = i.find(".tp-bannertimer"); 2438 var u = o.data("opt"); 2439 if (r.closest(".tp-caption").data("volume") == "mute")s.mute(); 2440 u.videoplaying = true; 2441 i.trigger("stoptimer"); 2442 i.trigger("revolution.slide.onvideoplay") 2443 } else { 2444 var o = i.find(".tp-bannertimer"); 2445 var u = o.data("opt"); 2446 if (t.data != -1 && t.data != 3) { 2447 u.videoplaying = false;
2448 i.trigger("starttimer"); 2449 i.trigger("revolution.slide.onvideostop") 2450 } 2451 if (t.data == 0 && u.nextslideatend == true)u.container.revnext(); else { 2452 u.videoplaying = false; 2453 i.trigger("starttimer"); 2454 i.trigger("revolution.slide.onvideostop") 2455 } 2456 } 2457 }; 2458 var M = function (e, t, n) { 2459 if (e.addEventListener)e.addEventListener(t, n, false); else e.attachEvent(t, n, false) 2460 }; 2461 var _ = function (t, n) { 2462 var r = $f(t), i = e("#" + t), s = i.closest(".tp-simpleresponsive"), o = i.closest(".tp-caption"); 2463 setTimeout(function () { 2464 r.addEvent("ready", function (t) { 2465 if (n)r.api("play"); 2466 r.addEvent("play", function (e) { 2467 var t = s.find(".tp-bannertimer"); 2468 var n = t.data("opt"); 2469 n.videoplaying = true; 2470 s.trigger("stoptimer"); 2471 if (o.data("volume") == "mute")r.api("setVolume", "0") 2472 }); 2473 r.addEvent("finish", function (e) { 2474 var t = s.find(".tp-bannertimer"); 2475 var n = t.data("opt"); 2476 n.videoplaying = false; 2477 s.trigger("starttimer"); 2478 s.trigger("revolution.slide.onvideoplay"); 2479 if (n.nextslideatend == true)n.container.revnext() 2480 }); 2481 r.addEvent("pause", function (e) { 2482 var t = s.find(".tp-bannertimer"); 2483 var n = t.data("opt"); 2484 n.videoplaying = false; 2485 s.trigger("starttimer"); 2486 s.trigger("revolution.slide.onvideostop") 2487 }); 2488 o.find(".tp-thumb-image").click(function () { 2489 punchgs.TweenLite.to(e(this), .3, {autoAlpha: 0, force3D: "auto", ease: punchgs.Power3.easeInOut}); 2490 r.api("play") 2491 }) 2492 }) 2493 }, 150) 2494 }; 2495 var D = function (e, n) { 2496 var r = n.width(); 2497 var i = n.height(); 2498 var s = e.data("mediaAspect"); 2499 if (s == t)s = 1; 2500 var o = r / i; 2501 e.css({position: "absolute"}); 2502 var u = e.find("video"); 2503 if (o < s) { 2504 punchgs.TweenLite.to(e, 1e-4, {width: i * s, force3D: "auto", top: 0, left: 0 - (i * s - r) / 2, height: i}) 2505 } else { 2506 punchgs.TweenLite.to(e, 1e-4, {width: r, force3D: "auto", top: 0 - (r / s - i) / 2, left: 0, height: r / s}) 2507 } 2508 }; 2509 var P = function () { 2510 var e = new Object; 2511 e.x = 0; 2512 e.y = 0; 2513 e.rotationX = 0; 2514 e.rotationY = 0; 2515 e.rotationZ = 0; 2516 e.scale = 1; 2517 e.scaleX = 1; 2518 e.scaleY = 1; 2519 e.skewX = 0; 2520 e.skewY = 0; 2521 e.opacity = 0; 2522 e.transformOrigin = "center, center"; 2523 e.transformPerspective = 400; 2524 e.rotation = 0; 2525 return e 2526 }; 2527 var H = function (t, n) { 2528 var r = n.split(";"); 2529 e.each(r, function (e, n) { 2530 n = n.split(":"); 2531 var r = n[0], i = n[1]; 2532 if (r == "rotationX")t.rotationX = parseInt(i, 0); 2533 if (r == "rotationY")t.rotationY = parseInt(i, 0); 2534 if (r == "rotationZ")t.rotationZ = parseInt(i, 0); 2535 if (r == "rotationZ")t.rotation = parseInt(i, 0); 2536 if (r == "scaleX")t.scaleX = parseFloat(i); 2537 if (r == "scaleY")t.scaleY = parseFloat(i); 2538 if (r == "opacity")t.opacity = parseFloat(i); 2539 if (r == "skewX")t.skewX = parseInt(i, 0); 2540 if (r == "skewY")t.skewY = parseInt(i, 0); 2541 if (r == "x")t.x = parseInt(i, 0); 2542 if (r == "y")t.y = parseInt(i, 0); 2543 if (r == "z")t.z = parseInt(i, 0); 2544 if (r == "transformOrigin")t.transformOrigin = i.toString(); 2545 if (r == "transformPerspective")t.transformPerspective = parseInt(i, 0) 2546 }); 2547 return t 2548 }; 2549 var B = function (t) { 2550 var n = t.split("animation:"); 2551 var r = new Object; 2552 r.animation = H(P(), n[1]); 2553 var i = n[0].split(";"); 2554 e.each(i, function (e, t) { 2555 t = t.split(":"); 2556 var n = t[0], i = t[1]; 2557 if (n == "typ")r.typ = i; 2558 if (n == "speed")r.speed = parseInt(i, 0) / 1e3; 2559 if (n == "start")r.start = parseInt(i, 0) / 1e3; 2560 if (n == "elementdelay")r.elementdelay = parseFloat(i); 2561 if (n == "ease")r.ease = i 2562 }); 2563 return r 2564 }; 2565 var j = function (n, r, i, s) { 2566 function o() { 2567 } 2568 2569 function u() { 2570 } 2571 2572 if (n.data("ctl") == t) { 2573 n.data("ctl", new punchgs.TimelineLite) 2574 } 2575 var f = n.data("ctl"), l = 0, c = 0, h = n.find(".tp-caption"), p = r.container.find(".tp-static-layers").find(".tp-caption"); 2576 f.pause(); 2577 e.each(p, function (e, t) { 2578 h.push(t) 2579 }); 2580 h.each(function (n) { 2581 var s = i, f = -1, h = e(this); 2582 if (h.hasClass("tp-static-layer")) { 2583 var p = h.data("startslide"), d = h.data("endslide"); 2584 if (p == -1 || p == "-1")h.data("startslide", 0); 2585 if (d == -1 || d == "-1")h.data("endslide", r.slideamount); 2586 if (p == 0 && d == r.slideamount - 1)h.data("endslide", r.slideamount + 1); 2587 p = h.data("startslide"), d = h.data("endslide"); 2588 if (!h.hasClass("tp-is-shown")) { 2589 if (p <= r.next && d >= r.next || p == r.next || d == r.next) { 2590 h.addClass("tp-is-shown"); 2591 f = 1 2592 } else { 2593 f = 0 2594 } 2595 } else { 2596 if (d == r.next || p > r.next || d < r.next) { 2597 f = 2 2598 } else { 2599 f = 0 2600 } 2601 } 2602 } 2603 l = r.width / 2 - r.startwidth * r.bw / 2; 2604 var v = r.bw; 2605 var m = r.bh; 2606 if (r.fullScreen == "on")c = r.height / 2 - r.startheight * r.bh / 2; 2607 if (r.autoHeight == "on" || r.minHeight != t && r.minHeight > 0)c = r.container.height() / 2 - r.startheight * r.bh / 2; 2608 if (c < 0)c = 0; 2609 var g = 0; 2610 if (r.width < r.hideCaptionAtLimit && h.data("captionhidden") == "on") { 2611 h.addClass("tp-hidden-caption"); 2612 g = 1 2613 } else { 2614 if (r.width < r.hideAllCaptionAtLimit || r.width < r.hideAllCaptionAtLilmit) { 2615 h.addClass("tp-hidden-caption"); 2616 g = 1 2617 } else { 2618 h.removeClass("tp-hidden-caption") 2619 } 2620 } 2621 if (g == 0) { 2622 if (h.data("linktoslide") != t && !h.hasClass("hasclicklistener")) { 2623 h.addClass("hasclicklistener"); 2624 h.css({cursor: "pointer"}); 2625 if (h.data("linktoslide") != "no") { 2626 h.click(function () { 2627 var t = e(this); 2628 var n = t.data("linktoslide"); 2629 if (n != "next" && n != "prev") { 2630 r.container.data("showus", n); 2631 r.container.parent().find(".tp-rightarrow").click() 2632 } else if (n == "next")r.container.parent().find(".tp-rightarrow").click(); else if (n == "prev")r.container.parent().find(".tp-leftarrow").click() 2633 }) 2634 } 2635 } 2636 if (l < 0)l = 0; 2637 if (h.hasClass("tp-videolayer") || h.find("iframe").length > 0 || h.find("video").length > 0) { 2638 var y = "iframe" + Math.round(Math.random() * 1e5 + 1), b = h.data("videowidth"), w = h.data("videoheight"), E = h.data("videoattributes"), S = h.data("ytid"), x = h.data("vimeoid"), T = h.data("videpreload"), N = h.data("videomp4"), C = h.data("videowebm"), k = h.data("videoogv"), L = h.data("videocontrols"), A = "http", j = h.data("videoloop") == "loop" ? "loop" : h.data("videoloop") == "loopandnoslidestop" ? "loop" : ""; 2639 if (h.data("thumbimage") != t && h.data("videoposter") == t)h.data("videoposter", h.data("thumbimage")); 2640 if (S != t && String(S).length > 1 && h.find("iframe").length == 0) { 2641 A = "https"; 2642 if (L == "none") { 2643 E = E.replace("controls=1", "controls=0"); 2644 if (E.toLowerCase().indexOf("controls") == -1)E = E + "&controls=0" 2645 } 2646 h.append('<iframe style="visible:hidden" src="' + A + "://www.youtube.com/embed/" + S + "?" + E + '" width="' + b + '" height="' + w + '" style="width:' + b + "px;height:" + w + 'px"></iframe>') 2647 } 2648 if (x != t && String(x).length > 1 && h.find("iframe").length == 0) { 2649 if (location.protocol === "https:")A = "https"; 2650 h.append('<iframe style="visible:hidden" src="' + A + "://player.vimeo.com/video/" + x + "?" + E + '" width="' + b + '" height="' + w + '" style="width:' + b + "px;height:" + w + 'px"></iframe>') 2651 } 2652 if ((N != t || C != t) && h.find("video").length == 0) { 2653 if (L != "controls")L = ""; 2654 var I = '<video style="visible:hidden" class="" ' + j + ' preload="' + T + '" width="' + b + '" height="' + w + '"'; 2655 if (h.data("videoposter") != t)if (h.data("videoposter") != t)I = I + 'poster="' + h.data("videoposter") + '">'; 2656 if (C != t && F().toLowerCase() == "firefox")I = I + '<source src="' + C + '" type="video/webm" />'; 2657 if (N != t)I = I + '<source src="' + N + '" type="video/mp4" />'; 2658 if (k != t)I = I + '<source src="' + k + '" type="video/ogg" />'; 2659 I = I + "</video>"; 2660 h.append(I); 2661 if (L == "controls")h.append('<div class="tp-video-controls">' + '<div class="tp-video-button-wrap"><button type="button" class="tp-video-button tp-vid-play-pause">Play</button></div>' + '<div class="tp-video-seek-bar-wrap">
2661<input type="range" class="tp-seek-bar" value="0"></div>' + '<div class="tp-video-button-wrap"><button type="button" class="tp-video-button tp-vid-mute">Mute</button></div>' + '<div class="tp-video-vol-bar-wrap"><input type="range" class="tp-volume-bar" min="0" max="1" step="0.1" value="1"></div>' + '<div class="tp-video-button-wrap"><button type="button" class="tp-video-button tp-vid-full-screen">Full-Screen</button></div>' + "</div>") 2662 } 2663 var z = false; 2664 if (h.data("autoplayonlyfirsttime") == true || h.data("autoplayonlyfirsttime") == "true" || h.data("autoplay") == true) { 2665 h.data("autoplay", true); 2666 z = true 2667 } 2668 if (h.data("videoposter") != t && h.data("videoposter").length > 2 && h.data("autoplay") != true && !s) { 2669 if (h.find(".tp-thumb-image").length == 0) { 2670 h.append('<div class="tp-thumb-image" style="cursor:pointer; position:absolute;top:0px;left:0px;width:100%;height:100%;background-image:url(' + h.data("videoposter") + '); background-size:cover; background-position:center center"></div>') 2671 } else { 2672 punchgs.TweenLite.set(h.find(".tp-thumb-image"), {autoAlpha: 1}) 2673 } 2674 } 2675 h.find("iframe").each(function () { 2676 var n = e(this); 2677 punchgs.TweenLite.to(n, .1, { 2678 autoAlpha: 1, 2679 zIndex: 0, 2680 transformStyle: "preserve-3d", 2681 z: 0, 2682 rotationX: 0, 2683 force3D: "auto" 2684 }); 2685 if (J()) { 2686 var s = n.attr("src"); 2687 n.attr("src", ""); 2688 n.attr("src", s) 2689 } 2690 r.nextslideatend = h.data("nextslideatend"); 2691 if (n.attr("src").toLowerCase().indexOf("youtube") >= 0) { 2692 if (!n.hasClass("HasListener")) { 2693 try { 2694 n.attr("id", y); 2695 var o; 2696 var u = setInterval(function () { 2697 if (YT != t)if (typeof YT.Player != t && typeof YT.Player != "undefined") { 2698 o = new YT.Player(y, { 2699 events: { 2700 onStateChange: O, onReady: function (n) { 2701 var r = n.target.getVideoEmbedCode(), i = e("#" + r.split('id="')[1].split('"')[0]), s = i.closest(".tp-caption"), u = s.data("videorate"), a = s.data("videostart"); 2702 if (u != t)n.target.setPlaybackRate(parseFloat(u)); 2703 if (!J() && s.data("autoplay") == true || z) { 2704 s.data("timerplay", setTimeout(function () { 2705 n.target.playVideo() 2706 }, s.data("start"))) 2707 } 2708 s.find(".tp-thumb-image").click(function () { 2709 punchgs.TweenLite.to(e(this), .3, { 2710 autoAlpha: 0, 2711 force3D: "auto", 2712 ease: punchgs.Power3.easeInOut 2713 }); 2714 if (!J()) { 2715 o.playVideo() 2716 } 2717 }) 2718 } 2719 } 2720 }) 2721 } 2722 n.addClass("HasListener"); 2723 h.data("player", o); 2724 clearInterval(u) 2725 }, 100) 2726 } catch (a) { 2727 } 2728 } else { 2729 if (!i) { 2730 var o = h.data("player"); 2731 if (h.data("forcerewind") == "on" && !J())o.seekTo(0); 2732 if (!J() && h.data("autoplay") == true || z) { 2733 h.data("timerplay", setTimeout(function () { 2734 o.playVideo() 2735 }, h.data("start"))) 2736 } 2737 } 2738 } 2739 } else if (n.attr("src").toLowerCase().indexOf("vimeo") >= 0) { 2740 if (!n.hasClass("HasListener")) { 2741 n.addClass("HasListener"); 2742 n.attr("id", y); 2743 var f = n.attr("src"); 2744 var l = {}, c = f, p = /([^&=]+)=([^&]*)/g, d; 2745 while (d = p.exec(c)) { 2746 l[decodeURIComponent(d[1])] = decodeURIComponent(d[2]) 2747 } 2748 if (l["player_id"] != t)f = f.replace(l["player_id"], y); else f = f + "&player_id=" + y; 2749 try { 2750 f = f.replace("api=0", "api=1") 2751 } catch (a) { 2752 } 2753 f = f + "&api=1"; 2754 n.attr("src", f); 2755 var o = h.find("iframe")[0]; 2756 var v = setInterval(function () { 2757 if ($f != t) { 2758 if (typeof $f(y).api != t && typeof $f(y).api != "undefined") { 2759 $f(o).addEvent("ready", function () { 2760 _(y, z) 2761 }); 2762 clearInterval(v) 2763 } 2764 } 2765 }, 100) 2766 } else { 2767 if (!i) { 2768 if (!J() && (h.data("autoplay") == true || h.data("forcerewind") == "on")) { 2769 var n = h.find("iframe"); 2770 var m = n.attr("id"); 2771 var g = $f(m); 2772 if (h.data("forcerewind") == "on")g.api("seekTo", 0); 2773 h.data("timerplay", setTimeout(function () { 2774 if (h.data("autoplay") == true)g.api("play") 2775 }, h.data("start"))) 2776 } 2777 } 2778 } 2779 } 2780 }); 2781 if (J() && h.data("disablevideoonmobile") == 1 || a(8))h.find("video").remove(); 2782 if (h.find("video").length > 0) { 2783 h.find("video").each(function (n) { 2784 var i = this, s = e(this); 2785 if (!s.parent().hasClass("html5vid"))s.wrap('<div class="html5vid" style="position:relative;top:0px;left:0px;width:auto;height:auto"></div>'); 2786 var o = s.parent(); 2787 M(i, "loadedmetadata", function (e) { 2788 e.data("metaloaded", 1) 2789 }(o)); 2790 clearInterval(o.data("interval")); 2791 o.data("interval", setInterval(function () { 2792 if (o.data("metaloaded") == 1 || i.duration != NaN) { 2793 clearInterval(o.data("interval")); 2794 if (!o.hasClass("HasListener")) { 2795 o.addClass("HasListener"); 2796 if (h.data("dottedoverlay") != "none" && h.data("dottedoverlay") != t)if (h.find(".tp-dottedoverlay").length != 1)o.append('<div class="tp-dottedoverlay ' + h.data("dottedoverlay") + '"></div>');
2797 if (s.attr("control") == t) { 2798 if (o.find(".tp-video-play-button").length == 0)o.append('<div class="tp-video-play-button"><i class="revicon-right-dir"></i><div class="tp-revstop"></div></div>'); 2799 o.parent().find("video, .tp-poster, .tp-thumb-image, .tp-video-play-button").click(function () { 2800 if (o.hasClass("videoisplaying")) { 2801 i.pause() 2802 } else { 2803 i.play(); 2804 punchgs.TweenLite.to(o.parent().find(".tp-poster, .tp-thumb-image"), .2, {autoAlpha: 0}) 2805 } 2806 }) 2807 } 2808 if (h.data("forcecover") == 1 || h.hasClass("fullscreenvideo")) { 2809 if (h.data("forcecover") == 1) { 2810 D(o, r.container); 2811 o.addClass("fullcoveredvideo"); 2812 h.addClass("fullcoveredvideo") 2813 } 2814 o.css({width: "100%", height: "100%"}) 2815 } 2816 var e = h.find(".tp-vid-play-pause")[0], n = h.find(".tp-vid-mute")[0], u = h.find(".tp-vid-full-screen")[0], a = h.find(".tp-seek-bar")[0], f = h.find(".tp-volume-bar")[0]; 2817 if (e != t) { 2818 M(e, "click", function () { 2819 if (i.paused == true)i.play(); else i.pause() 2820 }); 2821 M(n, "click", function () { 2822 if (i.muted == false) { 2823 i.muted = true; 2824 n.innerHTML = "Unmute" 2825 } else { 2826 i.muted = false; 2827 n.innerHTML = "Mute" 2828 } 2829 }); 2830 M(u, "click", function () { 2831 if (i.requestFullscreen) { 2832 i.requestFullscreen() 2833 } else if (i.mozRequestFullScreen) { 2834 i.mozRequestFullScreen() 2835 } else if (i.webkitRequestFullscreen) { 2836 i.webkitRequestFullscreen() 2837 } 2838 }); 2839 M(a, "change", function () { 2840 var e = i.duration * (a.value / 100); 2841 i.currentTime = e 2842 }); 2843 M(i, "timeupdate", function () { 2844 var e = 100 / i.duration * i.currentTime; 2845 a.value = e 2846 }); 2847 M(a, "mousedown", function () { 2848 i.pause() 2849 }); 2850 M(a, "mouseup", function () { 2851 i.play() 2852 }); 2853 M(f, "change", function () { 2854 i.volume = f.value 2855 }) 2856 } 2857 M(i, "play", function () { 2858 if (h.data("volume") == "mute")i.muted = true; 2859 o.addClass("videoisplaying"); 2860 if (h.data("videoloop") == "loopandnoslidestop") { 2861 r.videoplaying = false;
2862 r.container.trigger("starttimer"); 2863 r.container.trigger("revolution.slide.onvideostop") 2864 } else { 2865 r.videoplaying = true; 2866 r.container.trigger("stoptimer"); 2867 r.container.trigger("revolution.slide.onvideoplay") 2868 } 2869 var e = h.find(".tp-vid-play-pause")[0], n = h.find(".tp-vid-mute")[0]; 2870 if (e != t)e.innerHTML = "Pause"; 2871 if (n != t && i.muted)n.innerHTML = "Unmute" 2872 }); 2873 M(i, "pause", function () { 2874 o.removeClass("videoisplaying"); 2875 r.videoplaying = false; 2876 r.container.trigger("starttimer"); 2877 r.container.trigger("revolution.slide.onvideostop"); 2878 var e = h.find(".tp-vid-play-pause")[0]; 2879 if (e != t)e.innerHTML = "Play" 2880 }); 2881 M(i, "ended", function () { 2882 o.removeClass("videoisplaying"); 2883 r.videoplaying = false; 2884 r.container.trigger("starttimer"); 2885 r.container.trigger("revolution.slide.onvideostop"); 2886 if (r.nextslideatend == true)r.container.revnext() 2887 }) 2888 } 2889 var l = false; 2890 if (h.data("autoplayonlyfirsttime") == true || h.data("autoplayonlyfirsttime") == "true")l = true; 2891 var c = 16 / 9; 2892 if (h.data("aspectratio") == "4:3")c = 4 / 3; 2893 o.data("mediaAspect", c); 2894 if (o.closest(".tp-caption").data("forcecover") == 1) { 2895 D(o, r.container); 2896 o.addClass("fullcoveredvideo") 2897 } 2898 s.css({display: "block"}); 2899 r.nextslideatend = h.data("nextslideatend"); 2900 if (h.data("forcerewind") == "on" && !o.hasClass("videoisplaying"))if (i.currentTime > 0)i.currentTime = 0; 2901 if (h.data("autoplay") == true || l == true) { 2902 if (h.data("videoloop") == "loopandnoslidestop") { 2903 r.videoplaying = false; 2904 r.container.trigger("starttimer"); 2905 r.container.trigger("revolution.slide.onvideostop") 2906 } else { 2907 r.videoplaying = true; 2908 r.container.trigger("stoptimer"); 2909 r.container.trigger("revolution.slide.onvideoplay") 2910 } 2911 if (h.data("forcerewind") == "on" && !o.hasClass("videoisplaying"))if (i.currentTime > 0)i.currentTime = 0; 2912 if (h.data("volume") == "mute")i.muted = true; 2913 o.data("timerplay", setTimeout(function () { 2914 if (h.data("forcerewind") == "on" && !o.hasClass("videoisplaying"))if (i.currentTime > 0)i.currentTime = 0; 2915 if (h.data("volume") == "mute")i.muted = true; 2916 i.play() 2917 }, 10 + h.data("start"))) 2918 } 2919 if (o.data("ww") == t)o.data("ww", s.attr("width")); 2920 if (o.data("hh") == t)o.data("hh", s.attr("height")); 2921 if (!h.hasClass("fullscreenvideo") && h.data("forcecover") == 1) { 2922 try { 2923 o.width(o.data("ww") * r.bw); 2924 o.height(o.data("hh") * r.bh) 2925 } catch (p) { 2926 } 2927 } 2928 clearInterval(o.data("interval")) 2929 } 2930 }), 100) 2931 }) 2932 } 2933 if (h.data("autoplay") == true) { 2934 setTimeout(function () { 2935 if (h.data("videoloop") != "loopandnoslidestop") { 2936 r.videoplaying = true; 2937 r.container.trigger("stoptimer") 2938 } 2939 }, 200); 2940 if (h.data("videoloop") != "loopandnoslidestop") { 2941 r.videoplaying = true; 2942 r.container.trigger("stoptimer") 2943 } 2944 if (h.data("autoplayonlyfirsttime") == true || h.data("autoplayonlyfirsttime") == "true") { 2945 h.data("autoplay", false); 2946 h.data("autoplayonlyfirsttime", false) 2947 } 2948 } 2949 } 2950 var V = 0; 2951 var $ = 0; 2952 if (h.find("img").length > 0) { 2953 var K = h.find("img"); 2954 if (K.width() == 0)K.css({width: "auto"}); 2955 if (K.height() == 0)K.css({height: "auto"}); 2956 if (K.data("ww") == t && K.width() > 0)K.data("ww", K.width()); 2957 if (K.data("hh") == t && K.height() > 0)K.data("hh", K.height()); 2958 var Q = K.data("ww"); 2959 var G = K.data("hh"); 2960 if (Q == t)Q = 0; 2961 if (G == t)G = 0; 2962 K.width(Q * r.bw); 2963 K.height(G * r.bh); 2964 V = K.width(); 2965 $ = K.height() 2966 } else { 2967 if (h.find("iframe").length > 0 || h.find("video").length > 0) { 2968 var Y = false, K = h.find("iframe"); 2969 if (K.length == 0) { 2970 K = h.find("video"); 2971 Y = true 2972 } 2973 K.css({display: "block"});
2974 if (h.data("ww") == t)h.data("ww", K.width()); 2975 if (h.data("hh") == t)h.data("hh", K.height()); 2976 var Q = h.data("ww"), G = h.data("hh"); 2977 var Z = h; 2978 if (Z.data("fsize") == t)Z.data("fsize", parseInt(Z.css("font-size"), 0) || 0); 2979 if (Z.data("pt") == t)Z.data("pt", parseInt(Z.css("paddingTop"), 0) || 0); 2980 if (Z.data("pb") == t)Z.data("pb", parseInt(Z.css("paddingBottom"), 0) || 0); 2981 if (Z.data("pl") == t)Z.data("pl", parseInt(Z.css("paddingLeft"), 0) || 0); 2982 if (Z.data("pr") == t)Z.data("pr", parseInt(Z.css("paddingRight"), 0) || 0); 2983 if (Z.data("mt") == t)Z.data("mt", parseInt(Z.css("marginTop"), 0) || 0); 2984 if (Z.data("mb") == t)Z.data("mb", parseInt(Z.css("marginBottom"), 0) || 0); 2985 if (Z.data("ml") == t)Z.data("ml", parseInt(Z.css("marginLeft"), 0) || 0); 2986 if (Z.data("mr") == t)Z.data("mr", parseInt(Z.css("marginRight"), 0) || 0); 2987 if (Z.data("bt") == t)Z.data("bt", parseInt(Z.css("borderTop"), 0) || 0); 2988 if (Z.data("bb") == t)Z.data("bb", parseInt(Z.css("borderBottom"), 0) || 0); 2989 if (Z.data("bl") == t)Z.data("bl", parseInt(Z.css("borderLeft"), 0) || 0); 2990 if (Z.data("br") == t)Z.data("br", parseInt(Z.css("borderRight"), 0) || 0); 2991 if (Z.data("lh") == t)Z.data("lh", parseInt(Z.css("lineHeight"), 0) || 0); 2992 if (Z.data("lh") == "auto")Z.data("lh", Z.data("fsize") + 4); 2993 var et = r.width, tt = r.height; 2994 if (et > r.startwidth)et = r.startwidth; 2995 if (tt > r.startheight)tt = r.startheight; 2996 if (!h.hasClass("fullscreenvideo"))h.css({ 2997 "font-size": Z.data("fsize") * r.bw + "px", 2998 "padding-top": Z.data("pt") * r.bh + "px", 2999 "padding-bottom": Z.data("pb") * r.bh + "px", 3000 "padding-left": Z.data("pl") * r.bw + "px", 3001 "padding-right": Z.data("pr") * r.bw + "px", 3002 "margin-top": Z.data("mt") * r.bh + "px", 3003 "margin-bottom": Z.data("mb") * r.bh + "px", 3004 "margin-left": Z.data("ml") * r.bw + "px", 3005 "margin-right": Z.data("mr") * r.bw + "px", 3006 "border-top": Z.data("bt") * r.bh + "px", 3007 "border-bottom": Z.data("bb") * r.bh + "px", 3008 "border-left": Z.data("bl") * r.bw + "px", 3009 "border-right": Z.data("br") * r.bw + "px", 3010 "line-height": Z.data("lh") * r.bh + "px", 3011 height: G * r.bh + "px" 3012 }); else { 3013 l = 0; 3014 c = 0; 3015 h.data("x", 0); 3016 h.data("y", 0); 3017 var nt = r.height; 3018 if (r.autoHeight == "on")nt = r.container.height(); 3019 h.css({width: r.width, height: nt}) 3020 } 3021 if (Y == false) { 3022 K.width(Q * r.bw); 3023 K.height(G * r.bh) 3024 } else if (h.data("forcecover") != 1 && !h.hasClass("fullscreenvideo")) { 3025 K.width(Q * r.bw); 3026 K.height(G * r.bh) 3027 } 3028 V = K.width(); 3029 $ = K.height() 3030 } else { 3031 h.find(".tp-resizeme, .tp-resizeme *").each(function () { 3032 q(e(this), r) 3033 }); 3034 if (h.hasClass("tp-resizeme")) { 3035 h.find("*").each(function () { 3036 q(e(this), r) 3037 }) 3038 } 3039 q(h, r); 3040 $ = h.outerHeight(true); 3041 V = h.outerWidth(true); 3042 var rt = h.outerHeight(); 3043 var it = h.css("backgroundColor"); 3044 h.find(".frontcorner").css({ 3045 borderWidth: rt + "px", 3046 left: 0 - rt + "px", 3047 borderRight: "0px solid transparent", 3048 borderTopColor: it 3049 }); 3050 h.find(".frontcornertop").css({ 3051 borderWidth: rt + "px", 3052 left: 0 - rt + "px", 3053 borderRight: "0px solid transparent", 3054 borderBottomColor: it 3055 }); 3056 h.find(".backcorner").css({ 3057 borderWidth: rt + "px", 3058 right: 0 - rt + "px", 3059 borderLeft: "0px solid transparent", 3060 borderBottomColor: it 3061 }); 3062 h.find(".backcornertop").css({ 3063 borderWidth: rt + "px", 3064 right: 0 - rt + "px", 3065 borderLeft: "0px solid transparent", 3066 borderTopColor: it 3067 }) 3068 } 3069 } 3070 if (r.fullScreenAlignForce == "on") { 3071 l = 0; 3072 c = 0 3073 } 3074 if (h.data("voffset") == t)h.data("voffset", 0); 3075 if (h.data("hoffset") == t)h.data("hoffset", 0); 3076 var st = h.data("voffset") * v; 3077 var ot = h.data("hoffset") * v; 3078 var ut = r.startwidth * v; 3079 var at = r.startheight * v; 3080 if (r.fullScreenAlignForce == "on") { 3081 ut = r.container.width(); 3082 at = r.container.height() 3083 } 3084 if (h.data("x") == "center" || h.data("xcenter") == "center") { 3085 h.data("xcenter", "center"); 3086 h.data("x", ut / 2 - h.outerWidth(true) / 2 + ot) 3087 } 3088 if (h.data("x") == "left" || h.data("xleft") == "left") { 3089 h.data("xleft", "left"); 3090 h.data("x", 0 / v + ot) 3091 } 3092 if (h.data("x") == "right" || h.data("xright") == "right") { 3093 h.data("xright", "right"); 3094 h.data("x", (ut - h.outerWidth(true) + ot) / v) 3095 } 3096 if (h.data("y") == "center" || h.data("ycenter") == "center") { 3097 h.data("ycenter", "center"); 3098 h.data("y", at / 2 - h.outerHeight(true) / 2 + st) 3099 } 3100 if (h.data("y") == "top" || h.data("ytop") == "top") { 3101 h.data("ytop", "top"); 3102 h.data("y", 0 / r.bh + st) 3103 } 3104 if (h.data("y") == "bottom" || h.data("ybottom") == "bottom") { 3105 h.data("ybottom", "bottom"); 3106 h.data("y", (at - h.outerHeight(true) + st) / v) 3107 } 3108 if (h.data("start") == t)h.data("start", 1e3); 3109 var ft = h.data("easing"); 3110 if (ft == t)ft = "punchgs.Power1.easeOut"; 3111 var lt = h.data("start") / 1e3, ct = h.data("speed") / 1e3; 3112 if (h.data("x") == "center" || h.data("xcenter") == "center")var ht = h.data("x") + l; else { 3113 var ht = v * h.data("x") + l 3114 } 3115 if (h.data("y") == "center" || h.data("ycenter") == "center")var pt = h.data("y") + c; else { 3116 var pt = r.bh * h.data("y") + c 3117 } 3118 punchgs.TweenLite.set(h, {top: pt, left: ht, overwrite: "auto"}); 3119 if (f == 0)s = true; 3120 if (h.data("timeline") != t && !s) { 3121 if (f != 2)h.data("timeline").gotoAndPlay(0); 3122 s = true 3123 } 3124 if (!s) { 3125 if (h.data("timeline") != t) { 3126 } 3127 var dt = new punchgs.TimelineLite({smoothChildTiming: true, onStart: u}); 3128 dt.pause(); 3129 if (r.fullScreenAlignForce == "on") { 3130 } 3131 var vt = h; 3132 if (h.data("mySplitText") != t)h.data("mySplitText").revert(); 3133 if (h.data("splitin") == "chars" || h.data("splitin") == "words" || h.data("splitin") == "lines" || h.data("splitout") == "chars" || h.data("splitout") == "words" || h.data("splitout") == "lines") { 3134 if (h.find("a").length > 0)h.data("mySplitText", new punchgs.SplitText(h.find("a"), { 3135 type: "lines,words,chars", 3136 charsClass: "tp-splitted", 3137 wordsClass: "tp-splitted", 3138 linesClass: "tp-splitted" 3139 })); else if (h.find(".tp-layer-inner-rotation").length > 0)h.data("mySplitText", new punchgs.SplitText(h.find(".tp-layer-inner-rotation"), { 3140 type: "lines,words,chars", 3141 charsClass: "tp-splitted", 3142 wordsClass: "tp-splitted", 3143 linesClass: "tp-splitted" 3144 })); else h.data("mySplitText", new punchgs.SplitText(h, { 3145 type: "lines,words,chars", 3146 charsClass: "tp-splitted", 3147 wordsClass: "tp-splitted", 3148 linesClass: "tp-splitted" 3149 })); 3150 h.addClass("splitted") 3151 } 3152 if (h.data("splitin") == "chars")vt = h.data("mySplitText").chars; 3153 if (h.data("splitin") == "words")vt = h.data("mySplitText").words; 3154 if (h.data("splitin") == "lines")vt = h.data("mySplitText").lines; 3155 var mt = P(); 3156 var gt = P(); 3157 if (h.data("repeat") != t)repeatV = h.data("repeat"); 3158 if (h.data("yoyo") != t)yoyoV = h.data("yoyo"); 3159 if (h.data("repeatdelay") != t)repeatdelayV = h.data("repeatdelay"); 3160 var yt = h.attr("class"); 3161 if (yt.match("customin"))mt = H(mt, h.data("customin")); else if (yt.match("randomrotate")) { 3162 mt.scale = Math.random() * 3 + 1; 3163 mt.rotation = Math.round(Math.random() * 200 - 100); 3164 mt.x = Math.round(Math.random() * 200 - 100); 3165 mt.y = Math.round(Math.random() * 200 - 100) 3166 } else if (yt.match("lfr") || yt.match("skewfromright"))mt.x = 15 + r.width; else if (yt.match("lfl") || yt.match("skewfromleft"))mt.x = -15 - V; else if (yt.match("sfl") || yt.match("skewfromleftshort"))mt.x = -50; else if (yt.match("sfr") || yt.match("skewfromrightshort"))mt.x = 50; else if (yt.match("lft"))mt.y = -25 - $; else if (yt.match("lfb"))mt.y = 25 + r.height; else if (yt.match("sft"))mt.y = -50; else if (yt.match("sfb"))mt.y = 50; 3167 if (yt.match("skewfromright") || h.hasClass("skewfromrightshort"))mt.skewX
3167= -85; else if (yt.match("skewfromleft") || h.hasClass("skewfromleftshort"))mt.skewX = 85; 3168 if (yt.match("fade") || yt.match("sft") || yt.match("sfl") || yt.match("sfb") || yt.match("skewfromleftshort") || yt.match("sfr") || yt.match("skewfromrightshort"))mt.opacity = 0; 3169 if (F().toLowerCase() == "safari") { 3170 } 3171 var bt = h.data("elementdelay") == t ? 0 : h.data("elementdelay"); 3172 gt.ease = mt.ease = h.data("easing") == t ? punchgs.Power1.easeInOut : h.data("easing"); 3173 mt.data = new Object; 3174 mt.data.oldx = mt.x; 3175 mt.data.oldy = mt.y; 3176 gt.data = new Object; 3177 gt.data.oldx = gt.x; 3178 gt.data.oldy = gt.y; 3179 mt.x = mt.x * v; 3180 mt.y = mt.y * v; 3181 var wt = new punchgs.TimelineLite; 3182 if (f != 2) { 3183 if (yt.match("customin")) { 3184 if (vt != h)dt.add(punchgs.TweenLite.set(h, { 3185 force3D: "auto", 3186 opacity: 1, 3187 scaleX: 1, 3188 scaleY: 1, 3189 rotationX: 0, 3190 rotationY: 0, 3191 rotationZ: 0, 3192 skewX: 0, 3193 skewY: 0, 3194 z: 0, 3195 x: 0, 3196 y: 0, 3197 visibility: "visible", 3198 delay: 0, 3199 overwrite: "all" 3200 })); 3201 mt.visibility = "hidden"; 3202 gt.visibility = "visible"; 3203 gt.overwrite = "all"; 3204 gt.opacity = 1; 3205 gt.onComplete = o(); 3206 gt.delay = lt; 3207 gt.force3D = "auto"; 3208 dt.add(wt.staggerFromTo(vt, ct, mt, gt, bt), "frame0") 3209 } else { 3210 mt.visibility = "visible"; 3211 mt.transformPerspective = 600; 3212 if (vt != h)dt.add(punchgs.TweenLite.set(h, { 3213 force3D: "auto", 3214 opacity: 1, 3215 scaleX: 1, 3216 scaleY: 1, 3217 rotationX: 0, 3218 rotationY: 0, 3219 rotationZ: 0, 3220 skewX: 0, 3221 skewY: 0, 3222 z: 0, 3223 x: 0, 3224 y: 0, 3225 visibility: "visible", 3226 delay: 0, 3227 overwrite: "all" 3228 })); 3229 gt.visibility = "visible"; 3230 gt.delay = lt; 3231 gt.onComplete = o(); 3232 gt.opacity = 1; 3233 gt.force3D = "auto"; 3234 if (yt.match("randomrotate") && vt != h) { 3235 for (var n = 0; n < vt.length; n++) { 3236 var Et = new Object; 3237 var St = new Object; 3238 e.extend(Et, mt); 3239 e.extend(St, gt); 3240 mt.scale = Math.random() * 3 + 1; 3241 mt.rotation = Math.round(Math.random() * 200 - 100); 3242 mt.x = Math.round(Math.random() * 200 - 100); 3243 mt.y = Math.round(Math.random() * 200 - 100); 3244 if (n != 0)St.delay = lt + n * bt;
3245 dt.append(punchgs.TweenLite.fromTo(vt[n], ct, Et, St), "frame0") 3246 } 3247 } else dt.add(wt.staggerFromTo(vt, ct, mt, gt, bt), "frame0") 3248 } 3249 } 3250 h.data("timeline", dt); 3251 var xt = new Array; 3252 if (h.data("frames") != t) { 3253 var Tt = h.data("frames"); 3254 Tt = Tt.replace(/\s+/g, ""); 3255 Tt = Tt.replace("{", ""); 3256 var Nt = Tt.split("}"); 3257 e.each(Nt, function (e, t) { 3258 if (t.length > 0) { 3259 var n = B(t); 3260 W(h, r, n, "frame" + (e + 10), v) 3261 } 3262 }) 3263 } 3264 dt = h.data("timeline"); 3265 if (h.data("end") != t && (f == -1 || f == 2)) { 3266 X(h, r, h.data("end") / 1e3, mt, "frame99", v) 3267 } else { 3268 if (f == -1 || f == 2) { 3269 X(h, r, 999999, mt, "frame99", v) 3270 } else { 3271 X(h, r, 999999, mt, "frame99", v) 3272 } 3273 } 3274 dt = h.data("timeline"); 3275 h.data("timeline", dt); 3276 R(h, v); 3277 dt.resume() 3278 } 3279 } 3280 if (s) { 3281 U(h); 3282 R(h, v); 3283 if (h.data("timeline") != t) { 3284 var Ct = h.data("timeline").getTweensOf(); 3285 e.each(Ct, function (e, n) { 3286 if (n.vars.data != t) { 3287 var r = n.vars.data.oldx * v; 3288 var i = n.vars.data.oldy * v; 3289 if (n.progress() != 1 && n.progress() != 0) { 3290 try { 3291 n.vars.x = r; 3292 n.vary.y = i 3293 } catch (s) { 3294 } 3295 } else { 3296 if (n.progress() == 1) { 3297 punchgs.TweenLite.set(n.target, {x: r, y: i}) 3298 } 3299 } 3300 } 3301 }) 3302 } 3303 } 3304 }); 3305 var d = e("body").find("#" + r.container.attr("id")).find(".tp-bannertimer"); 3306 d.data("opt", r); 3307 if (s != t)setTimeout(function () { 3308 s.resume() 3309 }, 30) 3310 }; 3311 var F = function () { 3312 var e = navigator.appName, t = navigator.userAgent, n; 3313 var r = t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); 3314 if (r && (n = t.match(/version\/([\.\d]+)/i)) != null)r[2] = n[1]; 3315 r = r ? [r[1], r[2]] : [e, navigator.appVersion, "-?"]; 3316 return r[0] 3317 }; 3318 var I = function () { 3319 var e = navigator.appName, t = navigator.userAgent, n; 3320 var r = t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); 3321 if (r && (n = t.match(/version\/([\.\d]+)/i)) != null)r[2] = n[1]; 3322 r = r ? [r[1], r[2]] : [e, navigator.appVersion, "-?"]; 3323 return r[1] 3324 }; 3325 var q = function (e, n) { 3326 if (e.data("fsize") == t)e.data("fsize", parseInt(e.css("font-size"), 0) || 0); 3327 if (e.data("pt") == t)e.data("pt", parseInt(e.css("paddingTop"), 0) || 0); 3328 if (e.data("pb") == t)e.data("pb", parseInt(e.css("paddingBottom"), 0) || 0); 3329 if (e.data("pl") == t)e.data("pl", parseInt(e.css("paddingLeft"), 0) || 0); 3330 if (e.data("pr") == t)e.data("pr", parseInt(e.css("paddingRight"), 0) || 0); 3331 if (e.data("mt") == t)e.data("mt", parseInt(e.css("marginTop"), 0) || 0); 3332 if (e.data("mb") == t)e.data("mb", parseInt(e.css("marginBottom"), 0) || 0); 3333 if (e.data("ml") == t)e.data("ml", parseInt(e.css("marginLeft"), 0) || 0);
3334 if (e.data("mr") == t)e.data("mr", parseInt(e.css("marginRight"), 0) || 0); 3335 if (e.data("bt") == t)e.data("bt", parseInt(e.css("borderTopWidth"), 0) || 0); 3336 if (e.data("bb") == t)e.data("bb", parseInt(e.css("borderBottomWidth"), 0) || 0); 3337 if (e.data("bl") == t)e.data("bl", parseInt(e.css("borderLeftWidth"), 0) || 0); 3338 if (e.data("br") == t)e.data("br", parseInt(e.css("borderRightWidth"), 0) || 0); 3339 if (e.data("ls") == t)e.data("ls", parseInt(e.css("letterSpacing"), 0) || 0); 3340 if (e.data("lh") == t)e.data("lh", parseInt(e.css("lineHeight"), 0) || "auto"); 3341 if (e.data("minwidth") == t)e.data("minwidth", parseInt(e.css("minWidth"), 0) || 0); 3342 if (e.data("minheight") == t)e.data("minheight", parseInt(e.css("minHeight"), 0) || 0); 3343 if (e.data("maxwidth") == t)e.data("maxwidth", parseInt(e.css("maxWidth"), 0) || "none"); 3344 if (e.data("maxheight") == t)e.data("maxheight", parseInt(e.css("maxHeight"), 0) || "none"); 3345 if (e.data("wii") == t)e.data("wii", parseInt(e.css("width"), 0) || 0); 3346 if (e.data("hii") == t)e.data("hii", parseInt(e.css("height"), 0) || 0); 3347 if (e.data("wan") == t)e.data("wan", e.css("-webkit-transition")); 3348 if (e.data("moan") == t)e.data("moan", e.css("-moz-animation-transition")); 3349 if (e.data("man") == t)e.data("man", e.css("-ms-animation-transition")); 3350 if (e.data("ani") == t)e.data("ani", e.css("transition")); 3351 if (e.data("lh") == "auto")e.data("lh", e.data("fsize") + 4); 3352 if (!e.hasClass("tp-splitted")) { 3353 e.css("-webkit-transition", "none"); 3354 e.css("-moz-transition", "none"); 3355 e.css("-ms-transition", "none"); 3356 e.css("transition", "none"); 3357 punchgs.TweenLite.set(e, { 3358 fontSize: Math.round(e.data("fsize") * n.bw) + "px", 3359 letterSpacing: Math.floor(e.data("ls") * n.bw) + "px", 3360 paddingTop: Math.round(e.data("pt") * n.bh) + "px", 3361 paddingBottom: Math.round(e.data("pb") * n.bh) + "px", 3362 paddingLeft: Math.round(e.data("pl") * n.bw) + "px", 3363 paddingRight: Math.round(e.data("pr") * n.bw) + "px", 3364 marginTop: e.data("mt") * n.bh + "px", 3365 marginBottom: e.data("mb") * n.bh + "px", 3366 marginLeft: e.data("ml") * n.bw + "px", 3367 marginRight: e.data("mr") * n.bw + "px", 3368 borderTopWidth: Math.round(e.data("bt") * n.bh) + "px", 3369 borderBottomWidth: Math.round(e.data("bb") * n.bh) + "px", 3370 borderLeftWidth: Math.round(e.data("bl") * n.bw) + "px", 3371 borderRightWidth: Math.round(e.data("br") * n.bw) + "px", 3372 lineHeight: Math.round(e.data("lh") * n.bh) + "px", 3373 minWidth: e.data("minwidth") * n.bw + "px", 3374 minHeight: e.data("minheight") * n.bh + "px", 3375 overwrite: "auto" 3376 }); 3377 setTimeout(function () { 3378 e.css("-webkit-transition", e.data("wan")); 3379 e.css("-moz-transition", e.data("moan")); 3380 e.css("-ms-transition", e.data("man")); 3381 e.css("transition", e.data("ani")) 3382 }, 30); 3383 if (e.data("maxheight") != "none")e.css({maxHeight: e.data("maxheight") * n.bh + "px"}); 3384 if (e.data("maxwidth") != "none")e.css({maxWidth: e.data("maxwidth") * n.bw + "px"}) 3385 } 3386 }; 3387 var R = function (n, r) { 3388 n.find(".rs-pendulum").each(function () { 3389 var n = e(this); 3390 if (n.data("timeline") == t) { 3391 n.data("timeline", new punchgs.TimelineLite); 3392 var i = n.data("startdeg") == t ? -20 : n.data("startdeg"), s = n.data("enddeg") == t ? 20 : n.data("enddeg"), o = n.data("speed") == t ? 2 : n.data("speed"), u = n.data("origin") == t ? "50% 50%" : n.data("origin"), a = n.data("easing") == t ? punchgs.Power2.easeInOut : n.data("ease"); 3393 i = i * r; 3394 s = s * r; 3395 n.data("timeline").append(new punchgs.TweenLite.fromTo(n, o, { 3396 force3D: "auto", 3397 rotation: i, 3398 transformOrigin: u 3399 }, {rotation: s, ease: a})); 3400 n.data("timeline").append(new punchgs.TweenLite.fromTo(n, o, { 3401 force3D: "auto", 3402 rotation: s, 3403 transformOrigin: u 3404 }, { 3405 rotation: i, ease: a, onComplete: function () { 3406 n.data("timeline").restart() 3407 } 3408 })) 3409 } 3410 }); 3411 n.find(".rs-rotate").each(function () { 3412 var n = e(this); 3413 if (n.data("timeline") == t) { 3414 n.data("timeline", new punchgs.TimelineLite); 3415 var i = n.data("startdeg") == t ? 0 : n.data("startdeg"), s = n.data("enddeg") == t ? 360 : n.data("enddeg"); 3416 speed = n.data("speed") == t ? 2 : n.data("speed"), origin = n.data("origin") == t ? "50% 50%" : n.data("origin"), easing = n.data("easing") == t ? punchgs.Power2.easeInOut : n.data("easing"); 3417 i = i * r; 3418 s = s * r; 3419 n.data("timeline").append(new punchgs.TweenLite.fromTo(n, speed, { 3420 force3D: "auto", 3421 rotation: i, 3422 transformOrigin: origin 3423 }, { 3424 rotation: s, ease: easing, onComplete: function () { 3425 n.data("timeline").restart() 3426 } 3427 })) 3428 } 3429 }); 3430 n.find(".rs-slideloop").each(function () { 3431 var n = e(this); 3432 if (n.data("timeline") == t) { 3433 n.data("timeline", new punchgs.TimelineLite); 3434 var i = n.data("xs") == t ? 0 : n.data("xs"), s = n.data("ys") == t ? 0 : n.data("ys"), o = n.data("xe") == t ? 0 : n.data("xe"), u = n.data("ye") == t ? 0 : n.data("ye"), a = n.data("speed") == t ? 2 : n.data("speed"), f = n.data("easing") == t ? punchgs.Power2.easeInOut : n.data("easing"); 3435 i = i * r; 3436 s = s * r; 3437 o = o * r; 3438 u = u * r;
3439 n.data("timeline").append(new punchgs.TweenLite.fromTo(n, a, {force3D: "auto", x: i, y: s}, { 3440 x: o, 3441 y: u, 3442 ease: f 3443 })); 3444 n.data("timeline").append(new punchgs.TweenLite.fromTo(n, a, {force3D: "auto", x: o, y: u}, { 3445 x: i, 3446 y: s, 3447 onComplete: function () { 3448 n.data("timeline").restart() 3449 } 3450 })) 3451 } 3452 }); 3453 n.find(".rs-pulse").each(function () { 3454 var n = e(this); 3455 if (n.data("timeline") == t) { 3456 n.data("timeline", new punchgs.TimelineLite); 3457 var r = n.data("zoomstart") == t ? 0 : n.data("zoomstart"), i = n.data("zoomend") == t ? 0 : n.data("zoomend"), s = n.data("speed") == t ? 2 : n.data("speed"), o = n.data("easing") == t ? punchgs.Power2.easeInOut : n.data("easing"); 3458 n.data("timeline").append(new punchgs.TweenLite.fromTo(n, s, {force3D: "auto", scale: r}, { 3459 scale: i, 3460 ease: o 3461 })); 3462 n.data("timeline").append(new punchgs.TweenLite.fromTo(n, s, {force3D: "auto", scale: i}, { 3463 scale: r, 3464 onComplete: function () { 3465 n.data("timeline").restart() 3466 } 3467 })) 3468 } 3469 }); 3470 n.find(".rs-wave").each(function () { 3471 var n = e(this); 3472 if (n.data("timeline") == t) { 3473 n.data("timeline", new punchgs.TimelineLite); 3474 var i = n.data("angle") == t ? 10 : n.data("angle"), s = n.data("radius") == t ? 10 : n.data("radius"), o = n.data("speed") == t ? -20 : n.data("speed"), u = n.data("origin") == t ? -20 : n.data("origin"); 3475 i = i * r; 3476 s = s * r; 3477 var a = {a: 0, ang: i, element: n, unit: s}; 3478 n.data("timeline").append(new punchgs.TweenLite.fromTo(a, o, {a: 360}, { 3479 a: 0, 3480 force3D: "auto", 3481 ease: punchgs.Linear.easeNone, 3482 onUpdate: function () { 3483 var e = a.a * (Math.PI / 180); 3484 punchgs.TweenLite.to(a.element, .1, { 3485 force3D: "auto", 3486 x: Math.cos(e) * a.unit, 3487 y: a.unit * (1 - Math.sin(e)) 3488 }) 3489 }, 3490 onComplete: function () { 3491 n.data("timeline").restart() 3492 } 3493 })) 3494 } 3495 }) 3496 }; 3497 var U = function (n) { 3498 n.find(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function () { 3499 var n = e(this); 3500 if (n.data("timeline") != t) { 3501 n.data("timeline").pause(); 3502 n.data("timeline", null) 3503 } 3504 }) 3505 }; 3506 var z = function (n, r) { 3507 var i = 0; 3508 var s = n.find(".tp-caption"), o = r.container.find(".tp-static-layers").find(".tp-caption"); 3509 e.each(o, function (e, t) { 3510 s.push(t) 3511 }); 3512 s.each(function (n) { 3513 var s = -1, o = e(this); 3514 if (o.hasClass("tp-static-layer")) { 3515 if (o.data("startslide") == -1 || o.data("startslide") == "-1")o.data("startslide", 0); 3516 if (o.data("endslide") == -1 || o.data("endslide") == "-1")o.data("endslide", r.slideamount); 3517 if (o.hasClass("tp-is-shown")) { 3518 if (o.data("startslide") > r.next || o.data("endslide") < r.next) { 3519 s = 2; 3520 o.removeClass("tp-is-shown") 3521 } else { 3522 s = 0 3523 } 3524 } else { 3525 s = 2 3526 } 3527 } 3528 if (s != 0) { 3529 U(o); 3530 if (o.find("iframe").length > 0) { 3531 punchgs.TweenLite.to(o.find("iframe"), .2, {autoAlpha: 0}); 3532 if (J())o.find("iframe").remove(); 3533 try { 3534 var u = o.find("iframe"); 3535 var a = u.attr("id"); 3536 var f = $f(a); 3537 f.api("pause"); 3538 clearTimeout(o.data("timerplay")) 3539 } catch (l) { 3540 } 3541 try { 3542 var c = o.data("player"); 3543 c.stopVideo(); 3544 clearTimeout(o.data("timerplay")) 3545 } catch (l) { 3546 } 3547 } 3548 if (o.find("video").length > 0) { 3549 try { 3550 o.find("video").each(function (t) { 3551 var n = e(this).parent(); 3552 var r = n.attr("id"); 3553 clearTimeout(n.data("timerplay")); 3554 var i = this; 3555 i.pause() 3556 }) 3557 } catch (l) { 3558 } 3559 } 3560 try { 3561 var h = o.data("timeline"); 3562 var p = h.getLabelTime("frame99"); 3563 var d = h.time(); 3564 if (p > d) { 3565 var v = h.getTweensOf(o); 3566 e.each(v, function (e, t) { 3567 if (e != 0)t.pause() 3568 }); 3569 if (o.css("opacity") != 0) { 3570 var m = o.data("endspeed") == t ? o.data("speed") : o.data("endspeed"); 3571 if (m > i)i = m; 3572 h.play("frame99") 3573 } else h.progress(1, false) 3574 } 3575 } catch (l) { 3576 } 3577 } 3578 }); 3579 return i 3580 }; 3581 var W = function (e, n, r, i, s) { 3582 var o = e.data("timeline"); 3583 var u = new punchgs.TimelineLite; 3584 var a = e; 3585 if (r.typ == "chars")a = e.data("mySplitText").chars; else if (r.typ == "words")a = e.data("mySplitText").words; else if (r.typ == "lines")a = e.data("mySplitText").lines; 3586 r.animation.ease = r.ease; 3587 if (r.animation.rotationZ != t)r.animation.rotation = r.animation.rotationZ; 3588 r.animation.data = new Object; 3589 r.animation.data.oldx = r.animation.x; 3590 r.animation.data.oldy = r.animation.y; 3591 r.animation.x = r.animation.x * s; 3592 r.animation.y = r.animation.y * s; 3593 o.add(u.staggerTo(a, r.speed, r.animation, r.elementdelay), r.start); 3594 o.addLabel(i, r.start); 3595 e.data("timeline", o) 3596 }; 3597 var X = function (e, n, r, i, s, o) { 3598 var u = e.data("timeline"), a = new punchgs.TimelineLite; 3599 var f = P(), l = e.data("endspeed") == t ? e.data("speed") : e.data("endspeed"), c = e.attr("class"); 3600 f.ease = e.data("endeasing") == t ? punchgs.Power1.easeInOut : e.data("endeasing"); 3601 l = l / 1e3; 3602 if (c.match("ltr") || c.match("ltl") || c.match("str") || c.match("stl") || c.match("ltt") || c.match("ltb") || c.match("stt") || c.match("stb") || c.match("skewtoright") || c.match("skewtorightshort") || c.match("skewtoleft") || c.match("skewtoleftshort") || c.match("fadeout") || c.match("randomrotateout")) { 3603 if (c.match("skewtoright") || c.match("skewtorightshort"))f.skewX = 35; else if (c.match("skewtoleft") || c.match("skewtoleftshort"))f.skewX = -35; 3604 if (c.match("ltr") || c.match("skewtoright"))f.x = n.width + 60; else if (c.match("ltl") || c.match("skewtoleft"))f.x = 0 - (n.width + 60); else if (c.match("ltt"))f.y = 0 - (n.height + 60); else if (c.match("ltb"))f.y = n.height + 60; else if (c.match("str") || c.match("skewtorightshort")) { 3605 f.x = 50; 3606 f.opacity = 0 3607 } else if (c.match("stl") || c.match("skewtoleftshort")) { 3608 f.x = -50; 3609 f.opacity = 0 3610 } else if (c.match("stt")) { 3611 f.y = -50; 3612 f.opacity = 0 3613 } else if (c.match("stb")) { 3614 f.y = 50; 3615 f.opacity = 0 3616 } else if (c.match("randomrotateout")) { 3617 f.x = Math.random() * n.width; 3618 f.y = Math.random() * n.height; 3619 f.scale = Math.random() * 2 + .3; 3620 f.rotation = Math.random() * 360 - 180; 3621 f.opacity = 0 3622 } else if (c.match("fadeout")) { 3623 f.opacity = 0 3624 } 3625 if (c.match("skewtorightshort"))f.x = 270; else if (c.match("skewtoleftshort"))f.x = -270; 3626 f.data = new Object; 3627 f.data.oldx = f.x; 3628 f.data.oldy = f.y; 3629 f.x = f.x * o; 3630 f.y = f.y * o; 3631 f.overwrite = "auto"; 3632 var h = e; 3633 var h = e; 3634 if (e.data("splitout") == "chars")h = e.data("mySplitText").chars; else if (e.data("splitout") == "words")h = e.data("mySplitText").words; else if (e.data("splitout") == "lines")h = e.data("mySplitText").lines; 3635 var p = e.data("endelementdelay") == t ? 0 : e.data("endelementdelay"); 3636 u.add(a.staggerTo(h, l, f, p), r) 3637 } else if (e.hasClass("customout")) { 3638 f = H(f, e.data("customout")); 3639 var h = e; 3640 if (e.data("splitout") == "chars")h = e.data("mySplitText").chars; else if (e.data("splitout") == "words")h = e.data("mySplitText").words; else if (e.data("splitout") == "lines")h = e.data("mySplitText").lines; 3641 var p = e.data("endelementdelay") == t ? 0 : e.data("endelementdelay"); 3642 f.onStart = function () { 3643 punchgs.TweenLite.set(e, { 3644 transformPerspective: f.transformPerspective, 3645 transformOrigin: f.transformOrigin, 3646 overwrite: "auto" 3647 }) 3648 }; 3649 f.data = new Object; 3650 f.data.oldx = f.x; 3651 f.data.oldy = f.y; 3652 f.x = f.x * o; 3653 f.y = f.y * o; 3654 u.add(a.staggerTo(h, l, f, p), r) 3655 } else {
3656 i.delay = 0; 3657 u.add(punchgs.TweenLite.to(e, l, i), r) 3658 } 3659 u.addLabel(s, r); 3660 e.data("timeline", u) 3661 }; 3662 var V = function (t, n) { 3663 t.children().each(function () { 3664 try { 3665 e(this).die("click") 3666 } catch (t) { 3667 } 3668 try { 3669 e(this).die("mouseenter") 3670 } catch (t) { 3671 } 3672 try { 3673 e(this).die("mouseleave") 3674 } catch (t) { 3675 } 3676 try { 3677 e(this).unbind("hover") 3678 } catch (t) { 3679 } 3680 }); 3681 try { 3682 t.die("click", "mouseenter", "mouseleave") 3683 } catch (r) { 3684 } 3685 clearInterval(n.cdint); 3686 t = null 3687 }; 3688 var $ = function (n, r) { 3689 r.cd = 0; 3690 r.loop = 0; 3691 if (r.stopAfterLoops != t && r.stopAfterLoops > -1)r.looptogo = r.stopAfterLoops; else r.looptogo = 9999999; 3692 if (r.stopAtSlide != t && r.stopAtSlide > -1)r.lastslidetoshow = r.stopAtSlide; else r.lastslidetoshow = 999; 3693 r.stopLoop = "off"; 3694 if (r.looptogo == 0)r.stopLoop = "on"; 3695 if (r.slideamount > 1 && !(r.stopAfterLoops == 0 && r.stopAtSlide == 1)) { 3696 var i = n.find(".tp-bannertimer"); 3697 n.on("stoptimer", function () { 3698 var t = e(this).find(".tp-bannertimer"); 3699 t.data("tween").pause(); 3700 if (r.hideTimerBar == "on")t.css({visibility: "hidden"}) 3701 }); 3702 n.on("starttimer", function () { 3703 if (r.conthover != 1 && r.videoplaying != true && r.width > r.hideSliderAtLimit && r.bannertimeronpause != true && r.overnav != true)if (r.stopLoop == "on" && r.next == r.lastslidetoshow - 1 || r.noloopanymore == 1)r.noloopanymore = 1; else { 3704 i.css({visibility: "visible"}); 3705 i.data("tween").resume() 3706 } 3707 if (r.hideTimerBar == "on")i.css({visibility: "hidden"}) 3708 }); 3709 n.on("restarttimer", function () { 3710 var t = e(this).find(".tp-bannertimer"); 3711 if (r.stopLoop == "on" && r.next == r.lastslidetoshow - 1 || r.noloopanymore == 1)r.noloopanymore = 1; else { 3712 t.css({visibility: "visible"}); 3713 t.data("tween").kill(); 3714 t.data("tween", punchgs.TweenLite.fromTo(t, r.delay / 1e3, {width: "0%"}, { 3715 force3D: "auto", 3716 width: "100%", 3717 ease: punchgs.Linear.easeNone, 3718 onComplete: s, 3719 delay: 1 3720 })) 3721 } 3722 if (r.hideTimerBar == "on")t.css({visibility: "hidden"}) 3723 }); 3724 n.on("nulltimer", function () { 3725 i.data("tween").pause(0); 3726 if (r.hideTimerBar == "on")i.css({visibility: "hidden"}) 3727 }); 3728 var s = function () { 3729 if (e("body").find(n).length == 0) { 3730 V(n, r); 3731 clearInterval(r.cdint) 3732 } 3733 n.trigger("revolution.slide.slideatend"); 3734 if (n.data("conthover-changed") == 1) { 3735 r.conthover = n.data("conthover"); 3736 n.data("conthover-changed", 0) 3737 } 3738 r.act = r.next; 3739 r.next = r.next + 1; 3740 if (r.next > n.find(">ul >li").length - 1) { 3741 r.next = 0; 3742 r.looptogo = r.looptogo - 1; 3743 if (r.looptogo <= 0) { 3744 r.stopLoop = "on" 3745 } 3746 } 3747 if (r.stopLoop == "on" && r.next == r.lastslidetoshow - 1) { 3748 n.find(".tp-bannertimer").css({visibility: "hidden"}); 3749 n.trigger("revolution.slide.onstop");
3750 r.noloopanymore = 1 3751 } else { 3752 i.data("tween").restart() 3753 } 3754 N(n, r) 3755 }; 3756 i.data("tween", punchgs.TweenLite.fromTo(i, r.delay / 1e3, {width: "0%"}, { 3757 force3D: "auto", 3758 width: "100%", 3759 ease: punchgs.Linear.easeNone, 3760 onComplete: s, 3761 delay: 1 3762 })); 3763 i.data("opt", r); 3764 n.hover(function () { 3765 if (r.onHoverStop == "on" && !J()) { 3766 n.trigger("stoptimer"); 3767 n.trigger("revolution.slide.onpause"); 3768 var i = n.find(">ul >li:eq(" + r.next + ") .slotholder"); 3769 i.find(".defaultimg").each(function () { 3770 var n = e(this); 3771 if (n.data("kenburn") != t) { 3772 n.data("kenburn").pause() 3773 } 3774 }) 3775 } 3776 }, function () { 3777 if (n.data("conthover") != 1) { 3778 n.trigger("revolution.slide.onresume"); 3779 n.trigger("starttimer"); 3780 var i = n.find(">ul >li:eq(" + r.next + ") .slotholder"); 3781 i.find(".defaultimg").each(function () { 3782 var n = e(this); 3783 if (n.data("kenburn") != t) { 3784 n.data("kenburn").play() 3785 } 3786 }) 3787 } 3788 }) 3789 } 3790 }; 3791 var J = function () { 3792 var e = ["android", "webos", "iphone", "ipad", "blackberry", "Android", "webos", , "iPod", "iPhone", "iPad", "Blackberry", "BlackBerry"]; 3793 var t = false; 3794 for (var n in e) {
3795 if (navigator.userAgent.split(e[n]).length > 1) { 3796 t = true 3797 } 3798 } 3799 return t 3800 }; 3801 var K = function (e, t, n) { 3802 var r = t.data("owidth"); 3803 var i = t.data("oheight"); 3804 if (r / i > n.width / n.height) { 3805 var s = n.container.width() / r; 3806 var o = i * s; 3807 var u = o / n.container.height() * e; 3808 e = e * (100 / u); 3809 u = 100; 3810 e = e; 3811 return e + "% " + u + "%" + " 1" 3812 } else { 3813 var s = n.container.width() / r; 3814 var o = i * s; 3815 var u = o / n.container.height() * e; 3816 return e + "% " + u + "%" 3817 } 3818 }; 3819 var Q = function (n, r, i, s) { 3820 try { 3821 var o = n.find(">ul:first-child >li:eq(" + r.act + ")") 3822 } catch (u) { 3823 var o = n.find(">ul:first-child >li:eq(1)") 3824 } 3825 r.lastslide = r.act; 3826 var f = n.find(">ul:first-child >li:eq(" + r.next + ")"), l = f.find(".slotholder"), c = l.data("bgposition"), h = l.data("bgpositionend"), p = l.data("zoomstart") / 100, d = l.data("zoomend") / 100, v = l.data("rotationstart"), m = l.data("rotationend"), g = l.data("bgfit"), y = l.data("bgfitend"), b = l.data("easeme"), w = l.data("duration") / 1e3, E = 100; 3827 if (g == t)g = 100; 3828 if (y == t)y = 100; 3829 var S = g, x = y; 3830 g = K(g, l, r); 3831 y = K(y, l, r); 3832 E = K(100, l, r); 3833 if (p == t)p = 1; 3834 if (d == t)d = 1; 3835 if (v == t)v = 0; 3836 if (m == t)m = 0; 3837 if (p < 1)p = 1; 3838 if (d < 1)d = 1; 3839 var T = new Object; 3840 T.w = parseInt(E.split(" ")[0], 0), T.h = parseInt(E.split(" ")[1], 0); 3841 var N = false; 3842 if (E.split(" ")[2] == "1") { 3843 N = true 3844 } 3845 l.find(".defaultimg").each(function () { 3846 var t = e(this); 3847 if (l.find(".kenburnimg").length == 0)l.append('<div class="kenburnimg" style="position:absolute;z-index:1;width:100%;height:100%;top:0px;left:0px;"><img src="' + t.attr("src") + '" style="-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position:absolute;width:' + T.w + "%;height:" + T.h + '%;"></div>'); else { 3848 l.find(".kenburnimg img").css({width: T.w + "%", height: T.h + "%"}) 3849 } 3850 var n = l.find(".kenburnimg img"); 3851 var i = G(r, c, g, n, N), o = G(r, h, y, n, N); 3852 if (N) { 3853 i.w = S / 100; 3854 o.w = x / 100 3855 } 3856 if (s) { 3857 punchgs.TweenLite.set(n, { 3858 autoAlpha: 0, 3859 transformPerspective: 1200, 3860 transformOrigin: "0% 0%", 3861 top: 0, 3862 left: 0, 3863 scale: i.w, 3864 x: i.x, 3865 y: i.y 3866 }); 3867 var u = i.w, f = u * n.width() - r.width, p = u * n.height() - r.height, d = Math.abs(i.x / f * 100), v = Math.abs(i.y / p * 100); 3868 if (p == 0)v = 0; 3869 if (f == 0)d = 0; 3870 t.data("bgposition", d + "% " + v + "%"); 3871 if (!a(8))t.data("currotate", Y(n)); 3872 if (!a(8))t.data("curscale", T.w * u + "% " + (T.h * u + "%")); 3873 l.find(".kenburnimg").remove() 3874 } else t.data("kenburn", punchgs.TweenLite.fromTo(n, w, { 3875 autoAlpha: 1, 3876 force3D: punchgs.force3d, 3877 transformOrigin: "0% 0%", 3878 top: 0, 3879 left: 0, 3880 scale: i.w, 3881 x: i.x, 3882 y: i.y 3883 }, { 3884 autoAlpha: 1, rotationZ: m, ease: b, x: o.x, y: o.y, scale: o.w, onUpdate: function () { 3885 var e = n[0]._gsTransform.scaleX; 3886 var i = e * n.width() - r.width, s = e * n.height() - r.height, o = Math.abs(n[0]._gsTransform.x / i * 100), u = Math.abs(n[0]._gsTransform.y / s * 100); 3887 if (s == 0)u = 0; 3888 if (i == 0)o = 0; 3889 t.data("bgposition", o + "% " + u + "%"); 3890 if (!a(8))t.data("currotate", Y(n)); 3891 if (!a(8))t.data("curscale", T.w * e + "% " + (T.h * e + "%")) 3892 } 3893 })) 3894 }) 3895 }; 3896 var G = function (e, t, n, r, i) { 3897 var s = new Object; 3898 if (!i)s.w = parseInt(n.split(" ")[0], 0) / 100; else s.w = parseInt(n.split(" ")[1], 0) / 100; 3899 switch (t) { 3900 case"left top":
3901 case"top left": 3902 s.x = 0; 3903 s.y = 0; 3904 break; 3905 case"center top": 3906 case"top center": 3907 s.x = ((0 - r.width()) * s.w + parseInt(e.width, 0)) / 2; 3908 s.y = 0; 3909 break; 3910 case"top right": 3911 case"right top": 3912 s.x = (0 - r.width()) * s.w + parseInt(e.width, 0); 3913 s.y = 0; 3914 break; 3915 case"center left": 3916 case"left center": 3917 s.x = 0; 3918 s.y = ((0 - r.height()) * s.w + parseInt(e.height, 0)) / 2; 3919 break; 3920 case"center center": 3921 s.x = ((0 - r.width()) * s.w + parseInt(e.width, 0)) / 2; 3922 s.y = ((0 - r.height()) * s.w + parseInt(e.height, 0)) / 2; 3923 break; 3924 case"center right": 3925 case"right center": 3926 s.x = (0 - r.width()) * s.w + parseInt(e.width, 0); 3927 s.y = ((0 - r.height()) * s.w + parseInt(e.height, 0)) / 2; 3928 break; 3929 case"bottom left": 3930 case"left bottom": 3931 s.x = 0; 3932 s.y = (0 - r.height()) * s.w + parseInt(e.height, 0); 3933 break;
3934 case"bottom center": 3935 case"center bottom": 3936 s.x = ((0 - r.width()) * s.w + parseInt(e.width, 0)) / 2; 3937 s.y = (0 - r.height()) * s.w + parseInt(e.height, 0); 3938 break; 3939 case"bottom right": 3940 case"right bottom": 3941 s.x = (0 - r.width()) * s.w + parseInt(e.width, 0); 3942 s.y = (0 - r.height()) * s.w + parseInt(e.height, 0); 3943 break 3944 } 3945 return s 3946 }; 3947 var Y = function (e) { 3948 var t = e.css("-webkit-transform") || e.css("-moz-transform") || e.css("-ms-transform") || e.css("-o-transform") || e.css("transform"); 3949 if (t !== "none") { 3950 var n = t.split("(")[1].split(")")[0].split(","); 3951 var r = n[0]; 3952 var i = n[1]; 3953 var s = Math.round(Math.atan2(i, r) * (180 / Math.PI)) 3954 } else { 3955 var s = 0 3956 } 3957 return s < 0 ? s += 360 : s 3958 }; 3959 var Z = function (n, r) { 3960 try { 3961 var i = n.find(">ul:first-child >li:eq(" + r.act + ")") 3962 } catch (s) { 3963 var i = n.find(">ul:first-child >li:eq(1)") 3964 } 3965 r.lastslide = r.act; 3966 var o = n.find(">ul:first-child >li:eq(" + r.next + ")"); 3967 var u = i.find(".slotholder"); 3968 var a = o.find(".slotholder"); 3969 n.find(".defaultimg").each(function () { 3970 var n = e(this); 3971 punchgs.TweenLite.killTweensOf(n, false); 3972 punchgs.TweenLite.set(n, {scale: 1, rotationZ: 0}); 3973 punchgs.TweenLite.killTweensOf(n.data("kenburn img"), false); 3974 if (n.data("kenburn") != t) { 3975 n.data("kenburn").pause() 3976 } 3977 if (n.data("currotate") != t && n.data("bgposition") != t && n.data("curscale") != t)punchgs.TweenLite.set(n, { 3978 rotation: n.data("currotate"), 3979 backgroundPosition: n.data("bgposition"), 3980 backgroundSize: n.data("curscale") 3981 }); 3982 if (n != t && n.data("kenburn img") != t && n.data("kenburn img").length > 0)punchgs.TweenLite.set(n.data("kenburn img"), {autoAlpha: 0}) 3983 }) 3984 }; 3985 var et = function (t, n) { 3986 if (J() && n.parallaxDisableOnMobile == "on")return false; 3987 t.find(">ul:first-child >li").each(function () { 3988 var t = e(this); 3989 for (var r = 1; r <= 10; r++)t.find(".rs-parallaxlevel-" + r).each(function () { 3990 var t = e(this); 3991 t.wrap('<div style="position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:' + t.css("zIndex") + '" class="tp-parallax-container" data-parallaxlevel="' + n.parallaxLevels[r - 1] + '"></div>') 3992 }) 3993 }); 3994 if (n.parallax == "mouse" || n.parallax == "scroll+mouse" || n.parallax == "mouse+scroll") { 3995 t.mouseenter(function (e) { 3996 var n = t.find(".current-sr-slide-visible"); 3997 var r = t.offset().top, i = t.offset().left, s = e.pageX - i, o = e.pageY - r; 3998 n.data("enterx", s); 3999 n.data("entery", o) 4000 }); 4001 t.on("mousemove.hoverdir, mouseleave.hoverdir", function (r) { 4002 var i = t.find(".current-sr-slide-visible"); 4003 switch (r.type) { 4004 case"mousemove": 4005 var s = t.offset().top, o = t.offset().left, u = i.data("enterx"), a = i.data("entery"), f = u - (r.pageX - o), l = a - (r.pageY - s); 4006 i.find(".tp-parallax-container").each(function () { 4007 var t = e(this), r = parseInt(t.data("parallaxlevel"), 0) / 100, i = f * r, s = l * r; 4008 if (n.parallax == "scroll+mouse" || n.parallax == "mouse+scroll")punchgs.TweenLite.to(t, .4, { 4009 force3D: "auto", 4010 x: i, 4011 ease: punchgs.Power3.easeOut, 4012 overwrite: "all" 4013 }); else punchgs.TweenLite.to(t, .4, { 4014 force3D: "auto", 4015 x: i, 4016 y: s, 4017 ease: punchgs.Power3.easeOut, 4018 overwrite: "all" 4019 }) 4020 }); 4021 break; 4022 case"mouseleave":
4023 i.find(".tp-parallax-container").each(function () { 4024 var t = e(this); 4025 if (n.parallax == "scroll+mouse" || n.parallax == "mouse+scroll")punchgs.TweenLite.to(t, 1.5, { 4026 force3D: "auto", 4027 x: 0, 4028 ease: punchgs.Power3.easeOut 4029 }); else punchgs.TweenLite.to(t, 1.5, { 4030 force3D: "auto", 4031 x: 0, 4032 y: 0, 4033 ease: punchgs.Power3.easeOut 4034 }) 4035 }); 4036 break 4037 } 4038 }); 4039 if (J())window.ondeviceorientation = function (n) { 4040 var r = Math.round(n.beta || 0), i = Math.round(n.gamma || 0); 4041 var s = t.find(".current-sr-slide-visible"); 4042 if (e(window).width() > e(window).height()) { 4043 var o = i; 4044 i = r; 4045 r = o 4046 } 4047 var u = 360 / t.width() * i, a = 180 / t.height() * r; 4048 s.find(".tp-parallax-container").each(function () { 4049 var t = e(this), n = parseInt(t.data("parallaxlevel"), 0) / 100, r = u * n, i = a * n; 4050 punchgs.TweenLite.to(t, .2, {force3D: "auto", x: r, y: i, ease: punchgs.Power3.easeOut}) 4051 }) 4052 } 4053 } 4054 if (n.parallax == "scroll" || n.parallax == "scroll+mouse" || n.parallax == "mouse+scroll") { 4055 e(window).on("scroll", function (e) { 4056 tt(t, n) 4057 }) 4058 } 4059 }; 4060 var tt = function (t, n) { 4061 if (J() && n.parallaxDisableOnMobile == "on")return false; 4062 var r = t.offset().top, i = e(window).scrollTop(), s = r + t.height() / 2, o = r + t.height() / 2 - i, u = e(window).height() / 2, a = u - o; 4063 if (s < u)a = a - (u - s); 4064 var f = t.find(".current-sr-slide-visible"); 4065 t.find(".tp-parallax-container").each(function (t) { 4066 var n = e(this), r = parseInt(n.data("parallaxlevel"), 0) / 100, i = a * r; 4067 n.data("parallaxoffset", i); 4068 punchgs.TweenLite.to(n, .2, {force3D: "auto", y: i, ease: punchgs.Power3.easeOut}) 4069 }); 4070 if (n.parallaxBgFreeze != "on") { 4071 var l = n.parallaxLevels[0] / 100, c = a * l; 4072 punchgs.TweenLite.to(t, .2, {force3D: "auto", y: c, ease: punchgs.Power3.easeOut}) 4073 } 4074 }; 4075 var nt = function (n, r) { 4076 var i = n.parent(); 4077 if (r.navigationType == "thumb" || r.navsecond == "both") { 4078 i.append('<div class="tp-bullets tp-thumbs ' + r.navigationStyle + '"><div class="tp-mask"><div class="tp-thumbcontainer"></div></div></div>') 4079 } 4080 var s = i.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"); 4081 var o = s.parent(); 4082 o.width(r.thumbWidth * r.thumbAmount); 4083 o.height(r.thumbHeight); 4084 o.parent().width(r.thumbWidth * r.thumbAmount); 4085 o.parent().height(r.thumbHeight); 4086 n.find(">ul:first >li").each(function (e) { 4087 var i = n.find(">ul:first >li:eq(" + e + ")"); 4088 var o = i.find(".defaultimg").css("backgroundColor"); 4089 if (i.data("thumb") != t)var u = i.data("thumb"); else var u = i.find("img:first").attr("src"); 4090 s.append('<div class="bullet thumb" style="background-color:' + o + ";position:relative;width:" + r.thumbWidth + "px;height:" + r.thumbHeight + "px;background-image:url(" + u + ') !important;background-size:cover;background-position:center center;"></div>'); 4091 var a = s.find(".bullet:first") 4092 }); 4093 var u = 10; 4094 s.find(".bullet").each(function (t) { 4095 var i = e(this); 4096 if (t == r.slideamount - 1)i.addClass("last"); 4097 if (t == 0)i.addClass("first"); 4098 i.width(r.thumbWidth); 4099 i.height(r.thumbHeight); 4100 if (u < i.outerWidth(true))u = i.outerWidth(true); 4101 i.click(function () { 4102 if (r.transition == 0 && i.index() != r.act) { 4103 r.next = i.index(); 4104 f(r, n) 4105 } 4106 }) 4107 }); 4108 var a = u * n.find(">ul:first >li").length; 4109 var l = s.parent().width(); 4110 r.thumbWidth = u; 4111 if (l < a) { 4112 e(document).mousemove(function (t) { 4113 e("body").data("mousex", t.pageX) 4114 }); 4115 s.parent().mouseenter(function () { 4116 var t = e(this); 4117 var r = t.offset(), i = e("body").data("mousex") - r.left, s = t.width(), o = t.find(".bullet:first").outerWidth(true), u = o * n.find(">ul:first >li").length, a = u - s + 15, f = a / s; 4118 t.addClass("over");
4119 i = i - 30; 4120 var l = 0 - i * f; 4121 if (l > 0)l = 0; 4122 if (l < 0 - u + s)l = 0 - u + s; 4123 it(t, l, 200) 4124 }); 4125 s.parent().mousemove(function () { 4126 var t = e(this), r = t.offset(), i = e("body").data("mousex") - r.left, s = t.width(), o = t.find(".bullet:first").outerWidth(true), u = o * n.find(">ul:first >li").length - 1, a = u - s + 15, f = a / s; 4127 i = i - 3; 4128 if (i < 6)i = 0; 4129 if (i + 3 > s - 6)i = s; 4130 var l = 0 - i * f; 4131 if (l > 0)l = 0; 4132 if (l < 0 - u + s)l = 0 - u + s; 4133 it(t, l, 0) 4134 }); 4135 s.parent().mouseleave(function () { 4136 var t = e(this); 4137 t.removeClass("over"); 4138 rt(n) 4139 }) 4140 } 4141 }; 4142 var rt = function (e) { 4143 var t = e.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"), n = t.parent(), r = n.offset(), i = n.find(".bullet:first").outerWidth(true), s = n.find(".bullet.selected").index() * i, o = n.width(), i = n.find(".bullet:first").outerWidth(true), u = i * e.find(">ul:first >li").length, a = u - o, f = a / o, l = 0 - s; 4144 if (l > 0)l = 0; 4145 if (l < 0 - u + o)l = 0 - u + o; 4146 if (!n.hasClass("over")) { 4147 it(n, l, 200) 4148 } 4149 }; 4150 var it = function (e, t, n) { 4151 punchgs.TweenLite.to(e.find(".tp-thumbcontainer"), .2, { 4152 force3D: "auto", 4153 left: t, 4154 ease: punchgs.Power3.easeOut, 4155 overwrite: "auto" 4156 }) 4157 } 4158})(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.