1function revslider_showDoubleJqueryError(e) { 2 var t = "Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include."; 3 t += "<br> This includes make eliminates the revolution slider libraries, and make it not work."; 4 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."; 5 t += "<br>ÃÂ ÃÂ ÃÂ 2. Find the double jquery.js include and remove it."; 6 t = "<span style='font-size:16px;color:#BC0C06;'>" + t + "</span>"; 7 jQuery(e).show().html(t); 8} 9(function (e) { 10 function r(e) { 11 if (e in t.style) return e; 12 var n = ["Moz", "Webkit", "O", "ms"]; 13 var r = e.charAt(0).toUpperCase() + e.substr(1); 14 if (e in t.style) { 15 return e; 16 } 17 for (var i = 0; i < n.length; ++i) { 18 var s = n[i] + r; 19 if (s in t.style) { 20 return s; 21 } 22 } 23 } 24 function i() { 25 t.style[n.transform] = ""; 26 t.style[n.transform] = "rotateY(90deg)"; 27 return t.style[n.transform] !== ""; 28 } 29 function f(e) { 30 if (typeof e === "string") { 31 this.parse(e); 32 } 33 return this; 34 } 35 function l(e, t, n) { 36 if (t === true) { 37 e.queue(n); 38 } else if (t) { 39 e.queue(t, n); 40 } else { 41 n(); 42 } 43 } 44 function c(t) { 45 var n = []; 46 e.each(t, function (t) { 47 t = e.camelCase(t); 48 t = e.transit.propertyMap[t] || e.cssProps[t] || t; 49 t = d(t); 50 if (e.inArray(t, n) === -1) { 51 n.push(t); 52 } 53 }); 54 return n; 55 } 56 function h(t, n, r, i) { 57 var s = c(t); 58 if (e.cssEase[r]) { 59 r = e.cssEase[r]; 60 } 61 var o = "" + m(n) + " " + r; 62 if (parseInt(i, 10) > 0) { 63 o += " " + m(i); 64 } 65 var u = []; 66 e.each(s, function (e, t) { 67 u.push(t + " " + o); 68 }); 69 return u.join(", "); 70 } 71 function p(t, r) { 72 if (!r) { 73 e.cssNumber[t] = true; 74 } 75 e.transit.propertyMap[t] = n.transform; 76 e.cssHooks[t] = { 77 get: function (n) { 78 var r = e(n).css("transit:transform"); 79 return r.get(t); 80 }, 81 set: function (n, r) { 82 var i = e(n).css("transit:transform"); 83 i.setFromString(t, r); 84 e(n).css({ "transit:transform": i }); 85 }, 86 }; 87 } 88 function d(e) { 89 return e.replace(/([A-Z])/g, function (e) { 90 return "-" + e.toLowerCase(); 91 }); 92 } 93 function v(e, t) { 94 if (typeof e === "string" && !e.match(/^[\-0-9\.]+$/)) { 95 return e; 96 } else { 97 return "" + e + t; 98 } 99 } 100 function m(t) { 101 var n = t; 102 if (typeof n === "string" && !n.match(/^[\-0-9\.]+/)) { 103 n = e.fx.speeds[n] || e.fx.speeds._default; 104 } 105 return v(n, "ms"); 106 } 107 e.transit = { 108 version: "0.9.9", 109 propertyMap: { marginLeft: "margin", marginRight: "margin", marginBottom: "margin", marginTop: "margin", paddingLeft: "padding", paddingRight: "padding", paddingBottom: "padding", paddingTop: "padding" }, 110 enabled: true, 111 useTransitionEnd: false, 112 }; 113 var t = document.createElement("div"); 114 var n = {}; 115 var s = navigator.userAgent.toLowerCase().indexOf("chrome") > -1; 116 n.transition = r("transition"); 117 n.transitionDelay = r("transitionDelay"); 118 n.transform = r("transform"); 119 n.transformOrigin = r("transformOrigin"); 120 n.transform3d = i(); 121 var o = { transition: "transitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd", WebkitTransition: "webkitTransitionEnd", msTransition: "MSTransitionEnd" }; 122 var u = (n.transitionEnd = o[n.transition] || null); 123 for (var a in n) { 124 if (n.hasOwnProperty(a) && typeof e.support[a] === "undefined") { 125 e.support[a] = n[a]; 126 } 127 } 128 t = null; 129 e.cssEase = { 130 _default: "ease", 131 in: "ease-in", 132 out: "ease-out", 133 "in-out": "ease-in-out", 134 snap: "cubic-bezier(0,1,.5,1)", 135 easeInCubic: "cubic-bezier(.55, .055, .675, .19)", 136 easeOutCubic: "cubic-bezier(.215,.61,.355,1)", 137 easeInOutCubic: "cubic-bezier(.645,.045,.355,1)", 138 easeInCirc: "cubic-bezier(.6,.04,.98,.335)", 139 easeOutCirc: "cubic-bezier(.075,.82,.165,1)", 140 easeInOutCirc: "cubic-bezier(.785,.135,.15,.86)", 141 easeInExpo: "cubic-bezier(.95,.05,.795,.035)", 142 easeOutExpo: "cubic-bezier(.19,1,.22,1)", 143 easeInOutExpo: "cubic-bezier(1,0,0,1)", 144 easeInQuad: "cubic-bezier(.55,.085,.68,.53)", 145 easeOutQuad: "cubic-bezier(.25,.46,.45,.94)", 146 easeInOutQuad: "cubic-bezier(.455,.03,.515,.955)", 147 easeInQuart: "cubic-bezier(.895,.03,.685,.22)", 148 easeOutQuart: "cubic-bezier(.165,.84,.44,1)",
vendor: 6,922 bytes, lines 149-360
149 easeInOutQuart: "cubic-bezier(.77,0,.175,1)", 150 easeInQuint: "cubic-bezier(.755,.05,.855,.06)", 151 easeOutQuint: "cubic-bezier(.23,1,.32,1)", 152 easeInOutQuint: "cubic-bezier(.86,0,.07,1)", 153 easeInSine: "cubic-bezier(.47,0,.745,.715)", 154 easeOutSine: "cubic-bezier(.39,.575,.565,1)", 155 easeInOutSine: "cubic-bezier(.445,.05,.55,.95)", 156 easeInBack: "cubic-bezier(.6,-.28,.735,.045)", 157 easeOutBack: "cubic-bezier(.175, .885,.32,1.275)", 158 easeInOutBack: "cubic-bezier(.68,-.55,.265,1.55)", 159 }; 160 e.cssHooks["transit:transform"] = { 161 get: function (t) { 162 return e(t).data("transform") || new f(); 163 }, 164 set: function (t, r) { 165 var i = r; 166 if (!(i instanceof f)) { 167 i = new f(i); 168 } 169 if (n.transform === "WebkitTransform" && !s) { 170 t.style[n.transform] = i.toString(true); 171 } else { 172 t.style[n.transform] = i.toString(); 173 } 174 e(t).data("transform", i); 175 }, 176 }; 177 e.cssHooks.transform = { set: e.cssHooks["transit:transform"].set }; 178 if (e.fn.jquery < "1.8") { 179 e.cssHooks.transformOrigin = { 180 get: function (e) { 181 return e.style[n.transformOrigin]; 182 }, 183 set: function (e, t) { 184 e.style[n.transformOrigin] = t; 185 }, 186 }; 187 e.cssHooks.transition = { 188 get: function (e) { 189 return e.style[n.transition]; 190 }, 191 set: function (e, t) { 192 e.style[n.transition] = t; 193 }, 194 }; 195 } 196 p("scale"); 197 p("translate"); 198 p("rotate"); 199 p("rotateX"); 200 p("rotateY"); 201 p("rotate3d"); 202 p("perspective"); 203 p("skewX"); 204 p("skewY"); 205 p("x", true); 206 p("y", true); 207 f.prototype = { 208 setFromString: function (e, t) { 209 var n = typeof t === "string" ? t.split(",") : t.constructor === Array ? t : [t]; 210 n.unshift(e); 211 f.prototype.set.apply(this, n); 212 }, 213 set: function (e) { 214 var t = Array.prototype.slice.apply(arguments, [1]); 215 if (this.setter[e]) { 216 this.setter[e].apply(this, t); 217 } else { 218 this[e] = t.join(","); 219 } 220 }, 221 get: function (e) { 222 if (this.getter[e]) { 223 return this.getter[e].apply(this); 224 } else { 225 return this[e] || 0; 226 } 227 }, 228 setter: { 229 rotate: function (e) { 230 this.rotate = v(e, "deg"); 231 }, 232 rotateX: function (e) { 233 this.rotateX = v(e, "deg"); 234 }, 235 rotateY: function (e) { 236 this.rotateY = v(e, "deg"); 237 }, 238 scale: function (e, t) { 239 if (t === undefined) { 240 t = e; 241 } 242 this.scale = e + "," + t; 243 }, 244 skewX: function (e) { 245 this.skewX = v(e, "deg"); 246 }, 247 skewY: function (e) { 248 this.skewY = v(e, "deg"); 249 }, 250 perspective: function (e) { 251 this.perspective = v(e, "px"); 252 }, 253 x: function (e) { 254 this.set("translate", e, null); 255 }, 256 y: function (e) { 257 this.set("translate", null, e); 258 }, 259 translate: function (e, t) { 260 if (this._translateX === undefined) { 261 this._translateX = 0; 262 } 263 if (this._translateY === undefined) { 264 this._translateY = 0; 265 } 266 if (e !== null && e !== undefined) { 267 this._translateX = v(e, "px"); 268 } 269 if (t !== null && t !== undefined) { 270 this._translateY = v(t, "px"); 271 } 272 this.translate = this._translateX + "," + this._translateY; 273 }, 274 }, 275 getter: { 276 x: function () { 277 return this._translateX || 0; 278 }, 279 y: function () { 280 return this._translateY || 0; 281 }, 282 scale: function () { 283 var e = (this.scale || "1,1").split(","); 284 if (e[0]) { 285 e[0] = parseFloat(e[0]); 286 } 287 if (e[1]) { 288 e[1] = parseFloat(e[1]); 289 } 290 return e[0] === e[1] ? e[0] : e; 291 }, 292 rotate3d: function () { 293 var e = (this.rotate3d || "0,0,0,0deg").split(","); 294 for (var t = 0; t <= 3; ++t) { 295 if (e[t]) { 296 e[t] = parseFloat(e[t]); 297 } 298 } 299 if (e[3]) { 300 e[3] = v(e[3], "deg"); 301 } 302 return e; 303 }, 304 }, 305 parse: function (e) { 306 var t = this; 307 e.replace(/([a-zA-Z0-9]+)\((.*?)\)/g, function (e, n, r) { 308 t.setFromString(n, r); 309 }); 310 }, 311 toString: function (e) { 312 var t = []; 313 for (var r in this) { 314 if (this.hasOwnProperty(r)) { 315 if (!n.transform3d && (r === "rotateX" || r === "rotateY" || r === "perspective" || r === "transformOrigin")) { 316 continue; 317 } 318 if (r[0] !== "_") { 319 if (e && r === "scale") { 320 t.push(r + "3d(" + this[r] + ",1)"); 321 } else if (e && r === "translate") { 322 t.push(r + "3d(" + this[r] + ",0)"); 323 } else { 324 t.push(r + "(" + this[r] + ")"); 325 } 326 } 327 } 328 } 329 return t.join(" "); 330 }, 331 }; 332 e.fn.transition = e.fn.transit = function (t, r, i, s) { 333 var o = this; 334 var a = 0; 335 var f = true; 336 var c = e.extend(true, {}, t); 337 if (typeof r === "function") { 338 s = r; 339 r = undefined; 340 } 341 if (typeof r === "object") { 342 i = r.easing; 343 a = r.delay || 0; 344 f = r.queue || true; 345 s = r.complete; 346 r = r.duration; 347 } 348 if (typeof i === "function") { 349 s = i; 350 i = undefined; 351 } 352 if (typeof c.easing !== "undefined") { 353 i = c.easing; 354 delete c.easing; 355 } 356 if (typeof c.duration !== "undefined") { 357 r = c.duration; 358 delete c.duration; 359 } 360 if (typeof c.complete !== "undefined") {
361 s = c.complete; 362 delete c.complete; 363 } 364 if (typeof c.queue !== "undefined") { 365 f = c.queue; 366 delete c.queue; 367 } 368 if (typeof c.delay !== "undefined") { 369 a = c.delay; 370 delete c.delay; 371 } 372 if (typeof r === "undefined") { 373 r = e.fx.speeds._default; 374 } 375 if (typeof i === "undefined") { 376 i = e.cssEase._default; 377 } 378 r = m(r); 379 var p = h(c, r, i, a); 380 var d = e.transit.enabled && n.transition; 381 var v = d ? parseInt(r, 10) + parseInt(a, 10) : 0; 382 if (v === 0) { 383 var g = function (e) { 384 o.css(c); 385 if (s) { 386 s.apply(o); 387 } 388 if (e) { 389 e(); 390 } 391 }; 392 l(o, f, g); 393 return o; 394 } 395 var y = {}; 396 var b = function (r) { 397 var i = false; 398 var a = function () { 399 if (i) { 400 o.unbind(u, a); 401 } 402 if (v > 0) { 403 o.each(function () { 404 this.style[n.transition] = y[this] || null; 405 }); 406 } 407 if (typeof s === "function") { 408 s.apply(o); 409 } 410 if (typeof r === "function") { 411 r(); 412 } 413 }; 414 if (v > 0 && u && e.transit.useTransitionEnd) { 415 i = true; 416 o.bind(u, a); 417 } else { 418 window.setTimeout(a, v); 419 } 420 o.each(function () { 421 if (v > 0) { 422 this.style[n.transition] = p; 423 } 424 e(this).css(t); 425 }); 426 }; 427 var w = function (e) { 428 this.offsetWidth; 429 b(e); 430 }; 431 l(o, f, w); 432 return this; 433 }; 434 e.transit.getTransitionValue = h; 435})(jQuery); 436(function (e, t) { 437 jQuery.easing["jswing"] = jQuery.easing["swing"]; 438 jQuery.extend(jQuery.easing, { 439 def: "easeOutQuad", 440 swing: function (e, t, n, r, i) { 441 return jQuery.easing[jQuery.easing.def](e, t, n, r, i); 442 }, 443 easeInQuad: function (e, t, n, r, i) { 444 return r * (t /= i) * t + n; 445 }, 446 easeOutQuad: function (e, t, n, r, i) { 447 return -r * (t /= i) * (t - 2) + n; 448 }, 449 easeInOutQuad: function (e, t, n, r, i) { 450 if ((t /= i / 2) < 1) return (r / 2) * t * t + n; 451 return (-r / 2) * (--t * (t - 2) - 1) + n; 452 }, 453 easeInCubic: function (e, t, n, r, i) { 454 return r * (t /= i) * t * t + n; 455 }, 456 easeOutCubic: function (e, t, n, r, i) { 457 return r * ((t = t / i - 1) * t * t + 1) + n; 458 }, 459 easeInOutCubic: function (e, t, n, r, i) { 460 if ((t /= i / 2) < 1) return (r / 2) * t * t * t + n; 461 return (r / 2) * ((t -= 2) * t * t + 2) + n; 462 }, 463 easeInQuart: function (e, t, n, r, i) { 464 return r * (t /= i) * t * t * t + n; 465 }, 466 easeOutQuart: function (e, t, n, r, i) { 467 return -r * ((t = t / i - 1) * t * t * t - 1) + n; 468 }, 469 easeInOutQuart: function (e, t, n, r, i) { 470 if ((t /= i / 2) < 1) return (r / 2) * t * t * t * t + n; 471 return (-r / 2) * ((t -= 2) * t * t * t - 2) + n; 472 }, 473 easeInQuint: function (e, t, n, r, i) { 474 return r * (t /= i) * t * t * t * t + n; 475 }, 476 easeOutQuint: function (e, t, n, r, i) { 477 return r * ((t = t / i - 1) * t * t * t * t + 1) + n; 478 }, 479 easeInOutQuint: function (e, t, n, r, i) { 480 if ((t /= i / 2) < 1) return (r / 2) * t * t * t * t * t + n; 481 return (r / 2) * ((t -= 2) * t * t * t * t + 2) + n; 482 }, 483 easeInSine: function (e, t, n, r, i) { 484 return -r * Math.cos((t / i) * (Math.PI / 2)) + r + n; 485 }, 486 easeOutSine: function (e, t, n, r, i) { 487 return r * Math.sin((t / i) * (Math.PI / 2)) + n; 488 }, 489 easeInOutSine: function (e, t, n, r, i) { 490 return (-r / 2) * (Math.cos((Math.PI * t) / i) - 1) + n; 491 }, 492 easeInExpo: function (e, t, n, r, i) { 493 return t == 0 ? n : r * Math.pow(2, 10 * (t / i - 1)) + n; 494 }, 495 easeOutExpo: function (e, t, n, r, i) { 496 return t == i ? n + r : r * (-Math.pow(2, (-10 * t) / i) + 1) + n; 497 }, 498 easeInOutExpo: function (e, t, n, r, i) { 499 if (t == 0) return n; 500 if (t == i) return n + r; 501 if ((t /= i / 2) < 1) return (r / 2) * Math.pow(2, 10 * (t - 1)) + n; 502 return (r / 2) * (-Math.pow(2, -10 * --t) + 2) + n; 503 }, 504 easeInCirc: function (e, t, n, r, i) { 505 return -r * (Math.sqrt(1 - (t /= i) * t) - 1) + n; 506 }, 507 easeOutCirc: function (e, t, n, r, i) { 508 return r * Math.sqrt(1 - (t = t / i - 1) * t) + n; 509 }, 510 easeInOutCirc: function (e, t, n, r, i) { 511 if ((t /= i / 2) < 1) return (-r / 2) * (Math.sqrt(1 - t * t) - 1) + n; 512 return (r / 2) * (Math.sqrt(1 - (t -= 2) * t) + 1) + n; 513 }, 514 easeInElastic: function (e, t, n, r, i) { 515 var s = 1.70158; 516 var o = 0; 517 var u = r; 518 if (t == 0) return n; 519 if ((t /= i) == 1) return n + r; 520 if (!o) o = i * 0.3; 521 if (u < Math.abs(r)) { 522 u = r; 523 var s = o / 4; 524 } else var s = (o / (2 * Math.PI)) * Math.asin(r / u); 525 return -(u * Math.pow(2, 10 * (t -= 1)) * Math.sin(((t * i - s) * 2 * Math.PI) / o)) + n; 526 }, 527 easeOutElastic: function (e, t, n, r, i) { 528 var s = 1.70158; 529 var o = 0; 530 var u = r; 531 if (t == 0) return n; 532 if ((t /= i) == 1) return n + r; 533 if (!o) o = i * 0.3; 534 if (u < Math.abs(r)) { 535 u = r; 536 var s = o / 4; 537 } else var s = (o / (2 * Math.PI)) * Math.asin(r / u); 538 return u * Math.pow(2, -10 * t) * Math.sin(((t * i - s) * 2 * Math.PI) / o) + r + n; 539 }, 540 easeInOutElastic: function (e, t, n, r, i) { 541 var s = 1.70158; 542 var o = 0; 543 var u = r; 544 if (t == 0) return n; 545 if ((t /= i / 2) == 2) return n + r; 546 if (!o) o = i * 0.3 * 1.5; 547 if (u < Math.abs(r)) { 548 u = r; 549 var s = o / 4; 550 } else var s = (o / (2 * Math.PI)) * Math.asin(r / u); 551 if (t < 1) return -0.5 * u * Math.pow(2, 10 * (t -= 1)) * Math.sin(((t * i - s) * 2 * Math.PI) / o) + n; 552 return u * Math.pow(2, -10 * (t -= 1)) * Math.sin(((t * i - s) * 2 * Math.PI) / o) * 0.5 + r + n; 553 }, 554 easeInBack: function (e, t, n, r, i, s) { 555 if (s == undefined) s = 1.70158; 556 return r * (t /= i) * t * ((s + 1) * t - s) + n; 557 }, 558 easeOutBack: function (e, t, n, r, i, s) { 559 if (s == undefined) s = 1.70158;
560 return r * ((t = t / i - 1) * t * ((s + 1) * t + s) + 1) + n; 561 }, 562 easeInOutBack: function (e, t, n, r, i, s) { 563 if (s == undefined) s = 1.70158; 564 if ((t /= i / 2) < 1) return (r / 2) * t * t * (((s *= 1.525) + 1) * t - s) + n; 565 return (r / 2) * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) + n; 566 }, 567 easeInBounce: function (e, t, n, r, i) { 568 return r - jQuery.easing.easeOutBounce(e, i - t, 0, r, i) + n; 569 }, 570 easeOutBounce: function (e, t, n, r, i) { 571 if ((t /= i) < 1 / 2.75) { 572 return r * 7.5625 * t * t + n; 573 } else if (t < 2 / 2.75) { 574 return r * (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) + n; 575 } else if (t < 2.5 / 2.75) { 576 return r * (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) + n; 577 } else { 578 return r * (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375) + n; 579 } 580 }, 581 easeInOutBounce: function (e, t, n, r, i) { 582 if (t < i / 2) return jQuery.easing.easeInBounce(e, t * 2, 0, r, i) * 0.5 + n; 583 return jQuery.easing.easeOutBounce(e, t * 2 - i, 0, r, i) * 0.5 + r * 0.5 + n; 584 }, 585 }); 586 e.waitForImages = { hasImageProperties: ["backgroundImage", "listStyleImage", "borderImage", "borderCornerImage"] }; 587 e.expr[":"].uncached = function (t) { 588 var n = document.createElement("img"); 589 n.src = t.src; 590 return e(t).is('img[src!=""]') && !n.complete; 591 }; 592 e.fn.waitForImages = function (t, n, r) { 593 if (e.isPlainObject(arguments[0])) { 594 n = t.each; 595 r = t.waitForAll; 596 t = t.finished; 597 } 598 t = t || e.noop; 599 n = n || e.noop; 600 r = !!r; 601 if (!e.isFunction(t) || !e.isFunction(n)) { 602 throw new TypeError("An invalid callback was supplied."); 603 } 604 return this.each(function () { 605 var i = e(this), 606 s = []; 607 if (r) { 608 var o = e.waitForImages.hasImageProperties || [], 609 u = /url\((['"]?)(.*?)\1\)/g; 610 i.find("*").each(function () { 611 var t = e(this); 612 if (t.is("img:uncached")) { 613 s.push({ src: t.attr("src"), element: t[0] }); 614 } 615 e.each(o, function (e, n) { 616 var r = t.css(n); 617 if (!r) { 618 return true; 619 } 620 var i; 621 while ((i = u.exec(r))) { 622 s.push({ src: i[2], element: t[0] }); 623 } 624 }); 625 }); 626 } else { 627 i.find("img:uncached").each(function () { 628 s.push({ src: this.src, element: this }); 629 }); 630 } 631 var a = s.length, 632 f = 0; 633 if (a == 0) { 634 t.call(i[0]); 635 } 636 e.each(s, function (r, s) { 637 var o = new Image(); 638 e(o).bind("load error", function (e) { 639 f++; 640 n.call(s.element, f, a, e.type == "load"); 641 if (f == a) { 642 t.call(i[0]); 643 return false; 644 } 645 }); 646 o.src = s.src; 647 }); 648 }); 649 }; 650 e.fn.swipe = function (t) { 651 if (!this) return false; 652 var n = { fingers: 1, threshold: 75, swipe: null, swipeLeft: null, swipeRight: null, swipeUp: null, swipeDown: null, swipeStatus: null, click: null, triggerOnTouchEnd: true, allowPageScroll: "auto" }; 653 var r = "left"; 654 var i = "right"; 655 var s = "up"; 656 var o = "down"; 657 var u = "none"; 658 var a = "horizontal"; 659 var f = "vertical"; 660 var l = "auto"; 661 var c = "start"; 662 var h = "move"; 663 var p = "end"; 664 var d = "cancel"; 665 var v = "ontouchstart" in window, 666 m = v ? "touchstart" : "mousedown", 667 g = v ? "touchmove" : "mousemove", 668 y = v ? "touchend" : "mouseup", 669 b = "touchcancel"; 670 var w = "start"; 671 if (t.allowPageScroll == undefined && (t.swipe != undefined || t.swipeStatus != undefined)) t.allowPageScroll = u; 672 if (t) e.extend(n, t); 673 return this.each(function () { 674 function t() { 675 var e = S(); 676 if (e <= 45 && e >= 0) return r;
677 else if (e <= 360 && e >= 315) return r; 678 else if (e >= 135 && e <= 225) return i; 679 else if (e > 45 && e < 135) return o; 680 else return s; 681 } 682 function S() { 683 var e = P.x - H.x; 684 var t = H.y - P.y; 685 var n = Math.atan2(t, e); 686 var r = Math.round((n * 180) / Math.PI); 687 if (r < 0) r = 360 - Math.abs(r); 688 return r; 689 } 690 function x() { 691 return Math.round(Math.sqrt(Math.pow(H.x - P.x, 2) + Math.pow(H.y - P.y, 2))); 692 } 693 function T(e, t) { 694 if (n.allowPageScroll == u) { 695 e.preventDefault(); 696 } else { 697 var c = n.allowPageScroll == l; 698 switch (t) { 699 case r: 700 if ((n.swipeLeft && c) || (!c && n.allowPageScroll != a)) e.preventDefault(); 701 break; 702 case i: 703 if ((n.swipeRight && c) || (!c && n.allowPageScroll != a)) e.preventDefault(); 704 break; 705 case s: 706 if ((n.swipeUp && c) || (!c && n.allowPageScroll != f)) e.preventDefault(); 707 break; 708 case o: 709 if ((n.swipeDown && c) || (!c && n.allowPageScroll != f)) e.preventDefault(); 710 break; 711 } 712 } 713 } 714 function N(e, t) { 715 if (n.swipeStatus) n.swipeStatus.call(M, e, t, direction || null, distance || 0); 716 if (t == d) { 717 if (n.click && (D == 1 || !v) && (isNaN(distance) || distance == 0)) n.click.call(M, e, e.target); 718 } 719 if (t == p) { 720 if (n.swipe) { 721 n.swipe.call(M, e, direction, distance); 722 } 723 switch (direction) { 724 case r: 725 if (n.swipeLeft) n.swipeLeft.call(M, e, direction, distance); 726 break; 727 case i: 728 if (n.swipeRight) n.swipeRight.call(M, e, direction, distance); 729 break; 730 case s: 731 if (n.swipeUp) n.swipeUp.call(M, e, direction, distance); 732 break; 733 case o: 734 if (n.swipeDown) n.swipeDown.call(M, e, direction, distance); 735 break; 736 } 737 } 738 } 739 function C(e) { 740 D = 0; 741 P.x = 0; 742 P.y = 0; 743 H.x = 0; 744 H.y = 0; 745 B.x = 0; 746 B.y = 0; 747 } 748 function k(e) { 749 e.preventDefault(); 750 distance = x(); 751 direction = t(); 752 if (n.triggerOnTouchEnd) { 753 w = p; 754 if ((D == n.fingers || !v) && H.x != 0) { 755 if (distance >= n.threshold) { 756 N(e, w); 757 C(e); 758 } else { 759 w = d; 760 N(e, w); 761 C(e); 762 } 763 } else { 764 w = d; 765 N(e, w); 766 C(e); 767 } 768 } else if (w == h) { 769 w = d; 770 N(e, w); 771 C(e); 772 } 773 O.removeEventListener(g, L, false); 774 O.removeEventListener(y, k, false); 775 } 776 function L(e) { 777 if (w == p || w == d) return; 778 var r = v ? e.touches[0] : e; 779 H.x = r.pageX; 780 H.y = r.pageY; 781 direction = t(); 782 if (v) { 783 D = e.touches.length; 784 } 785 w = h; 786 T(e, direction); 787 if (D == n.fingers || !v) { 788 distance = x(); 789 if (n.swipeStatus) N(e, w, direction, distance); 790 if (!n.triggerOnTouchEnd) { 791 if (distance >= n.threshold) { 792 w = p; 793 N(e, w); 794 C(e); 795 } 796 } 797 } else { 798 w = d; 799 N(e, w); 800 C(e); 801 } 802 } 803 function A(e) { 804 var t = v ? e.touches[0] : e; 805 w = c; 806 if (v) { 807 D = e.touches.length; 808 } 809 distance = 0; 810 direction = null; 811 if (D == n.fingers || !v) { 812 P.x = H.x = t.pageX; 813 P.y = H.y = t.pageY; 814 if (n.swipeStatus) N(e, w); 815 } else { 816 C(e); 817 } 818 O.addEventListener(g, L, { capture: false, passive: true }); 819 O.addEventListener(y, k, { capture: false, passive: true }); 820 } 821 var O = this; 822 var M = e(this); 823 var _ = null; 824 var D = 0; 825 var P = { x: 0, y: 0 }; 826 var H = { x: 0, y: 0 }; 827 var B = { x: 0, y: 0 }; 828 try { 829 this.addEventListener(m, A, { capture: false, passive: true }); 830 this.addEventListener(b, C); 831 } catch (j) {} 832 }); 833 }; 834})(jQuery); 835(function (e, t) { 836 function n(e) { 837 var t = [], 838 n; 839 var r = window.location.href.slice(window.location.href.indexOf(e) + 1).split("_"); 840 for (var i = 0; i < r.length; i++) { 841 r[i] = r[i].replace("%3D", "="); 842 n = r[i].split("="); 843 t.push(n[0]); 844 t[n[0]] = n[1]; 845 } 846 return t; 847 } 848 function r(n, r) { 849 n.find(".defaultimg").each(function (i) { 850 var s = e(this); 851 if ((s.data("lazyload") != t && s.data("lazydone") == 1) || s.data("lazyload") === t) g(s, r);
852 r.height = Math.round(r.startheight * (r.width / r.startwidth)); 853 n.height(r.height); 854 if ((s.data("lazyload") != t && s.data("lazydone") == 1) || s.data("lazyload") === t) g(s, r); 855 try { 856 n.parent().find(".tp-bannershadow").css({ width: r.width }); 857 } catch (u) {} 858 var a = n.find(">ul >li:eq(" + r.act + ") .slotholder"); 859 var f = n.find(">ul >li:eq(" + r.next + ") .slotholder"); 860 S(n, r); 861 f.find(".defaultimg").css({ opacity: 0 }); 862 a.find(".defaultimg").css({ opacity: 1 }); 863 x(n, r); 864 var l = n.find(">ul >li:eq(" + r.next + ")"); 865 n.find(".tp-caption").each(function () { 866 e(this).stop(true, true); 867 }); 868 D(l, r); 869 o(r, n); 870 }); 871 } 872 function s() { 873 var e = ["android", "webos", "iphone", "ipad", "blackberry", "Android", "webos", , "iPod", "iPhone", "iPad", "Blackberry", "BlackBerry"]; 874 var t = false; 875 for (i in e) {
876 if (navigator.userAgent.split(e[i]).length > 1) { 877 t = true; 878 } 879 } 880 return t; 881 } 882 function o(e, t) { 883 e.cd = 0; 884 if (e.videoplaying != true) { 885 var n = t.find(".tp-bannertimer"); 886 if (n.length > 0) { 887 n.stop(); 888 n.css({ width: "0%" }); 889 n.animate({ width: "100%" }, { duration: e.delay - 100, queue: false, easing: "linear" }); 890 } 891 clearTimeout(e.thumbtimer); 892 e.thumbtimer = setTimeout(function () { 893 l(t); 894 m(t, e); 895 }, 200); 896 } 897 } 898 function u(e, t) { 899 e.cd = 0; 900 var n = t.find(".tp-bannertimer"); 901 if (n.length > 0) { 902 n.stop(true, true); 903 n.css({ width: "0%" }); 904 } 905 clearTimeout(e.thumbtimer); 906 } 907 function a(e, t) { 908 e.cd = 0; 909 T(t, e); 910 var n = t.find(".tp-bannertimer"); 911 if (n.length > 0) { 912 n.stop(); 913 n.css({ width: "0%" }); 914 n.animate({ width: "100%" }, { duration: e.delay - 100, queue: false, easing: "linear" }); 915 } 916 } 917 function f(n, r) { 918 var i = n.parent(); 919 if (r.navigationType == "thumb" || r.navsecond == "both") { 920 i.append('<div class="tp-bullets tp-thumbs ' + r.navigationStyle + '"><div class="tp-mask"><div class="tp-thumbcontainer"></div></div></div>'); 921 } 922 var s = i.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"); 923 var o = s.parent(); 924 o.width(r.thumbWidth * r.thumbAmount); 925 o.height(r.thumbHeight); 926 o.parent().width(r.thumbWidth * r.thumbAmount); 927 o.parent().height(r.thumbHeight); 928 n.find(">ul:first >li").each(function (e) { 929 var r = n.find(">ul:first >li:eq(" + e + ")"); 930 if (r.data("thumb") != t) var i = r.data("thumb"); 931 else var i = r.find("img:first").attr("src"); 932 s.append('<div class="bullet thumb"><img src="' + i + '"></div>'); 933 var o = s.find(".bullet:first"); 934 }); 935 var u = 100; 936 s.find(".bullet").each(function (t) { 937 var i = e(this); 938 if (t == r.slideamount - 1) i.addClass("last"); 939 if (t == 0) i.addClass("first"); 940 i.width(r.thumbWidth); 941 i.height(r.thumbHeight); 942 if (u > i.outerWidth(true)) u = i.outerWidth(true); 943 i.click(function () { 944 if (r.transition == 0 && i.index() != r.act) { 945 r.next = i.index(); 946 a(r, n); 947 } 948 }); 949 }); 950 var f = u * n.find(">ul:first >li").length; 951 var h = s.parent().width(); 952 r.thumbWidth = u; 953 if (h < f) { 954 e(document).mousemove(function (t) { 955 e("body").data("mousex", t.pageX); 956 }); 957 s.parent().mouseenter(function () { 958 var t = e(this); 959 t.addClass("over"); 960 var r = t.offset(); 961 var i = e("body").data("mousex") - r.left; 962 var s = t.width(); 963 var o = t.find(".bullet:first").outerWidth(true); 964 var u = o * n.find(">ul:first >li").length; 965 var a = u - s + 15; 966 var f = a / s; 967 i = i - 30; 968 var l = 0 - i * f; 969 if (l > 0) l = 0; 970 if (l < 0 - u + s) l = 0 - u + s; 971 c(t, l, 200); 972 }); 973 s.parent().mousemove(function () { 974 var t = e(this); 975 var r = t.offset(); 976 var i = e("body").data("mousex") - r.left; 977 var s = t.width(); 978 var o = t.find(".bullet:first").outerWidth(true); 979 var u = o * n.find(">ul:first >li").length; 980 var a = u - s + 15; 981 var f = a / s; 982 i = i - 30; 983 var l = 0 - i * f; 984 if (l > 0) l = 0; 985 if (l < 0 - u + s) l = 0 - u + s; 986 c(t, l, 0); 987 }); 988 s.parent().mouseleave(function () { 989 var t = e(this); 990 t.removeClass("over"); 991 l(n); 992 }); 993 } 994 } 995 function l(e) { 996 var t = e.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"); 997 var n = t.parent(); 998 var r = n.offset(); 999 var i = n.find(".bullet:first").outerWidth(true); 1000 var s = n.find(".bullet.selected").index() * i; 1001 var o = n.width(); 1002 var i = n.find(".bullet:first").outerWidth(true); 1003 var u = i * e.find(">ul:first >li").length; 1004 var a = u - o; 1005 var f = a / o; 1006 var l = 0 - s; 1007 if (l > 0) l = 0; 1008 if (l < 0 - u + o) l = 0 - u + o; 1009 if (!n.hasClass("over")) { 1010 c(n, l, 200); 1011 } 1012 } 1013 function c(e, t, n) { 1014 e.stop(); 1015 e.find(".tp-thumbcontainer").animate({ left: t + "px" }, { duration: n, queue: false }); 1016 } 1017 function h(t, n) { 1018 if (n.navigationType == "bullet" || n.navigationType == "both") { 1019 t.parent().append('<div class="tp-bullets simplebullets ' + n.navigationStyle + '"></div>'); 1020 } 1021 var r = t.parent().find(".tp-bullets"); 1022 t.find(">ul:first >li").each(function (e) { 1023 var n = t.find(">ul:first >li:eq(" + e + ") img:first").attr("src"); 1024 r.append('<div class="bullet"></div>'); 1025 var i = r.find(".bullet:first"); 1026 }); 1027 r.find(".bullet").each(function (r) { 1028 var i = e(this); 1029 if (r == n.slideamount - 1) i.addClass("last"); 1030 if (r == 0) i.addClass("first"); 1031 i.click(function () { 1032 var e = false;
1033 if (n.navigationArrows == "withbullet" || n.navigationArrows == "nexttobullets") { 1034 if (i.index() - 1 == n.act) e = true; 1035 } else { 1036 if (i.index() == n.act) e = true; 1037 } 1038 if (n.transition == 0 && !e) { 1039 if (n.navigationArrows == "withbullet" || n.navigationArrows == "nexttobullets") { 1040 n.next = i.index() - 1; 1041 } else { 1042 n.next = i.index(); 1043 } 1044 a(n, t); 1045 } 1046 }); 1047 }); 1048 r.append('<div class="tpclear"></div>'); 1049 m(t, n); 1050 } 1051 function p(e, n) { 1052 var r = e.find(".tp-bullets"); 1053 var i = ""; 1054 var s = n.navigationStyle; 1055 if (n.navigationArrows == "none") i = "visibility:none"; 1056 n.soloArrowStyle = "default"; 1057 if (n.navigationArrows != "none" && n.navigationArrows != "nexttobullets") s = n.soloArrowStyle; 1058 e.parent().append('<div style="' + i + '" class="tp-leftarrow tparrows ' + s + '"></div>'); 1059 e.parent().append('<div style="' + i + '" class="tp-rightarrow tparrows ' + s + '"></div>'); 1060 e.parent() 1061 .find(".tp-rightarrow") 1062 .click(function () { 1063 if (n.transition == 0) { 1064 if (e.data("showus") != t && e.data("showus") != -1) n.next = e.data("showus") - 1; 1065 else n.next = n.next + 1; 1066 e.data("showus", -1); 1067 if (n.next >= n.slideamount) n.next = 0; 1068 if (n.next < 0) n.next = 0; 1069 if (n.act != n.next) a(n, e); 1070 } 1071 }); 1072 e.parent() 1073 .find(".tp-leftarrow") 1074 .click(function () { 1075 if (n.transition == 0) { 1076 n.next = n.next - 1; 1077 n.leftarrowpressed = 1; 1078 if (n.next < 0) n.next = n.slideamount - 1; 1079 a(n, e); 1080 } 1081 }); 1082 m(e, n); 1083 } 1084 function d(e, t) { 1085 if (t.touchenabled == "on") 1086 e.swipe({ 1087 data: e, 1088 swipeRight: function () { 1089 if (t.transition == 0) { 1090 t.next = t.next - 1; 1091 t.leftarrowpressed = 1; 1092 if (t.next < 0) t.next = t.slideamount - 1; 1093 a(t, e); 1094 } 1095 }, 1096 swipeLeft: function () { 1097 if (t.transition == 0) { 1098 t.next = t.next + 1; 1099 if (t.next == t.slideamount) t.next = 0; 1100 a(t, e); 1101 } 1102 }, 1103 allowPageScroll: "auto", 1104 }); 1105 } 1106 function v(e, t) { 1107 var n = e.parent().find(".tp-bullets"); 1108 var r = e.parent().find(".tparrows"); 1109 if (n == null) { 1110 e.append('<div class=".tp-bullets"></div>'); 1111 var n = e.parent().find(".tp-bullets"); 1112 } 1113 if (r == null) { 1114 e.append('<div class=".tparrows"></div>'); 1115 var r = e.parent().find(".tparrows"); 1116 } 1117 e.data("hidethumbs", t.hideThumbs); 1118 n.addClass("hidebullets"); 1119 r.addClass("hidearrows"); 1120 n.hover( 1121 function () { 1122 n.addClass("hovered"); 1123 clearTimeout(e.data("hidethumbs")); 1124 n.removeClass("hidebullets"); 1125 r.removeClass("hidearrows"); 1126 }, 1127 function () { 1128 n.removeClass("hovered"); 1129 if (!e.hasClass("hovered") && !n.hasClass("hovered")) 1130 e.data( 1131 "hidethumbs", 1132 setTimeout(function () { 1133 n.addClass("hidebullets"); 1134 r.addClass("hidearrows"); 1135 }, t.hideThumbs) 1136 ); 1137 } 1138 ); 1139 r.hover( 1140 function () { 1141 n.addClass("hovered"); 1142 clearTimeout(e.data("hidethumbs")); 1143 n.removeClass("hidebullets"); 1144 r.removeClass("hidearrows"); 1145 }, 1146 function () { 1147 n.removeClass("hovered"); 1148 } 1149 ); 1150 e.on("mouseenter", function () { 1151 e.addClass("hovered"); 1152 clearTimeout(e.data("hidethumbs")); 1153 n.removeClass("hidebullets"); 1154 r.removeClass("hidearrows"); 1155 }); 1156 e.on("mouseleave", function () { 1157 e.removeClass("hovered"); 1158 if (!e.hasClass("hovered") && !n.hasClass("hovered")) 1159 e.data( 1160 "hidethumbs", 1161 setTimeout(function () { 1162 n.addClass("hidebullets"); 1163 r.addClass("hidearrows"); 1164 }, t.hideThumbs) 1165 ); 1166 }); 1167 } 1168 function m(e, t) { 1169 var n = e.parent(); 1170 var r = n.find(".tp-bullets"); 1171 var i = n.find(".tp-leftarrow"); 1172 var s = n.find(".tp-rightarrow"); 1173 if (t.navigationType == "thumb" && t.navigationArrows == "nexttobullets") t.navigationArrows = "solo"; 1174 if (t.navigationArrows == "nexttobullets") { 1175 i.prependTo(r).css({ float: "left" }); 1176 s.insertBefore(r.find(".tpclear")).css({ float: "left" }); 1177 } 1178 if (t.navigationArrows != "none" && t.navigationArrows != "nexttobullets") { 1179 i.css({ position: "absolute" }); 1180 s.css({ position: "absolute" }); 1181 if (t.soloArrowLeftValign == "center") i.css({ top: "50%", marginTop: t.soloArrowLeftVOffset - Math.round(i.innerHeight() / 2) + "px" }); 1182 if (t.soloArrowLeftValign == "bottom") i.css({ top: "auto", bottom: 0 + t.soloArrowLeftVOffset + "px" }); 1183 if (t.soloArrowLeftValign == "top") i.css({ bottom: "auto", top: 0 + t.soloArrowLeftVOffset + "px" }); 1184 if (t.soloArrowLeftHalign == "center") i.css({ left: "50%", marginLeft: t.soloArrowLeftHOffset - Math.round(i.innerWidth() / 2) + "px" }); 1185 if (t.soloArrowLeftHalign == "left") i.css({ left: 0 + t.soloArrowLeftHOffset + "px" }); 1186 if (t.soloArrowLeftHalign == "right") i.css({ right: 0 + t.soloArrowLeftHOffset + "px" });
1187 if (t.soloArrowRightValign == "center") s.css({ top: "50%", marginTop: t.soloArrowRightVOffset - Math.round(s.innerHeight() / 2) + "px" }); 1188 if (t.soloArrowRightValign == "bottom") s.css({ top: "auto", bottom: 0 + t.soloArrowRightVOffset + "px" }); 1189 if (t.soloArrowRightValign == "top") s.css({ bottom: "auto", top: 0 + t.soloArrowRightVOffset + "px" }); 1190 if (t.soloArrowRightHalign == "center") s.css({ left: "50%", marginLeft: t.soloArrowRightHOffset - Math.round(s.innerWidth() / 2) + "px" }); 1191 if (t.soloArrowRightHalign == "left") s.css({ left: 0 + t.soloArrowRightHOffset + "px" }); 1192 if (t.soloArrowRightHalign == "right") s.css({ right: 0 + t.soloArrowRightHOffset + "px" }); 1193 if (i.position() != null) i.css({ top: Math.round(parseInt(i.position().top, 0)) + "px" }); 1194 if (s.position() != null) s.css({ top: Math.round(parseInt(s.position().top, 0)) + "px" }); 1195 } 1196 if (t.navigationArrows == "none") { 1197 i.css({ visibility: "hidden" }); 1198 s.css({ visibility: "hidden" }); 1199 } 1200 if (t.navigationVAlign == "center") r.css({ top: "50%", marginTop: t.navigationVOffset - Math.round(r.innerHeight() / 2) + "px" }); 1201 if (t.navigationVAlign == "bottom") r.css({ bottom: 0 + t.navigationVOffset + "px" }); 1202 if (t.navigationVAlign == "top") r.css({ top: 0 + t.navigationVOffset + "px" }); 1203 if (t.navigationHAlign == "center") r.css({ left: "50%", marginLeft: t.navigationHOffset - Math.round(r.innerWidth() / 2) + "px" }); 1204 if (t.navigationHAlign == "left") r.css({ left: 0 + t.navigationHOffset + "px" }); 1205 if (t.navigationHAlign == "right") r.css({ right: 0 + t.navigationHOffset + "px" }); 1206 } 1207 function g(n, r) { 1208 r.width = parseInt(r.container.width(), 0); 1209 r.height = parseInt(r.container.height(), 0); 1210 r.bw = r.width / r.startwidth; 1211 if (r.fullScreen == "on") { 1212 r.height = r.bw * r.startheight; 1213 } 1214 r.bh = r.height / r.startheight; 1215 if (r.bh > 1) { 1216 r.bh = 1; 1217 r.bw = 1; 1218 } 1219 if ((n.data("lazyload") != t && n.data("lazydone") == 1) || n.data("lazyload") === t) { 1220 if (n.data("orgw") != t && n.data("orgw") != 0) { 1221 n.width(n.data("orgw")); 1222 n.height(n.data("orgh")); 1223 } 1224 } 1225 var i = r.width / n.width(); 1226 var s = r.height / n.height(); 1227 r.fw = i; 1228 r.fh = s; 1229 if ((n.data("lazyload") != t && n.data("lazydone") == 1) || n.data("lazyload") === t) { 1230 if (n.data("orgw") == t || n.data("orgw") == 0) { 1231 n.data("orgw", n.width()); 1232 n.data("orgh", n.height()); 1233 } 1234 } 1235 if (r.fullWidth == "on" && r.fullScreen != "on") { 1236 var o = r.container.parent().width(); 1237 var u = r.container.parent().height(); 1238 var a = u / n.data("orgh"); 1239 var f = o / n.data("orgw"); 1240 if ((n.data("lazyload") != t && n.data("lazydone") == 1) || n.data("lazyload") === t) { 1241 n.width(n.width() * a); 1242 n.height(u); 1243 } 1244 if (n.width() < o) { 1245 n.width(o + 50); 1246 var f = n.width() / n.data("orgw"); 1247 n.height(n.data("orgh") * f); 1248 } 1249 if (n.width() > o) { 1250 n.data("fxof", o / 2 - n.width() / 2); 1251 n.css({ position: "absolute", left: n.data("fxof") + "px" }); 1252 } 1253 if (n.height() <= u) { 1254 n.data("fyof", 0); 1255 n.data("fxof", o / 2 - n.width() / 2); 1256 n.css({ position: "absolute", top: n.data("fyof") + "px", left: n.data("fxof") + "px" }); 1257 } 1258 if (n.height() > u && n.data("fullwidthcentering") == "on") { 1259 n.data("fyof", u / 2 - n.height() / 2); 1260 n.data("fxof", o / 2 - n.width() / 2); 1261 n.css({ position: "absolute", top: n.data("fyof") + "px", left: n.data("fxof") + "px" }); 1262 } 1263 } else if (r.fullScreen == "on") { 1264 var o = r.container.parent().width(); 1265 var u = e(window).height(); 1266 var l = u / 2 - (r.startheight * r.bh) / 2; 1267 if (l < 0) u = r.startheight * r.bh; 1268 if (r.fullScreenOffsetContainer != t) { 1269 try { 1270 u = u - e(r.fullScreenOffsetContainer).outerHeight(true); 1271 } catch (c) {} 1272 } 1273 r.container.parent().height(u); 1274 r.container.css({ height: "100%" }); 1275 r.height = u; 1276 var a = u / n.data("orgh"); 1277 var f = o / n.data("orgw"); 1278 if ((n.data("lazyload") != t && n.data("lazydone") == 1) || n.data("lazyload") === t) { 1279 n.width(n.width() * a); 1280 n.height(u); 1281 } 1282 if (n.width() < o) { 1283 n.width(o + 50); 1284 var f = n.width() / n.data("orgw"); 1285 n.height(n.data("orgh") * f); 1286 } 1287 if (n.width() > o) { 1288 n.data("fxof", o / 2 - n.width() / 2); 1289 n.css({ position: "absolute", left: n.data("fxof") + "px" }); 1290 } 1291 if (n.height() <= u) { 1292 n.data("fyof", 0); 1293 n.data("fxof", o / 2 - n.width() / 2); 1294 n.css({ position: "absolute", top: n.data("fyof") + "px", left: n.data("fxof") + "px" }); 1295 } 1296 if (n.height() > u && n.data("fullwidthcentering") == "on") { 1297 n.data("fyof", u / 2 - n.height() / 2); 1298 n.data("fxof", o / 2 - n.width() / 2); 1299 n.css({ position: "absolute", top: n.data("fyof") + "px", left: n.data("fxof") + "px" }); 1300 } 1301 } else { 1302 if ((n.data("lazyload") != t && n.data("lazydone") == 1) || n.data("lazyload") === t) { 1303 n.width(r.width); 1304 n.height(n.height() * i); 1305 } 1306 if (n.height() < r.height && n.height() != 0 && n.height() != null) { 1307 if ((n.data("lazyload") != t && n.data("lazydone") == 1) || n.data("lazyload") === t) { 1308 n.height(r.height); 1309 n.width(n.data("orgw") * s); 1310 } 1311 } 1312 } 1313 if ((n.data("lazyload") != t && n.data("lazydone") == 1) || n.data("lazyload") === t) { 1314 n.data("neww", n.width()); 1315 n.data("newh", n.height()); 1316 } 1317 if (r.fullWidth == "on") { 1318 r.slotw = Math.ceil(n.width() / r.slots); 1319 } else { 1320 r.slotw = Math.ceil(r.width / r.slots); 1321 }
1322 if (r.fullSreen == "on") r.sloth = Math.ceil(e(window).height() / r.slots); 1323 else r.sloth = Math.ceil(r.height / r.slots); 1324 } 1325 function y(n, r) { 1326 n.find(".tp-caption").each(function () { 1327 e(this).addClass(e(this).data("transition")); 1328 e(this).addClass("start"); 1329 }); 1330 n.find(">ul:first").css({ overflow: "hidden", width: "100%", height: "100%", maxHeight: n.parent().css("maxHeight") }); 1331 n.find(">ul:first >li").each(function (n) { 1332 var r = e(this); 1333 r.css({ width: "100%", height: "100%", overflow: "hidden" }); 1334 if (r.data("link") != t) { 1335 var i = r.data("link"); 1336 var s = "_self"; 1337 var o = 2; 1338 if (r.data("slideindex") == "back") o = 0; 1339 var u = r.data("linktoslide"); 1340 if (r.data("target") != t) s = r.data("target"); 1341 if (i == "slide") { 1342 r.append('<div class="tp-caption sft slidelink" style="z-index:' + o + ';" data-x="0" data-y="0" data-linktoslide="' + u + '" data-start="0"><a><div></div></a></div>'); 1343 } else { 1344 u = "no"; 1345 r.append('<div class="tp-caption sft slidelink" style="z-index:' + o + ';" data-x="0" data-y="0" data-linktoslide="' + u + '" data-start="0"><a target="' + s + '" href="' + i + '"><div></div></a></div>'); 1346 } 1347 } 1348 }); 1349 n.parent().css({ overflow: "visible" }); 1350 n.find(">ul:first >li >img").each(function (n) { 1351 var i = e(this); 1352 i.addClass("defaultimg"); 1353 if (i.data("lazyload") != t && i.data("lazydone") != 1) { 1354 } else { 1355 g(i, r); 1356 g(i, r); 1357 } 1358 i.wrap('<div class="slotholder"></div>'); 1359 i.css({ opacity: 0 }); 1360 i.data("li-id", n); 1361 }); 1362 } 1363 function b(e, n, r) { 1364 var i = e; 1365 var s = i.find("img"); 1366 g(s, n); 1367 var o = s.attr("src"); 1368 var u = s.css("background-color"); 1369 var a = s.data("neww"); 1370 var f = s.data("newh"); 1371 var l = s.data("fxof"); 1372 if (l == t) l = 0; 1373 var c = s.data("fyof"); 1374 if (s.data("fullwidthcentering") != "on" || c == t) c = 0; 1375 var h = 0; 1376 if (!r) var h = 0 - n.slotw; 1377 for (var p = 0; p < n.slots; p++) 1378 i.append( 1379 '<div class="slot" style="position:absolute;top:' + 1380 (0 + c) + 1381 "px;left:" + 1382 (l + p * n.slotw) + 1383 "px;overflow:hidden;width:" + 1384 n.slotw + 1385 "px;height:" + 1386 f + 1387 'px"><div class="slotslide" style="position:absolute;top:0px;left:' + 1388 h + 1389 "px;width:" + 1390 n.slotw + 1391 "px;height:" + 1392 f + 1393 'px;overflow:hidden;"><img style="background-color:' + 1394 u + 1395 ";position:absolute;top:0px;left:" + 1396 (0 - p * n.slotw) + 1397 "px;width:" + 1398 a + 1399 "px;height:" + 1400 f + 1401 'px" src="' + 1402 o + 1403 '"></div></div>' 1404 ); 1405 } 1406 function w(e, n, r) { 1407 var i = e; 1408 var s = i.find("img"); 1409 g(s, n); 1410 var o = s.attr("src"); 1411 var u = s.css("background-color"); 1412 var a = s.data("neww"); 1413 var f = s.data("newh"); 1414 var l = s.data("fxof"); 1415 if (l == t) l = 0; 1416 var c = s.data("fyof"); 1417 if (s.data("fullwidthcentering") != "on" || c == t) c = 0; 1418 var h = 0; 1419 if (!r) var h = 0 - n.sloth; 1420 for (var p = 0; p < n.slots + 2; p++) 1421 i.append( 1422 '<div class="slot" style="position:absolute;' + 1423 "top:" + 1424 (c + p * n.sloth) + 1425 "px;" + 1426 "left:" + 1427 l + 1428 "px;" + 1429 "overflow:hidden;" +
1430 "width:" + 1431 a + 1432 "px;" + 1433 "height:" + 1434 n.sloth + 1435 'px"' + 1436 '><div class="slotslide" style="position:absolute;' + 1437 "top:" + 1438 h + 1439 "px;" + 1440 "left:0px;width:" + 1441 a + 1442 "px;" + 1443 "height:" + 1444 n.sloth + 1445 "px;" + 1446 'overflow:hidden;"><img style="position:absolute;' + 1447 "background-color:" + 1448 u + 1449 ";" + 1450 "top:" + 1451 (0 - p * n.sloth) + 1452 "px;" + 1453 "left:0px;width:" + 1454 a + 1455 "px;" + 1456 "height:" + 1457 f + 1458 'px" src="' + 1459 o + 1460 '"></div></div>' 1461 ); 1462 } 1463 function E(e, n, r) { 1464 var i = e; 1465 var s = i.find("img"); 1466 g(s, n); 1467 var o = s.attr("src"); 1468 var u = s.css("background-color"); 1469 var a = s.data("neww"); 1470 var f = s.data("newh"); 1471 var l = s.data("fxof"); 1472 if (l == t) l = 0; 1473 var c = s.data("fyof"); 1474 if (s.data("fullwidthcentering") != "on" || c == t) c = 0; 1475 var h = 0; 1476 var p = 0; 1477 if (n.sloth > n.slotw) p = n.sloth; 1478 else p = n.slotw; 1479 if (!r) { 1480 var h = 0 - p; 1481 } 1482 n.slotw = p; 1483 n.sloth = p; 1484 var d = 0; 1485 var v = 0; 1486 for (var m = 0; m < n.slots; m++) { 1487 v = 0; 1488 for (var y = 0; y < n.slots; y++) { 1489 i.append( 1490 '<div class="slot" ' + 1491 'style="position:absolute;' + 1492 "top:" + 1493 (c + v) + 1494 "px;" + 1495 "left:" + 1496 (l + d) + 1497 "px;" + 1498 "width:" + 1499 p + 1500 "px;" + 1501 "height:" + 1502 p + 1503 "px;" + 1504 'overflow:hidden;">' + 1505 '<div class="slotslide" data-x="' + 1506 d + 1507 '" data-y="' + 1508 v + 1509 '" ' + 1510 'style="position:absolute;' + 1511 "top:" + 1512 0 + 1513 "px;" + 1514 "left:" + 1515 0 + 1516 "px;" + 1517 "width:" + 1518 p + 1519 "px;" + 1520 "height:" + 1521 p + 1522 "px;" + 1523 'overflow:hidden;">' + 1524 '<img style="position:absolute;' + 1525 "top:" + 1526 (0 - v) + 1527 "px;" + 1528 "left:" + 1529 (0 - d) + 1530 "px;" + 1531 "width:" + 1532 a + 1533 "px;" + 1534 "height:" + 1535 f + 1536 "px" + 1537 "background-color:" + 1538 u + 1539 ';"' + 1540 'src="' + 1541 o + 1542 '"></div></div>' 1543 ); 1544 v = v + p; 1545 } 1546 d = d + p; 1547 } 1548 } 1549 function S(n, r, i) { 1550 if (i == t) i == 80; 1551 setTimeout(function () { 1552 n.find(".slotholder .slot").each(function () { 1553 clearTimeout(e(this).data("tout")); 1554 e(this).remove(); 1555 }); 1556 r.transition = 0; 1557 }, i); 1558 } 1559 function x(e, t) { 1560 var n = e.find(">li:eq(" + t.act + ")"); 1561 var r = e.find(">li:eq(" + t.next + ")"); 1562 var i = r.find(".tp-caption"); 1563 if (i.find("iframe") == 0) { 1564 if (i.hasClass("hcenter")) i.css({ height: t.height + "px", top: "0px", left: t.width / 2 - i.outerWidth() / 2 + "px" }); 1565 else if (i.hasClass("vcenter")) i.css({ width: t.width + "px", left: "0px", top: t.he
1565ight / 2 - i.outerHeight() / 2 + "px" }); 1566 } 1567 } 1568 function T(e, n) { 1569 try { 1570 var r = e.find(">ul:first-child >li:eq(" + n.act + ")"); 1571 } catch (i) { 1572 var r = e.find(">ul:first-child >li:eq(1)"); 1573 } 1574 n.lastslide = n.act; 1575 var s = e.find(">ul:first-child >li:eq(" + n.next + ")"); 1576 var a = s.find(".defaultimg"); 1577 if (a.data("lazyload") != t && a.data("lazydone") != 1) { 1578 a.attr("src", s.find(".defaultimg").data("lazyload")), a.data("orgw", 0); 1579 e.find(".tp-loader").css({ display: "block" }).transition({ opacity: 1, duration: 300 }); 1580 setTimeout(function () { 1581 u(n, e); 1582 }, 180); 1583 s.waitForImages(function () { 1584 a.data("lazydone", 1); 1585 setTimeout(function () { 1586 o(n, e); 1587 }, 190); 1588 g(a, n); 1589 m(e, n); 1590 g(a, n); 1591 N(e, n); 1592 e.find(".tp-loader").transition({ opacity: 0, duration: 300 }); 1593 setTimeout(function () { 1594 e.find(".tp-loader").css({ display: "none" }); 1595 }, 2200); 1596 }); 1597 } else { 1598 N(e, n); 1599 } 1600 } 1601 function N(n, r) { 1602 n.trigger("revolution.slide.onbeforeswap"); 1603 r.transition = 1; 1604 r.videoplaying = false; 1605 try { 1606 var i = n.find(">ul:first-child >li:eq(" + r.act + ")"); 1607 } catch (s) { 1608 var i = n.find(">ul:first-child >li:eq(1)"); 1609 } 1610 r.lastslide = r.act; 1611 var o = n.find(">ul:first-child >li:eq(" + r.next + ")"); 1612 var u = i.find(".slotholder"); 1613 var a = o.find(".slotholder"); 1614 i.css({ visibility: "visible" }); 1615 o.css({ visibility: "visible" }); 1616 if (r.ie) { 1617 if (p == "boxfade") p = "boxslide"; 1618 if (p == "slotfade-vertical") p = "slotzoom-vertical"; 1619 if (p == "slotfade-horizontal") p = "slotzoom-horizontal"; 1620 } 1621 if (o.data("delay") != t) { 1622 r.cd = 0; 1623 r.delay = o.data("delay"); 1624 } else { 1625 r.delay = r.origcd; 1626 } 1627 i.css({ left: "0px", top: "0px" }); 1628 o.css({ left: "0px", top: "0px" }); 1629 if (o.data("differentissplayed") == "prepared") { 1630 o.data("differentissplayed", "done"); 1631 o.data("transition", o.data("savedtransition")); 1632 o.data("slotamount", o.data("savedslotamount")); 1633 o.data("masterspeed", o.data("savedmasterspeed")); 1634 } 1635 if (o.data("fstransition") != t && o.data("differentissplayed") != "done") { 1636 o.data("savedtransition", o.data("transition")); 1637 o.data("savedslotamount", o.data("slotamount")); 1638 o.data("savedmasterspeed", o.data("masterspeed")); 1639 o.data("transition", o.data("fstransition")); 1640 o.data("slotamount", o.data("fsslotamount")); 1641 o.data("masterspeed", o.data("fsmasterspeed")); 1642 o.data("differentissplayed", "prepared"); 1643 } 1644 var f = 0; 1645 var c = o.data("transition").split(","); 1646 var h = o.data("nexttransid"); 1647 if (h == t) { 1648 h = 0; 1649 o.data("nexttransid", h); 1650 } else { 1651 h = h + 1; 1652 if (h == c.length) h = 0; 1653 o.data("nexttransid", h); 1654 } 1655 var p = c[h]; 1656 if (p == "boxslide") f = 0; 1657 else if (p == "boxfade") f = 1; 1658 else if (p == "slotslide-horizontal") f = 2; 1659 else if (p == "slotslide-vertical") f = 3; 1660 else if (p == "curtain-1") f = 4; 1661 else if (p == "curtain-2") f = 5; 1662 else if (p == "curtain-3") f = 6; 1663 else if (p == "slotzoom-horizontal") f = 7; 1664 else if (p == "slotzoom-vertical") f = 8; 1665 else if (p == "slotfade-horizontal") f = 9; 1666 else if (p == "slotfade-vertical") f = 10; 1667 else if (p == "fade") f = 11; 1668 else if (p == "slideleft") f = 12; 1669 else if (p == "slideup") f = 13; 1670 else if (p == "slidedown") f = 14; 1671 else if (p == "slideright") f = 15; 1672 else if (p == "papercut") f = 16; 1673 else if (p == "3dcurtain-horizontal") f = 17; 1674 else if (p == "3dcurtain-vertical") f = 18;
1675 else if (p == "cubic" || p == "cube") f = 19; 1676 else if (p == "flyin") f = 20; 1677 else if (p == "turnoff") f = 21; 1678 else { 1679 f = Math.round(Math.random() * 21); 1680 o.data("slotamount", Math.round(Math.random() * 12 + 4)); 1681 } 1682 if (p == "random-static") { 1683 f = Math.round(Math.random() * 16); 1684 if (f > 15) f = 15; 1685 if (f < 0) f = 0; 1686 } 1687 if (p == "random-premium") { 1688 f = Math.round(Math.random() * 6 + 16); 1689 if (f > 21) f = 21; 1690 if (f < 16) f = 16; 1691 } 1692 var d = -1; 1693 if (r.leftarrowpressed == 1 || r.act > r.next) d = 1; 1694 if (p == "slidehorizontal") { 1695 f = 12; 1696 if (r.leftarrowpressed == 1) f = 15; 1697 } 1698 if (p == "slidevertical") { 1699 f = 13; 1700 if (r.leftarrowpressed == 1) f = 14; 1701 } 1702 r.leftarrowpressed = 0; 1703 if (f > 21) f = 21; 1704 if (f < 0) f = 0; 1705 if ((r.ie || r.ie9) && f > 18) { 1706 f = Math.round(Math.random() * 16); 1707 o.data("slotamount", Math.round(Math.random() * 12 + 4)); 1708 } 1709 if (r.ie && (f == 17 || f == 16 || f == 2 || f == 3 || f == 9 || f == 10)) f = Math.round(Math.random() * 3 + 12); 1710 if (r.ie9 && f == 3) f = 4; 1711 var v = 300; 1712 if (o.data("masterspeed") != t && o.data("masterspeed") > 99 && o.data("masterspeed") < 4001) v = o.data("masterspeed"); 1713 n.parent() 1714 .find(".bullet") 1715 .each(function () { 1716 var t = e(this); 1717 t.removeClass("selected"); 1718 if (r.navigationArrows == "withbullet" || r.navigationArrows == "nexttobullets") { 1719 if (t.index() - 1 == r.next) t.addClass("selected"); 1720 } else { 1721 if (t.index() == r.next) t.addClass("selected"); 1722 } 1723 }); 1724 n.find(">li").each(function () { 1725 var t = e(this); 1726 if (t.index != r.act && t.index != r.next) t.css({ "z-index": 16 }); 1727 }); 1728 i.css({ "z-index": 18 }); 1729 o.css({ "z-index": 20 }); 1730 o.css({ opacity: 0 }); 1731 if (i.index() != o.index()) { 1732 H(i, r); 1733 } 1734 D(o, r); 1735 if (o.data("slotamount") == t || o.data("slotamount") < 1) { 1736 r.slots = Math.round(Math.random() * 12 + 4); 1737 if (p == "boxslide") r.slots = Math.round(Math.random() * 6 + 3); 1738 } else { 1739 r.slots = o.data("slotamount"); 1740 } 1741 if (o.data("rotate") == t) r.rotate = 0; 1742 else if (o.data("rotate") == 999) r.rotate = Math.round(Math.random() * 360); 1743 else r.rotate = o.data("rotate"); 1744 if (!e.support.transition || r.ie || r.ie9) r.rotate = 0; 1745 if (r.firststart == 1) { 1746 i.css({ opacity: 0 }); 1747 r.firststart = 0; 1748 } 1749 if (f == 0) { 1750 v = v + 100; 1751 if (r.slots > 10) r.slots = 10; 1752 o.css({ opacity: 1 }); 1753 E(u, r, true); 1754 E(a, r, false); 1755 a.find(".defaultimg").css({ opacity: 0 }); 1756 a.find(".slotslide").each(function (t) { 1757 var s = e(this); 1758 if (r.ie9) s.transition({ top: 0 - r.sloth, left: 0 - r.slotw }, 0); 1759 else s.transition({ top: 0 - r.sloth, left: 0 - r.slotw, rotate: r.rotate }, 0); 1760 setTimeout(function () { 1761 s.transition({ top: 0, left: 0, scale: 1, rotate: 0 }, v * 1.5, function () { 1762 if (t == r.slots * r.slots - 1) { 1763 S(n, r); 1764 a.find(".defaultimg").css({ opacity: 1 }); 1765 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1766 r.act = r.next; 1767 l(n); 1768 } 1769 }); 1770 }, t * 15); 1771 }); 1772 } 1773 if (f == 1) { 1774 if (r.slots > 5) r.slots = 5; 1775 o.css({ opacity: 1 }); 1776 E(a, r, false); 1777 a.find(".defaultimg").css({ opacity: 0 }); 1778 a.find(".slotslide").each(function (t) { 1779 var s = e(this); 1780 s.css({ opacity: 0 }); 1781 s.find("img").css({ opacity: 0 }); 1782 if (r.ie9) s.find("img").transition({ top: Math.random() * r.slotw - r.slotw + "px", left: Math.random() * r.slotw - r.slotw + "px" }, 0); 1783 else s.find("img").transition({ top: Math.random() * r.slotw - r.slotw + "px", left: Math.random() * r.slotw - r.slotw + "px", rotate: r.rotate }, 0); 1784 var f = Math.random() * 1e3 + (v + 200); 1785 if (t == r.slots * r.slots - 1) f = 1500; 1786 s.find("img").transition({ opacity: 1, top: 0 - s.data("y") + "px", left: 0 - s.data("x") + "px", rotate: 0 }, f); 1787 s.transition({ opacity: 1 }, f, function () { 1788 if (t == r.slots * r.slots - 1) { 1789 S(n, r); 1790 a.find(".defaultimg").css({ opacity: 1 }); 1791 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1792 r.act = r.next; 1793 l(n); 1794 } 1795 }); 1796 }); 1797 } 1798 if (f == 2) { 1799 v = v + 200; 1800 o.css({ opacity: 1 }); 1801 b(u, r, true); 1802 b(a, r, false); 1803 a.find(".defaultimg").css({ opacity: 0 }); 1804 u.find(".slotslide").each(function () { 1805 var t = e(this); 1806 t.transit({ left: r.slotw + "px", rotate: 0 - r.rotate }, v, function () { 1807 S(n, r); 1808 a.find(".defaultimg").css({ opacity: 1 }); 1809 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1810 r.act = r.next; 1811 l(n); 1812 }); 1813 }); 1814 a.find(".slotslide").each(function () { 1815 var t = e(this); 1816 if (r.ie9) t.transit({ left: 0 - r.slotw + "px" }, 0); 1817 else t.transit({ left: 0 - r.slotw + "px", rotate: r.rotate }, 0); 1818 t.transit({ left: "0px", rotate: 0 }, v, function () { 1819 S(n, r); 1820 a.find(".defaultimg").css({ opacity: 1 }); 1821 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1822 if (r.ie) u.find(".defaultimg").css({ opacity: 1 }); 1823 r.act = r.next; 1824 l(n); 1825 }); 1826 }); 1827 } 1828 if (f == 3) { 1829 v = v + 200; 1830 o.css({ opacity: 1 }); 1831 w(u, r, true); 1832 w(a, r, false); 1833 a.find(".defaultimg").css({ opacity: 0 }); 1834 u.find(".slotslide").each(function () { 1835 var t = e(this); 1836 t.transit({ top: r.sloth + "px", rotate: r.rotate }, v, function () { 1837 S(n, r); 1838 a.find(".defaultimg").css({ opacity: 1 }); 1839 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1840 r.act = r.next; 1841 l(n); 1842 }); 1843 }); 1844 a.find(".slotslide").each(function () { 1845 var t = e(this); 1846 if (r.ie9) t.transit({ top: 0 - r.sloth + "px" }, 0); 1847 else t.transit({ top: 0 - r.sloth + "px", rotate: r.rotate }, 0); 1848 t.transit({ top: "0px", rotate: 0 }, v, function () { 1849 S(n, r); 1850 a.find(".defaultimg").css({ opacity: 1 }); 1851 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1852 r.act = r.next; 1853 l(n); 1854 }); 1855 }); 1856 } 1857 if (f == 4) { 1858 o.css({ opacity: 1 }); 1859 b(u, r, true); 1860 b(a, r, true); 1861 a.find(".defaultimg").css({ opacity: 0 }); 1862 u.find(".defaultimg").css({ opacity: 0 }); 1863 u.find(".slotslide").each(function (t) { 1864 var n = e(this); 1865 n.transit({ top: 0 + r.height + "px", opacity: 1, rotate: r.rotate }, v + t * (70 - r.slots)); 1866 }); 1867 a.find(".slotslide").each(function (t) { 1868 var s = e(this); 1869 if (r.ie9) s.transition({ top: 0 - r.height + "px", opacity: 0 }, 0); 1870 else s.transition({ top: 0 - r.height + "px", opacity: 0, rotate: r.rotate }, 0); 1871 s.transition({ top: "0px", opacity: 1, rotate: 0 }, v + t * (70 - r.slots), function () { 1872 if (t == r.slots - 1) { 1873 S(n, r); 1874 a.find(".defaultimg").css({ opacity: 1 }); 1875 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1876 r.act = r.next; 1877 l(n); 1878 } 1879 }); 1880 }); 1881 } 1882 if (f == 5) { 1883 o.css({ opacity: 1 }); 1884 b(u, r, true); 1885 b(a, r, true); 1886 a.find(".defaultimg").css({ opacity: 0 }); 1887 u.find(".defaultimg").css({ opacity: 0 }); 1888 u.find(".slotslide").each(function (t) { 1889 var n = e(this); 1890 n.transition({ top: 0 + r.height + "px", opacity: 1, rotate: r.rotate }, v + (r.slots - t) * (70 - r.slots)); 1891 }); 1892 a.find(".slotslide").each(function (t) { 1893 var s = e(this); 1894 if (r.ie9) s.transition({ top: 0 - r.height + "px", opacity: 0 }, 0); 1895 else s.transition({ top: 0 - r.height + "px", opacity: 0, rotate: r.rotate }, 0); 1896 s.transition({ top: "0px", opacity: 1, rotate: 0 }, v + (r.slots - t) * (70 - r.slots), function () { 1897 if (t == 0) { 1898 S(n, r); 1899 a.find(".defaultimg").css({ opacity: 1 }); 1900 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1901 r.act = r.next; 1902 l(n); 1903 } 1904 }); 1905 }); 1906 } 1907 if (f == 6) { 1908 o.css({ opacity: 1 }); 1909 if (r.slots < 2) r.slots = 2; 1910 b(u, r, true); 1911 b(a, r, true); 1912 a.find(".defaultimg").css({ opacity: 0 }); 1913 u.find(".defaultimg").css({ opacity: 0 }); 1914 u.find(".slotslide").each(function (t) { 1915 var n = e(this); 1916 if (t < r.slots / 2) var i = (t + 2) * 60; 1917 else var i = (2 + r.slots - t) * 60; 1918 n.transition({ top: 0 + r.height + "px", opacity: 1 }, v + i); 1919 }); 1920 a.find(".slotslide").each(function (t) { 1921 var s = e(this); 1922 if (r.ie9) s.transition({ top: 0 - r.height + "px", opacity: 0 }, 0); 1923 else s.transition({ top: 0 - r.height + "px", opacity: 0, rotate: r.rotate }, 0); 1924 if (t < r.slots / 2) var f = (t + 2) * 60; 1925 else var f = (2 + r.slots - t) * 60; 1926 s.transition({ top: "0px", opacity: 1, rotate: 0 }, v + f, function () {
1927 if (t == Math.round(r.slots / 2)) { 1928 S(n, r); 1929 a.find(".defaultimg").css({ opacity: 1 }); 1930 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1931 r.act = r.next; 1932 l(n); 1933 } 1934 }); 1935 }); 1936 } 1937 if (f == 7) { 1938 v = v * 3; 1939 o.css({ opacity: 1 }); 1940 b(u, r, true); 1941 b(a, r, true); 1942 a.find(".defaultimg").css({ opacity: 0 }); 1943 u.find(".slotslide").each(function () { 1944 var t = e(this).find("img"); 1945 t.transition({ left: 0 - r.slotw / 2 + "px", top: 0 - r.height / 2 + "px", width: r.slotw * 2 + "px", height: r.height * 2 + "px", opacity: 0, rotate: r.rotate }, v, function () { 1946 S(n, r); 1947 a.find(".defaultimg").css({ opacity: 1 }); 1948 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1949 r.act = r.next; 1950 l(n); 1951 }); 1952 }); 1953 / /; 1954 a.find(".slotslide").each(function (t) { 1955 var s = e(this).find("img"); 1956 if (r.ie9) s.transition({ left: 0 + "px", top: 0 + "px", opacity: 0 }, 0); 1957 else s.transition({ left: 0 + "px", top: 0 + "px", opacity: 0, rotate: r.rotate }, 0); 1958 s.transition({ left: 0 - t * r.slotw + "px", top: 0 + "px", width: a.find(".defaultimg").data("neww") + "px", height: a.find(".defaultimg").data("newh") + "px", opacity: 1, rotate: 0 }, v, function () { 1959 S(n, r); 1960 a.find(".defaultimg").css({ opacity: 1 }); 1961 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1962 r.act = r.next; 1963 l(n); 1964 }); 1965 }); 1966 } 1967 if (f == 8) { 1968 v = v * 3; 1969 o.css({ opacity: 1 }); 1970 w(u, r, true); 1971 w(a, r, true); 1972 a.find(".defaultimg").css({ opacity: 0 }); 1973 u.find(".slotslide").each(function () { 1974 var t = e(this).find("img"); 1975 t.transition({ left: 0 - r.width / 2 + "px", top: 0 - r.sloth / 2 + "px", width: r.width * 2 + "px", height: r.sloth * 2 + "px", opacity: 0, rotate: r.rotate }, v, function () { 1976 S(n, r); 1977 a.find(".defaultimg").css({ opacity: 1 }); 1978 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1979 r.act = r.next; 1980 l(n); 1981 }); 1982 }); 1983 a.find(".slotslide").each(function (t) { 1984 var s = e(this).find("img"); 1985 if (r.ie9) s.transition({ left: 0 + "px", top: 0 + "px", opacity: 0 }, 0); 1986 else s.transition({ left: 0 + "px", top: 0 + "px", opacity: 0, rotate: r.rotate }, 0); 1987 s.transition({ left: 0 + "px", top: 0 - t * r.sloth + "px", width: a.find(".defaultimg").data("neww") + "px", height: a.find(".defaultimg").data("newh") + "px", opacity: 1, rotate: 0 }, v, function () { 1988 S(n, r); 1989 a.find(".defaultimg").css({ opacity: 1 }); 1990 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 1991 r.act = r.next; 1992 l(n); 1993 }); 1994 }); 1995 } 1996 if (f == 9) { 1997 o.css({ opacity: 1 }); 1998 r.slots = r.width / 20; 1999 b(a, r, true); 2000 a.find(".defaultimg").css({ opacity: 0 }); 2001 var m = 0; 2002 a.find(".slotslide").each(function (t) { 2003 var n = e(this); 2004 m++; 2005 n.transition({ opacity: 0, x: 0, y: 0 }, 0); 2006 n.data( 2007 "tout", 2008 setTimeout(function () { 2009 n.transition({ x: 0, y: 0, opacity: 1 }, v); 2010 }, t * 4) 2011 ); 2012 }); 2013 setTimeout(function () { 2014 S(n, r); 2015 a.find(".defaultimg").css({ opacity: 1 }); 2016 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 2017 if (r.ie) u.find(".defaultimg").css({ opacity: 1 }); 2018 r.act = r.next; 2019 l(n); 2020 }, v + m * 4); 2021 } 2022 if (f == 10) { 2023 o.css({ opacity: 1 }); 2024 r.slots = r.height / 20; 2025 w(a, r, true); 2026 a.find(".defaultimg").css({ opacity: 0 }); 2027 var m = 0; 2028 a.find(".slotslide").each(function (t) { 2029 var n = e(this); 2030 m++; 2031 n.transition({ opacity: 0, x: 0, y: 0 }, 0); 2032 n.data( 2033 "tout", 2034 setTimeout(function () { 2035 n.transition({ x: 0, y: 0, opacity: 1 }, v); 2036 }, t * 4) 2037 ); 2038 }); 2039 setTimeout(function () { 2040 S(n, r); 2041 a.find(".defaultimg").css({ opacity: 1 }); 2042 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 2043 if (r.ie) u.find(".defaultimg").css({ opacity: 1 }); 2044 r.act = r.next; 2045 l(n); 2046 }, v + m * 4); 2047 } 2048 if (f == 11) { 2049 o.css({ opacity: 1 }); 2050 r.slots = 1; 2051 b(a, r, true); 2052 a.find(".defaultimg").css({ opacity: 0, position: "relative" }); 2053 var m = 0; 2054 a.find(".slotslide").each(function (t) { 2055 var n = e(this); 2056 m++; 2057 if (r.ie9 || r.ie) { 2058 if (r.ie) o.css({ opacity: "0" }); 2059 n.css({ opacity: 0 }); 2060 } else n.transition({ opacity: 0, rotate: r.rotate }, 0); 2061 setTimeout(function () { 2062 if (r.ie9 || r.ie) { 2063 if (r.ie) o.animate({ opacity: 1 }, { duration: v }); 2064 else n.transition({ opacity: 1 }, v); 2065 } else { 2066 n.transition({ opacity: 1, rotate: 0 }, v); 2067 } 2068 }, 10); 2069 }); 2070 setTimeout(function () { 2071 S(n, r); 2072 a.find(".defaultimg").css({ opacity: 1 }); 2073 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 2074 if (r.ie) u.find(".defaultimg").css({ opacity: 1 }); 2075 r.act = r.next; 2076 l(n); 2077 }, v + 15); 2078 } 2079 if (f == 12 || f == 13 || f == 14 || f == 15) { 2080 v = v * 3; 2081 o.css({ opacity: 1 }); 2082 r.slots = 1; 2083 b(a, r, true); 2084 b(u, r, true); 2085 u.find(".defaultimg").css({ opacity: 0 }); 2086 a.find(".defaultimg").css({ opacity: 0 }); 2087 var g = r.width; 2088 var y = r.height; 2089 var x = a.find(".slotslide"); 2090 if (r.fullWidth == "on" || r.fullSreen == "on") { 2091 g = x.width(); 2092 y = x.height(); 2093 } 2094 if (f == 12) 2095 if (r.ie9) { 2096 x.transition({ left: g + "px" }, 0); 2097 } else { 2098 x.transition({ left: g + "px", rotate: r.rotate }, 0); 2099 } 2100 else if (f == 15) 2101 if (r.ie9) x.transition({ left: 0 - g + "px" }, 0); 2102 else x.transition({ left: 0 - g + "px", rotate: r.rotate }, 0); 2103 else if (f == 13) 2104 if (r.ie9) x.transition({ top: y + "px" }, 0); 2105 else x.transition({ top: y + "px", rotate: r.rotate }, 0); 2106 else if (f == 14) 2107 if (r.ie9) x.transition({ top: 0 - y + "px" }, 0); 2108 else x.transition({ top: 0 - y + "px", rotate: r.rotate }, 0); 2109 x.transition({ left: "0px", top: "0px", opacity: 1, rotate: 0 }, v, function () { 2110 S(n, r, 0); 2111 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 2112 a.find(".defaultimg").css({ opacity: 1 }); 2113 r.act = r.next; 2114 l(n); 2115 }); 2116 var T = u.find(".slotslide"); 2117 if (f == 12) T.transition({ left: 0 - g + "px", opacity: 1, rotate: 0 }, v); 2118 else if (f == 15) T.transition({ left: g + "px", opacity: 1, rotate: 0 }, v); 2119 else if (f == 13) T.transition({ top: 0 - y + "px", opacity: 1, rotate: 0 }, v); 2120 else if (f == 14) T.transition({ top: y + "px", opacity: 1, rotate: 0 }, v); 2121 } 2122 if (f == 16) { 2123 if (v < 600) v = 600; 2124 i.css({ position: "absolute", "z-index": 20 }); 2125 o.css({ position: "absolute", "z-index": 15 }); 2126 i.wrapInner('<div class="tp-half-one"></div>'); 2127 i.find(".tp-half-one").clone(true).appendTo(i).addClass("tp-half-two"); 2128 i.find(".tp-half-two").removeClass("tp-half-one"); 2129 i.find(".tp-half-two").wrapInner('<div class="tp-offset"></div>'); 2130 var g = r.width; 2131 var y = r.height; 2132 if (r.fullWidth == "on" || r.fullSreen == "on") { 2133 g = r.container.parent().width(); 2134 y = r.container.parent().height(); 2135 } 2136 var N = i.find(".defaultimg"); 2137 if (N.length > 0 && N.data("fullwidthcentering") == "on") { 2138 var C = y / 2; 2139 var k = N.position().top; 2140 } else { 2141 var C = y / 2; 2142 var k = 0; 2143 } 2144 i.find(".tp-half-one").css({ width: g + "px", height: C + "px", overflow: "hidden", position: "absolute", top: "0px", left: "0px" }); 2145 i.find(".tp-half-two").css({ width: g + "px", height: C + "px", overflow: "hidden", position: "absolute", top: C + "px", left: "0px" }); 2146 i.find(".tp-half-two .tp-offset").css({ position: "absolute", top: 0 - C + "px", left: "0px" }); 2147 if (!e.support.transition) { 2148 i.find(".tp-half-one").animate({ opacity: 0, top: 0 - y / 2 + "px" }, { duration: v, queue: false }); 2149 i.find(".tp-half-two").animate({ opacity: 0, top: y + "px" }, { duration: v, queue: false }); 2150 } else { 2151 var L = Math.round(Math.random() * 40 - 20); 2152 var A = Math.round(Math.random() * 40 - 20); 2153 var O = Math.random() * 1 + 1; 2154 var M = Math.random() * 1 + 1; 2155 i.find(".tp-half-one").transition({ opacity: 1, scale: O, rotate: L, y: 0 - y / 1.4 + "px" }, v, "in"); 2156 i.find(".tp-half-two").transition({ opacity: 1, scale: M, rotate: A, y: 0 + y / 1.4 + "px" }, v, "in"); 2157 if (i.html() != null) o.transition({ scale: 0.8, x: r.width * 0.1, y: y * 0.1, rotate: L }, 0).transition({ rotate: 0, scale: 1, x: 0, y: 0 }, v - 100, "snap"); 2158 } 2159 a.find(".defaultimg").css({ opacity: 1 }); 2160 setTimeout(function () { 2161 i.css({ position: "absolute", "z-index": 18 }); 2162 o.css({ position: "absolute", "z-index": 20 }); 2163 a.find(".defaultimg").css({ opacity: 1 }); 2164 u.find(".defaultimg").css({ opacity: 0 }); 2165 if (i.find(".tp-half-one").length > 0) { 2166 i.find(".tp-half-one >img, .tp-half-one >div").unwrap(); 2167 } 2168 i.find(".tp-half-two").remove(); 2169 r.transition = 0; 2170 r.act = r.next; 2171 }, v); 2172 o.css({ opacity: 1 }); 2173 } 2174 if (f == 17) { 2175 v = v + 100; 2176 if (r.slots > 10) r.slots = 10; 2177 o.css({ opacity: 1 }); 2178 w(u, r, true); 2179 w(a, r, false); 2180 a.find(".defaultimg").css({ opacity: 0 }); 2181 a.find(".slotslide").each(function (t) { 2182 var s = e(this); 2183 s.transition({ opacity: 0, rotateY: 350, rotateX: 40, perspective: "1400px" }, 0); 2184 setTimeout(function () { 2185 s.transition({ opacity: 1, top: 0, left: 0, scale: 1, perspective: "150px", rotate: 0, rotateY: 0, rotateX: 0 }, v * 2, function () { 2186 if (t == r.slots - 1) { 2187 S(n, r); 2188 a.find(".defaultimg").css({ opacity: 1 }); 2189 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 2190 r.act = r.next; 2191 l(n); 2192 } 2193 }); 2194 }, t * 100); 2195 }); 2196 } 2197 if (f == 18) { 2198 v = v + 100; 2199 if (r.slots > 10) r.slots = 10; 2200 o.css({ opacity: 1 }); 2201 b(u, r, true); 2202 b(a, r, false); 2203 a.find(".defaultimg").css({ opacity: 0 }); 2204 a.find(".slotslide").each(function (t) { 2205 var s = e(this); 2206 s.transition({ rotateX: 10, rotateY: 310, perspective: "1400px", rotate: 0, opacity: 0 }, 0); 2207 setTimeout(function () { 2208 s.transition({ top: 0, left: 0, scale: 1, perspective: "150px", rotate: 0, rotateY: 0, rotateX: 0, opacity: 1 }, v * 2, function () { 2209 if (t == r.slots - 1) { 2210 S(n, r); 2211 a.find(".defaultimg").css({ opacity: 1 }); 2212 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 2213 r.act = r.next; 2214 l(n); 2215 } 2216 }); 2217 }, t * 100); 2218 }); 2219 } 2220 if (f == 19) { 2221 v = v + 100; 2222 if (r.slots > 10) r.slots = 10; 2223 o.css({ opacity: 1 }); 2224 b(u, r, true); 2225 b(a, r, false); 2226 a.find(".defaultimg").css({ opacity: 0 }); 2227 var _ = o.css("z-index"); 2228 var P = i.css("z-index"); 2229 a.find(".slotslide").each(function (t) { 2230 var s = e(this); 2231 s.parent().css({ overflow: "visible" }); 2232 s.css({ background: "#333" }); 2233 if (d == 1) s.transition({ opacity: 0, left: 0, top: r.height / 2, rotate3d: "1, 0, 0, -90deg " }, 0); 2234 else s.transition({ opacity: 0, left: 0, top: 0 - r.height / 2, rotate3d: "1, 0, 0, 90deg " }, 0); 2235 setTimeout(function () { 2236 s.transition({ opacity: 1, top: 0, perspective: r.height * 2, rotate3d: " 1, 0, 0, 0deg " }, v * 2, function () { 2237 if (t == r.slots - 1) { 2238 S(n, r); 2239 a.find(".defaultimg").css({ opacity: 1 }); 2240 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 2241 r.act = r.next; 2242 l(n); 2243 } 2244 }); 2245 }, t * 150); 2246 }); 2247 u.find(".slotslide").each(function (t) { 2248 var n = e(this); 2249 n.parent().css({ overflow: "visible" }); 2250 n.css({ background: "#333" }); 2251 n.transition({ top: 0, rotate3d: "1, 0, 0, 0deg" }, 0); 2252 u.find(".defaultimg").css({ opacity: 0 }); 2253 setTimeout(function () { 2254 if (d == 1) n.transition({ opacity: 0.6, left: 0, perspective: r.height * 2, top: 0 - r.height / 2, rotate3d: "1, 0, 0, 90deg" }, v * 2, function () {}); 2255 else n.transition({ opacity: 0.6, left: 0, perspective: r.height * 2, top: 0 + r.height / 2, rotate3d: "1, 0, 0, -90deg" }, v * 2, function () {}); 2256 }, t * 150); 2257 }); 2258 } 2259 if (f == 20) { 2260 v = v + 100; 2261 if (r.slots > 10) r.slots = 10; 2262 o.css({ opacity: 1 }); 2263 w(u, r, true); 2264 w(a, r, false); 2265 a.find(".defaultimg").css({ opacity: 0 }); 2266 a.find(".slotslide").each(function (t) { 2267 var s = e(this); 2268 s.parent().css({ overflow: "visible" }); 2269
2269 if (d == 1) s.transition({ scale: 0.8, top: 0, left: 0 - r.width, rotate3d: "2, 5, 0, 110deg" }, 0); 2270 else s.transition({ scale: 0.8, top: 0, left: 0 + r.width, rotate3d: "2, 5, 0, -110deg" }, 0); 2271 setTimeout(function () { 2272 s.transition({ scale: 0.8, left: 0, perspective: r.width, rotate3d: "1, 5, 0, 0deg" }, v * 2, "ease").transition({ scale: 1 }, 200, "out", function () { 2273 if (t == r.slots - 1) { 2274 S(n, r); 2275 a.find(".defaultimg").css({ opacity: 1 }); 2276 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 2277 r.act = r.next; 2278 l(n); 2279 } 2280 }); 2281 }, t * 100); 2282 }); 2283 u.find(".slotslide").each(function (t) { 2284 var n = e(this); 2285 n.transition({ scale: 0.5, left: 0, rotate3d: "1, 5, 0, 5deg" }, 300, "in-out"); 2286 u.find(".defaultimg").css({ opacity: 0 }); 2287 setTimeout(function () { 2288 if (d == 1) n.transition({ top: 0, left: r.width / 2, perspective: r.width, rotate3d: "0, -3, 0, 70deg", opacity: 0 }, v * 2, "out", function () {}); 2289 else n.transition({ top: 0, left: 0 - r.width / 2, perspective: r.width, rotate3d: "0, -3, 0, -70deg", opacity: 0 }, v * 2, "out", function () {}); 2290 }, t * 100); 2291 }); 2292 } 2293 if (f == 21) { 2294 v = v + 100; 2295 if (r.slots > 10) r.slots = 10; 2296 o.css({ opacity: 1 }); 2297 w(u, r, true); 2298 w(a, r, false); 2299 a.find(".defaultimg").css({ opacity: 0 }); 2300 a.find(".slotslide").each(function (t) { 2301 var s = e(this); 2302 if (d == 1) s.transition({ top: 0, left: 0 - r.width, rotate3d: "0, 1, 0, 90deg" }, 0); 2303 else s.transition({ top: 0, left: 0 + r.width, rotate3d: "0, 1, 0, -90deg" }, 0); 2304 setTimeout(function () { 2305 s.transition({ left: 0, perspective: r.width * 2, rotate3d: "0, 0, 0, 0deg" }, v * 2, function () { 2306 if (t == r.slots - 1) { 2307 S(n, r); 2308 a.find(".defaultimg").css({ opacity: 1 }); 2309 if (o.index() != i.index()) u.find(".defaultimg").css({ opacity: 0 }); 2310 r.act = r.next; 2311 l(n); 2312 } 2313 }); 2314 }, t * 100); 2315 }); 2316 u.find(".slotslide").each(function (t) { 2317 var n = e(this); 2318 n.transition({ left: 0, rotate3d: "0, 0, 0, 0deg" }, 0); 2319 u.find(".defaultimg").css({ opacity: 0 }); 2320 setTimeout(function () { 2321 if (d == 1) n.transition({ top: 0, left: r.width / 2, perspective: r.width, rotate3d: "0, 1, 0, -90deg" }, v * 1.5, function () {}); 2322 else n.transition({ top: 0, left: 0 - r.width / 2, perspective: r.width, rotate3d: "0, 1, 0, +90deg" }, v * 1.5, function () {}); 2323 }, t * 100); 2324 }); 2325 } 2326 var B = {}; 2327 B.slideIndex = r.next + 1; 2328 n.trigger("revolution.slide.onchange", B); 2329 setTimeout(function () { 2330 n.trigger("revolution.slide.onafterswap"); 2331 }, v); 2332 n.trigger("revolution.slide.onvideostop"); 2333 } 2334 function C() {} 2335 function k(t) { 2336 var n = t.target.getVideoEmbedCode(); 2337 var r = e("#" + n.split('id="')[1].split('"')[0]).closest(".tp-simpleresponsive"); 2338 if (t.data == YT.PlayerState.PLAYING) { 2339 var i = r.find(".tp-bannertimer"); 2340 var s = i.data("opt"); 2341 i.stop(); 2342 s.videoplaying = true; 2343 s.videostartednow = 1; 2344 } else { 2345 var i = r.find(".tp-bannertimer"); 2346 var s = i.data("opt"); 2347 if (t.data != -1) { 2348 if (s.conthover == 0) i.animate({ width: "100%" }, { duration: s.delay - s.cd - 100, queue: false, easing: "linear" }); 2349 s.videoplaying = false;
2350 s.videostoppednow = 1; 2351 } 2352 } 2353 if (t.data == 0 && s.nextslideatend == true) s.container.revnext(); 2354 } 2355 function L(e) { 2356 e.target.playVideo(); 2357 } 2358 function A(e, t, n) { 2359 if (e.addEventListener) { 2360 e.addEventListener(t, n, { capture: false, passive: true }); 2361 } else { 2362 e.attachEvent(t, n, { capture: false, passive: true }); 2363 } 2364 } 2365 function O(t) { 2366 var n = $f(t); 2367 var r = e("#" + t).closest(".tp-simpleresponsive"); 2368 n.addEvent("ready", function (e) { 2369 n.addEvent("play", function (e) { 2370 var t = r.find(".tp-bannertimer"); 2371 var n = t.data("opt"); 2372 t.stop(); 2373 n.videoplaying = true; 2374 }); 2375 n.addEvent("finish", function (e) { 2376 var t = r.find(".tp-bannertimer"); 2377 var n = t.data("opt"); 2378 if (n.conthover == 0) t.animate({ width: "100%" }, { duration: n.delay - n.cd - 100, queue: false, easing: "linear" }); 2379 n.videoplaying = false; 2380 n.videostartednow = 1; 2381 if (n.nextslideatend == true) n.container.revnext(); 2382 }); 2383 n.addEvent("pause", function (e) { 2384 var t = r.find(".tp-bannertimer"); 2385 var n = t.data("opt"); 2386 if (n.conthover == 0) t.animate({ width: "100%" }, { duration: n.delay - n.cd - 100, queue: false, easing: "linear" }); 2387 n.videoplaying = false; 2388 n.videostoppednow = 1; 2389 }); 2390 }); 2391 } 2392 function M(t) { 2393 var n = $f(t); 2394 var r = e("#" + t).closest(".tp-simpleresponsive"); 2395 n.addEvent("ready", function (e) { 2396 n.api("play"); 2397 }); 2398 n.addEvent("play", function (e) { 2399 var t = r.find(".tp-bannertimer"); 2400 var n = t.data("opt"); 2401 t.stop(); 2402 n.videoplaying = true; 2403 }); 2404 n.addEvent("finish", function (e) { 2405 var t = r.find(".tp-bannertimer"); 2406 var n = t.data("opt"); 2407 if (n.conthover == 0) t.animate({ width: "100%" }, { duration: n.delay - n.cd - 100, queue: false, easing: "linear" }); 2408 n.videoplaying = false; 2409 n.videostartednow = 1; 2410 if (n.nextslideatend == true) n.container.revnext(); 2411 }); 2412 n.addEvent("pause", function (e) { 2413 var t = r.find(".tp-bannertimer"); 2414 var n = t.data("opt"); 2415 if (n.conthover == 0) t.animate({ width: "100%" }, { duration: n.delay - n.cd - 100, queue: false, easing: "linear" }); 2416 n.videoplaying = false; 2417 n.videostoppednow = 1; 2418 }); 2419 } 2420 function _(t) { 2421 t.on("play", function () { 2422 var t = e("body").find(".tp-bannertimer"); 2423 var n = t.data("opt"); 2424 t.stop(); 2425 try { 2426 n.videoplaying = true; 2427 } catch (r) {} 2428 }); 2429 t.on("pause", function () { 2430 var t = e("body").find(".tp-bannertimer"); 2431 var n = t.data("opt"); 2432 if (n.conthover == 0) t.animate({ width: "100%" }, { duration: n.delay - n.cd - 100, queue: false, easing: "linear" }); 2433 n.videoplaying = false; 2434 n.videostoppednow = 1; 2435 }); 2436 t.on("ended", function () { 2437 var t = e("body").find(".tp-bannertimer"); 2438 var n = t.data("opt"); 2439 if (n.conthover == 0) t.animate({ width: "100%" }, { duration: n.delay - n.cd - 100, queue: false, easing: "linear" }); 2440 n.videoplaying = false; 2441 n.videostoppednow = 1; 2442 if (n.nextslideatend == true) n.container.revnext(); 2443 }); 2444 } 2445 function D(n, r, i) { 2446 var s = 0; 2447 var o = 0; 2448 n.find(".tp-caption").each(function (i) { 2449 s = r.width / 2 - r.startwidth / 2; 2450 if (r.bh > 1) { 2451 r.bw = 1; 2452 r.bh = 1; 2453 } 2454 if (r.bw > 1) { 2455 r.bw = 1; 2456 r.bh = 1; 2457 } 2458 var u = r.bw; 2459 var a = r.bh; 2460 if (r.fullScreen == "on") o = r.height / 2 - (r.startheight * r.bh) / 2; 2461 if (o < 0) o = 0; 2462 var f = n.find(".tp-caption:eq(" + i + ")"); 2463 var l = 0; 2464 if (r.width < r.hideCaptionAtLimit && f.data("captionhidden") == "on") { 2465 f.addClass("tp-hidden-caption"); 2466 l = 1; 2467 } else { 2468 if (r.width < r.hideAllCaptionAtLilmit) { 2469 f.addClass("tp-hidden-caption"); 2470 l = 1; 2471 } else { 2472 f.removeClass("tp-hidden-caption"); 2473 } 2474 } 2475 f.stop(true, true); 2476 if (l == 0) { 2477 if (f.data("linktoslide") != t) { 2478 f.css({ cursor: "pointer" }); 2479 if (f.data("linktoslide") != "no") { 2480 f.click(function () { 2481 var t = e(this); 2482 var n = t.data("linktoslide"); 2483 if (n != "next" && n != "prev") { 2484 r.container.data("showus", n); 2485 r.container.parent().find(".tp-rightarrow").click(); 2486 } else if (n == "next") r.container.parent().find(".tp-rightarrow").click(); 2487 else if (n == "prev") r.container.parent().find(".tp-leftarrow").click(); 2488 }); 2489 } 2490 } 2491 if (f.hasClass("coloredbg")) s = 0; 2492 if (s < 0) s = 0; 2493 clearTimeout(f.data("timer")); 2494 clearTimeout(f.data("timer-end")); 2495 var c = "iframe" + Math.round(Math.random() * 1e3 + 1); 2496 if (f.find("iframe").length > 0) { 2497 f.find("iframe").each(function () { 2498 var n = e(this); 2499 if (n.attr("src").toLowerCase().indexOf("youtube") >= 0) { 2500 r.nextslideatend = f.data("nextslideatend"); 2501 if (!n.hasClass("HasListener")) { 2502 try { 2503 n.attr("id", c); 2504 var i; 2505 if (f.data("autoplay") == true) i = new YT.Player(c, { events: { onStateChange: k, onReady: L } }); 2506 else i = new YT.Player(c, { events: { onStateChange: k } }); 2507 n.addClass("HasListener"); 2508 f.data("player", i); 2509 if (f.data("autoplay") == true) { 2510 var s = e("body") 2511 .find("#" + r.container.attr("id")) 2512 .find(".tp-bannertimer"); 2513 setTimeout(function () { 2514 s.stop(); 2515 r.videoplaying = true; 2516 }, 200); 2517 } 2518 } catch (o) {} 2519 } else { 2520 if (f.data("autoplay") == true) { 2521 var i = f.data("player"); 2522 f.data( 2523 "timerplay", 2524 setTimeout(function () { 2525 i.playVideo(); 2526 }, f.data("start")) 2527 ); 2528 var s = e("body") 2529 .find("#" + r.container.attr("id")) 2530 .find(".tp-bannertimer"); 2531 setTimeout(function () { 2532 s.stop(); 2533 r.videoplaying = true; 2534 }, 200); 2535 } 2536 } 2537 } else { 2538 if (n.attr("src").toLowerCase().indexOf("vimeo") >= 0) { 2539 r.nextslideatend = f.data("nextslideatend"); 2540 if (!n.hasClass("HasListener")) { 2541 n.addClass("HasListener"); 2542 n.attr("id", c); 2543 var u = n.attr("src"); 2544 var a = {}, 2545 l = u, 2546 h = /([^&=]+)=([^&]*)/g, 2547 p; 2548 while ((p = h.exec(l))) { 2549 a[decodeURIComponent(p[1])] = decodeURIComponent(p[2]); 2550 } 2551 if (a["player_id"] != t) { 2552 u = u.replace(a["player_id"], c); 2553 } else { 2554 u = u + "&player_id=" + c; 2555 } 2556 try { 2557 u = u.replace("api=0", "api=1"); 2558 } catch (o) {} 2559 u = u + "&api=1"; 2560 n.attr("src", u); 2561 var i = f.find("iframe")[0]; 2562 if (f.data("autoplay") == true) { 2563 $f(i).addEvent("ready", M); 2564 var s = e("body") 2565 .find("#" + r.container.attr("id")) 2566 .find(".tp-bannertimer"); 2567 setTimeout(function () { 2568 s.stop(); 2569 r.videoplaying = true; 2570 }, 200); 2571 } else { 2572 $f(i).addEvent("ready", O); 2573 } 2574 } else { 2575 if (f.data("autoplay") == true) { 2576 var n = f.find("iframe"); 2577 var d = n.attr("id"); 2578 var v = $f(d); 2579 f.data( 2580 "timerplay", 2581 setTimeout(function () { 2582 v.api("play"); 2583 }, f.data("start")) 2584 ); 2585 var s = e("body") 2586 .find("#" + r.container.attr("id")) 2587 .find(".tp-bannertimer"); 2588 setTimeout(function () { 2589 s.stop(); 2590 r.videoplaying = true; 2591 }, 200); 2592 } 2593 } 2594 } 2595 } 2596 }); 2597 } 2598 if (f.find("video").length > 0) { 2599 f.find("video").each(function (n) { 2600 var i = e(this).parent(); 2601 if (i.hasClass("video-js")) { 2602 r.nextslideatend = f.data("nextslideatend"); 2603 if (!i.hasClass("HasListener")) { 2604 i.addClass("HasListener"); 2605 var s = "videoid_" + Math.round(Math.random() * 1e3 + 1); 2606 i.attr("id", s); 2607 videojs(s).ready(function () { 2608 _(this); 2609 }); 2610 } else { 2611 s = i.attr("id"); 2612 } 2613 if (f.data("autoplay") == true) { 2614 var o = e("body") 2615 .find("#" + r.container.attr("id")) 2616 .find(".tp-bannertimer"); 2617 setTimeout(function () { 2618 o.stop(); 2619 r.videoplaying = true; 2620 }, 200); 2621 videojs(s).ready(function () { 2622 var e = this; 2623 i.data( 2624 "timerplay", 2625 setTimeout(function () { 2626 e.play(); 2627 }, f.data("start")) 2628 ); 2629 }); 2630 } 2631 if (i.data("ww") == t) i.data("ww", i.width()); 2632 if (i.data("hh") == t) i.data("hh", i.height()); 2633 videojs(s).ready(function () { 2634 if (!f.hasClass("fullscreenvideo")) { 2635 var e = videojs(s); 2636 try {
2637 e.width(i.data("ww") * r.bw); 2638 e.height(i.data("hh") * r.bh); 2639 } catch (t) {} 2640 } 2641 }); 2642 } 2643 }); 2644 } 2645 if (f.hasClass("randomrotate") && (r.ie || r.ie9)) f.removeClass("randomrotate").addClass("sfb"); 2646 f.removeClass("noFilterClass"); 2647 var h = 0; 2648 var p = 0; 2649 if (f.find("img").length > 0) { 2650 var d = f.find("img"); 2651 if (d.data("ww") == t) d.data("ww", d.width()); 2652 if (d.data("hh") == t) d.data("hh", d.height()); 2653 var v = d.data("ww"); 2654 var m = d.data("hh"); 2655 d.width(v * r.bw); 2656 d.height(m * r.bh); 2657 h = d.width(); 2658 p = d.height(); 2659 } else { 2660 if (f.find("iframe").length > 0) { 2661 var d = f.find("iframe"); 2662 if (f.data("ww") == t) { 2663 f.data("ww", d.width()); 2664 } 2665 if (f.data("hh") == t) f.data("hh", d.height()); 2666 var v = f.data("ww"); 2667 var m = f.data("hh"); 2668 var g = f; 2669 if (g.data("fsize") == t) g.data("fsize", parseInt(g.css("font-size"), 0) || 0); 2670 if (g.data("pt") == t) g.data("pt", parseInt(g.css("paddingTop"), 0) || 0); 2671 if (g.data("pb") == t) g.data("pb", parseInt(g.css("paddingBottom"), 0) || 0); 2672 if (g.data("pl") == t) g.data("pl", parseInt(g.css("paddingLeft"), 0) || 0); 2673 if (g.data("pr") == t) g.data("pr", parseInt(g.css("paddingRight"), 0) || 0); 2674 if (g.data("mt") == t) g.data("mt", parseInt(g.css("marginTop"), 0) || 0); 2675 if (g.data("mb") == t) g.data("mb", parseInt(g.css("marginBottom"), 0) || 0); 2676 if (g.data("ml") == t) g.data("ml", parseInt(g.css("marginLeft"), 0) || 0); 2677 if (g.data("mr") == t) g.data("mr", parseInt(g.css("marginRight"), 0) || 0); 2678 if (g.data("bt") == t) g.data("bt", parseInt(g.css("borderTop"), 0) || 0); 2679 if (g.data("bb") == t) g.data("bb", parseInt(g.css("borderBottom"), 0) || 0); 2680 if (g.data("bl") == t) g.data("bl", parseInt(g.css("borderLeft"), 0) || 0); 2681 if (g.data("br") == t) g.data("br", parseInt(g.css("borderRight"), 0) || 0); 2682 if (g.data("lh") == t) g.data("lh", parseInt(g.css("lineHeight"), 0) || 0); 2683 var y = r.width; 2684 var b = r.height; 2685 if (y > r.startwidth) y = r.startwidth; 2686 if (b > r.startheight) b = r.startheight; 2687 if (!f.hasClass("fullscreenvideo")) 2688 f.css({ 2689 "font-size": g.data("fsize") * r.bw + "px", 2690 "padding-top": g.data("pt") * r.bh + "px", 2691 "padding-bottom": g.data("pb") * r.bh + "px", 2692 "padding-left": g.data("pl") * r.bw + "px", 2693 "padding-right": g.data("pr") * r.bw + "px", 2694 "margin-top": g.data("mt") * r.bh + "px", 2695 "margin-bottom": g.data("mb") * r.bh + "px", 2696 "margin-left": g.data("ml") * r.bw + "px", 2697 "margin-right": g.data("mr") * r.bw + "px", 2698 "border-top": g.data("bt") * r.bh + "px", 2699 "border-bottom": g.data("bb") * r.bh + "px", 2700 "border-left": g.data("bl") * r.bw + "px", 2701 "border-right": g.data("br") * r.bw + "px", 2702 "line-height": g.data("lh") * r.bh + "px", 2703 height: m * r.bh + "px", 2704 "white-space": "nowrap", 2705 }); 2706 else { 2707 s = 0; 2708 o = 0; 2709 f.css({ width: r.width, height: r.height }); 2710 } 2711 d.width(v * r.bw); 2712 d.height(m * r.bh); 2713 h = d.width(); 2714 p = d.height(); 2715 } else { 2716 f.find(".tp-resizeme, .tp-resizeme *").each(function () { 2717 P(e(this), r); 2718 }); 2719 if (f.hasClass("tp-resizeme")) { 2720 f.find("*").each(function () { 2721 P(e(this), r); 2722 }); 2723 } 2724 P(f, r); 2725 p = f.outerHeight(true); 2726 h = f.outerWidth(true); 2727 var w = f.outerHeight(); 2728 var E = f.css("backgroundColor"); 2729 f.find(".frontcorner").css({ borderWidth: w + "px", left: 0 - w + "px", borderRight: "0px solid transparent", borderTopColor: E }); 2730 f.find(".frontcornertop").css({ borderWidth: w + "px", left: 0 - w + "px", borderRight: "0px solid transparent", borderBottomColor: E }); 2731 f.find(".backcorner").css({ borderWidth: w + "px", right: 0 - w + "px", borderLeft: "0px solid transparent", borderBottomColor: E }); 2732 f.find(".backcornertop").css({ borderWidth: w + "px", right: 0 - w + "px", borderLeft: "0px solid transparent", borderTopColor: E }); 2733 } 2734 } 2735 if (f.data("voffset") == t) f.data("voffset", 0); 2736 if (f.data("hoffset") == t) f.data("hoffset", 0); 2737 var S = f.data("voffset") * u; 2738 var x = f.data("hoffset") * u; 2739 var T = r.startwidth * u; 2740 var N = r.startheight * u; 2741 if (f.data("x") == "center" || f.data("xcenter") == "center") { 2742 f.data("xcenter", "center"); 2743 f.data("x", (T / 2 - f.outerWidth(true) / 2) / u + x); 2744 } 2745 if (f.data("x") == "left" || f.data("xleft") == "left") { 2746 f.data("xleft", "left"); 2747 f.data("x", 0 / u + x); 2748 } 2749 if (f.data("x") == "right" || f.data("xright") == "right") { 2750 f.data("xright", "right"); 2751 f.data("x", (T - f.outerWidth(true) + x) / u); 2752 } 2753 if (f.data("y") == "center" || f.data("ycenter") == "center") { 2754 f.data("ycenter", "center"); 2755 f.data("y", (N / 2 - f.outerHeight(true) / 2) / r.bh + S); 2756 } 2757 if (f.data("y") == "top" || f.data("ytop") == "top") { 2758 f.data("ytop", "top"); 2759 f.data("y", 0 / r.bh + S); 2760 } 2761 if (f.data("y") == "bottom" || f.data("ybottom") == "bottom") { 2762 f.data("ybottom", "bottom"); 2763 f.data("y", (N - f.outerHeight(true) + S) / u); 2764 } 2765 if (f.hasClass("fade")) { 2766 f.css({ opacity: 0, left: u * f.data("x") + s + "px", top: r.bh * f.data("y") + o + "px" }); 2767 } 2768 if (f.hasClass("randomrotate")) { 2769 f.css({ left: u * f.data("x") + s + "px", top: a * f.data("y") + o + "px" }); 2770 var C = Math.random() * 2 + 1; 2771 var A = Math.round(Math.random() * 200 - 100); 2772 var D = Math.round(Math.random() * 200 - 100); 2773 var H = Math.round(Math.random() * 200 - 100); 2774 f.data("repx", D); 2775 f.data("repy", H); 2776 f.data("repo", f.css("opacity")); 2777 f.data("rotate", A); 2778 f.data("scale", C); 2779 f.transition({ opacity: 0, scale: C, rotate: A, x: D, y: H, duration: "0ms" }); 2780 } else { 2781 if (r.ie || r.ie9) { 2782 } else { 2783 if (f.find("iframe").length == 0) f.transition({ scale: 1, rotate: 0 }); 2784 } 2785 } 2786 if (f.hasClass("lfr")) { 2787 f.css({ opacity: 1, left: 15 + r.width + "px", top: r.bh * f.data("y") + o + "px" }); 2788 } 2789 if (f.hasClass("lfl")) { 2790 f.css({ opacity: 1, left: -15 - h + "px", top: r.bh * f.data("y") + o + "px" }); 2791 } 2792 if (f.hasClass("sfl")) { 2793 f.css({ opacity: 0, left: u * f.data("x") - 50 + s + "px", top: r.bh * f.data("y") + o + "px" }); 2794 } 2795 if (f.hasClass("sfr")) { 2796 f.css({ opacity: 0, left: u * f.data("x") + 50 + s + "px", top: r.bh * f.data("y") + o + "px" }); 2797 } 2798 if (f.hasClass("lft")) { 2799 f.css({ opacity: 1, left: u * f.data("x") + s + "px", top: -25 - p + "px" }); 2800 } 2801 if (f.hasClass("lfb")) { 2802 f.css({ opacity: 1, left: u * f.data("x") + s + "px", top: 25 + r.height + "px" }); 2803 } 2804 if (f.hasClass("sft")) { 2805 f.css({ opacity: 0, left: u * f.data("x") + s + "px", top: r.bh * f.data("y") + o - 50 + "px" }); 2806 } 2807 if (f.hasClass("sfb")) { 2808 f.css({ opacity: 0, left: u * f.data("x") + s + "px", top: r.bh * f.data("y") + o + 50 + "px" }); 2809 } 2810 if (f.data("start") == t) f.data("start", 1e3); 2811 f.data( 2812 "timer", 2813 setTimeout(function () { 2814 var n = f.data("easing"); 2815 if (n == t) n = "linear"; 2816 if (f.hasClass("fullscreenvideo")) f.css({ display: "block" }); 2817 f.css({ visibility: "visible" }); 2818 if (f.hasClass("fade")) { 2819 f.data("repo", f.css("opacity")); 2820 f.transition({ opacity: 1, duration: f.data("speed") }); 2821 } 2822 if (f.hasClass("randomrotate")) { 2823 n = n.replace("Elastic", "Back"); 2824 n = n.replace("Bounce", "Back"); 2825 f.transition({ opacity: 1, scale: 1, left: u * f.data("x") + s + "px", top: a * f.data("y") + o + "px", rotate: 0, x: 0, y: 0, duration: f.data("speed"), easing: n }); 2826 if (r.ie) f.addClass("noFilterClass"); 2827 } 2828 if (f.hasClass("lfr") || f.hasClass("lfl") || f.hasClass("sfr") || f.hasClass("sfl") || f.hasClass("lft") || f.hasClass("lfb") || f.hasClass("sft") || f.hasClass("sfb")) { 2829 f.data("repx", f.position().left); 2830 f.data("repy", f.position().top); 2831 f.data("repo", f.css("opacity")); 2832 if (n.indexOf("Bounce") >= 0 || n.indexOf("Elastic") >= 0) 2833 f.animate( 2834 { opacity: 1, left: u * f.data("x") + s + "px", top: r.bh * f.data("y") + o + "px" }, 2835 { 2836 duration: f.data("speed"), 2837 easing: n, 2838 complete: function () { 2839 if (r.ie) e(this).addClass("noFilterClass"); 2840 }, 2841 } 2842 ); 2843 else f.transition({ opacity: 1, left: u * f.data("x") + s + "px", top: r.bh * f.data("y") + o + "px", duration: f.data("speed"), easing: n }); 2844 } 2845 }, f.data("start")) 2846 ); 2847 if (f.data("end") != t) 2848 f.data( 2849 "timer-end", 2850 setTimeout(function () { 2851 if ((r.ie || r.ie9) && (f.hasClass("randomrotate") || f.hasClass("randomrotateout"))) { 2852 f.removeClass("randomrotate").removeClass("randomrotateout").addClass("fadeout"); 2853 } 2854 B(f, r); 2855 }, f.data("end")) 2856 ); 2857 } 2858 }); 2859 var u = e("body") 2860 .find("#" + r.container.attr("id")) 2861 .find(".tp-bannertimer"); 2862 u.data("opt", r); 2863 } 2864 function P(e, n) { 2865 if (e.data("fsize") == t) e.data("fsize", parseInt(e.css("font-size"), 0) || 0); 2866 if (e.data("pt") == t) e.data("pt", parseInt(e.css("paddingTop"), 0) || 0); 2867 if (e.data("pb") == t) e.data("pb", parseInt(e.css("paddingBottom"), 0) || 0);
2868 if (e.data("pl") == t) e.data("pl", parseInt(e.css("paddingLeft"), 0) || 0); 2869 if (e.data("pr") == t) e.data("pr", parseInt(e.css("paddingRight"), 0) || 0); 2870 if (e.data("mt") == t) e.data("mt", parseInt(e.css("marginTop"), 0) || 0); 2871 if (e.data("mb") == t) e.data("mb", parseInt(e.css("marginBottom"), 0) || 0); 2872 if (e.data("ml") == t) e.data("ml", parseInt(e.css("marginLeft"), 0) || 0); 2873 if (e.data("mr") == t) e.data("mr", parseInt(e.css("marginRight"), 0) || 0); 2874 if (e.data("bt") == t) e.data("bt", parseInt(e.css("borderTopWidth"), 0) || 0); 2875 if (e.data("bb") == t) e.data("bb", parseInt(e.css("borderBottomWidth"), 0) || 0); 2876 if (e.data("bl") == t) e.data("bl", parseInt(e.css("borderLeftWidth"), 0) || 0); 2877 if (e.data("br") == t) e.data("br", parseInt(e.css("borderRightWidth"), 0) || 0); 2878 if (e.data("lh") == t) e.data("lh", parseInt(e.css("lineHeight"), 0) || 0); 2879 if (e.data("minwidth") == t) e.data("minwidth", parseInt(e.css("minWidth"), 0) || 0); 2880 if (e.data("minheight") == t) e.data("minheight", parseInt(e.css("minHeight"), 0) || 0); 2881 if (e.data("maxwidth") == t) e.data("maxwidth", parseInt(e.css("maxWidth"), 0) || "none"); 2882 if (e.data("maxheight") == t) e.data("maxheight", parseInt(e.css("maxHeight"), 0) || "none"); 2883 e.css({ 2884 "font-size": Math.round(e.data("fsize") * n.bw) + "px", 2885 "padding-top": Math.round(e.data("pt") * n.bh) + "px", 2886 "padding-bottom": Math.round(e.data("pb") * n.bh) + "px", 2887 "padding-left": Math.round(e.data("pl") * n.bw) + "px", 2888 "padding-right": Math.round(e.data("pr") * n.bw) + "px", 2889 "margin-top": e.data("mt") * n.bh + "px", 2890 "margin-bottom": e.data("mb") * n.bh + "px", 2891 "margin-left": e.data("ml") * n.bw + "px", 2892 "margin-right": e.data("mr") * n.bw + "px", 2893 borderTopWidth: Math.round(e.data("bt") * n.bh) + "px", 2894 borderBottomWidth: Math.round(e.data("bb") * n.bh) + "px", 2895 borderLeftWidth: Math.round(e.data("bl") * n.bw) + "px", 2896 borderRightWidth: Math.round(e.data("br") * n.bw) + "px", 2897 "line-height": Math.round(e.data("lh") * n.bh) + "px", 2898 "white-space": "nowrap", 2899 minWidth: e.data("minwidth") * n.bw + "px", 2900 minHeight: e.data("minheight") * n.bh + "px", 2901 }); 2902 if (e.data("maxheight") != "none") e.css({ maxHeight: e.data("maxheight") * n.bh + "px" }); 2903 if (e.data("maxwidth") != "none") e.css({ maxWidth: e.data("maxwidth") * n.bw + "px" }); 2904 } 2905 function H(t, n) { 2906 t.find(".tp-caption").each(function (r) { 2907 var i = t.find(".tp-caption:eq(" + r + ")"); 2908 i.stop(true, true); 2909 clearTimeout(i.data("timer")); 2910 clearTimeout(i.data("timer-end")); 2911 var s = i.data("easing"); 2912 s = "easeInOutSine"; 2913 var o = i.data("repx"); 2914 var u = i.data("repy"); 2915 var a = i.data("repo"); 2916 var f = i.data("rotate"); 2917 var l = i.data("scale"); 2918 if (i.find("iframe").length > 0) { 2919 try { 2920 var c = i.find("iframe"); 2921 var h = c.attr("id"); 2922 var p = $f(h); 2923 p.api("pause"); 2924 clearTimeout(i.data("timerplay")); 2925 } catch (d) {} 2926 try { 2927 var v = i.data("player"); 2928 v.stopVideo(); 2929 clearTimeout(i.data("timerplay")); 2930 } catch (d) {} 2931 } 2932 if (i.find("video").length > 0) { 2933 try { 2934 i.find("video").each(function (t) { 2935 var n = e(this).parent(); 2936 var r = n.attr("id"); 2937 clearTimeout(n.data("timerplay")); 2938 videojs(r).ready(function () { 2939 var e = this; 2940 e.pause(); 2941 }); 2942 }); 2943 } catch (d) {} 2944 } 2945 try { 2946 B(i, n); 2947 } catch (d) {} 2948 }); 2949 } 2950 function B(n, r) { 2951 if (n.hasClass("randomrotate") && (r.ie || r.ie9)) n.removeClass("randomrotate").addClass("sfb"); 2952 if (n.hasClass("randomrotateout") && (r.ie || r.ie9)) n.removeClass("randomrotateout").addClass("stb"); 2953 var i = n.data("endspeed"); 2954 if (i == t) i = n.data("speed"); 2955 var s = n.data("repx"); 2956 var o = n.data("repy"); 2957 var u = n.data("repo"); 2958 if (r.ie) { 2959 n.css({ opacity: "inherit", filter: "inherit" }); 2960 } 2961 if (n.hasClass("ltr") || n.hasClass("ltl") || n.hasClass("str") || n.hasClass("stl") || n.hasClass("ltt") || n.hasClass("ltb") || n.hasClass("stt") || n.hasClass("stb")) { 2962 s = n.position().left; 2963 o = n.position().top; 2964 if (n.hasClass("ltr")) s = r.width + 60; 2965 else if (n.hasClass("ltl")) s = 0 - n.width() - 60; 2966 else if (n.hasClass("ltt")) o = 0 - n.height() - 60; 2967 else if (n.hasClass("ltb")) o = r.height + 60; 2968 else if (n.hasClass("str")) { 2969 s = s + 50; 2970 u = 0; 2971 } else if (n.hasClass("stl")) { 2972 s = s - 50; 2973 u = 0; 2974 } else if (n.hasClass("stt")) { 2975 o = o - 50; 2976 u = 0; 2977 } else if (n.hasClass("stb")) { 2978 o = o + 50; 2979 u = 0; 2980 } 2981 var a = n.data("endeasing"); 2982 if (a == t) a = "linear"; 2983 if (a.indexOf("Bounce") >= 0 || a.indexOf("Elastic") >= 0) 2984 n.animate( 2985 { opacity: u, left: s + "px", top: o + "px" }, 2986 { 2987 duration: n.data("endspeed"), 2988 easing: a, 2989 complete: function () { 2990 e(this).css({ visibility: "hidden" }); 2991 }, 2992 } 2993 ); 2994 else n.transition({ opacity: u, left: s + "px", top: o + "px", duration: n.data("endspeed"), easing: a }); 2995 if (r.ie) n.removeClass("noFilterClass"); 2996 } else if (n.hasClass("randomrotateout")) { 2997 n.transition({ 2998 opacity: 0, 2999 scale: Math.random() * 2 + 0.3, 3000 left: Math.random() * r.width + "px", 3001 top: Math.random() * r.height + "px", 3002 rotate: Math.random() * 40, 3003 duration: i, 3004 easing: a, 3005 complete: function () { 3006 e(this).css({ visibility: "hidden" }); 3007 }, 3008 }); 3009 if (r.ie) n.removeClass("noFilterClass"); 3010 } else if (n.hasClass("fadeout")) { 3011 if (r.ie) n.removeClass("noFilterClass"); 3012 n.transition({ opacity: 0, duration: 200 }); 3013 } else if (n.hasClass("lfr") || n.hasClass("lfl") || n.hasClass("sfr") || n.hasClass("sfl") || n.hasClass("lft") || n.hasClass("lfb") || n.hasClass("sft") || n.hasClass("sfb")) { 3014 if (n.hasClass("lfr")) s = r.width + 60; 3015 else if (n.hasClass("lfl")) s = 0 - n.width() - 60; 3016 else if (n.hasClass("lft")) o = 0 - n.height() - 60; 3017 else if (n.hasClass("lfb")) o = r.height + 60; 3018 var a = n.data("endeasing"); 3019 if (a == t) a = "linear"; 3020 if (a.indexOf("Bounce") >= 0 || a.indexOf("Elastic") >= 0) 3021 n.animate( 3022 { opacity: u, left: s + "px", top: o + "px" }, 3023 { 3024 duration: n.data("endspeed"), 3025 easing: a, 3026 complete: function () { 3027 e(this).css({ visibility: "hidden" }); 3028 }, 3029 } 3030 ); 3031 else n.transition({ opacity: u, left: s + "px", top: o + "px", duration: n.data("endspeed"), easing: a }); 3032 if (r.ie) n.removeClass("noFilterClass"); 3033 } else if (n.hasClass("fade")) { 3034 n.transition({ opacity: 0, duration: i }); 3035 if (r.ie) n.removeClass("noFilterClass"); 3036 } else if (n.hasClass("randomrotate")) { 3037 n.transition({ opacity: 0, scale: Math.random() * 2 + 0.3, left: Math.random() * r.width + "px", top: Math.random() * r.height + "px", rotate: Math.random() * 40, duration: i, easing: a }); 3038 if (r.ie) n.removeClass("noFilterClass"); 3039 } 3040 } 3041 function j(t, n) { 3042 t.children().each(function () { 3043 try { 3044 e(this).die("click"); 3045 } catch (t) {} 3046 try { 3047 e(this).die("mouseenter"); 3048 } catch (t) {} 3049 try { 3050 e(this).die("mouseleave"); 3051 } catch (t) {} 3052 try { 3053 e(this).unbind("hover"); 3054 } catch (t) {} 3055 }); 3056 try { 3057 t.die("click", "mouseenter", "mouseleave"); 3058 } catch (r) {} 3059 clearInterval(n.cdint); 3060 t = null; 3061 } 3062 function F(n, r) { 3063 r.cd = 0; 3064 r.loop = 0; 3065 if (r.stopAfterLoops != t && r.stopAfterLoops > -1) r.looptogo = r.stopAfterLoops; 3066 else r.looptogo = 9999999; 3067 if (r.stopAtSlide != t && r.stopAtSlide > -1) r.lastslidetoshow = r.stopAtSlide; 3068 else r.lastslidetoshow = 999; 3069 r.stopLoop = "off"; 3070 if (r.looptogo == 0) r.stopLoop = "on"; 3071 if (r.slideamount >
3071 1 && !(r.stopAfterLoops == 0 && r.stopAtSlide == 1)) { 3072 var i = n.find(".tp-bannertimer"); 3073 if (i.length > 0) { 3074 i.css({ width: "0%" }); 3075 i.animate({ width: "100%" }, { duration: r.delay - 100, queue: false, easing: "linear" }); 3076 } 3077 i.data("opt", r); 3078 r.cdint = setInterval(function () { 3079 if (e("body").find(n).length == 0) j(n, r); 3080 if (n.data("conthover-changed") == 1) { 3081 r.conthover = n.data("conthover"); 3082 n.data("conthover-changed", 0); 3083 } 3084 if (r.conthover != 1 && r.videoplaying != true && r.width > r.hideSliderAtLimit) r.cd = r.cd + 100; 3085 if (r.fullWidth != "on") 3086 if (r.width > r.hideSliderAtLimit) n.parent().removeClass("tp-hide-revslider"); 3087 else n.parent().addClass("tp-hide-revslider"); 3088 if (r.videostartednow == 1) { 3089 n.trigger("revolution.slide.onvideoplay"); 3090 r.videostartednow = 0; 3091 } 3092 if (r.videostoppednow == 1) { 3093 n.trigger("revolution.slide.onvideostop"); 3094 r.videostoppednow = 0; 3095 } 3096 if (r.cd >= r.delay) { 3097 r.cd = 0; 3098 r.act = r.next; 3099 r.next = r.next + 1; 3100 if (r.next > n.find(">ul >li").length - 1) { 3101 r.next = 0; 3102 r.looptogo = r.looptogo - 1; 3103 if (r.looptogo <= 0) { 3104 r.stopLoop = "on"; 3105 } 3106 } 3107 if (r.stopLoop == "on" && r.next == r.lastslidetoshow - 1) { 3108 clearInterval(r.cdint); 3109 n.find(".tp-bannertimer").css({ visibility: "hidden" }); 3110 n.trigger("revolution.slide.onstop"); 3111 } 3112 T(n, r); 3113 if (i.length > 0) { 3114 i.css({ width: "0%" }); 3115 i.animate({ width: "100%" }, { duration: r.delay - 100, queue: false, easing: "linear" }); 3116 } 3117 } 3118 }, 100); 3119 n.hover( 3120 function () { 3121 if (r.onHoverStop == "on") { 3122 r.conthover = 1; 3123 i.stop(); 3124 n.trigger("revolution.slide.onpause"); 3125 } 3126 }, 3127 function () { 3128 if (n.data("conthover") != 1) { 3129 n.trigger("revolution.slide.onresume"); 3130 r.conthover = 0; 3131 if (r.onHoverStop == "on" && r.videoplaying != true) { 3132 i.animate({ width: "100%" }, { duration: r.delay - r.cd - 100, queue: false, easing: "linear" }); 3133 } 3134 } 3135 } 3136 ); 3137 } 3138 } 3139 e.fn.extend({ 3140 revolution: function (i) { 3141 e.fn.revolution.defaults = { 3142 delay: 9e3, 3143 startheight: 500, 3144 startwidth: 960, 3145 hideThumbs: 200, 3146 thumbWidth: 100, 3147 thumbHeight: 50, 3148 thumbAmount: 5, 3149 navigationType: "bullet", 3150 navigationArrows: "withbullet", 3151 navigationStyle: "round", 3152 navigationHAlign: "center", 3153 navigationVAlign: "bottom", 3154 navigationHOffset: 0, 3155 navigationVOffset: 20, 3156 soloArrowLeftHalign: "left", 3157 soloArrowLeftValign: "center", 3158 soloArrowLeftHOffset: 20, 3159 soloArrowLeftVOffset: 0, 3160 soloArrowRightHalign: "right", 3161 soloArrowRightValign: "center", 3162 soloArrowRightHOffset: 20, 3163 soloArrowRightVOffset: 0, 3164 touchenabled: "on", 3165 onHoverStop: "on", 3166 stopAtSlide: -1, 3167 stopAfterLoops: -1, 3168 hideCaptionAtLimit: 0, 3169 hideAllCaptionAtLilmit: 0, 3170 hideSliderAtLimit: 0, 3171 shadow: 1, 3172 fullWidth: "off", 3173 fullScreen: "off", 3174 }; 3175 i = e.extend({}, e.fn.revolution.defaults, i); 3176 return this.each(function () { 3177 var o = i; 3178 var u = e(this); 3179 if (!u.hasClass("revslider-initialised")) { 3180 u.addClass("revslider-initialised"); 3181 if (u.attr("id") == t) u.attr("id", "revslider-" + Math.round(Math.random() * 1e3 + 5)); 3182 o.firefox13 = false;
3183 o.ie = !e.support.opacity; 3184 o.ie9 = document.documentMode == 9; 3185 var a = e.fn.jquery.split("."), 3186 l = parseFloat(a[0]), 3187 c = parseFloat(a[1]), 3188 m = parseFloat(a[2] || "0"); 3189 if (l == 1 && c < 7) { 3190 u.html( 3191 '<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:' + 3192 a + 3193 " <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>" 3194 ); 3195 } 3196 if (l > 1) o.ie = false; 3197 if (!e.support.transition) e.fn.transition = e.fn.animate; 3198 e.cssEase["Bounce"] = "cubic-bezier(0,1,0.5,1.3)"; 3199 u.find(".caption").each(function () { 3200 e(this).addClass("tp-caption"); 3201 }); 3202 if (s()) { 3203 u.find(".tp-caption").each(function () { 3204 if (e(this).data("autoplay") == true) e(this).data("autoplay", false); 3205 }); 3206 } 3207 var g = 0; 3208 var b = 0; 3209 var w = 0; 3210 u.find(".tp-caption iframe").each(function (t) { 3211 try { 3212 if (e(this).attr("src").indexOf("you") > 0 && g == 0) { 3213 g = 1; 3214 var n = document.createElement("script"); 3215 n.src = "http://www.youtube.com/player_api"; 3216 var r = document.getElementsByTagName("script")[0]; 3217 r.parentNode.insertBefore(n, r); 3218 } 3219 } catch (i) {} 3220 }); 3221 u.find(".tp-caption iframe").each(function (t) { 3222 try { 3223 if (e(this).attr("src").indexOf("vim") > 0 && b == 0) { 3224 b = 1; 3225 var n = document.createElement("script"); 3226 n.src = "http://a.vimeocdn.com/js/froogaloop2.min.js"; 3227 var r = document.getElementsByTagName("script")[0]; 3228 r.parentNode.insertBefore(n, r); 3229 } 3230 } catch (i) {} 3231 }); 3232 u.find(".tp-caption video").each(function (t) { 3233 try { 3234 if (e(this).hasClass("video-js") && w == 0) { 3235 w = 1; 3236 var n = document.createElement("script"); 3237 n.src = o.videoJsPath + "video.js"; 3238 var r = document.getElementsByTagName("script")[0]; 3239 r.parentNode.insertBefore(n, r); 3240 e("head").append('<link rel="stylesheet" type="text/css" href="' + o.videoJsPath + 'video-js.min.css" media="screen" />'); 3241 e("head").append('<script> videojs.options.flash.swf = "' + o.videoJsPath + 'video-js.swf";</script>'); 3242 } 3243 } catch (i) {} 3244 }); 3245 if (o.shuffle == "on") { 3246 for (var E = 0; E < u.find(">ul:first-child >li").length; E++) { 3247 var S = Math.round(Math.random() * u.find(">ul:first-child >li").length); 3248 u.find(">ul:first-child >li:eq(" + S + ")").prependTo(u.find(">ul:first-child")); 3249 } 3250 } 3251 o.slots = 4; 3252 o.act = -1; 3253 o.next = 0; 3254 if (o.startWithSlide != t) o.next = o.startWithSlide;
3255 var x = n("#")[0]; 3256 if (x.length < 9) { 3257 if (x.split("slide").length > 1) { 3258 var N = parseInt(x.split("slide")[1], 0); 3259 if (N < 1) N = 1; 3260 if (N > u.find(">ul:first >li").length) N = u.find(">ul:first >li").length; 3261 o.next = N - 1; 3262 } 3263 } 3264 o.origcd = o.delay; 3265 o.firststart = 1; 3266 if (o.navigationHOffset == t) o.navOffsetHorizontal = 0; 3267 if (o.navigationVOffset == t) o.navOffsetVertical = 0; 3268 u.append('<div class="tp-loader"></div>'); 3269 if (u.find(".tp-bannertimer").length == 0) u.append('<div class="tp-bannertimer" style="visibility:hidden"></div>'); 3270 var C = u.find(".tp-bannertimer"); 3271 if (C.length > 0) { 3272 C.css({ width: "0%" }); 3273 } 3274 u.addClass("tp-simpleresponsive"); 3275 o.container = u; 3276 o.slideamount = u.find(">ul:first >li").length; 3277 if (u.height() == 0) u.height(o.startheight); 3278 if (o.startwidth == t || o.startwidth == 0) o.startwidth = u.width(); 3279 if (o.startheight == t || o.startheight == 0) o.startheight = u.height(); 3280 o.width = u.width(); 3281 o.height = u.height(); 3282 o.bw = o.startwidth / u.width(); 3283 o.bh = o.startheight / u.height(); 3284 if (o.width != o.startwidth) { 3285 o.height = Math.round(o.startheight * (o.width / o.startwidth)); 3286 u.height(o.height); 3287 } 3288 if (o.shadow != 0) { 3289 u.parent().append('<div class="tp-bannershadow tp-shadow' + o.shadow + '"></div>'); 3290 u.parent().find(".tp-bannershadow").css({ width: o.width }); 3291 } 3292 u.find("ul").css({ display: "none" }); 3293 if (o.lazyLoad != "on") { 3294 u.waitForImages(function () { 3295 u.find("ul").css({ display: "block" }); 3296 y(u, o); 3297 if (o.slideamount > 1) h(u, o); 3298 if (o.slideamount > 1) f(u, o); 3299 if (o.slideamount > 1) p(u, o); 3300 e("#unvisible_button").click(function () { 3301 o.navigationArrows = e(".selectnavarrows").val(); 3302 o.navigationType = e(".selectnavtype").val(); 3303 o.navigationStyle = e(".selectnavstyle").val(); 3304 o.soloArrowStyle = "default"; 3305 e(".tp-bullets").remove(); 3306 e(".tparrows").remove(); 3307 if (o.slideamount > 1) h(u, o); 3308 if (o.slideamount > 1) f(u, o); 3309 if (o.slideamount > 1) p(u, o); 3310 }); 3311 d(u, o); 3312 if (o.hideThumbs > 0) v(u, o); 3313 u.waitForImages(function () { 3314 u.find(".tp-loader").fadeOut(600); 3315 setTimeout(function () { 3316 T(u, o); 3317 if (o.slideamount > 1) F(u, o); 3318 u.trigger("revolution.slide.onloaded"); 3319 }, 600); 3320 }); 3321 }); 3322 } else { 3323 var k = u.find("ul >li >img").first(); 3324 if (k.data("lazyload") != t) k.attr("src", k.data("lazyload")); 3325 k.data("lazydone", 1); 3326 k.parent().waitForImages(function () { 3327 u.find("ul").css({ display: "block" }); 3328 y(u, o); 3329 if (o.slideamount > 1) h(u, o); 3330 if (o.slideamount > 1) f(u, o); 3331 if (o.slideamount > 1) p(u, o); 3332 d(u, o); 3333 if (o.hideThumbs > 0) v(u, o); 3334 k.parent().waitForImages(function () { 3335 u.find(".tp-loader").fadeOut(600); 3336 setTimeout(function () { 3337 T(u, o); 3338 if (o.slideamount > 1) F(u, o); 3339 u.trigger("revolution.slide.onloaded"); 3340 }, 600); 3341 }); 3342 }); 3343 } 3344 e(window).resize(function () { 3345 if (e("body").find(u) != 0) 3346 if (u.outerWidth(true) != o.width) { 3347 r(u, o); 3348 } 3349 }); 3350 u.find(".tp-scrollbelowslider").on("click", function () { 3351 var t = 0; 3352 try { 3353 t = e("body").find(o.fullScreenOffsetContainer).height(); 3354 } catch (n) {} 3355 try { 3356 t = t - e(this).data("scrolloffset"); 3357 } catch (n) {} 3358 e("body,html").animate({ scrollTop: u.offset().top + u.find(">ul >li").height() - t + "px" }, { duration: 400 }); 3359 }); 3360 } 3361 }); 3362 }, 3363 revscroll: function (t) { 3364 return this.each(function () { 3365 var n = e(this); 3366 e("body,html").animate({ scrollTop: n.offset().top + n.find(">ul >li").height() - t + "px" }, { duration: 400 }); 3367 }); 3368 }, 3369 revpause: function (t) { 3370 return this.each(function () { 3371 var t = e(this); 3372 t.data("conthover", 1); 3373 t.data("conthover-changed", 1); 3374 t.trigger("revolution.slide.onpause"); 3375 var n = t.parent().find(".tp-bannertimer"); 3376 n.stop(); 3377 }); 3378 }, 3379 revresume: function (t) { 3380 return this.each(function () { 3381 var t = e(this); 3382 t.data("conthover", 0); 3383 t.data("conthover-changed", 1); 3384 t.trigger("revolution.slide.onresume"); 3385 var n = t.parent().find(".tp-bannertimer"); 3386 var r = n.data("opt"); 3387 n.animate({ width: "100%" }, { duration: r.delay - r.cd - 100, queue: false, easing: "linear" }); 3388 }); 3389 }, 3390 revnext: function (t) { 3391 return this.each(function () { 3392 var t = e(this); 3393 t.parent().find(".tp-rightarrow").click(); 3394 }); 3395 }, 3396 revprev: function (t) { 3397 return this.each(function () { 3398 var t = e(this); 3399 t.parent().find(".tp-leftarrow").click(); 3400 }); 3401 }, 3402 revmaxslide: function (t) { 3403 return e(this).find(">ul:first-child >li").length; 3404 }, 3405 revcurrentslide: function (t) { 3406 var n = e(this); 3407 var r = n.parent().find(".tp-bannertimer"); 3408 var i = r.data("opt"); 3409 return i.act; 3410 }, 3411 revlastslide: function (t) { 3412 var n = e(this); 3413 var r = n.parent().find(".tp-bannertimer"); 3414 var i = r.data("opt"); 3415 return i.lastslide; 3416 }, 3417 revshowslide: function (t) { 3418 return this.each(function () { 3419 var n = e(this); 3420 n.data("showus", t); 3421 n.parent().find(".tp-rightarrow").click(); 3422 }); 3423 }, 3424 }); 3425})(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.