JavaScript
Executed Scripts (60)
Executed Evals (4)
#1 JavaScript::Eval (size: 18355) - SHA256: f2770160cf74ff237e024d73350012f3a67bfb46c7518e18f4242be24ceb69dd
/**
* 2016 Revolution Slider
*
* @author SmatDataSoft <support@smartdatasoft.com>
* @copyright 2016 SmatDataSoft
* @license private
* @version 5.1.3
* International Registered Trademark & Property of SmatDataSoft
*/
/********************************************
* REVOLUTION 5.1 EXTENSION - VIDEO FUNCTIONS
* @version: 1.1.3 (13.11.2015)
* @requires jquery.themepunch.revolution.js
* @author ThemePunch
*********************************************/
! function() {
function e(e) {
return void 0 == e ? -1 : jQuery.isNumeric(e) ? e : e.split(":").length > 1 ? 60 * parseInt(e.split(":")[0], 0) + parseInt(e.split(":")[1], 0) : e
}
var t = jQuery.fn.revolution,
a = t.is_mobile();
jQuery.extend(!0, t, {
resetVideo: function(t) {
switch (t.data("videotype")) {
case "youtube":
{
t.data("player")
}
try {
if ("on" == t.data("forcerewind") && !a) {
var i = e(t.data("videostartat"));
i = -1 == i ? 0 : i, t.data("player").seekTo(i), t.data("player").pauseVideo()
}
} catch (o) {}
0 == t.find(".tp-videoposter").length && punchgs.TweenLite.to(t.find("iframe"), .3, {
autoAlpha: 1,
display: "block",
ease: punchgs.Power3.easeInOut
});
break;
case "vimeo":
var d = $f(t.find("iframe").attr("id"));
try {
if ("on" == t.data("forcerewind") && !a) {
var i = e(t.data("videostartat"));
i = -1 == i ? 0 : i, d.api("seekTo", i), d.api("pause")
}
} catch (o) {}
0 == t.find(".tp-videoposter").length && punchgs.TweenLite.to(t.find("iframe"), .3, {
autoAlpha: 1,
display: "block",
ease: punchgs.Power3.easeInOut
});
break;
case "html5":
if (a && 1 == t.data("disablevideoonmobile")) return !1;
var n = t.find("video"),
r = n[0];
if (punchgs.TweenLite.to(n, .3, {
autoAlpha: 1,
display: "block",
ease: punchgs.Power3.easeInOut
}), "on" == t.data("forcerewind") && !t.hasClass("videoisplaying")) try {
var i = e(t.data("videostartat"));
r.currentTime = -1 == i ? 0 : i
} catch (o) {}
"mute" == t.data("volume") && (r.muted = !0)
}
},
stopVideo: function(e) {
switch (e.data("videotype")) {
case "youtube":
try {
var t = e.data("player");
t.pauseVideo()
} catch (a) {}
break;
case "vimeo":
try {
var i = $f(e.find("iframe").attr("id"));
i.api("pause")
} catch (a) {}
break;
case "html5":
var o = e.find("video"),
d = o[0];
d.pause()
}
},
playVideo: function(o, n) {
switch (clearTimeout(o.data("videoplaywait")), o.data("videotype")) {
case "youtube":
if (0 == o.find("iframe").length) o.append(o.data("videomarkup")), d(o, n, !0);
else if (void 0 != o.data("player").playVideo) {
o.data("player").playVideo();
var r = e(o.data("videostartat")); - 1 != r && o.data("player").seekTo(r)
} else o.data("videoplaywait", setTimeout(function() {
t.playVideo(o, n)
}, 50));
break;
case "vimeo":
if (0 == o.find("iframe").length) o.append(o.data("videomarkup")), d(o, n, !0);
else if (o.hasClass("rs-apiready")) {
var s = o.find("iframe").attr("id"),
l = $f(s);
void 0 == l.api("play") ? o.data("videoplaywait", setTimeout(function() {
t.playVideo(o, n)
}, 50)) : setTimeout(function() {
l.api("play");
var t = e(o.data("videostartat")); - 1 != t && l.api("seekTo", t)
}, 510)
} else o.data("videoplaywait", setTimeout(function() {
t.playVideo(o, n)
}, 50));
break;
case "html5":
if (a && 1 == o.data("disablevideoonmobile")) return !1;
var p = o.find("video"),
v = p[0],
u = p.parent();
if (1 != u.data("metaloaded")) i(v, "loadedmetadata", function(a) {
t.resetVideo(a, n), v.play();
var i = e(a.data("videostartat")); - 1 != i && (v.currentTime = i)
}(o));
else {
v.play();
var r = e(o.data("videostartat")); - 1 != r && (v.currentTime = r)
}
}
},
isVideoPlaying: function(e, t) {
var a = !1;
return void 0 != t.playingvideos && jQuery.each(t.playingvideos, function(t, i) {
e.attr("id") == i.attr("id") && (a = !0)
}), a
},
prepareCoveredVideo: function(e, t, a) {
var i = a.find("iframe, video"),
o = e.split(":")[0],
d = e.split(":")[1],
n = a.closest(".tp-revslider-slidesli"),
r = n.width() / n.height(),
s = o / d,
l = r / s * 100,
p = s / r * 100;
r > s ? punchgs.TweenLite.to(i, .001, {
height: l + "%",
width: "100%",
top: -(l - 100) / 2 + "%",
left: "0px",
position: "absolute"
}) : punchgs.TweenLite.to(i, .001, {
width: p + "%",
height: "100%",
left: -(p - 100) / 2 + "%",
top: "0px",
position: "absolute"
})
},
checkVideoApis: function(e, t, a) {
var i = "https:" === location.protocol ? "https" : "http";
if ((void 0 != e.data("ytid") || e.find("iframe").length > 0 && e.find("iframe").attr("src").toLowerCase().indexOf("youtube") > 0) && (t.youtubeapineeded = !0), (void 0 != e.data("ytid") || e.find("iframe").length > 0 && e.find("iframe").attr("src").toLowerCase().indexOf("youtube") > 0) && 0 == a.addedyt) {
t.youtubestarttime = jQuery.now(), a.addedyt = 1;
var o = document.createElement("script");
o.src = "https://www.youtube.com/iframe_api";
var d = document.getElementsByTagName("script")[0],
n = !0;
jQuery("head").find("*").each(function() {
"https://www.youtube.com/iframe_api" == jQuery(this).attr("src") && (n = !1)
}), n && d.parentNode.insertBefore(o, d)
}
if ((void 0 != e.data("vimeoid") || e.find("iframe").length > 0 && e.find("iframe").attr("src").toLowerCase().indexOf("vimeo") > 0) && (t.vimeoapineeded = !0), (void 0 != e.data("vimeoid") || e.find("iframe").length > 0 && e.find("iframe").attr("src").toLowerCase().indexOf("vimeo") > 0) && 0 == a.addedvim) {
t.vimeostarttime = jQuery.now(), a.addedvim = 1;
var r = document.createElement("script"),
d = document.getElementsByTagName("script")[0],
n = !0;
r.src = i + "://f.vimeocdn.com/js/froogaloop2.min.js", jQuery("head").find("*").each(function() {
jQuery(this).attr("src") == i + "://a.vimeocdn.com/js/froogaloop2.min.js" && (n = !1)
}), n && d.parentNode.insertBefore(r, d)
}
return a
},
manageVideoLayer: function(o, r) {
var s = o.data("videoattributes"),
l = o.data("ytid"),
p = o.data("vimeoid"),
v = o.data("videpreload"),
u = o.data("videomp4"),
c = o.data("videowebm"),
f = o.data("videoogv"),
m = o.data("allowfullscreenvideo"),
h = o.data("videocontrols"),
g = "http",
y = "loop" == o.data("videoloop") ? "loop" : "loopandnoslidestop" == o.data("videoloop") ? "loop" : "",
w = void 0 != u || void 0 != c ? "html5" : void 0 != l && String(l).length > 1 ? "youtube" : void 0 != p && String(p).length > 1 ? "vimeo" : "none",
b = "html5" == w && 0 == o.find("video").length ? "html5" : "youtube" == w && 0 == o.find("iframe").length ? "youtube" : "vimeo" == w && 0 == o.find("iframe").length ? "vimeo" : "none";
switch (o.data("videotype", w), b) {
case "html5":
"controls" != h && (h = "");
var k = '<video style="object-fit:cover;background-size:cover;visible:hidden;width:100%; height:100%" class="" ' + y + ' preload="' + v + '">';
void 0 != c && "firefox" == t.get_browser().toLowerCase() && (k = k + '<source src="' + c + '" type="video/webm" />'), void 0 != u && (k = k + '<source src="' + u + '" type="video/mp4" />'), void 0 != f && (k = k + '<source src="' + f + '" type="video/ogg" />'), k += "</video>";
var T = "";
("true" === m || m === !0) && (T = '<div class="tp-video-button-wrap"><button type="button" class="tp-video-button tp-vid-full-screen">Full-Screen</button></div>'), "controls" == h && (k += '<div class="tp-video-controls"><div class="tp-video-button-wrap"><button type="button" class="tp-video-button tp-vid-play-pause">Play</button></div><div class="tp-video-seek-bar-wrap"><input type="range" class="tp-seek-bar" value="0"></div><div class="tp-video-button-wrap"><button type="button" class="tp-video-button tp-vid-mute">Mute</button></div><div class="tp-video-vol-bar-wrap"><input type="range" class="tp-volume-bar" min="0" max="1" step="0.1" value="1"></div>' + T + "</div>"), o.data("videomarkup", k), o.append(k), (a && 1 == o.data("disablevideoonmobile") || t.isIE(8)) && o.find("video").remove(), o.find("video").each(function() {
var e = this,
a = jQuery(this);
a.parent().hasClass("html5vid") || a.wrap('<div class="html5vid" style="position:relative;top:0px;left:0px;width:100%;height:100%; overflow:hidden;"></div>');
var d = a.parent();
1 != d.data("metaloaded") && i(e, "loadedmetadata", function(e) {
n(e, r), t.resetVideo(e, r)
}(o))
});
break;
case "youtube":
g = "http", "https:" === location.protocol && (g = "https"), "none" == h && (s = s.replace("controls=1", "controls=0"), -1 == s.toLowerCase().indexOf("controls") && (s += "&controls=0"));
var x = e(o.data("videostartat")),
L = e(o.data("videoendat")); - 1 != x && (s = s + "&start=" + x), -1 != L && (s = s + "&end=" + L);
var C = s.split("origin=" + g + "://"),
V = "";
C.length > 1 ? (V = C[0] + "origin=" + g + "://", self.location.href.match(/www/gi) && !C[1].match(/www/gi) && (V += "www."), V += C[1]) : V = s;
var j = "true" === m || m === !0 ? "allowfullscreen" : "";
o.data("videomarkup", '<iframe style="visible:hidden" src="' + g + "://www.youtube.com/embed/" + l + "?" + V + '" ' + j + ' width="100%" height="100%" style="width:100%;height:100%"></iframe>');
break;
case "vimeo":
"https:" === location.protocol && (g = "https"), o.data("videomarkup", '<iframe style="visible:hidden" src="' + g + "://player.vimeo.com/video/" + p + "?" + s + '" webkitallowfullscreen mozallowfullscreen allowfullscreen width="100%" height="100%" style="100%;height:100%"></iframe>')
}
var _ = 1 != a && "on" != o.data("posterOnMobile") && "on" != o.data("posteronmobile") || a;
void 0 != o.data("videoposter") && o.data("videoposter").length > 2 && _ ? (0 == o.find(".tp-videoposter").length && o.append('<div class="tp-videoposter noSwipe" style="cursor:pointer; position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:3;background-image:url(' + o.data("videoposter") + '); background-size:cover;background-position:center center;"></div>'), 0 == o.find("iframe").length && o.find(".tp-videoposter").click(function() {
if (t.playVideo(o, r), a) {
if (1 == o.data("disablevideoonmobile")) return !1;
punchgs.TweenLite.to(o.find(".tp-videoposter"), .3, {
autoAlpha: 0,
force3D: "auto",
ease: punchgs.Power3.easeInOut
}), punchgs.TweenLite.to(o.find("iframe"), .3, {
autoAlpha: 1,
display: "block",
ease: punchgs.Power3.easeInOut
})
}
})) : 0 != o.find("iframe").length || "youtube" != w && "vimeo" != w || (o.append(o.data("videomarkup")), d(o, r, !1)), "none" != o.data("dottedoverlay") && void 0 != o.data("dottedoverlay") && 1 != o.find(".tp-dottedoverlay").length && o.append('<div class="tp-dottedoverlay ' + o.data("dottedoverlay") + '"></div>'), o.addClass("HasListener"), 1 == o.data("bgvideo") && punchgs.TweenLite.set(o.find("video, iframe"), {
autoAlpha: 0
})
}
});
var i = function(e, t, a) {
e.addEventListener ? e.addEventListener(t, a, !1) : e.attachEvent(t, a, !1)
},
o = function(e, t, a) {
var i = {};
return i.video = e, i.videotype = t, i.settings = a, i
},
d = function(i, d, n) {
var l = i.find("iframe"),
p = "iframe" + Math.round(1e5 * Math.random() + 1),
v = i.data("videoloop"),
u = "loopandnoslidestop" != v;
if (v = "loop" == v || "loopandnoslidestop" == v, 1 == i.data("forcecover")) {
i.removeClass("fullscreenvideo").addClass("coverscreenvideo");
var c = i.data("aspectratio");
void 0 != c && c.split(":").length > 1 && t.prepareCoveredVideo(c, d, i)
}
if (1 == i.data("bgvideo")) {
var c = i.data("aspectratio");
void 0 != c && c.split(":").length > 1 && t.prepareCoveredVideo(c, d, i)
}
if (l.attr("id", p), n && i.data("startvideonow", !0), 1 !== i.data("videolistenerexist")) switch (i.data("videotype")) {
case "youtube":
var f = new YT.Player(p, {
events: {
onStateChange: function(t) {
var a = t.target.getVideoEmbedCode(),
i = jQuery("#" + a.split('id="')[1].split('"')[0]),
n = i.closest(".tp-simpleresponsive"),
l = i.parent(),
p = i.parent().data("player");
if (t.data == YT.PlayerState.PLAYING) punchgs.TweenLite.to(l.find(".tp-videoposter"), .3, {
autoAlpha: 0,
force3D: "auto",
ease: punchgs.Power3.easeInOut
}), punchgs.TweenLite.to(l.find("iframe"), .3, {
autoAlpha: 1,
display: "block",
ease: punchgs.Power3.easeInOut
}), "mute" == l.data("volume") ? p.mute() : (p.unMute(), p.setVolume(parseInt(l.data("volume"), 0) || 75)), d.videoplaying = !0, r(l, d), n.trigger("stoptimer"), d.c.trigger("revolution.slide.onvideoplay", o(p, "youtube", l.data()));
else {
if (0 == t.data && v) {
var u = e(l.data("videostartat")); - 1 != u && p.seekTo(u), p.playVideo()
}(0 == t.data || 2 == t.data) && "on" == l.data("showcoveronpause") && l.find(".tp-videoposter").length > 0 && (punchgs.TweenLite.to(l.find(".tp-videoposter"), .3, {
autoAlpha: 1,
force3D: "auto",
ease: punchgs.Power3.easeInOut
}), punchgs.TweenLite.to(l.find("iframe"), .3, {
autoAlpha: 0,
ease: punchgs.Power3.easeInOut
})), -1 != t.data && 3 != t.data && (d.videoplaying = !1, s(l, d), n.trigger("starttimer"), d.c.trigger("revolution.slide.onvideostop", o(p, "youtube", l.data()))), 0 == t.data && 1 == l.data("nextslideatend") ? (d.c.revnext(), s(l, d)) : (s(l, d), d.videoplaying = !1, n.trigger("starttimer"), d.c.trigger("revolution.slide.onvideostop", o(p, "youtube", l.data())))
}
},
onReady: function(t) {
{
var i = t.target.getVideoEmbedCode(),
o = jQuery("#" + i.split('id="')[1].split('"')[0]),
d = o.parent(),
n = d.data("videorate");
d.data("videostart")
}
if (d.addClass("rs-apiready"), void 0 != n && t.target.setPlaybackRate(parseFloat(n)), d.find(".tp-videoposter").unbind("click"), d.find(".tp-videoposter").click(function() {
a || f.playVideo()
}), d.data("startvideonow")) {
d.data("player").playVideo();
var r = e(d.data("videostartat")); - 1 != r && d.data("player").seekTo(r)
}
d.data("videolistenerexist", 1)
}
}
});
i.data("player", f);
break;
case "vimeo":
for (var m, h = l.attr("src"), g = {}, y = h, w = /([^&=]+)=([^&]*)/g; m = w.exec(y);) g[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
h = void 0 != g.player_id ? h.replace(g.player_id, p) : h + "&player_id=" + p;
try {
h = h.replace("api=0", "api=1")
} catch (b) {}
h += "&api=1", l.attr("src", h);
var f = i.find("iframe")[0],
k = (jQuery("#" + p), $f(p));
k.addEvent("ready", function() {
if (i.addClass("rs-apiready"), k.addEvent("play", function() {
i.data("nextslidecalled", 0), punchgs.TweenLite.to(i.find(".tp-videoposter"), .3, {
autoAlpha: 0,
force3D: "auto",
ease: punchgs.Power3.easeInOut
}), punchgs.TweenLite.to(i.find("iframe"), .3, {
autoAlpha: 1,
display: "block",
ease: punchgs.Power3.easeInOut
}), d.c.trigger("revolution.slide.onvideoplay", o(k, "vimeo", i.data())), d.videoplaying = !0, r(i, d), u && d.c.trigger("stoptimer"), "mute" == i.data("volume") ? k.api("setVolume", "0") : k.api("setVolume", parseInt(i.data("volume"), 0) / 100 || .75)
}), k.addEvent("playProgress", function(t) {
var a = e(i.data("videoendat"));
if (0 != a && Math.abs(a - t.seconds) < .3 && a > t.seconds && 1 != i.data("nextslidecalled"))
if (v) {
k.api("play");
var o = e(i.data("videostartat")); - 1 != o && k.api("seekTo", o)
} else 1 == i.data("nextslideatend") && (i.data("nextslidecalled", 1), d.c.revnext()), k.api("pause")
}), k.addEvent("finish", function() {
s(i, d), d.videoplaying = !1, d.c.trigger("starttimer"), d.c.trigger("revolution.slide.onvideostop", o(k, "vimeo", i.data())), 1 == i.data("nextslideatend") && d.c.revnext()
}), k.addEvent("pause", function() {
i.find(".tp-videoposter").length > 0 && "on" == i.data("showcoveronpause") && (punchgs.TweenLite.to(i.find(".tp-videoposter"), .3, {
autoAlpha: 1,
force3D: "auto",
ease: punchgs.Power3.easeInOut
}), punchgs.TweenLite.to(i.find("iframe"), .3, {
autoAlpha: 0,
ease: punchgs.Power3.easeInOut
})), d.videoplaying = !1, s(i, d), d.c.trigger("starttimer"), d.c.trigger("revolution.slide.onvideostop", o(k, "vimeo", i.data()))
}), i.find(".tp-videoposter").unbind("click"), i.find(".tp-videoposter").click(function() {
return a ? void 0 : (k.api("play"), !1)
}), i.data("startvideonow")) {
k.api("play");
var t = e(i.data("videostartat")); - 1 != t && k.api("seekTo", t)
}
i.data("videolistenerexist", 1)
})
} else {
var T = e(i.data("videostartat"));
switch (i.data("videotype")) {
case "youtube":
n && (i.data("player").playVideo(), -1 != T && i.data("player").seekTo());
break;
case "vimeo":
if (n) {
var k = $f(i.find("iframe").attr("id"));
k.api("play"), -1 != T && k.api("seekTo", T)
}
}
}
},
n = function(d, n) {
if (a && 1 == d.data("disablevideoonmobile")) return !1;
var l = d.find("video"),
p = l[0],
v = l.parent(),
u = d.data("videoloop"),
c = "loopandnoslidestop" != u;
if (u = "loop" == u || "loopandnoslidestop" == u, v.data("metaloaded", 1), void 0 == l.attr("control") && (0 != d.find(".tp-video-play-button").length || a || d.append('<div class="tp-video-play-button"><i class="revicon-right-dir"></i><span class="tp-revstop"> </span></div>'), d.find("video, .tp-poster, .tp-video-play-button").click(function() {
d.hasClass("videoisplaying") ? p.pause() : p.play()
})), 1 == d.data("forcecover") || d.hasClass("fullscreenvideo") || 1 == d.data("bgvideo"))
if (1 == d.data("forcecover") || 1 == d.data("bgvideo")) {
v.addClass("fullcoveredvideo");
var f = d.data("aspectratio") || "4:3";
t.prepareCoveredVideo(f, n, d)
} else v.addClass("fullscreenvideo");
var m = d.find(".tp-vid-play-pause")[0],
h = d.find(".tp-vid-mute")[0],
g = d.find(".tp-vid-full-screen")[0],
y = d.find(".tp-seek-bar")[0],
w = d.find(".tp-volume-bar")[0];
void 0 != m && i(m, "click", function() {
1 == p.paused ? p.play() : p.pause()
}), void 0 != h && i(h, "click", function() {
0 == p.muted ? (p.muted = !0, h.innerHTML = "Unmute") : (p.muted = !1, h.innerHTML = "Mute")
}), void 0 != g && g && i(g, "click", function() {
p.requestFullscreen ? p.requestFullscreen() : p.mozRequestFullScreen ? p.mozRequestFullScreen() : p.webkitRequestFullscreen && p.webkitRequestFullscreen()
}), void 0 != y && (i(y, "change", function() {
var e = p.duration * (y.value / 100);
p.currentTime = e
}), i(y, "mousedown", function() {
d.addClass("seekbardragged"), p.pause()
}), i(y, "mouseup", function() {
d.removeClass("seekbardragged"), p.play()
})), i(p, "timeupdate", function() {
var t = 100 / p.duration * p.currentTime,
a = e(d.data("videoendat")),
i = p.currentTime;
if (void 0 != y && (y.value = t), 0 != a && -1 != a && Math.abs(a - i) <= .3 && a > i && 1 != d.data("nextslidecalled"))
if (u) {
p.play();
var o = e(d.data("videostartat")); - 1 != o && (p.currentTime = o)
} else 1 == d.data("nextslideatend") && (d.data("nextslidecalled", 1), n.just_called_nextslide_at_htmltimer = !0, n.c.revnext(), setTimeout(function() {
n.just_called_nextslide_at_htmltimer = !1
}, 1e3)), p.pause()
}), void 0 != w && i(w, "change", function() {
p.volume = w.value
}), i(p, "play", function() {
d.data("nextslidecalled", 0), "mute" == d.data("volume") && (p.muted = !0), d.addClass("videoisplaying"), r(d, n), c ? (n.videoplaying = !0, n.c.trigger("stoptimer"), n.c.trigger("revolution.slide.onvideoplay", o(p, "html5", d.data()))) : (n.videoplaying = !1, n.c.trigger("starttimer"), n.c.trigger("revolution.slide.onvideostop", o(p, "html5", d.data()))), punchgs.TweenLite.to(d.find(".tp-videoposter"), .3, {
autoAlpha: 0,
force3D: "auto",
ease: punchgs.Power3.easeInOut
}), punchgs.TweenLite.to(d.find("video"), .3, {
autoAlpha: 1,
display: "block",
ease: punchgs.Power3.easeInOut
});
var e = d.find(".tp-vid-play-pause")[0],
t = d.find(".tp-vid-mute")[0];
void 0 != e && (e.innerHTML = "Pause"), void 0 != t && p.muted && (t.innerHTML = "Unmute")
}), i(p, "pause", function() {
d.find(".tp-videoposter").length > 0 && "on" == d.data("showcoveronpause") && !d.hasClass("seekbardragged") && (punchgs.TweenLite.to(d.find(".tp-videoposter"), .3, {
autoAlpha: 1,
force3D: "auto",
ease: punchgs.Power3.easeInOut
}), punchgs.TweenLite.to(d.find("video"), .3, {
autoAlpha: 0,
ease: punchgs.Power3.easeInOut
})), d.removeClass("videoisplaying"), n.videoplaying = !1, s(d, n), n.c.trigger("starttimer"), n.c.trigger("revolution.slide.onvideostop", o(p, "html5", d.data()));
var e = d.find(".tp-vid-play-pause")[0];
void 0 != e && (e.innerHTML = "Play")
}), i(p, "ended", function() {
s(d, n), n.videoplaying = !1, s(d, n), n.c.trigger("starttimer"), n.c.trigger("revolution.slide.onvideostop", o(p, "html5", d.data())), 1 == d.data("nextslideatend") && (1 == !n.just_called_nextslide_at_htmltimer && (n.c.revnext(), n.just_called_nextslide_at_htmltimer = !0), setTimeout(function() {
n.just_called_nextslide_at_htmltimer = !1
}, 1500)), d.removeClass("videoisplaying")
})
},
r = function(e, a) {
void 0 == a.playingvideos && (a.playingvideos = new Array), e.data("stopallvideos") && void 0 != a.playingvideos && a.playingvideos.length > 0 && (a.lastplayedvideos = jQuery.extend(!0, [], a.playingvideos), jQuery.each(a.playingvideos, function(e, i) {
t.stopVideo(i, a)
})), a.playingvideos.push(e)
},
s = function(e, t) {
void 0 != t.playingvideos && t.playingvideos.splice(jQuery.inArray(e, t.playingvideos), 1)
}
}(jQuery);
#2 JavaScript::Eval (size: 30568) - SHA256: 16d51809e34ecd06dc421c8369b2a5f804507395793c8118b1ff491c15d52180
/**
* 2016 Revolution Slider
*
* @author SmatDataSoft <support@smartdatasoft.com>
* @copyright 2016 SmatDataSoft
* @license private
* @version 5.1.3
* International Registered Trademark & Property of SmatDataSoft
*/
/********************************************
* REVOLUTION 5.0 EXTENSION - LAYER ANIMATION
* @version: 1.1.5 (23.10.2015)
* @requires jquery.themepunch.revolution.js
* @author ThemePunch
*********************************************/
! function() {
function a(a, e, t, i, n, o, r) {
var d = a.find(e);
d.css("borderWidth", o + "px"), d.css(t, 0 - o + "px"), d.css(i, "0px solid transparent"), d.css(n, r)
}
var e = jQuery.fn.revolution,
t = e.is_mobile();
jQuery.extend(!0, e, {
animcompleted: function(a, t) {
var i = a.data("videotype"),
n = a.data("autoplay"),
o = a.data("autoplayonlyfirsttime");
void 0 != i && "none" != i && (1 == n || "true" == n || "on" == n || "1sttime" == n || o ? (e.playVideo(a, t), (o || "1sttime" == n) && (a.data("autoplayonlyfirsttime", !1), a.data("autoplay", "off"))) : "no1sttime" == n && a.data("autoplay", "on"))
},
handleStaticLayers: function(a, e) {
var t = parseInt(a.data("startslide"), 0),
i = parseInt(a.data("endslide"), 0);
0 > t && (t = 0), 0 > i && (i = e.slideamount), 0 === t && i === e.slideamount - 1 && (i = e.slideamount + 1), a.data("startslide", t), a.data("endslide", i)
},
animateTheCaptions: function(a, t, i, n) {
var o = "carousel" === t.sliderType ? 0 : t.width / 2 - t.gridwidth[t.curWinRange] * t.bw / 2,
r = 0,
d = a.data("index");
t.layers = t.layers || new Object, t.layers[d] = t.layers[d] || a.find(".tp-caption"), t.layers["static"] = t.layers["static"] || t.c.find(".tp-static-layers").find(".tp-caption");
var s = new Array;
if (t.conh = t.c.height(), t.conw = t.c.width(), t.ulw = t.ul.width(), t.ulh = t.ul.height(), t.debugMode) {
a.addClass("indebugmode"), a.find(".helpgrid").remove(), t.c.find(".hglayerinfo").remove(), a.append('<div class="helpgrid" style="width:' + t.gridwidth[t.curWinRange] * t.bw + "px;height:" + t.gridheight[t.curWinRange] * t.bw + 'px;"></div>');
var l = a.find(".helpgrid");
l.append('<div class="hginfo">Zoom:' + Math.round(100 * t.bw) + "% Device Level:" + t.curWinRange + " Grid Preset:" + t.gridwidth[t.curWinRange] + "x" + t.gridheight[t.curWinRange] + "</div>"), t.c.append('<div class="hglayerinfo"></div>'), l.append('<div class="tlhg"></div>')
}
s && jQuery.each(s, function() {
var a = jQuery(this);
punchgs.TweenLite.set(a.find(".tp-videoposter"), {
autoAlpha: 1
}), punchgs.TweenLite.set(a.find("iframe"), {
autoAlpha: 0
})
}), t.layers[d] && jQuery.each(t.layers[d], function(a, e) {
s.push(e)
}), t.layers["static"] && jQuery.each(t.layers["static"], function(a, e) {
s.push(e)
}), s && jQuery.each(s, function(a) {
e.animateSingleCaption(jQuery(this), t, o, r, a, i)
});
var p = jQuery("body").find("#" + t.c.attr("id")).find(".tp-bannertimer");
p.data("opt", t), void 0 != n && setTimeout(function() {
n.resume()
}, 30)
},
animateSingleCaption: function(n, r, u, w, y, b, x) {
var T = b,
L = h(n, r, "in", !0),
W = n.data("_pw") || n.closest(".tp-parallax-wrap"),
C = n.data("_lw") || n.closest(".tp-loop-wrap"),
j = n.data("_mw") || n.closest(".tp-mask-wrap"),
R = n.data("responsive") || "on",
I = n.data("responsive_offset") || "on",
k = n.data("basealign") || "grid",
_ = "grid" === k ? r.width : r.ulw,
z = "grid" === k ? r.height : r.ulh,
Q = jQuery("body").hasClass("rtl");
if (n.data("_pw") || (n.data("_pw", W), n.data("_lw", C), n.data("_mw", j)), "fullscreen" == r.sliderLayout && (w = z / 2 - r.gridheight[r.curWinRange] * r.bh / 2), ("on" == r.autoHeight || void 0 != r.minHeight && r.minHeight > 0) && (w = r.conh / 2 - r.gridheight[r.curWinRange] * r.bh / 2), 0 > w && (w = 0), r.debugMode) {
n.closest("li").find(".helpgrid").css({
top: w + "px",
left: u + "px"
});
var S = r.c.find(".hglayerinfo");
n.on("hover, mouseenter", function() {
var a = "";
n.data() && jQuery.each(n.data(), function(e, t) {
"object" != typeof t && (a = a + '<span style="white-space:nowrap"><span style="color:#27ae60">' + e + ":</span>" + t + "</span> ")
}), S.html(a)
})
}
var M = p(n.data("visibility"), r)[r.forcedWinRange] || p(n.data("visibility"), r) || "on";
if ("off" == M || _ < r.hideCaptionAtLimit && "on" == n.data("captionhidden") || _ < r.hideAllCaptionAtLimit ? n.addClass("tp-hidden-caption") : n.removeClass("tp-hidden-caption"), n.data("layertype", "html"), 0 > u && (u = 0), void 0 != n.data("thumbimage") && void 0 == n.data("videoposter") && n.data("videoposter", n.data("thumbimage")), n.hasClass("tp-videolayer") && void 0 != n.data("videoposter") && ("on" == n.data("posterOnMobile") || "on" == n.data("posteronmobile")) && t) {
var O = p(n.data("videowidth"), r)[r.curWinRange] || p(n.data("videowidth"), r) || "auto",
H = p(n.data("videoheight"), r)[r.curWinRange] || p(n.data("videoheight"), r) || "auto";
O = parseFloat(F), H = parseFloat(A), n.append('<div class="tp-videoposter" style="position:absolute;top:0px;left:0px;width:100%;height:100%;background-image:url(' + n.data("videoposter") + '); background-size:cover;background-position:center center;"></div>'), n.css("100%" != O ? {
minWidth: O + "px",
minHeight: H + "px"
} : {
width: "100%",
height: "100%"
}), n.removeClass("tp-videolayer")
}
if (n.find("img").length > 0) {
var B = n.find("img");
n.data("layertype", "image"), 0 == B.width() && B.css({
width: "auto"
}), 0 == B.height() && B.css({
height: "auto"
}), void 0 == B.data("ww") && B.width() > 0 && B.data("ww", B.width()), void 0 == B.data("hh") && B.height() > 0 && B.data("hh", B.height());
var F = B.data("ww"),
A = B.data("hh"),
D = "slide" == k ? r.ulw : r.gridwidth[r.curWinRange],
P = "slide" == k ? r.ulh : r.gridheight[r.curWinRange],
F = p(B.data("ww"), r)[r.curWinRange] || p(B.data("ww"), r) || "auto",
A = p(B.data("hh"), r)[r.curWinRange] || p(B.data("hh"), r) || "auto",
X = "full" === F || "full-proportional" === F,
Y = "full" === A || "full-proportional" === A;
if ("full-proportional" === F) {
var V = B.data("owidth"),
N = B.data("oheight");
N / P > V / D ? (F = D, A = N * (D / V)) : (A = P, F = V * (P / N))
} else F = X ? D : parseFloat(F), A = Y ? P : parseFloat(A);
void 0 == F && (F = 0), void 0 == A && (A = 0), "off" !== R ? (B.width("grid" != k && X ? F : F * r.bw), B.height("grid" != k && Y ? A : A * r.bh)) : (B.width(F), B.height(A))
}
if ("slide" === k && (u = 0, w = 0), n.hasClass("tp-videolayer") || n.find("iframe").length > 0 || n.find("video").length > 0) {
if (n.data("layertype", "video"), e.manageVideoLayer(n, r, b, T), !b && !T) {
{
n.data("videotype")
}
e.resetVideo(n, r)
}
var Z = n.data("aspectratio");
void 0 != Z && Z.split(":").length > 1 && e.prepareCoveredVideo(Z, r, n);
var B = n.find("iframe") ? n.find("iframe") : B = n.find("video"),
$ = n.find("iframe") ? !1 : !0,
G = n.hasClass("coverscreenvideo");
B.css({
display: "block"
}), void 0 == n.data("videowidth") && (n.data("videowidth", B.width()), n.data("videoheight", B.height()));
var U, F = p(n.data("videowidth"), r)[r.curWinRange] || p(n.data("videowidth"), r) || "auto",
A = p(n.data("videoheight"), r)[r.curWinRange] || p(n.data("videoheight"), r) || "auto";
F = parseFloat(F), A = parseFloat(A), void 0 === n.data("cssobj") && (U = g(n, 0), n.data("cssobj", U));
var q = m(n.data("cssobj"), r);
if ("auto" == q.lineHeight && (q.lineHeight = q.fontSize + 4), n.hasClass("fullscreenvideo") || G) {
u = 0, w = 0, n.data("x", 0), n.data("y", 0);
var E = z;
"on" == r.autoHeight && (E = r.conh), n.css({
width: _,
height: E
})
} else punchgs.TweenLite.set(n, {
paddingTop: Math.round(q.paddingTop * r.bh) + "px",
paddingBottom: Math.round(q.paddingBottom * r.bh) + "px",
paddingLeft: Math.round(q.paddingLeft * r.bw) + "px",
paddingRight: Math.round(q.paddingRight * r.bw) + "px",
marginTop: q.marginTop * r.bh + "px",
marginBottom: q.marginBottom * r.bh + "px",
marginLeft: q.marginLeft * r.bw + "px",
marginRight: q.marginRight * r.bw + "px",
borderTopWidth: Math.round(q.borderTopWidth * r.bh) + "px",
borderBottomWidth: Math.round(q.borderBottomWidth * r.bh) + "px",
borderLeftWidth: Math.round(q.borderLeftWidth * r.bw) + "px",
borderRightWidth: Math.round(q.borderRightWidth * r.bw) + "px",
width: F * r.bw + "px",
height: A * r.bh + "px"
});
(0 == $ && !G || 1 != n.data("forcecover") && !n.hasClass("fullscreenvideo") && !G) && (B.width(F * r.bw), B.height(A * r.bh))
}
n.find(".tp-resizeme, .tp-resizeme *").each(function() {
v(jQuery(this), r, "rekursive", R)
}), n.hasClass("tp-resizeme") && n.find("*").each(function() {
v(jQuery(this), r, "rekursive", R)
}), v(n, r, 0, R);
var J = n.outerHeight(),
K = n.css("backgroundColor");
a(n, ".frontcorner", "left", "borderRight", "borderTopColor", J, K), a(n, ".frontcornertop", "left", "borderRight", "borderBottomColor", J, K), a(n, ".backcorner", "right", "borderLeft", "borderBottomColor", J, K), a(n, ".backcornertop", "right", "borderLeft", "borderTopColor", J, K), "on" == r.fullScreenAlignForce && (u = 0, w = 0);
var ae = n.data("arrobj");
if (void 0 === ae) {
var ae = new Object;
ae.voa = p(n.data("voffset"), r)[r.curWinRange] || p(n.data("voffset"), r)[0], ae.hoa = p(n.data("hoffset"), r)[r.curWinRange] || p(n.data("hoffset"), r)[0], ae.elx = p(n.data("x"), r)[r.curWinRange] || p(n.data("x"), r)[0], ae.ely = p(n.data("y"), r)[r.curWinRange] || p(n.data("y"), r)[0]
}
var ee = 0 == ae.voa.length ? 0 : ae.voa,
te = 0 == ae.hoa.length ? 0 : ae.hoa,
ie = 0 == ae.elx.length ? 0 : ae.elx,
ne = 0 == ae.ely.length ? 0 : ae.ely,
oe = n.outerWidth(!0),
re = n.outerHeight(!0);
0 == oe && 0 == re && (oe = r.ulw, re = r.ulh);
var de = "off" !== I ? parseInt(ee, 0) * r.bw : parseInt(ee, 0),
se = "off" !== I ? parseInt(te, 0) * r.bw : parseInt(te, 0),
le = "grid" === k ? r.gridwidth[r.curWinRange] * r.bw : _,
pe = "grid" === k ? r.gridheight[r.curWinRange] * r.bw : z;
"on" == r.fullScreenAlignForce && (le = r.ulw, pe = r.ulh), ie = "center" === ie || "middle" === ie ? le / 2 - oe / 2 + se : "left" === ie ? se : "right" === ie ? le - oe - se : "off" !== I ? ie * r.bw : ie, ne = "center" == ne || "middle" == ne ? pe / 2 - re / 2 + de : "top" == ne ? de : "bottom" == ne ? pe - re - de : "off" !== I ? ne * r.bw : ne, Q && (ie += oe);
var he = n.data("lasttriggerstate"),
ce = n.data("triggerstate"),
ge = n.data("start") || 100,
me = n.data("end"),
ue = x ? 0 : "bytrigger" === ge || "sliderenter" === ge ? 0 : parseFloat(ge) / 1e3,
ve = ie + u,
fe = ne + w,
we = n.css("z-Index");
x || ("reset" == he && "bytrigger" != ge ? (n.data("triggerstate", "on"), n.data("animdirection", "in"), ce = "on") : "reset" == he && "bytrigger" == ge && (n.data("triggerstate", "off"), n.data("animdirection", "out"), ce = "off")), punchgs.TweenLite.set(W, {
zIndex: we,
top: fe,
left: ve,
overwrite: "auto"
}), 0 == L && (T = !0), void 0 == n.data("timeline") || T || (2 != L && n.data("timeline").gotoAndPlay(0), T = !0), !b && n.data("timeline_out") && 2 != L && 0 != L && (n.data("timeline_out").kill(), n.data("outstarted", 0)), x && void 0 != n.data("timeline") && (n.removeData("$anims"), n.data("timeline").pause(0), n.data("timeline").kill(), void 0 != n.data("newhoveranim") && (n.data("newhoveranim").progress(0), n.data("newhoveranim").kill()), n.removeData("timeline"), punchgs.TweenLite.killTweensOf(n), n.unbind("hover"), n.removeClass("rs-hover-ready"), n.removeData("newhoveranim"));
var ye = n.data("timeline") ? n.data("timeline").time() : 0,
be = void 0 !== n.data("timeline") ? n.data("timeline").progress() : 0,
xe = n.data("timeline") || new punchgs.TimelineLite({
smoothChildTiming: !0
});
if (be = jQuery.isNumeric(be) ? be : 0, xe.pause(), 1 > be && 1 != n.data("outstarted") || 2 == L || x) {
var Te = n;
if (void 0 != n.data("mySplitText") && n.data("mySplitText").revert(), void 0 != n.data("splitin") && n.data("splitin").match(/chars|words|lines/g) || void 0 != n.data("splitout") && n.data("splitout").match(/chars|words|lines/g)) {
var Le = n.find("a").length > 0 ? n.find("a") : n;
n.data("mySplitText", new punchgs.SplitText(Le, {
type: "lines,words,chars",
charsClass: "tp-splitted",
wordsClass: "tp-splitted",
linesClass: "tp-splitted"
})), n.addClass("splitted")
}
void 0 !== n.data("mySplitText") && n.data("splitin") && n.data("splitin").match(/chars|words|lines/g) && (Te = n.data("mySplitText")[n.data("splitin")]);
var We = new Object,
Ce = void 0 != n.data("transform_in") ? n.data("transform_in").match(/\(R\)/gi) : !1;
if (!n.data("$anims") || x || Ce) {
var je = i(),
Re = i(),
Ie = o(),
ke = void 0 !== n.data("transform_hover") || void 0 !== n.data("style_hover");
Re = s(Re, n.data("transform_idle")), je = s(Re, n.data("transform_in"), 1 == r.sdir), ke && (Ie = s(Ie, n.data("transform_hover")), Ie = c(Ie, n.data("style_hover")), n.data("hover", Ie)), je.elemdelay = void 0 == n.data("elementdelay") ? 0 : n.data("elementdelay"), Re.anim.ease = je.anim.ease = je.anim.ease || punchgs.Power1.easeInOut, ke && !n.hasClass("rs-hover-ready") && (n.addClass("rs-hover-ready"), n.hover(function(a) {
var e = jQuery(a.currentTarget),
t = e.data("hover"),
i = e.data("timeline");
i && 1 == i.progress() && (void 0 === e.data("newhoveranim") || "none" === e.data("newhoveranim") ? e.data("newhoveranim", punchgs.TweenLite.to(e, t.speed, t.anim)) : (e.data("newhoveranim").progress(0), e.data("newhoveranim").play()))
}, function(a) {
var e = jQuery(a.currentTarget),
t = e.data("timeline");
t && 1 == t.progress() && void 0 != e.data("newhoveranim") && e.data("newhoveranim").reverse()
})), We = new Object, We.f = je, We.r = Re, n.data("$anims")
} else We = n.data("$anims");
var _e = l(n.data("mask_in")),
ze = new punchgs.TimelineLite;
if (We.f.anim.x = We.f.anim.x * r.bw || d(We.f.anim.x, r, oe, re, fe, ve, "horizontal"), We.f.anim.y = We.f.anim.y * r.bw || d(We.f.anim.y, r, oe, re, fe, ve, "vertical"), 2 != L || x) {
if (Te != n) {
var Qe = We.r.anim.ease;
xe.add(punchgs.TweenLite.set(n, We.r.anim)), We.r = i(), We.r.anim.ease = Qe
}
if (We.f.anim.visibility = "hidden", ze.eventCallback("onStart", function() {
punchgs.TweenLite.set(n, {
visibility: "visible"
}), n.data("iframes") && n.find("iframe").each(function() {
punchgs.TweenLite.set(jQuery(this), {
autoAlpha: 1
})
}), punchgs.TweenLite.set(W, {
visibility: "visible"
});
var a = {};
a.layer = n, a.eventtype = "enterstage", a.layertype = n.data("layertype"), a.layersettings = n.data(), r.c.trigger("revolution.layeraction", a)
}), ze.eventCallback("onComplete", function() {
var a = {};
a.layer = n, a.eventtype = "enteredstage", a.layertype = n.data("layertype"), a.layersettings = n.data(), r.c.trigger("revolution.layeraction", a), e.animcompleted(n, r)
}), "sliderenter" == ge && r.overcontainer && (ue = .6), xe.add(ze.staggerFromTo(Te, We.f.speed, We.f.anim, We.r.anim, We.f.elemdelay), ue), _e) {
var Se = new Object;
Se.ease = We.r.anim.ease, Se.overflow = _e.anim.overflow = "hidden", Se.x = Se.y = 0, _e.anim.x = _e.anim.x * r.bw || d(_e.anim.x, r, oe, re, fe, ve, "horizontal"), _e.anim.y = _e.anim.y * r.bw || d(_e.anim.y, r, oe, re, fe, ve, "vertical"), xe.add(punchgs.TweenLite.fromTo(j, We.f.speed, _e.anim, Se, je.elemdelay), ue)
} else xe.add(punchgs.TweenLite.set(j, {
overflow: "visible"
}, je.elemdelay), 0)
}
n.data("timeline", xe), L = h(n, r, "in"), 0 !== be && 2 != L || "bytrigger" === me || x || "sliderleave" == me || (void 0 == me || -1 != L && 2 != L || "bytriger" === me ? punchgs.TweenLite.delayedCall(999999, e.endMoveCaption, [n, j, W, r]) : punchgs.TweenLite.delayedCall(parseInt(n.data("end"), 0) / 1e3, e.endMoveCaption, [n, j, W, r])), xe = n.data("timeline"), "on" == n.data("loopanimation") && f(C, r.bw), ("sliderenter" != ge || "sliderenter" == ge && r.overcontainer) && (-1 == L || 1 == L || x || 0 == L && 1 > be && n.hasClass("rev-static-visbile")) && (1 > be && be > 0 || 0 == be && "bytrigger" != ge && "keep" != he || 0 == be && "bytrigger" != ge && "keep" == he && "on" == ce || "bytrigger" == ge && "keep" == he && "on" == ce) && xe.resume(ye)
}
"on" == n.data("loopanimation") && punchgs.TweenLite.set(C, {
minWidth: oe,
minHeight: re
}), 0 == n.data("slidelink") || 1 != n.data("slidelink") && !n.hasClass("slidelink") ? (punchgs.TweenLite.set(j, {
width: "auto",
height: "auto"
}), n.data("slidelink", 0)) : (punchgs.TweenLite.set(j, {
width: "100%",
height: "100%"
}), n.data("slidelink", 1))
},
endMoveCaption: function(a, e, t, o) {
if (e = e || a.data("_mw"), t = t || a.data("_pw"), a.data("outstarted", 1), a.data("timeline")) a.data("timeline").pause();
else if (void 0 === a.data("_pw")) return;
var r = new punchgs.TimelineLite,
p = new punchgs.TimelineLite,
h = new punchgs.TimelineLite,
c = s(i(), a.data("transform_in"), 1 == o.sdir),
g = a.data("transform_out") ? s(n(), a.data("transform_out"), 1 == o.sdir) : s(n(), a.data("transform_in"), 1 == o.sdir),
m = a.data("splitout") && a.data("splitout").match(/words|chars|lines/g) ? a.data("mySplitText")[a.data("splitout")] : a,
u = void 0 == a.data("endelementdelay") ? 0 : a.data("endelementdelay"),
v = a.innerWidth(),
f = a.innerHeight(),
w = t.position();
a.data("transform_out") && a.data("transform_out").match(/auto:auto/g) && (c.speed = g.speed, c.anim.ease = g.anim.ease, g = c);
var y = l(a.data("mask_out"));
g.anim.x = g.anim.x * o.bw || d(g.anim.x, o, v, f, w.top, w.left, "horizontal"), g.anim.y = g.anim.y * o.bw || d(g.anim.y, o, v, f, w.top, w.left, "vertical"), p.eventCallback("onStart", function() {
var e = {};
e.layer = a, e.eventtype = "leavestage", e.layertype = a.data("layertype"), e.layersettings = a.data(), o.c.trigger("revolution.layeraction", e)
}), p.eventCallback("onComplete", function() {
punchgs.TweenLite.set(a, {
visibility: "hidden"
}), punchgs.TweenLite.set(t, {
visibility: "hidden"
});
var e = {};
e.layer = a, e.eventtype = "leftstage", e.layertype = a.data("layertype"), e.layersettings = a.data(), o.c.trigger("revolution.layeraction", e)
}), r.add(p.staggerTo(m, g.speed, g.anim, u), 0), y ? (y.anim.ease = g.anim.ease, y.anim.overflow = "hidden", y.anim.x = y.anim.x * o.bw || d(y.anim.x, o, v, f, w.top, w.left, "horizontal"), y.anim.y = y.anim.y * o.bw || d(y.anim.y, o, v, f, w.top, w.left, "vertical"), r.add(h.to(e, g.speed, y.anim, u), 0)) : r.add(h.set(e, {
overflow: "visible",
overwrite: "auto"
}, u), 0), a.data("timeline_out", r)
},
removeTheCaptions: function(a, t) {
var i = a.data("index"),
n = new Array;
t.layers[i] && jQuery.each(t.layers[i], function(a, e) {
n.push(e)
}), t.layers["static"] && jQuery.each(t.layers["static"], function(a, e) {
n.push(e)
}), punchgs.TweenLite.killDelayedCallsTo(e.endMoveCaption), n && jQuery.each(n, function() {
var a = jQuery(this),
i = h(a, t, "out");
0 != i && (w(a), clearTimeout(a.data("videoplaywait")), e.stopVideo && e.stopVideo(a, t), e.endMoveCaption(a, null, null, t), t.playingvideos = [], t.lastplayedvideos = [])
})
}
});
var i = function() {
var a = new Object;
return a.anim = new Object, a.anim.x = 0, a.anim.y = 0, a.anim.z = 0, a.anim.rotationX = 0, a.anim.rotationY = 0, a.anim.rotationZ = 0, a.anim.scaleX = 1, a.anim.scaleY = 1, a.anim.skewX = 0, a.anim.skewY = 0, a.anim.opacity = 1, a.anim.transformOrigin = "50% 50%", a.anim.transformPerspective = 600, a.anim.rotation = 0, a.anim.ease = punchgs.Power3.easeOut, a.anim.force3D = "auto", a.speed = .3, a.anim.autoAlpha = 1, a.anim.visibility = "visible", a.anim.overwrite = "all", a
},
n = function() {
var a = new Object;
return a.anim = new Object, a.anim.x = 0, a.anim.y = 0, a.anim.z = 0, a
},
o = function() {
var a = new Object;
return a.anim = new Object, a.speed = .2, a
},
r = function(a, e) {
if (jQuery.isNumeric(parseFloat(a))) return parseFloat(a);
if (void 0 === a || "inherit" === a) return e;
if (a.split("{").length > 1) {
var t = a.split(","),
i = parseFloat(t[1].split("}")[0]);
t = parseFloat(t[0].split("{")[1]), a = Math.random() * (i - t) + t
}
return a
},
d = function(a, e, t, i, n, o, r) {
return !jQuery.isNumeric(a) && a.match(/%]/g) ? (a = a.split("[")[1].split("]")[0], "horizontal" == r ? a = (t + 2) * parseInt(a, 0) / 100 : "vertical" == r && (a = (i + 2) * parseInt(a, 0) / 100)) : (a = "layer_left" === a ? 0 - t : "layer_right" === a ? t : a, a = "layer_top" === a ? 0 - i : "layer_bottom" === a ? i : a, a = "left" === a || "stage_left" === a ? 0 - t - o : "right" === a || "stage_right" === a ? e.conw - o : "center" === a || "stage_center" === a ? e.conw / 2 - t / 2 - o : a, a = "top" === a || "stage_top" === a ? 0 - i - n : "bottom" === a || "stage_bottom" === a ? e.conh - n : "middle" === a || "stage_middle" === a ? e.conh / 2 - i / 2 - n : a), a
},
s = function(a, e, t) {
var i = new Object;
if (i = jQuery.extend(!0, {}, i, a), void 0 === e) return i;
var n = e.split(";");
return n && jQuery.each(n, function(a, e) {
var n = e.split(":"),
o = n[0],
d = n[1];
t && void 0 != d && d.length > 0 && d.match(/\(R\)/) && (d = d.replace("(R)", ""), d = "right" === d ? "left" : "left" === d ? "right" : "top" === d ? "bottom" : "bottom" === d ? "top" : d, "[" === d[0] && "-" === d[1] ? d = d.replace("[-", "[") : "[" === d[0] && "-" !== d[1] ? d = d.replace("[", "[-") : "-" === d[0] ? d = d.replace("-", "") : d[0].match(/[1-9]/) && (d = "-" + d)), void 0 != d && (d = d.replace(/\(R\)/, ""), ("rotationX" == o || "rX" == o) && (i.anim.rotationX = r(d, i.anim.rotationX) + "deg"), ("rotationY" == o || "rY" == o) && (i.anim.rotationY = r(d, i.anim.rotationY) + "deg"), ("rotationZ" == o || "rZ" == o) && (i.anim.rotation = r(d, i.anim.rotationZ) + "deg"), ("scaleX" == o || "sX" == o) && (i.anim.scaleX = r(d, i.anim.scaleX)), ("scaleY" == o || "sY" == o) && (i.anim.scaleY = r(d, i.anim.scaleY)), ("opacity" == o || "o" == o) && (i.anim.opacity = r(d, i.anim.opacity)), ("skewX" == o || "skX" == o) && (i.anim.skewX = r(d, i.anim.skewX)), ("skewY" == o || "skY" == o) && (i.anim.skewY = r(d, i.anim.skewY)), "x" == o && (i.anim.x = r(d, i.anim.x)), "y" == o && (i.anim.y = r(d, i.anim.y)), "z" == o && (i.anim.z = r(d, i.anim.z)), ("transformOrigin" == o || "tO" == o) && (i.anim.transformOrigin = d.toString()), ("transformPerspective" == o || "tP" == o) && (i.anim.transformPerspective = parseInt(d, 0)), ("speed" == o || "s" == o) && (i.speed = parseFloat(d) / 1e3), ("ease" == o || "e" == o) && (i.anim.ease = d))
}), i
},
l = function(a) {
if (void 0 === a) return !1;
var e = new Object;
e.anim = new Object;
var t = a.split(";");
return t && jQuery.each(t, function(a, t) {
t = t.split(":");
var i = t[0],
n = t[1];
"x" == i && (e.anim.x = n), "y" == i && (e.anim.y = n), "s" == i && (e.speed = parseFloat(n) / 1e3), ("e" == i || "ease" == i) && (e.anim.ease = n)
}), e
},
p = function(a, e) {
if (void 0 == a && (a = 0), !jQuery.isArray(a) && "string" === jQuery.type(a) && (a.split(",").length > 1 || a.split("[").length > 1)) {
a = a.replace("[", ""), a = a.replace("]", "");
var t = a.split(a.match(/'/g) ? "'," : ",");
a = new Array, t && jQuery.each(t, function(e, t) {
t = t.replace("'", ""), t = t.replace("'", ""), a.push(t)
})
} else {
var i = a;
jQuery.isArray(a) || (a = new Array, a.push(i))
}
var i = a[a.length - 1];
if (a.length < e.rle)
for (var n = 1; n <= e.curWinRange; n++) a.push(i);
return a
},
h = function(a, e, t, i) {
var n = -1;
if (a.hasClass("tp-static-layer")) {
var o = parseInt(a.data("startslide"), 0),
r = parseInt(a.data("endslide"), 0),
d = e.c.find(".processing-revslide").index(),
s = -1 != d ? d : e.c.find(".active-revslide").index();
s = -1 == s ? 0 : s, "in" === t ? a.hasClass("rev-static-visbile") ? n = r == s || o > s || s > r ? 2 : 0 : s >= o && r >= s || o == s || r == s ? (i || (a.addClass("rev-static-visbile"), a.removeClass("rev-static-hidden")), n = 1) : n = 0 : a.hasClass("rev-static-visbile") ? o > s || s > r ? (n = 2, i || (a.removeClass("rev-static-visbile"), a.addClass("rev-static-hidden"))) : n = 0 : n = 2
}
return n
},
c = function(a, e) {
if (void 0 === e) return a;
e = e.replace("c:", "color:"), e = e.replace("bg:", "background-color:"), e = e.replace("bw:", "border-width:"), e = e.replace("bc:", "border-color:"), e = e.replace("br:", "borderRadius:"), e = e.replace("bs:", "border-style:"), e = e.replace("td:", "text-decoration:");
var t = e.split(";");
return t && jQuery.each(t, function(e, t) {
var i = t.split(":");
i[0].length > 0 && (a.anim[i[0]] = i[1])
}), a
},
g = function(a, e) {
var t, i = new Object,
n = !1;
if ("rekursive" == e && (t = a.closest(".tp-caption"), t && a.css("fontSize") === t.css("fontSize") && (n = !0)), i.basealign = a.data("basealign") || "grid", i.fontSize = n ? void 0 === t.data("fontsize") ? parseInt(t.css("fontSize"), 0) || 0 : t.data("fontsize") : void 0 === a.data("fontsize") ? parseInt(a.css("fontSize"), 0) || 0 : a.data("fontsize"), i.fontWeight = n ? void 0 === t.data("fontweight") ? parseInt(t.css("fontWeight"), 0) || 0 : t.data("fontweight") : void 0 === a.data("fontweight") ? parseInt(a.css("fontWeight"), 0) || 0 : a.data("fontweight"), i.whiteSpace = n ? void 0 === t.data("whitespace") ? t.css("whitespace") || "normal" : t.data("whitespace") : void 0 === a.data("whitespace") ? a.css("whitespace") || "normal" : a.data("whitespace"), i.lineHeight = n ? void 0 === t.data("lineheight") ? parseInt(t.css("lineHeight"), 0) || 0 : t.data("lineheight") : void 0 === a.data("lineheight") ? parseInt(a.css("lineHeight"), 0) || 0 : a.data("lineheight"), i.letterSpacing = n ? void 0 === t.data("letterspacing") ? parseFloat(t.css("letterSpacing"), 0) || 0 : t.data("letterspacing") : void 0 === a.data("letterspacing") ? parseFloat(a.css("letterSpacing")) || 0 : a.data("letterspacing"), i.paddingTop = void 0 === a.data("paddingtop") ? parseInt(a.css("paddingTop"), 0) || 0 : a.data("paddingtop"), i.paddingBottom = void 0 === a.data("paddingbottom") ? parseInt(a.css("paddingBottom"), 0) || 0 : a.data("paddingbottom"), i.paddingLeft = void 0 === a.data("paddingleft") ? parseInt(a.css("paddingLeft"), 0) || 0 : a.data("paddingleft"), i.paddingRight = void 0 === a.data("paddingright") ? parseInt(a.css("paddingRight"), 0) || 0 : a.data("paddingright"), i.marginTop = void 0 === a.data("margintop") ? parseInt(a.css("marginTop"), 0) || 0 : a.data("margintop"), i.marginBottom = void 0 === a.data("marginbottom") ? parseInt(a.css("marginBottom"), 0) || 0 : a.data("marginbottom"), i.marginLeft = void 0 === a.data("marginleft") ? parseInt(a.css("marginLeft"), 0) || 0 : a.data("marginleft"), i.marginRight = void 0 === a.data("marginright") ? parseInt(a.css("marginRight"), 0) || 0 : a.data("marginright"), i.borderTopWidth = void 0 === a.data("bordertopwidth") ? parseInt(a.css("borderTopWidth"), 0) || 0 : a.data("bordertopwidth"), i.borderBottomWidth = void 0 === a.data("borderbottomwidth") ? parseInt(a.css("borderBottomWidth"), 0) || 0 : a.data("borderbottomwidth"), i.borderLeftWidth = void 0 === a.data("borderleftwidth") ? parseInt(a.css("borderLeftWidth"), 0) || 0 : a.data("borderleftwidth"), i.borderRightWidth = void 0 === a.data("borderrightwidth") ? parseInt(a.css("borderRightWidth"), 0) || 0 : a.data("borderrightwidth"), "rekursive" != e) {
if (i.color = void 0 === a.data("color") ? "nopredefinedcolor" : a.data("color"), i.whiteSpace = n ? void 0 === t.data("whitespace") ? t.css("whiteSpace") || "nowrap" : t.data("whitespace") : void 0 === a.data("whitespace") ? a.css("whiteSpace") || "nowrap" : a.data("whitespace"), i.minWidth = void 0 === a.data("width") ? parseInt(a.css("minWidth"), 0) || 0 : a.data("width"), i.minHeight = void 0 === a.data("height") ? parseInt(a.css("minHeight"), 0) || 0 : a.data("height"), void 0 != a.data("videowidth") && void 0 != a.data("videoheight")) {
var o = a.data("videowidth"),
r = a.data("videoheight");
o = "100%" === o ? "none" : o, r = "100%" === r ? "none" : r, a.data("width", o), a.data("height", r)
}
i.maxWidth = void 0 === a.data("width") ? parseInt(a.css("maxWidth"), 0) || "none" : a.data("width"), i.maxHeight = void 0 === a.data("height") ? parseInt(a.css("maxHeight"), 0) || "none" : a.data("height"), i.wan = void 0 === a.data("wan") ? parseInt(a.css("-webkit-transition"), 0) || "none" : a.data("wan"), i.moan = void 0 === a.data("moan") ? parseInt(a.css("-moz-animation-transition"), 0) || "none" : a.data("moan"), i.man = void 0 === a.data("man") ? parseInt(a.css("-ms-animation-transition"), 0) || "none" : a.data("man"), i.ani = void 0 === a.data("ani") ? parseInt(a.css("transition"), 0) || "none" : a.data("ani")
}
return i.styleProps = a.css(["background-color", "border-top-color", "border-bottom-color", "border-right-color", "border-left-color", "border-top-style", "border-bottom-style", "border-left-style", "border-right-style", "border-left-width", "border-right-width", "border-bottom-width", "border-top-width", "color", "text-decoration", "font-style", "border-radius"]), i
},
m = function(a, e) {
var t = new Object;
return a && jQuery.each(a, function(i, n) {
t[i] = p(n, e)[e.curWinRange] || a[i]
}), t
},
u = function(a, e, t, i) {
return a = jQuery.isNumeric(a) ? a * e + "px" : a, a = "full" === a ? i : "auto" === a || "none" === a ? t : a
},
v = function(a, e, t, i) {
var n;
void 0 === a.data("cssobj") ? (n = g(a, t), a.data("cssobj", n)) : n = a.data("cssobj");
var o = m(n, e),
r = e.bw,
d = e.bh;
if ("off" === i && (r = 1, d = 1), "auto" == o.lineHeight && (o.lineHeight = o.fontSize + 4), !a.hasClass("tp-splitted")) {
a.css("-webkit-transition", "none"), a.css("-moz-transition", "none"), a.css("-ms-transition", "none"), a.css("transition", "none");
var s = void 0 !== a.data("transform_hover") || void 0 !== a.data("style_hover");
if (s && punchgs.TweenLite.set(a, o.styleProps), punchgs.TweenLite.set(a, {
fontSize: Math.round(o.fontSize * r) + "px",
fontWeight: o.fontWeight,
letterSpacing: Math.floor(o.letterSpacing * r) + "px",
paddingTop: Math.round(o.paddingTop * d) + "px",
paddingBottom: Math.round(o.paddingBottom * d) + "px",
paddingLeft: Math.round(o.paddingLeft * r) + "px",
paddingRight: Math.round(o.paddingRight * r) + "px",
marginTop: o.marginTop * d + "px",
marginBottom: o.marginBottom * d + "px",
marginLeft: o.marginLeft * r + "px",
marginRight: o.marginRight * r + "px",
borderTopWidth: Math.round(o.borderTopWidth * d) + "px",
borderBottomWidth: Math.round(o.borderBottomWidth * d) + "px",
borderLeftWidth: Math.round(o.borderLeftWidth * r) + "px",
borderRightWidth: Math.round(o.borderRightWidth * r) + "px",
lineHeight: Math.round(o.lineHeight * d) + "px",
overwrite: "auto"
}), "rekursive" != t) {
var l = "slide" == o.basealign ? e.ulw : e.gridwidth[e.curWinRange],
p = "slide" == o.basealign ? e.ulh : e.gridheight[e.curWinRange],
h = u(o.maxWidth, r, "none", l),
c = u(o.maxHeight, d, "none", p),
v = u(o.minWidth, r, "0px", l),
f = u(o.minHeight, d, "0px", p);
punchgs.TweenLite.set(a, {
maxWidth: h,
maxHeight: c,
minWidth: v,
minHeight: f,
whiteSpace: o.whiteSpace,
overwrite: "auto"
}), "nopredefinedcolor" != o.color && punchgs.TweenLite.set(a, {
color: o.color,
overwrite: "auto"
})
}
setTimeout(function() {
a.css("-webkit-transition", a.data("wan")), a.css("-moz-transition", a.data("moan")), a.css("-ms-transition", a.data("man")), a.css("transition", a.data("ani"))
}, 30)
}
},
f = function(a, e) {
if (a.hasClass("rs-pendulum") && void 0 == a.data("loop-timeline")) {
a.data("loop-timeline", new punchgs.TimelineLite);
var t = void 0 == a.data("startdeg") ? -20 : a.data("startdeg"),
i = void 0 == a.data("enddeg") ? 20 : a.data("enddeg"),
n = void 0 == a.data("speed") ? 2 : a.data("speed"),
o = void 0 == a.data("origin") ? "50% 50%" : a.data("origin"),
r = void 0 == a.data("easing") ? punchgs.Power2.easeInOut : a.data("ease");
t *= e, i *= e, a.data("loop-timeline").append(new punchgs.TweenLite.fromTo(a, n, {
force3D: "auto",
rotation: t,
transformOrigin: o
}, {
rotation: i,
ease: r
})), a.data("loop-timeline").append(new punchgs.TweenLite.fromTo(a, n, {
force3D: "auto",
rotation: i,
transformOrigin: o
}, {
rotation: t,
ease: r,
onComplete: function() {
a.data("loop-timeline").restart()
}
}))
}
if (a.hasClass("rs-rotate") && void 0 == a.data("loop-timeline")) {
a.data("loop-timeline", new punchgs.TimelineLite);
var t = void 0 == a.data("startdeg") ? 0 : a.data("startdeg"),
i = void 0 == a.data("enddeg") ? 360 : a.data("enddeg");
n = void 0 == a.data("speed") ? 2 : a.data("speed"), o = void 0 == a.data("origin") ? "50% 50%" : a.data("origin"), r = void 0 == a.data("easing") ? punchgs.Power2.easeInOut : a.data("easing"), t *= e, i *= e, a.data("loop-timeline").append(new punchgs.TweenLite.fromTo(a, n, {
force3D: "auto",
rotation: t,
transformOrigin: o
}, {
rotation: i,
ease: r,
onComplete: function() {
a.data("loop-timeline").restart()
}
}))
}
if (a.hasClass("rs-slideloop") && void 0 == a.data("loop-timeline")) {
a.data("loop-timeline", new punchgs.TimelineLite);
var d = void 0 == a.data("xs") ? 0 : a.data("xs"),
s = void 0 == a.data("ys") ? 0 : a.data("ys"),
l = void 0 == a.data("xe") ? 0 : a.data("xe"),
p = void 0 == a.data("ye") ? 0 : a.data("ye"),
n = void 0 == a.data("speed") ? 2 : a.data("speed"),
r = void 0 == a.data("easing") ? punchgs.Power2.easeInOut : a.data("easing");
d *= e, s *= e, l *= e, p *= e, a.data("loop-timeline").append(new punchgs.TweenLite.fromTo(a, n, {
force3D: "auto",
x: d,
y: s
}, {
x: l,
y: p,
ease: r
})), a.data("loop-timeline").append(new punchgs.TweenLite.fromTo(a, n, {
force3D: "auto",
x: l,
y: p
}, {
x: d,
y: s,
onComplete: function() {
a.data("loop-timeline").restart()
}
}))
}
if (a.hasClass("rs-pulse") && void 0 == a.data("loop-timeline")) {
a.data("loop-timeline", new punchgs.TimelineLite);
var h = void 0 == a.data("zoomstart") ? 0 : a.data("zoomstart"),
c = void 0 == a.data("zoomend") ? 0 : a.data("zoomend"),
n = void 0 == a.data("speed") ? 2 : a.data("speed"),
r = void 0 == a.data("easing") ? punchgs.Power2.easeInOut : a.data("easing");
a.data("loop-timeline").append(new punchgs.TweenLite.fromTo(a, n, {
force3D: "auto",
scale: h
}, {
scale: c,
ease: r
})), a.data("loop-timeline").append(new punchgs.TweenLite.fromTo(a, n, {
force3D: "auto",
scale: c
}, {
scale: h,
onComplete: function() {
a.data("loop-timeline").restart()
}
}))
}
if (a.hasClass("rs-wave") && void 0 == a.data("loop-timeline")) {
a.data("loop-timeline", new punchgs.TimelineLite);
var g = void 0 == a.data("angle") ? 10 : parseInt(a.data("angle"), 0),
m = void 0 == a.data("radius") ? 10 : parseInt(a.data("radius"), 0),
n = void 0 == a.data("speed") ? -20 : a.data("speed"),
o = void 0 == a.data("origin") ? "50% 50%" : a.data("origin"),
u = o.split(" "),
v = new Object;
u.length >= 1 ? (v.x = u[0], v.y = u[1]) : (v.x = "50%", v.y = "50%"), g *= e, m *= e;
var f = 0 - a.height() / 2 + m * (-1 + parseInt(v.y, 0) / 100),
w = a.width() * (-.5 + parseInt(v.x, 0) / 100),
y = {
a: 0,
ang: g,
element: a,
unit: m,
xoffset: w,
yoffset: f
};
a.data("loop-timeline").append(new punchgs.TweenLite.fromTo(y, n, {
a: 360
}, {
a: 0,
force3D: "auto",
ease: punchgs.Linear.easeNone,
onUpdate: function() {
var a = y.a * (Math.PI / 180);
punchgs.TweenLite.to(y.element, .1, {
force3D: "auto",
x: y.xoffset + Math.cos(a) * y.unit,
y: y.yoffset + y.unit * (1 - Math.sin(a))
})
},
onComplete: function() {
a.data("loop-timeline").restart()
}
}))
}
},
w = function(a) {
a.find(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function() {
var a = jQuery(this);
void 0 != a.data("loop-timeline") && (a.data("loop-timeline").pause(), a.data("loop-timeline", null))
})
}
}(jQuery);
#3 JavaScript::Eval (size: 28365) - SHA256: 5d6b15cb51f2e3286d62a93607e03f07712778d13592e22be22621d1b43d45f5
/**
* 2016 Revolution Slider
*
* @author SmatDataSoft <support@smartdatasoft.com>
* @copyright 2016 SmatDataSoft
* @license private
* @version 5.1.3
* International Registered Trademark & Property of SmatDataSoft
*/
/************************************************
* REVOLUTION 5.0 EXTENSION - SLIDE ANIMATIONS
* @version: 1.1.0 (10.11.2015)
* @requires jquery.themepunch.revolution.js
* @author ThemePunch
************************************************/
! function() {
var t = jQuery.fn.revolution;
jQuery.extend(!0, t, {
animateSlide: function(t, e, o, a, n, r, s, l, d) {
return i(t, e, o, a, n, r, s, l, d)
}
});
var e = function(e, o, a, i) {
var n = e,
r = n.find(".defaultimg"),
s = n.data("zoomstart"),
l = n.data("rotationstart");
void 0 != r.data("currotate") && (l = r.data("currotate")), void 0 != r.data("curscale") && "box" == i ? s = 100 * r.data("curscale") : void 0 != r.data("curscale") && (s = r.data("curscale")), t.slotSize(r, o);
var d = r.attr("src"),
h = r.css("backgroundColor"),
f = o.width,
c = o.height,
p = r.data("fxof"),
u = 0;
"on" == o.autoHeight && (c = o.c.height()), void 0 == p && (p = 0);
var g = 0,
w = r.data("bgfit"),
v = r.data("bgrepeat"),
m = r.data("bgposition");
switch (void 0 == w && (w = "cover"), void 0 == v && (v = "no-repeat"), void 0 == m && (m = "center center"), i) {
case "box":
for (var x = 0, y = 0, T = 0; T < o.slots; T++) {
y = 0;
for (var z = 0; z < o.slots; z++) n.append('<div class="slot" style="position:absolute;top:' + (u + y) + "px;left:" + (p + x) + "px;width:" + o.slotw + "px;height:" + o.sloth + 'px;overflow:hidden;"><div class="slotslide" data-x="' + x + '" data-y="' + y + '" style="position:absolute;top:0px;left:0px;width:' + o.slotw + "px;height:" + o.sloth + 'px;overflow:hidden;"><div style="position:absolute;top:' + (0 - y) + "px;left:" + (0 - x) + "px;width:" + f + "px;height:" + c + "px;background-color:" + h + ";background-image:url(" + d + ");background-repeat:" + v + ";background-size:" + w + ";background-position:" + m + ';"></div></div></div>'), y += o.sloth, void 0 != s && void 0 != l && punchgs.TweenLite.set(n.find(".slot").last(), {
rotationZ: l
});
x += o.slotw
}
break;
case "vertical":
case "horizontal":
if ("horizontal" == i) {
if (!a) var g = 0 - o.slotw;
for (var z = 0; z < o.slots; z++) n.append('<div class="slot" style="position:absolute;top:' + (0 + u) + "px;left:" + (p + z * o.slotw) + "px;overflow:hidden;width:" + (o.slotw + .6) + "px;height:" + c + 'px"><div class="slotslide" style="position:absolute;top:0px;left:' + g + "px;width:" + (o.slotw + .6) + "px;height:" + c + 'px;overflow:hidden;"><div style="background-color:' + h + ";position:absolute;top:0px;left:" + (0 - z * o.slotw) + "px;width:" + f + "px;height:" + c + "px;background-image:url(" + d + ");background-repeat:" + v + ";background-size:" + w + ";background-position:" + m + ';"></div></div></div>'), void 0 != s && void 0 != l && punchgs.TweenLite.set(n.find(".slot").last(), {
rotationZ: l
})
} else {
if (!a) var g = 0 - o.sloth;
for (var z = 0; z < o.slots + 2; z++) n.append('<div class="slot" style="position:absolute;top:' + (u + z * o.sloth) + "px;left:" + p + "px;overflow:hidden;width:" + f + "px;height:" + o.sloth + 'px"><div class="slotslide" style="position:absolute;top:' + g + "px;left:0px;width:" + f + "px;height:" + o.sloth + 'px;overflow:hidden;"><div style="background-color:' + h + ";position:absolute;top:" + (0 - z * o.sloth) + "px;left:0px;width:" + f + "px;height:" + c + "px;background-image:url(" + d + ");background-repeat:" + v + ";background-size:" + w + ";background-position:" + m + ';"></div></div></div>'), void 0 != s && void 0 != l && punchgs.TweenLite.set(n.find(".slot").last(), {
rotationZ: l
})
}
}
},
o = function(t, e, o, a, i) {
function n() {
jQuery.each(y, function(t, e) {
(e[0] == o || e[8] == o) && (w = e[1], v = e[2], m = x), x += 1
})
}
var r = punchgs.Power1.easeIn,
s = punchgs.Power1.easeOut,
l = punchgs.Power1.easeInOut,
d = punchgs.Power2.easeIn,
h = punchgs.Power2.easeOut,
f = punchgs.Power2.easeInOut,
c = (punchgs.Power3.easeIn, punchgs.Power3.easeOut),
p = punchgs.Power3.easeInOut,
u = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45],
g = [16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27],
w = 0,
v = 1,
m = 0,
x = 0,
y = (new Array, [
["boxslide", 0, 1, 10, 0, "box", !1, null, 0, s, s, 500, 6],
["boxfade", 1, 0, 10, 0, "box", !1, null, 1, l, l, 700, 5],
["slotslide-horizontal", 2, 0, 0, 200, "horizontal", !0, !1, 2, f, f, 700, 3],
["slotslide-vertical", 3, 0, 0, 200, "vertical", !0, !1, 3, f, f, 700, 3],
["curtain-1", 4, 3, 0, 0, "horizontal", !0, !0, 4, s, s, 300, 5],
["curtain-2", 5, 3, 0, 0, "horizontal", !0, !0, 5, s, s, 300, 5],
["curtain-3", 6, 3, 25, 0, "horizontal", !0, !0, 6, s, s, 300, 5],
["slotzoom-horizontal", 7, 0, 0, 400, "horizontal", !0, !0, 7, s, s, 300, 7],
["slotzoom-vertical", 8, 0, 0, 0, "vertical", !0, !0, 8, h, h, 500, 8],
["slotfade-horizontal", 9, 0, 0, 500, "horizontal", !0, null, 9, h, h, 500, 25],
["slotfade-vertical", 10, 0, 0, 500, "vertical", !0, null, 10, h, h, 500, 25],
["fade", 11, 0, 1, 300, "horizontal", !0, null, 11, f, f, 1e3, 1],
["crossfade", 11, 1, 1, 300, "horizontal", !0, null, 11, f, f, 1e3, 1],
["fadethroughdark", 11, 2, 1, 300, "horizontal", !0, null, 11, f, f, 1e3, 1],
["fadethroughlight", 11, 3, 1, 300, "horizontal", !0, null, 11, f, f, 1e3, 1],
["fadethroughtransparent", 11, 4, 1, 300, "horizontal", !0, null, 11, f, f, 1e3, 1],
["slideleft", 12, 0, 1, 0, "horizontal", !0, !0, 12, p, p, 1e3, 1],
["slideup", 13, 0, 1, 0, "horizontal", !0, !0, 13, p, p, 1e3, 1],
["slidedown", 14, 0, 1, 0, "horizontal", !0, !0, 14, p, p, 1e3, 1],
["slideright", 15, 0, 1, 0, "horizontal", !0, !0, 15, p, p, 1e3, 1],
["slideoverleft", 12, 7, 1, 0, "horizontal", !0, !0, 12, p, p, 1e3, 1],
["slideoverup", 13, 7, 1, 0, "horizontal", !0, !0, 13, p, p, 1e3, 1],
["slideoverdown", 14, 7, 1, 0, "horizontal", !0, !0, 14, p, p, 1e3, 1],
["slideoverright", 15, 7, 1, 0, "horizontal", !0, !0, 15, p, p, 1e3, 1],
["slideremoveleft", 12, 8, 1, 0, "horizontal", !0, !0, 12, p, p, 1e3, 1],
["slideremoveup", 13, 8, 1, 0, "horizontal", !0, !0, 13, p, p, 1e3, 1],
["slideremovedown", 14, 8, 1, 0, "horizontal", !0, !0, 14, p, p, 1e3, 1],
["slideremoveright", 15, 8, 1, 0, "horizontal", !0, !0, 15, p, p, 1e3, 1],
["papercut", 16, 0, 0, 600, "", null, null, 16, p, p, 1e3, 2],
["3dcurtain-horizontal", 17, 0, 20, 100, "vertical", !1, !0, 17, l, l, 500, 7],
["3dcurtain-vertical", 18, 0, 10, 100, "horizontal", !1, !0, 18, l, l, 500, 5],
["cubic", 19, 0, 20, 600, "horizontal", !1, !0, 19, p, p, 500, 1],
["cube", 19, 0, 20, 600, "horizontal", !1, !0, 20, p, p, 500, 1],
["flyin", 20, 0, 4, 600, "vertical", !1, !0, 21, c, p, 500, 1],
["turnoff", 21, 0, 1, 500, "horizontal", !1, !0, 22, p, p, 500, 1],
["incube", 22, 0, 20, 200, "horizontal", !1, !0, 23, f, f, 500, 1],
["cubic-horizontal", 23, 0, 20, 500, "vertical", !1, !0, 24, h, h, 500, 1],
["cube-horizontal", 23, 0, 20, 500, "vertical", !1, !0, 25, h, h, 500, 1],
["incube-horizontal", 24, 0, 20, 500, "vertical", !1, !0, 26, f, f, 500, 1],
["turnoff-vertical", 25, 0, 1, 200, "horizontal", !1, !0, 27, f, f, 500, 1],
["fadefromright", 12, 1, 1, 0, "horizontal", !0, !0, 28, f, f, 1e3, 1],
["fadefromleft", 15, 1, 1, 0, "horizontal", !0, !0, 29, f, f, 1e3, 1],
["fadefromtop", 14, 1, 1, 0, "horizontal", !0, !0, 30, f, f, 1e3, 1],
["fadefrombottom", 13, 1, 1, 0, "horizontal", !0, !0, 31, f, f, 1e3, 1],
["fadetoleftfadefromright", 12, 2, 1, 0, "horizontal", !0, !0, 32, f, f, 1e3, 1],
["fadetorightfadefromleft", 15, 2, 1, 0, "horizontal", !0, !0, 33, f, f, 1e3, 1],
["fadetobottomfadefromtop", 14, 2, 1, 0, "horizontal", !0, !0, 34, f, f, 1e3, 1],
["fadetotopfadefrombottom", 13, 2, 1, 0, "horizontal", !0, !0, 35, f, f, 1e3, 1],
["parallaxtoright", 12, 3, 1, 0, "horizontal", !0, !0, 36, f, d, 1500, 1],
["parallaxtoleft", 15, 3, 1, 0, "horizontal", !0, !0, 37, f, d, 1500, 1],
["parallaxtotop", 14, 3, 1, 0, "horizontal", !0, !0, 38, f, r, 1500, 1],
["parallaxtobottom", 13, 3, 1, 0, "horizontal", !0, !0, 39, f, r, 1500, 1],
["scaledownfromright", 12, 4, 1, 0, "horizontal", !0, !0, 40, f, d, 1e3, 1],
["scaledownfromleft", 15, 4, 1, 0, "horizontal", !0, !0, 41, f, d, 1e3, 1],
["scaledownfromtop", 14, 4, 1, 0, "horizontal", !0, !0, 42, f, d, 1e3, 1],
["scaledownfrombottom", 13, 4, 1, 0, "horizontal", !0, !0, 43, f, d, 1e3, 1],
["zoomout", 13, 5, 1, 0, "horizontal", !0, !0, 44, f, d, 1e3, 1],
["zoomin", 13, 6, 1, 0, "horizontal", !0, !0, 45, f, d, 1e3, 1],
["slidingoverlayup", 27, 0, 1, 0, "horizontal", !0, !0, 47, l, s, 2e3, 1],
["slidingoverlaydown", 28, 0, 1, 0, "horizontal", !0, !0, 48, l, s, 2e3, 1],
["slidingoverlayright", 30, 0, 1, 0, "horizontal", !0, !0, 49, l, s, 2e3, 1],
["slidingoverlayleft", 29, 0, 1, 0, "horizontal", !0, !0, 50, l, s, 2e3, 1],
["parallaxcirclesup", 31, 0, 1, 0, "horizontal", !0, !0, 51, f, r, 1500, 1],
["parallaxcirclesdown", 32, 0, 1, 0, "horizontal", !0, !0, 52, f, r, 1500, 1],
["parallaxcirclesright", 33, 0, 1, 0, "horizontal", !0, !0, 53, f, r, 1500, 1],
["parallaxcirclesleft", 34, 0, 1, 0, "horizontal", !0, !0, 54, f, r, 1500, 1],
["notransition", 26, 0, 1, 0, "horizontal", !0, null, 46, f, d, 1e3, 1],
["parallaxright", 12, 3, 1, 0, "horizontal", !0, !0, 55, f, d, 1500, 1],
["parallaxleft", 15, 3, 1, 0, "horizontal", !0, !0, 56, f, d, 1500, 1],
["parallaxup", 14, 3, 1, 0, "horizontal", !0, !0, 57, f, r, 1500, 1],
["parallaxdown", 13, 3, 1, 0, "horizontal", !0, !0, 58, f, r, 1500, 1]
]);
e.duringslidechange = !0, e.testanims = !1, 1 == e.testanims && (e.nexttesttransform = void 0 === e.nexttesttransform ? 34 : e.nexttesttransform + 1, e.nexttesttransform = e.nexttesttransform > 70 ? 0 : e.nexttesttransform, o = y[e.nexttesttransform][0], console.log(o + " " + e.nexttesttransform + " " + y[e.nexttesttransform][1] + " " + y[e.nexttesttransform][2])), jQuery.each(["parallaxcircles", "slidingoverlay", "slide", "slideover", "slideremove", "parallax"], function(t, e) {
o == e + "horizontal" && (o = 1 != i ? e + "left" : e + "right"), o == e + "vertical" && (o = 1 != i ? e + "up" : e + "down")
}), "random" == o && (o = Math.round(Math.random() * y.length - 1), o > y.length - 1 && (o = y.length - 1)), "random-static" == o && (o = Math.round(Math.random() * u.length - 1), o > u.length - 1 && (o = u.length - 1), o = u[o]), "random-premium" == o && (o = Math.round(Math.random() * g.length - 1), o > g.length - 1 && (o = g.length - 1), o = g[o]);
var T = [12, 13, 14, 15, 16, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45];
if (1 == e.isJoomla && void 0 != window.MooTools && -1 != T.indexOf(o)) {
var z = Math.round(Math.random() * (g.length - 2)) + 1;
z > g.length - 1 && (z = g.length - 1), 0 == z && (z = 1), o = g[z]
}
n(), w > 30 && (w = 30), 0 > w && (w = 0);
var L = new Object;
return L.nexttrans = w, L.STA = y[m], L.specials = v, L
},
a = function(t, e) {
return void 0 == e || jQuery.isNumeric(t) ? t : void 0 == t ? t : t.split(",")[e]
},
i = function(t, i, n, r, s, l, d, h, f) {
function c(t, e, o, a, i) {
var n = t.find(".slot"),
r = 6,
s = [2, 1.2, .9, .7, .55, .42],
l = t.width(),
h = t.height();
n.wrap('<div class="slot-circle-wrapper" style="overflow:hidden;position:absolute;border:1px solid #fff"></div>');
for (var c = 0; r > c; c++) n.parent().clone(!1).appendTo(d);
t.find(".slot-circle-wrapper").each(function(t) {
if (r > t) {
var a = jQuery(this),
n = a.find(".slot"),
d = l > h ? s[t] * l : s[t] * h,
c = d,
p = 0 + (c / 2 - l / 2),
u = 0 + (d / 2 - h / 2),
g = 0 != t ? "50%" : "0",
w = 31 == o ? h / 2 - d / 2 : 32 == o ? h / 2 - d / 2 : h / 2 - d / 2,
v = 33 == o ? l / 2 - c / 2 : 34 == o ? l - c : l / 2 - c / 2,
m = {
scale: 1,
transformOrigo: "50% 50%",
width: c + "px",
height: d + "px",
top: w + "px",
left: v + "px",
borderRadius: g
},
x = {
scale: 1,
top: h / 2 - d / 2,
left: l / 2 - c / 2,
ease: i
},
y = 31 == o ? u : 32 == o ? u : u,
T = 33 == o ? p : 34 == o ? p + l / 2 : p,
z = {
width: l,
height: h,
autoAlpha: 1,
top: y + "px",
position: "absolute",
left: T + "px"
},
L = {
top: u + "px",
left: p + "px",
ease: i
},
b = e,
D = 0;
f.add(punchgs.TweenLite.fromTo(a, b, m, x), D), f.add(punchgs.TweenLite.fromTo(n, b, z, L), D), f.add(punchgs.TweenLite.fromTo(a, .001, {
autoAlpha: 0
}, {
autoAlpha: 1
}), 0)
}
})
}
var p = l.index(),
u = s.index(),
g = p > u ? 1 : 0;
"arrow" == r.sc_indicator && (g = r.sc_indicator_dir);
var w = o(n, r, i, d, g),
v = w.STA,
m = w.specials,
t = w.nexttrans;
"on" == d.data("kenburns") && (t = 11);
var x = s.data("nexttransid") || 0,
y = a(s.data("masterspeed"), x);
y = "default" === y ? v[11] : "random" === y ? Math.round(1e3 * Math.random() + 300) : void 0 != y ? parseInt(y, 0) : v[11], y = y > r.delay ? r.delay : y, y += v[4], r.slots = a(s.data("slotamount"), x), r.slots = void 0 == r.slots || "default" == r.slots ? v[12] : "random" == r.slots ? Math.round(12 * Math.random() + 4) : r.slots, r.slots = r.slots < 1 ? "boxslide" == i ? Math.round(6 * Math.random() + 3) : "flyin" == i ? Math.round(4 * Math.random() + 1) : r.slots : r.slots, r.slots = (4 == t || 5 == t || 6 == t) && r.slots < 3 ? 3 : r.slots, r.slots = 0 != v[3] ? Math.min(r.slots, v[3]) : r.slots, r.slots = 9 == t ? r.width / 20 : 10 == t ? r.height / 20 : r.slots, r.rotate = a(s.data("rotate"), x), r.rotate = void 0 == r.rotate || "default" == r.rotate ? 0 : 999 == r.rotate || "random" == r.rotate ? Math.round(360 * Math.random()) : r.rotate, r.rotate = !jQuery.support.transition || r.ie || r.ie9 ? 0 : r.rotate, 11 != t && (null != v[7] && e(h, r, v[7], v[5]), null != v[6] && e(d, r, v[6], v[5])), f.add(punchgs.TweenLite.set(d.find(".defaultvid"), {
y: 0,
x: 0,
top: 0,
left: 0,
scale: 1
}), 0), f.add(punchgs.TweenLite.set(h.find(".defaultvid"), {
y: 0,
x: 0,
top: 0,
left: 0,
scale: 1
}), 0), f.add(punchgs.TweenLite.set(d.find(".defaultvid"), {
y: "+0%",
x: "+0%"
}), 0), f.add(punchgs.TweenLite.set(h.find(".defaultvid"), {
y: "+0%",
x: "+0%"
}), 0), f.add(punchgs.TweenLite.set(d, {
autoAlpha: 1,
y: "+0%",
x: "+0%"
}), 0), f.add(punchgs.TweenLite.set(h, {
autoAlpha: 1,
y: "+0%",
x: "+0%"
}), 0), f.add(punchgs.TweenLite.set(d.parent(), {
backgroundColor: "transparent"
}), 0), f.add(punchgs.TweenLite.set(h.parent(), {
backgroundColor: "transparent"
}), 0);
var T = a(s.data("easein"), x),
z = a(s.data("easeout"), x);
if (T = "default" === T ? v[9] || punchgs.Power2.easeInOut : T || v[9] || punchgs.Power2.easeInOut, z = "default" === z ? v[10] || punchgs.Power2.easeInOut : z || v[10] || punchgs.Power2.easeInOut, 0 == t) {
var L = Math.ceil(r.height / r.sloth),
b = 0;
d.find(".slotslide").each(function(t) {
var e = jQuery(this);
b += 1, b == L && (b = 0), f.add(punchgs.TweenLite.from(e, y / 600, {
opacity: 0,
top: 0 - r.sloth,
left: 0 - r.slotw,
rotation: r.rotate,
force3D: "auto",
ease: T
}), (15 * t + 30 * b) / 1500)
})
}
if (1 == t) {
var D, A = 0;
d.find(".slotslide").each(function(t) {
var e = jQuery(this),
o = Math.random() * y + 300,
a = 500 * Math.random() + 200;
o + a > D && (D = a + a, A = t), f.add(punchgs.TweenLite.from(e, o / 1e3, {
autoAlpha: 0,
force3D: "auto",
rotation: r.rotate,
ease: T
}), a / 1e3)
})
}
if (2 == t) {
var j = new punchgs.TimelineLite;
h.find(".slotslide").each(function() {
var t = jQuery(this);
j.add(punchgs.TweenLite.to(t, y / 1e3, {
left: r.slotw,
ease: T,
force3D: "auto",
rotation: 0 - r.rotate
}), 0), f.add(j, 0)
}), d.find(".slotslide").each(function() {
var t = jQuery(this);
j.add(punchgs.TweenLite.from(t, y / 1e3, {
left: 0 - r.slotw,
ease: T,
force3D: "auto",
rotation: r.rotate
}), 0), f.add(j, 0)
})
}
if (3 == t) {
var j = new punchgs.TimelineLite;
h.find(".slotslide").each(function() {
var t = jQuery(this);
j.add(punchgs.TweenLite.to(t, y / 1e3, {
top: r.sloth,
ease: T,
rotation: r.rotate,
force3D: "auto",
transformPerspective: 600
}), 0), f.add(j, 0)
}), d.find(".slotslide").each(function() {
var t = jQuery(this);
j.add(punchgs.TweenLite.from(t, y / 1e3, {
top: 0 - r.sloth,
rotation: r.rotate,
ease: z,
force3D: "auto",
transformPerspective: 600
}), 0), f.add(j, 0)
})
}
if (4 == t || 5 == t) {
setTimeout(function() {
h.find(".defaultimg").css({
opacity: 0
})
}, 100);
var k = y / 1e3,
j = new punchgs.TimelineLite;
h.find(".slotslide").each(function(e) {
var o = jQuery(this),
a = e * k / r.slots;
5 == t && (a = (r.slots - e - 1) * k / r.slots / 1.5), j.add(punchgs.TweenLite.to(o, 3 * k, {
transformPerspective: 600,
force3D: "auto",
top: 0 + r.height,
opacity: .5,
rotation: r.rotate,
ease: T,
delay: a
}), 0), f.add(j, 0)
}), d.find(".slotslide").each(function(e) {
var o = jQuery(this),
a = e * k / r.slots;
5 == t && (a = (r.slots - e - 1) * k / r.slots / 1.5), j.add(punchgs.TweenLite.from(o, 3 * k, {
top: 0 - r.height,
opacity: .5,
rotation: r.rotate,
force3D: "auto",
ease: punchgs.eo,
delay: a
}), 0), f.add(j, 0)
})
}
if (6 == t) {
r.slots < 2 && (r.slots = 2), r.slots % 2 && (r.slots = r.slots + 1);
var j = new punchgs.TimelineLite;
setTimeout(function() {
h.find(".defaultimg").css({
opacity: 0
})
}, 100), h.find(".slotslide").each(function(t) {
var e = jQuery(this);
if (t + 1 < r.slots / 2) var o = 90 * (t + 2);
else var o = 90 * (2 + r.slots - t);
j.add(punchgs.TweenLite.to(e, (y + o) / 1e3, {
top: 0 + r.height,
opacity: 1,
force3D: "auto",
rotation: r.rotate,
ease: T
}), 0), f.add(j, 0)
}), d.find(".slotslide").each(function(t) {
var e = jQuery(this);
if (t + 1 < r.slots / 2) var o = 90 * (t + 2);
else var o = 90 * (2 + r.slots - t);
j.add(punchgs.TweenLite.from(e, (y + o) / 1e3, {
top: 0 - r.height,
opacity: 1,
force3D: "auto",
rotation: r.rotate,
ease: z
}), 0), f.add(j, 0)
})
}
if (7 == t) {
y = 2 * y, y > r.delay && (y = r.delay);
var j = new punchgs.TimelineLite;
setTimeout(function() {
h.find(".defaultimg").css({
opacity: 0
})
}, 100), h.find(".slotslide").each(function() {
var t = jQuery(this).find("div");
j.add(punchgs.TweenLite.to(t, y / 1e3, {
left: 0 - r.slotw / 2 + "px",
top: 0 - r.height / 2 + "px",
width: 2 * r.slotw + "px",
height: 2 * r.height + "px",
opacity: 0,
rotation: r.rotate,
force3D: "auto",
ease: T
}), 0), f.add(j, 0)
}), d.find(".slotslide").each(function(t) {
var e = jQuery(this).find("div");
j.add(punchgs.TweenLite.fromTo(e, y / 1e3, {
left: 0,
top: 0,
opacity: 0,
transformPerspective: 600
}, {
left: 0 - t * r.slotw + "px",
ease: z,
force3D: "auto",
top: "0px",
width: r.width,
height: r.height,
opacity: 1,
rotation: 0,
delay: .1
}), 0), f.add(j, 0)
})
}
if (8 == t) {
y = 3 * y, y > r.delay && (y = r.delay);
var j = new punchgs.TimelineLite;
h.find(".slotslide").each(function() {
var t = jQuery(this).find("div");
j.add(punchgs.TweenLite.to(t, y / 1e3, {
left: 0 - r.width / 2 + "px",
top: 0 - r.sloth / 2 + "px",
width: 2 * r.width + "px",
height: 2 * r.sloth + "px",
force3D: "auto",
ease: T,
opacity: 0,
rotation: r.rotate
}), 0), f.add(j, 0)
}), d.find(".slotslide").each(function(t) {
var e = jQuery(this).find("div");
j.add(punchgs.TweenLite.fromTo(e, y / 1e3, {
left: 0,
top: 0,
opacity: 0,
force3D: "auto"
}, {
left: "0px",
top: 0 - t * r.sloth + "px",
width: d.find(".defaultimg").data("neww") + "px",
height: d.find(".defaultimg").data("newh") + "px",
opacity: 1,
ease: z,
rotation: 0
}), 0), f.add(j, 0)
})
}
if (9 == t || 10 == t) {
var M = 0;
d.find(".slotslide").each(function(t) {
var e = jQuery(this);
M++, f.add(punchgs.TweenLite.fromTo(e, y / 1e3, {
autoAlpha: 0,
force3D: "auto",
transformPerspective: 600
}, {
autoAlpha: 1,
ease: T,
delay: 5 * t / 1e3
}), 0)
})
}
if (27 == t || 28 == t || 29 == t || 30 == t) {
var P = d.find(".slot"),
Q = 27 == t || 28 == t ? 1 : 2,
O = 27 == t || 29 == t ? "-100%" : "+100%",
I = 27 == t || 29 == t ? "+100%" : "-100%",
X = 27 == t || 29 == t ? "-80%" : "80%",
Y = 27 == t || 29 == t ? "80%" : "-80%",
S = 27 == t || 29 == t ? "10%" : "-10%",
_ = {
overwrite: "all"
},
C = {
autoAlpha: 0,
zIndex: 1,
force3D: "auto",
ease: T
},
V = {
position: "inherit",
autoAlpha: 0,
overwrite: "all",
zIndex: 1
},
Z = {
autoAlpha: 1,
force3D: "auto",
ease: z
},
H = {
overwrite: "all",
zIndex: 2
},
J = {
autoAlpha: 1,
force3D: "auto",
overwrite: "all",
ease: T
},
N = {
overwrite: "all",
zIndex: 2
},
R = {
autoAlpha: 1,
force3D: "auto",
ease: T
},
q = 1 == Q ? "y" : "x";
_[q] = "0px", C[q] = O, V[q] = S, Z[q] = "0%", H[q] = I, J[q] = O, N[q] = X, R[q] = Y, P.append('<span style="background-color:rgba(0,0,0,0.6);width:100%;height:100%;position:absolute;top:0px;left:0px;display:block;z-index:2"></span>'), f.add(punchgs.TweenLite.fromTo(h, y / 1e3, _, C), 0), f.add(punchgs.TweenLite.fromTo(d.find(".defaultimg"), y / 2e3, V, Z), y / 2e3), f.add(punchgs.TweenLite.fromTo(P, y / 1e3, H, J), 0), f.add(punchgs.TweenLite.fromTo(P.find(".slotslide div"), y / 1e3, N, R), 0)
}
if (31 == t || 32 == t || 33 == t || 34 == t) {
y = 6e3, T = punchgs.Power3.easeInOut;
var B = y / 1e3;
mas = B - B / 5, _nt = t, fy = 31 == _nt ? "+100%" : 32 == _nt ? "-100%" : "0%", fx = 33 == _nt ? "+100%" : 34 == _nt ? "-100%" : "0%", ty = 31 == _nt ? "-100%" : 32 == _nt ? "+100%" : "0%", tx = 33 == _nt ? "-100%" : 34 == _nt ? "+100%" : "0%", f.add(punchgs.TweenLite.fromTo(h, B - .2 * B, {
y: 0,
x: 0
}, {
y: ty,
x: tx,
ease: z
}), .2 * B), f.add(punchgs.TweenLite.fromTo(d, B, {
y: fy,
x: fx
}, {
y: "0%",
x: "0%",
ease: T
}), 0), d.find(".slot").remove(), d.find(".defaultimg").clone().appendTo(d).addClass("slot"), c(d, B, _nt, "in", T)
}
if (11 == t) {
m > 4 && (m = 0);
var M = 0,
E = 2 == m ? "#000000" : 3 == m ? "#ffffff" : "transparent";
switch (m) {
case 0:
f.add(punchgs.TweenLite.fromTo(d, y / 1e3, {
autoAlpha: 0
}, {
autoAlpha: 1,
force3D: "auto",
ease: T
}), 0);
break;
case 1:
f.add(punchgs.TweenLite.fromTo(d, y / 1e3, {
autoAlpha: 0
}, {
autoAlpha: 1,
force3D: "auto",
ease: T
}), 0), f.add(punchgs.TweenLite.fromTo(h, y / 1e3, {
autoAlpha: 1
}, {
autoAlpha: 0,
force3D: "auto",
ease: T
}), 0);
break;
case 2:
case 3:
case 4:
f.add(punchgs.TweenLite.set(h.parent(), {
backgroundColor: E,
force3D: "auto"
}), 0), f.add(punchgs.TweenLite.set(d.parent(), {
backgroundColor: "transparent",
force3D: "auto"
}), 0), f.add(punchgs.TweenLite.to(h, y / 2e3, {
autoAlpha: 0,
force3D: "auto",
ease: T
}), 0), f.add(punchgs.TweenLite.fromTo(d, y / 2e3, {
autoAlpha: 0
}, {
autoAlpha: 1,
force3D: "auto",
ease: T
}), y / 2e3)
}
f.add(punchgs.TweenLite.set(d.find(".defaultimg"), {
autoAlpha: 1
}), 0), f.add(punchgs.TweenLite.set(h.find("defaultimg"), {
autoAlpha: 1
}), 0)
}
if (26 == t) {
var M = 0;
y = 0, f.add(punchgs.TweenLite.fromTo(d, y / 1e3, {
autoAlpha: 0
}, {
autoAlpha: 1,
force3D: "auto",
ease: T
}), 0), f.add(punchgs.TweenLite.to(h, y / 1e3, {
autoAlpha: 0,
force3D: "auto",
ease: T
}), 0), f.add(punchgs.TweenLite.set(d.find(".defaultimg"), {
autoAlpha: 1
}), 0), f.add(punchgs.TweenLite.set(h.find("defaultimg"), {
autoAlpha: 1
}), 0)
}
if (12 == t || 13 == t || 14 == t || 15 == t) {
y = y, y > r.delay && (y = r.delay), setTimeout(function() {
punchgs.TweenLite.set(h.find(".defaultimg"), {
autoAlpha: 0
})
}, 100);
var F = r.width,
G = r.height,
K = d.find(".slotslide, .defaultvid"),
U = 0,
W = 0,
$ = 1,
te = 1,
ee = 1,
oe = y / 1e3,
ae = oe;
("fullwidth" == r.sliderLayout || "fullscreen" == r.sliderLayout) && (F = K.width(), G = K.height()), 12 == t ? U = F : 15 == t ? U = 0 - F : 13 == t ? W = G : 14 == t && (W = 0 - G), 1 == m && ($ = 0), 2 == m && ($ = 0), 3 == m && (oe = y / 1300), (4 == m || 5 == m) && (te = .6), 6 == m && (te = 1.4), (5 == m || 6 == m) && (ee = 1.4, $ = 0, F = 0, G = 0, U = 0, W = 0), 6 == m && (ee = .6);
7 == m && (F = 0, G = 0);
var ie = d.find(".slotslide"),
ne = h.find(".slotslide, .defaultvid");
if (f.add(punchgs.TweenLite.set(l, {
zIndex: 15
}), 0), f.add(punchgs.TweenLite.set(s, {
zIndex: 20
}), 0), 8 == m ? (f.add(punchgs.TweenLite.set(l, {
zIndex: 20
}), 0), f.add(punchgs.TweenLite.set(s, {
zIndex: 15
}), 0), f.add(punchgs.TweenLite.set(ie, {
left: 0,
top: 0,
scale: 1,
opacity: 1,
rotation: 0,
ease: T,
force3D: "auto"
}), 0)) : f.add(punchgs.TweenLite.from(ie, oe, {
left: U,
top: W,
scale: ee,
opacity: $,
rotation: r.rotate,
ease: T,
force3D: "auto"
}), 0), (4 == m || 5 == m) && (F = 0, G = 0), 1 != m) switch (t) {
case 12:
f.add(punchgs.TweenLite.to(ne, ae, {
left: 0 - F + "px",
force3D: "auto",
scale: te,
opacity: $,
rotation: r.rotate,
ease: z
}), 0);
break;
case 15:
f.add(punchgs.TweenLite.to(ne, ae, {
left: F + "px",
force3D: "auto",
scale: te,
opacity: $,
rotation: r.rotate,
ease: z
}), 0);
break;
case 13:
f.add(punchgs.TweenLite.to(ne, ae, {
top: 0 - G + "px",
force3D: "auto",
scale: te,
opacity: $,
rotation: r.rotate,
ease: z
}), 0);
break;
case 14:
f.add(punchgs.TweenLite.to(ne, ae, {
top: G + "px",
force3D: "auto",
scale: te,
opacity: $,
rotation: r.rotate,
ease: z
}), 0)
}
}
if (16 == t) {
var j = new punchgs.TimelineLite;
f.add(punchgs.TweenLite.set(l, {
position: "absolute",
"z-index": 20
}), 0), f.add(punchgs.TweenLite.set(s, {
position: "absolute",
"z-index": 15
}), 0), l.wrapInner('<div class="tp-half-one" style="position:relative; width:100%;height:100%"></div>'), l.find(".tp-half-one").clone(!0).appendTo(l).addClass("tp-half-two"), l.find(".tp-half-two").removeClass("tp-half-one");
var F = r.width,
G = r.height;
"on" == r.autoHeight && (G = n.height()), l.find(".tp-half-one .defaultimg").wrap('<div class="tp-papercut" style="width:' + F + "px;height:" + G + 'px;"></div>'), l.find(".tp-half-two .defaultimg").wrap('<div class="tp-papercut" style="width:' + F + "px;height:" + G + 'px;"></div>'), l.find(".tp-half-two .defaultimg").css({
position: "absolute",
top: "-50%"
}), l.find(".tp-half-two .tp-caption").wrapAll('<div style="position:absolute;top:-50%;left:0px;"></div>'), f.add(punchgs.TweenLite.set(l.find(".tp-half-two"), {
width: F,
height: G,
overflow: "hidden",
zIndex: 15,
position: "absolute",
top: G / 2,
left: "0px",
transformPerspective: 600,
transformOrigin: "center bottom"
}), 0), f.add(punchgs.TweenLite.set(l.find(".tp-half-one"), {
width: F,
height: G / 2,
overflow: "visible",
zIndex: 10,
position: "absolute",
top: "0px",
left: "0px",
transformPerspective: 600,
transformOrigin: "center top"
}), 0);
var re = (l.find(".defaultimg"), Math.round(20 * Math.random() - 10)),
se = Math.round(20 * Math.random() - 10),
le = Math.round(20 * Math.random() - 10),
de = .4 * Math.random() - .2,
he = .4 * Math.random() - .2,
fe = 1 * Math.random() + 1,
ce = 1 * Math.random() + 1,
pe = .3 * Math.random() + .3;
f.add(punchgs.TweenLite.set(l.find(".tp-half-one"), {
overflow: "hidden"
}), 0), f.add(punchgs.TweenLite.fromTo(l.find(".tp-half-one"), y / 800, {
width: F,
height: G / 2,
position: "absolute",
top: "0px",
left: "0px",
force3D: "auto",
transformOrigin: "center top"
}, {
scale: fe,
rotation: re,
y: 0 - G - G / 4,
autoAlpha: 0,
ease: T
}), 0), f.add(punchgs.TweenLite.fromTo(l.find(".tp-half-two"), y / 800, {
width: F,
height: G,
overflow: "hidden",
position: "absolute",
top: G / 2,
left: "0px",
force3D: "auto",
transformOrigin: "center bottom"
}, {
scale: ce,
rotation: se,
y: G + G / 4,
ease: T,
autoAlpha: 0,
onComplete: function() {
punchgs.TweenLite.set(l, {
position: "absolute",
"z-index": 15
}), punchgs.TweenLite.set(s, {
position: "absolute",
"z-index": 20
}), l.find(".tp-half-one").length > 0 && (l.find(".tp-half-one .defaultimg").unwrap(), l.find(".tp-half-one .slotholder").unwrap()), l.find(".tp-half-two").remove()
}
}), 0), j.add(punchgs.TweenLite.set(d.find(".defaultimg"), {
autoAlpha: 1
}), 0), null != l.html() && f.add(punchgs.TweenLite.fromTo(s, (y - 200) / 1e3, {
scale: pe,
x: r.width / 4 * de,
y: G / 4 * he,
rotation: le,
force3D: "auto",
transformOrigin: "center center",
ease: z
}, {
autoAlpha: 1,
scale: 1,
x: 0,
y: 0,
rotation: 0
}), 0), f.add(j, 0)
}
if (17 == t && d.find(".slotslide").each(function(t) {
var e = jQuery(this);
f.add(punchgs.TweenLite.fromTo(e, y / 800, {
opacity: 0,
rotationY: 0,
scale: .9,
rotationX: -110,
force3D: "auto",
transformPerspective: 600,
transformOrigin: "center center"
}, {
opacity: 1,
top: 0,
left: 0,
scale: 1,
rotation: 0,
rotationX: 0,
force3D: "auto",
rotationY: 0,
ease: T,
delay: .06 * t
}), 0)
}), 18 == t && d.find(".slotslide").each(function(t) {
var e = jQuery(this);
f.add(punchgs.TweenLite.fromTo(e, y / 500, {
autoAlpha: 0,
rotationY: 110,
scale: .9,
rotationX: 10,
force3D: "auto",
transformPerspective: 600,
transformOrigin: "center center"
}, {
autoAlpha: 1,
top: 0,
left: 0,
scale: 1,
rotation: 0,
rotationX: 0,
force3D: "auto",
rotationY: 0,
ease: T,
delay: .06 * t
}), 0)
}), 19 == t || 22 == t) {
var j = new punchgs.TimelineLite;
f.add(punchgs.TweenLite.set(l, {
zIndex: 20
}), 0), f.add(punchgs.TweenLite.set(s, {
zIndex: 20
}), 0), setTimeout(function() {
h.find(".defaultimg").css({
opacity: 0
})
}, 100);
var ue = 90,
$ = 1,
ge = "center center ";
1 == g && (ue = -90), 19 == t ? (ge = ge + "-" + r.height / 2, $ = 0) : ge += r.height / 2, punchgs.TweenLite.set(n, {
transformStyle: "flat",
backfaceVisibility: "hidden",
transformPerspective: 600
}), d.find(".slotslide").each(function(t) {
var e = jQuery(this);
j.add(punchgs.TweenLite.fromTo(e, y / 1e3, {
transformStyle: "flat",
backfaceVisibility: "hidden",
left: 0,
rotationY: r.rotate,
z: 10,
top: 0,
scale: 1,
force3D: "auto",
transformPerspective: 600,
transformOrigin: ge,
rotationX: ue
}, {
left: 0,
rotationY: 0,
top: 0,
z: 0,
scale: 1,
force3D: "auto",
rotationX: 0,
delay: 50 * t / 1e3,
ease: T
}), 0), j.add(punchgs.TweenLite.to(e, .1, {
autoAlpha: 1,
delay: 50 * t / 1e3
}), 0), f.add(j)
}), h.find(".slotslide").each(function(t) {
var e = jQuery(this),
o = -90;
1 == g && (o = 90), j.add(punchgs.TweenLite.fromTo(e, y / 1e3, {
transformStyle: "flat",
backfaceVisibility: "hidden",
autoAlpha: 1,
rotationY: 0,
top: 0,
z: 0,
scale: 1,
force3D: "auto",
transformPerspective: 600,
transformOrigin: ge,
rotationX: 0
}, {
autoAlpha: 1,
rotationY: r.rotate,
top: 0,
z: 10,
scale: 1,
rotationX: o,
delay: 50 * t / 1e3,
force3D: "auto",
ease: z
}), 0), f.add(j)
}), f.add(punchgs.TweenLite.set(l, {
zIndex: 18
}), 0)
}
if (20 == t) {
if (setTimeout(function() {
h.find(".defaultimg").css({
opacity: 0
})
}, 100), 1 == g) var we = -r.width,
ue = 80,
ge = "20% 70% -" + r.height / 2;
else var we = r.width,
ue = -80,
ge = "80% 70% -" + r.height / 2;
d.find(".slotslide").each(function(t) {
var e = jQuery(this),
o = 50 * t / 1e3;
f.add(punchgs.TweenLite.fromTo(e, y / 1e3, {
left: we,
rotationX: 40,
z: -600,
opacity: $,
top: 0,
scale: 1,
force3D: "auto",
transformPerspective: 600,
transformOrigin: ge,
transformStyle: "flat",
rotationY: ue
}, {
left: 0,
rotationX: 0,
opacity: 1,
top: 0,
z: 0,
scale: 1,
rotationY: 0,
delay: o,
ease: T
}), 0)
}), h.find(".slotslide").each(function(t) {
var e = jQuery(this),
o = 50 * t / 1e3;
if (o = t > 0 ? o + y / 9e3 : 0, 1 != g) var a = -r.width / 2,
i = 30,
n = "20% 70% -" + r.height / 2;
else var a = r.width / 2,
i = -30,
n = "80% 70% -" + r.height / 2;
z = punchgs.Power2.easeInOut, f.add(punchgs.TweenLite.fromTo(e, y / 1e3, {
opacity: 1,
rotationX: 0,
top: 0,
z: 0,
scale: 1,
left: 0,
force3D: "auto",
transformPerspective: 600,
transformOrigin: n,
transformStyle: "flat",
rotationY: 0
}, {
opacity: 1,
rotationX: 20,
top: 0,
z: -600,
left: a,
force3D: "auto",
rotationY: i,
delay: o,
ease: z
}), 0)
})
}
if (21 == t || 25 == t) {
setTimeout(function() {
h.find(".defaultimg").css({
opacity: 0
})
}, 100);
var ue = 90,
we = -r.width,
ve = -ue;
if (1 == g)
if (25 == t) {
var ge = "center top 0";
ue = r.rotate
} else {
var ge = "left center 0";
ve = r.rotate
} else if (we = r.width, ue = -90, 25 == t) {
var ge = "center bottom 0";
ve = -ue, ue = r.rotate
} else {
var ge = "right center 0";
ve = r.rotate
}
d.find(".slotslide").each(function() {
var t = jQuery(this),
e = y / 1.5 / 3;
f.add(punchgs.TweenLite.fromTo(t, 2 * e / 1e3, {
left: 0,
transformStyle: "flat",
rotationX: ve,
z: 0,
autoAlpha: 0,
top: 0,
scale: 1,
force3D: "auto",
transformPerspective: 1200,
transformOrigin: ge,
rotationY: ue
}, {
left: 0,
rotationX: 0,
top: 0,
z: 0,
autoAlpha: 1,
scale: 1,
rotationY: 0,
force3D: "auto",
delay: e / 1e3,
ease: T
}), 0)
}), 1 != g ? (we = -r.width, ue = 90, 25 == t ? (ge = "center top 0", ve = -ue, ue = r.rotate) : (ge = "left center 0", ve = r.rotate)) : (we = r.width, ue = -90, 25 == t ? (ge = "center bottom 0", ve = -ue, ue = r.rotate) : (ge = "right center 0", ve = r.rotate)), h.find(".slotslide").each(function() {
var t = jQuery(this);
f.add(punchgs.TweenLite.fromTo(t, y / 1e3, {
left: 0,
transformStyle: "flat",
rotationX: 0,
z: 0,
autoAlpha: 1,
top: 0,
scale: 1,
force3D: "auto",
transformPerspective: 1200,
transformOrigin: ge,
rotationY: 0
}, {
left: 0,
rotationX: ve,
top: 0,
z: 0,
autoAlpha: 1,
force3D: "auto",
scale: 1,
rotationY: ue,
ease: z
}), 0)
})
}
if (23 == t || 24 == t) {
setTimeout(function() {
h.find(".defaultimg").css({
opacity: 0
})
}, 100);
var ue = -90,
$ = 1,
me = 0;
if (1 == g && (ue = 90), 23 == t) {
var ge = "center center -" + r.width / 2;
$ = 0
} else var ge = "center center " + r.width / 2;
punchgs.TweenLite.set(n, {
transformStyle: "preserve-3d",
backfaceVisibility: "hidden",
perspective: 2500
}), d.find(".slotslide").each(function(t) {
var e = jQuery(this);
f.add(punchgs.TweenLite.fromTo(e, y / 1e3, {
left: me,
rotationX: r.rotate,
force3D: "auto",
opacity: $,
top: 0,
scale: 1,
transformPerspective: 1200,
transformOrigin: ge,
rotationY: ue
}, {
left: 0,
rotationX: 0,
autoAlpha: 1,
top: 0,
z: 0,
scale: 1,
rotationY: 0,
delay: 50 * t / 500,
ease: T
}), 0)
}), ue = 90, 1 == g && (ue = -90), h.find(".slotslide").each(function(e) {
var o = jQuery(this);
f.add(punchgs.TweenLite.fromTo(o, y / 1e3, {
left: 0,
rotationX: 0,
top: 0,
z: 0,
scale: 1,
force3D: "auto",
transformStyle: "flat",
transformPerspective: 1200,
transformOrigin: ge,
rotationY: 0
}, {
left: me,
rotationX: r.rotate,
top: 0,
scale: 1,
rotationY: ue,
delay: 50 * e / 500,
ease: z
}), 0), 23 == t && f.add(punchgs.TweenLite.fromTo(o, y / 2e3, {
autoAlpha: 1
}, {
autoAlpha: 0,
delay: 50 * e / 500 + y / 3e3,
ease: z
}), 0)
})
}
return f
}
}(jQuery);
#4 JavaScript::Eval (size: 23195) - SHA256: 59aa3ae598b17aad234055c06a23899da5a901c89740c74d07226771dc9b0a3b
/**
* 2016 Revolution Slider
*
* @author SmatDataSoft <support@smartdatasoft.com>
* @copyright 2016 SmatDataSoft
* @license private
* @version 5.1.3
* International Registered Trademark & Property of SmatDataSoft
*/
/********************************************
* REVOLUTION 5.0 EXTENSION - NAVIGATION
* @version: 1.0.4 (10.11.2015)
* @requires jquery.themepunch.revolution.js
* @author ThemePunch
*********************************************/
! function() {
var t = jQuery.fn.revolution,
e = t.is_mobile();
jQuery.extend(!0, t, {
hideUnHideNav: function(t) {
var e = t.c.width(),
i = t.navigation.arrows,
a = t.navigation.bullets,
n = t.navigation.thumbnails,
r = t.navigation.tabs;
h(i) && y(t.c.find(".tparrows"), i.hide_under, e, i.hide_over), h(a) && y(t.c.find(".tp-bullets"), a.hide_under, e, a.hide_over), h(n) && y(t.c.parent().find(".tp-thumbs"), n.hide_under, e, n.hide_over), h(r) && y(t.c.parent().find(".tp-tabs"), r.hide_under, e, r.hide_over), x(t)
},
resizeThumbsTabs: function(t) {
if (t.navigation && t.navigation.tabs.enable || t.navigation && t.navigation.thumbnails.enable) {
var e = (jQuery(window).width() - 480) / 500,
i = new punchgs.TimelineLite,
n = t.navigation.tabs,
r = t.navigation.thumbnails;
i.pause(), e = e > 1 ? 1 : 0 > e ? 0 : e, h(n) && n.width > n.min_width && a(e, i, t.c, n, t.slideamount, "tab"), h(r) && r.width > r.min_width && a(e, i, t.c, r, t.slideamount, "thumb"), i.play(), x(t)
}
return !0
},
manageNavigation: function(e) {
var a = t.getHorizontalOffset(e.c.parent(), "left"),
n = t.getHorizontalOffset(e.c.parent(), "right");
h(e.navigation.bullets) && ("fullscreen" != e.sliderLayout && "fullwidth" != e.sliderLayout && (e.navigation.bullets.h_offset_old = void 0 === e.navigation.bullets.h_offset_old ? e.navigation.bullets.h_offset : e.navigation.bullets.h_offset_old, e.navigation.bullets.h_offset = "center" === e.navigation.bullets.h_align ? e.navigation.bullets.h_offset_old + a / 2 - n / 2 : e.navigation.bullets.h_offset_old + a - n), m(e.c.find(".tp-bullets"), e.navigation.bullets)), h(e.navigation.thumbnails) && m(e.c.parent().find(".tp-thumbs"), e.navigation.thumbnails), h(e.navigation.tabs) && m(e.c.parent().find(".tp-tabs"), e.navigation.tabs), h(e.navigation.arrows) && ("fullscreen" != e.sliderLayout && "fullwidth" != e.sliderLayout && (e.navigation.arrows.left.h_offset_old = void 0 === e.navigation.arrows.left.h_offset_old ? e.navigation.arrows.left.h_offset : e.navigation.arrows.left.h_offset_old, e.navigation.arrows.left.h_offset = "right" === e.navigation.arrows.left.h_align ? e.navigation.arrows.left.h_offset_old + n : e.navigation.arrows.left.h_offset_old + a, e.navigation.arrows.right.h_offset_old = void 0 === e.navigation.arrows.right.h_offset_old ? e.navigation.arrows.right.h_offset : e.navigation.arrows.right.h_offset_old, e.navigation.arrows.right.h_offset = "right" === e.navigation.arrows.right.h_align ? e.navigation.arrows.right.h_offset_old + n : e.navigation.arrows.right.h_offset_old + a), m(e.c.find(".tp-leftarrow.tparrows"), e.navigation.arrows.left), m(e.c.find(".tp-rightarrow.tparrows"), e.navigation.arrows.right)), h(e.navigation.thumbnails) && i(e.c.parent().find(".tp-thumbs"), e.navigation.thumbnails), h(e.navigation.tabs) && i(e.c.parent().find(".tp-tabs"), e.navigation.tabs)
},
createNavigation: function(t, a) {
var n = t.parent(),
o = a.navigation.arrows,
p = a.navigation.bullets,
g = a.navigation.thumbnails,
v = a.navigation.tabs,
m = h(o),
w = h(p),
x = h(g),
y = h(v);
r(t, a), s(t, a), m && f(t, o, a), a.li.each(function() {
var e = jQuery(this);
w && b(t, p, e, a), x && _(t, g, e, "tp-thumb", a), y && _(t, v, e, "tp-tab", a)
}), t.bind("revolution.slide.onafterswap revolution.nextslide.waiting", function() {
var e = 0 == t.find(".next-revslide").length ? t.find(".active-revslide").data("index") : t.find(".next-revslide").data("index");
t.find(".tp-bullet").each(function() {
var t = jQuery(this);
t.data("liref") === e ? t.addClass("selected") : t.removeClass("selected")
}), n.find(".tp-thumb, .tp-tab").each(function() {
var t = jQuery(this);
t.data("liref") === e ? (t.addClass("selected"), t.hasClass("tp-tab") ? i(n.find(".tp-tabs"), v) : i(n.find(".tp-thumbs"), g)) : t.removeClass("selected")
});
var r = 0,
s = !1;
a.thumbs && jQuery.each(a.thumbs, function(t, i) {
r = s === !1 ? t : r, s = i.id === e || t === e ? !0 : s
});
var d = r > 0 ? r - 1 : a.slideamount - 1,
l = r + 1 == a.slideamount ? 0 : r + 1;
if (o.enable === !0) {
var h = o.tmp;
jQuery.each(a.thumbs[d].params, function(t, e) {
h = h.replace(e.from, e.to)
}), o.left.j.html(h), h = o.tmp, jQuery.each(a.thumbs[l].params, function(t, e) {
h = h.replace(e.from, e.to)
}), o.right.j.html(h), punchgs.TweenLite.set(o.left.j.find(".tp-arr-imgholder"), {
backgroundImage: "url(" + a.thumbs[d].src + ")"
}), punchgs.TweenLite.set(o.right.j.find(".tp-arr-imgholder"), {
backgroundImage: "url(" + a.thumbs[l].src + ")"
})
}
}), l(o), l(p), l(g), l(v), n.on("mouseenter mousemove", function() {
n.hasClass("tp-mouseover") || (n.addClass("tp-mouseover"), punchgs.TweenLite.killDelayedCallsTo(c), m && o.hide_onleave && c(n.find(".tparrows"), o, "show"), w && p.hide_onleave && c(n.find(".tp-bullets"), p, "show"), x && g.hide_onleave && c(n.find(".tp-thumbs"), g, "show"), y && v.hide_onleave && c(n.find(".tp-tabs"), v, "show"), e && (n.removeClass("tp-mouseover"), u(t, a)))
}), n.on("mouseleave", function() {
n.removeClass("tp-mouseover"), u(t, a)
}), m && o.hide_onleave && c(n.find(".tparrows"), o, "hide", 0), w && p.hide_onleave && c(n.find(".tp-bullets"), p, "hide", 0), x && g.hide_onleave && c(n.find(".tp-thumbs"), g, "hide", 0), y && v.hide_onleave && c(n.find(".tp-tabs"), v, "hide", 0), x && d(n.find(".tp-thumbs"), a), y && d(n.find(".tp-tabs"), a), "carousel" === a.sliderType && d(t, a, !0), "on" == a.navigation.touch.touchenabled && d(t, a, "swipebased")
}
});
var i = function(t, e) {
var i = (t.hasClass("tp-thumbs") ? ".tp-thumbs" : ".tp-tabs", t.hasClass("tp-thumbs") ? ".tp-thumb-mask" : ".tp-tab-mask"),
a = t.hasClass("tp-thumbs") ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper",
n = t.hasClass("tp-thumbs") ? ".tp-thumb" : ".tp-tab",
r = t.find(i),
s = r.find(a),
o = e.direction,
d = "vertical" === o ? r.find(n).first().outerHeight(!0) + e.space : r.find(n).first().outerWidth(!0) + e.space,
l = "vertical" === o ? r.height() : r.width(),
h = parseInt(r.find(n + ".selected").data("liindex"), 0),
p = l / d,
u = "vertical" === o ? r.height() : r.width(),
c = 0 - h * d,
f = "vertical" === o ? s.height() : s.width(),
g = 0 - (f - u) > c ? 0 - (f - u) : g > 0 ? 0 : c,
v = s.data("offset");
p > 2 && (g = 0 >= c - (v + d) ? 0 - d > c - (v + d) ? v : g + d : g, g = d > c - d + v + l && c + (Math.round(p) - 2) * d < v ? c + (Math.round(p) - 2) * d : g), g = 0 - (f - u) > g ? 0 - (f - u) : g > 0 ? 0 : g, "vertical" !== o && r.width() >= s.width() && (g = 0), "vertical" === o && r.height() >= s.height() && (g = 0), t.hasClass("dragged") || ("vertical" === o ? s.data("tmmove", punchgs.TweenLite.to(s, .5, {
top: g + "px",
ease: punchgs.Power3.easeInOut
})) : s.data("tmmove", punchgs.TweenLite.to(s, .5, {
left: g + "px",
ease: punchgs.Power3.easeInOut
})), s.data("offset", g))
},
a = function(t, e, i, a, n, r) {
var s = i.parent().find(".tp-" + r + "s"),
o = s.find(".tp-" + r + "s-inner-wrapper"),
d = s.find(".tp-" + r + "-mask"),
l = a.width * t < a.min_width ? a.min_width : Math.round(a.width * t),
h = Math.round(l / a.width * a.height),
p = "vertical" === a.direction ? l : l * n + a.space * (n - 1),
u = "vertical" === a.direction ? h * n + a.space * (n - 1) : h,
c = "vertical" === a.direction ? {
width: l + "px"
} : {
height: h + "px"
};
e.add(punchgs.TweenLite.set(s, c)), e.add(punchgs.TweenLite.set(o, {
width: p + "px",
height: u + "px"
})), e.add(punchgs.TweenLite.set(d, {
width: p + "px",
height: u + "px"
}));
var f = o.find(".tp-" + r);
return f && jQuery.each(f, function(t, i) {
"vertical" === a.direction ? e.add(punchgs.TweenLite.set(i, {
top: t * (h + parseInt(void 0 === a.space ? 0 : a.space, 0)),
width: l + "px",
height: h + "px"
})) : "horizontal" === a.direction && e.add(punchgs.TweenLite.set(i, {
left: t * (l + parseInt(void 0 === a.space ? 0 : a.space, 0)),
width: l + "px",
height: h + "px"
}))
}), e
},
n = function(t) {
var e = 0,
i = 0,
a = 0,
n = 0,
r = 1,
s = 1,
o = 1;
return "detail" in t && (i = t.detail), "wheelDelta" in t && (i = -t.wheelDelta / 120), "wheelDeltaY" in t && (i = -t.wheelDeltaY / 120), "wheelDeltaX" in t && (e = -t.wheelDeltaX / 120), "axis" in t && t.axis === t.HORIZONTAL_AXIS && (e = i, i = 0), a = e * r, n = i * r, "deltaY" in t && (n = t.deltaY), "deltaX" in t && (a = t.deltaX), (a || n) && t.deltaMode && (1 == t.deltaMode ? (a *= s, n *= s) : (a *= o, n *= o)), a && !e && (e = 1 > a ? -1 : 1), n && !i && (i = 1 > n ? -1 : 1), n = navigator.userAgent.match(/mozilla/i) ? 10 * n : n, (n > 300 || -300 > n) && (n /= 10), {
spinX: e,
spinY: i,
pixelX: a,
pixelY: n
}
},
r = function(e, i) {
"on" === i.navigation.keyboardNavigation && jQuery(document).keydown(function(a) {
("horizontal" == i.navigation.keyboard_direction && 39 == a.keyCode || "vertical" == i.navigation.keyboard_direction && 40 == a.keyCode) && (i.sc_indicator = "arrow", i.sc_indicator_dir = 0, t.callingNewSlide(i, e, 1)), ("horizontal" == i.navigation.keyboard_direction && 37 == a.keyCode || "vertical" == i.navigation.keyboard_direction && 38 == a.keyCode) && (i.sc_indicator = "arrow", i.sc_indicator_dir = 1, t.callingNewSlide(i, e, -1))
})
},
s = function(e, i) {
if ("on" === i.navigation.mouseScrollNavigation) {
var a = navigator.userAgent.match(/mozilla/i) ? -29 : -49,
r = navigator.userAgent.match(/mozilla/i) ? 29 : 49;
e.on("mousewheel DOMMouseScroll", function(s) {
var o = n(s.originalEvent),
d = e.find(".tp-revslider-slidesli.active-revslide").index(),
l = e.find(".tp-revslider-slidesli.processing-revslide").index(),
h = -1 != d && 0 == d || -1 != l && 0 == l ? !0 : !1,
p = -1 != d && d == i.slideamount - 1 || 1 != l && l == i.slideamount - 1 ? !0 : !1;
if (-1 == l) {
if (o.pixelY < a) {
if (!h) return i.sc_indicator = "arrow", i.sc_indicator_dir = 0, t.callingNewSlide(i, e, -1), !1
} else if (o.pixelY > r && !p) return i.sc_indicator = "arrow", i.sc_indicator_dir = 1, t.callingNewSlide(i, e, 1), !1
} else if (!p) return !1;
s.preventDefault()
})
}
},
o = function(t, i, a) {
return t = e ? jQuery(a.target).closest("." + t).length || jQuery(a.srcElement).closest("." + t).length : jQuery(a.toElement).closest("." + t).length || jQuery(a.originalTarget).closest("." + t).length, t === !0 || 1 === t ? 1 : 0
},
d = function(i, a, n) {
i.data("opt", a);
var r = a.carousel;
jQuery(".bullet, .bullets, .tp-bullets, .tparrows").addClass("noSwipe"), r.Limit = "endless";
var s = (e || "Firefox" === t.get_browser(), i),
d = "vertical" === a.navigation.thumbnails.direction || "vertical" === a.navigation.tabs.direction ? "none" : "vertical",
l = a.navigation.touch.swipe_direction || "horizontal";
d = "swipebased" == n && "vertical" == l ? "none" : n ? "vertical" : d, jQuery.fn.swipetp || (jQuery.fn.swipetp = jQuery.fn.swipe), jQuery.fn.swipetp.defaults && jQuery.fn.swipetp.defaults.excludedElements || jQuery.fn.swipetp.defaults || (jQuery.fn.swipetp.defaults = new Object), jQuery.fn.swipetp.defaults.excludedElements = "label, button, input, select, textarea, .noSwipe", s.swipetp({
allowPageScroll: d,
triggerOnTouchLeave: !0,
excludeElements: jQuery.fn.swipetp.defaults.excludedElements,
swipeStatus: function(e, n, s, d) {
var h = o("rev_slider_wrapper", i, e),
p = o("tp-thumbs", i, e),
u = o("tp-tabs", i, e),
c = jQuery(this).attr("class"),
f = c.match(/tp-tabs|tp-thumb/gi) ? !0 : !1;
if ("carousel" === a.sliderType && (("move" === n || "end" === n || "cancel" == n) && a.dragStartedOverSlider && !a.dragStartedOverThumbs && !a.dragStartedOverTabs || "start" === n && h > 0 && 0 === p && 0 === u)) switch (a.dragStartedOverSlider = !0, d = s && s.match(/left|up/g) ? Math.round(-1 * d) : d = Math.round(1 * d), n) {
case "start":
void 0 !== r.positionanim && (r.positionanim.kill(), r.slide_globaloffset = "off" === r.infinity ? r.slide_offset : t.simp(r.slide_offset, r.maxwidth)), r.overpull = "none", r.wrap.addClass("dragged");
break;
case "move":
if (r.slide_offset = "off" === r.infinity ? r.slide_globaloffset + d : t.simp(r.slide_globaloffset + d, r.maxwidth), "off" === r.infinity) {
var g = "center" === r.horizontal_align ? (r.wrapwidth / 2 - r.slide_width / 2 - r.slide_offset) / r.slide_width : (0 - r.slide_offset) / r.slide_width;
"none" !== r.overpull && 0 !== r.overpull || !(0 > g || g > a.slideamount - 1) ? g >= 0 && g <= a.slideamount - 1 && (g >= 0 && d > r.overpull || g <= a.slideamount - 1 && d < r.overpull) && (r.overpull = 0) : r.overpull = d, r.slide_offset = 0 > g ? r.slide_offset + (r.overpull - d) / 1.1 + Math.sqrt(Math.abs((r.overpull - d) / 1.1)) : g > a.slideamount - 1 ? r.slide_offset + (r.overpull - d) / 1.1 - Math.sqrt(Math.abs((r.overpull - d) / 1.1)) : r.slide_offset
}
t.organiseCarousel(a, s, !0, !0);
break;
case "end":
case "cancel":
r.slide_globaloffset = r.slide_offset, r.wrap.removeClass("dragged"), t.carouselToEvalPosition(a, s), a.dragStartedOverSlider = !1, a.dragStartedOverThumbs = !1, a.dragStartedOverTabs = !1
} else {
if (("move" !== n && "end" !== n && "cancel" != n || a.dragStartedOverSlider || !a.dragStartedOverThumbs && !a.dragStartedOverTabs) && !("start" === n && h > 0 && (p > 0 || u > 0))) {
if ("end" == n && !f) {
if (a.sc_indicator = "arrow", "horizontal" == l && "left" == s || "vertical" == l && "up" == s) return a.sc_indicator_dir = 0, t.callingNewSlide(a, a.c, 1), !1;
if ("horizontal" == l && "right" == s || "vertical" == l && "down" == s) return a.sc_indicator_dir = 1, t.callingNewSlide(a, a.c, -1), !1
}
return a.dragStartedOverSlider = !1, a.dragStartedOverThumbs = !1, a.dragStartedOverTabs = !1, !0
}
p > 0 && (a.dragStartedOverThumbs = !0), u > 0 && (a.dragStartedOverTabs = !0);
var v = a.dragStartedOverThumbs ? ".tp-thumbs" : ".tp-tabs",
m = a.dragStartedOverThumbs ? ".tp-thumb-mask" : ".tp-tab-mask",
b = a.dragStartedOverThumbs ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper",
w = a.dragStartedOverThumbs ? ".tp-thumb" : ".tp-tab",
_ = a.dragStartedOverThumbs ? a.navigation.thumbnails : a.navigation.tabs;
d = s && s.match(/left|up/g) ? Math.round(-1 * d) : d = Math.round(1 * d);
var x = i.parent().find(m),
y = x.find(b),
T = _.direction,
L = "vertical" === T ? y.height() : y.width(),
j = "vertical" === T ? x.height() : x.width(),
C = "vertical" === T ? x.find(w).first().outerHeight(!0) + _.space : x.find(w).first().outerWidth(!0) + _.space,
S = void 0 === y.data("offset") ? 0 : parseInt(y.data("offset"), 0),
k = 0;
switch (n) {
case "start":
i.parent().find(v).addClass("dragged"), S = "vertical" === T ? y.position().top : y.position().left, y.data("offset", S), y.data("tmmove") && y.data("tmmove").pause();
break;
case "move":
if (j >= L) return !1;
k = S + d, k = k > 0 ? "horizontal" === T ? k - y.width() * (k / y.width() * k / y.width()) : k - y.height() * (k / y.height() * k / y.height()) : k;
var O = "vertical" === T ? 0 - (y.height() - x.height()) : 0 - (y.width() - x.width());
k = O > k ? "horizontal" === T ? k + y.width() * (k - O) / y.width() * (k - O) / y.width() : k + y.height() * (k - O) / y.height() * (k - O) / y.height() : k, "vertical" === T ? punchgs.TweenLite.set(y, {
top: k + "px"
}) : punchgs.TweenLite.set(y, {
left: k + "px"
});
break;
case "end":
case "cancel":
if (f) return k = S + d, k = "vertical" === T ? k < 0 - (y.height() - x.height()) ? 0 - (y.height() - x.height()) : k : k < 0 - (y.width() - x.width()) ? 0 - (y.width() - x.width()) : k, k = k > 0 ? 0 : k, k = Math.abs(d) > C / 10 ? 0 >= d ? Math.floor(k / C) * C : Math.ceil(k / C) * C : 0 > d ? Math.ceil(k / C) * C : Math.floor(k / C) * C, k = "vertical" === T ? k < 0 - (y.height() - x.height()) ? 0 - (y.height() - x.height()) : k : k < 0 - (y.width() - x.width()) ? 0 - (y.width() - x.width()) : k, k = k > 0 ? 0 : k, "vertical" === T ? punchgs.TweenLite.to(y, .5, {
top: k + "px",
ease: punchgs.Power3.easeOut
}) : punchgs.TweenLite.to(y, .5, {
left: k + "px",
ease: punchgs.Power3.easeOut
}), k = k ? k : "vertical" === T ? y.position().top : y.position().left, y.data("offset", k), y.data("distance", d), setTimeout(function() {
a.dragStartedOverSlider = !1, a.dragStartedOverThumbs = !1, a.dragStartedOverTabs = !1
}, 100), i.parent().find(v).removeClass("dragged"), !1
}
}
}
})
},
l = function(t) {
t.hide_delay = jQuery.isNumeric(parseInt(t.hide_delay, 0)) ? t.hide_delay / 1e3 : .2, t.hide_delay_mobile = jQuery.isNumeric(parseInt(t.hide_delay_mobile, 0)) ? t.hide_delay_mobile / 1e3 : .2
},
h = function(t) {
return t && t.enable
},
p = function(t) {
return t && t.enable && t.hide_onleave === !0 && (void 0 === t.position ? !0 : !t.position.match(/outer/g))
},
u = function(t, i) {
var a = t.parent();
p(i.navigation.arrows) && punchgs.TweenLite.delayedCall(e ? i.navigation.arrows.hide_delay_mobile : i.navigation.arrows.hide_delay, c, [a.find(".tparrows"), i.navigation.arrows, "hide"]), p(i.navigation.bullets) && punchgs.TweenLite.delayedCall(e ? i.navigation.bullets.hide_delay_mobile : i.navigation.bullets.hide_delay, c, [a.find(".tp-bullets"), i.navigation.bullets, "hide"]), p(i.navigation.thumbnails) && punchgs.TweenLite.delayedCall(e ? i.navigation.thumbnails.hide_delay_mobile : i.navigation.thumbnails.hide_delay, c, [a.find(".tp-thumbs"), i.navigation.thumbnails, "hide"]), p(i.navigation.tabs) && punchgs.TweenLite.delayedCall(e ? i.navigation.tabs.hide_delay_mobile : i.navigation.tabs.hide_delay, c, [a.find(".tp-tabs"), i.navigation.tabs, "hide"])
},
c = function(t, e, i, a) {
switch (a = void 0 === a ? .5 : a, i) {
case "show":
punchgs.TweenLite.to(t, a, {
autoAlpha: 1,
ease: punchgs.Power3.easeInOut,
overwrite: "auto"
});
break;
case "hide":
punchgs.TweenLite.to(t, a, {
autoAlpha: 0,
ease: punchgs.Power3.easeInOu,
overwrite: "auto"
})
}
},
f = function(t, e, i) {
e.style = void 0 === e.style ? "" : e.style, e.left.style = void 0 === e.left.style ? "" : e.left.style, e.right.style = void 0 === e.right.style ? "" : e.right.style, 0 === t.find(".tp-leftarrow.tparrows").length && t.append('<div class="tp-leftarrow tparrows ' + e.style + " " + e.left.style + '">' + e.tmp + "</div>"), 0 === t.find(".tp-rightarrow.tparrows").length && t.append('<div class="tp-rightarrow tparrows ' + e.style + " " + e.right.style + '">' + e.tmp + "</div>");
var a = t.find(".tp-leftarrow.tparrows"),
n = t.find(".tp-rightarrow.tparrows");
n.click(function() {
i.sc_indicator = "arrow", i.sc_indicator_dir = 0, t.revnext()
}), a.click(function() {
i.sc_indicator = "arrow", i.sc_indicator_dir = 1, t.revprev()
}), e.right.j = t.find(".tp-rightarrow.tparrows"), e.left.j = t.find(".tp-leftarrow.tparrows"), e.padding_top = parseInt(i.carousel.padding_top || 0, 0), e.padding_bottom = parseInt(i.carousel.padding_bottom || 0, 0), m(a, e.left), m(n, e.right), ("outer-left" == e.position || "outer-right" == e.position) && (i.outernav = !0)
},
g = function(t, e) {
var i = t.outerHeight(!0),
a = (t.outerWidth(!0), "top" === e.v_align ? {
top: "0px",
y: Math.round(e.v_offset) + "px"
} : "center" === e.v_align ? {
top: "50%",
y: Math.round(0 - i / 2 + e.v_offset) + "px"
} : {
top: "100%",
y: Math.round(0 - (i + e.v_offset)) + "px"
});
t.hasClass("outer-bottom") || punchgs.TweenLite.set(t, a)
},
v = function(t, e) {
var i = (t.outerHeight(!0), t.outerWidth(!0)),
a = "left" === e.h_align ? {
left: "0px",
x: Math.round(e.h_offset) + "px"
} : "center" === e.h_align ? {
left: "50%",
x: Math.round(0 - i / 2 + e.h_offset) + "px"
} : {
left: "100%",
x: Math.round(0 - (i + e.h_offset)) + "px"
};
punchgs.TweenLite.set(t, a)
},
m = function(t, e) {
var i = t.closest(".tp-simpleresponsive").length > 0 ? t.closest(".tp-simpleresponsive") : t.closest(".tp-revslider-mainul").length > 0 ? t.closest(".tp-revslider-mainul") : t.closest(".rev_slider_wrapper").length > 0 ? t.closest(".rev_slider_wrapper") : t.parent().find(".tp-revslider-mainul"),
a = i.width(),
n = i.height();
if (g(t, e), v(t, e), "outer-left" !== e.position || "fullwidth" != e.sliderLayout && "fullscreen" != e.sliderLayout ? "outer-right" !== e.position || "fullwidth" != e.sliderLayout && "fullscreen" != e.sliderLayout || punchgs.TweenLite.set(t, {
right: 0 - t.outerWidth() + "px",
x: e.h_offset + "px"
}) : punchgs.TweenLite.set(t, {
left: 0 - t.outerWidth() + "px",
x: e.h_offset + "px"
}), t.hasClass("tp-thumbs") || t.hasClass("tp-tabs")) {
var r = t.data("wr_padding"),
s = t.data("maxw"),
o = t.data("maxh"),
d = t.find(t.hasClass("tp-thumbs") ? ".tp-thumb-mask" : ".tp-tab-mask"),
l = parseInt(e.padding_top || 0, 0),
h = parseInt(e.padding_bottom || 0, 0);
s > a && "outer-left" !== e.position && "outer-right" !== e.position ? (punchgs.TweenLite.set(t, {
left: "0px",
x: 0,
maxWidth: a - 2 * r + "px"
}), punchgs.TweenLite.set(d, {
maxWidth: a - 2 * r + "px"
})) : (punchgs.TweenLite.set(t, {
maxWidth: s + "px"
}), punchgs.TweenLite.set(d, {
maxWidth: s + "px"
})), o + 2 * r > n && "outer-bottom" !== e.position && "outer-top" !== e.position ? (punchgs.TweenLite.set(t, {
top: "0px",
y: 0,
maxHeight: l + h + (n - 2 * r) + "px"
}), punchgs.TweenLite.set(d, {
maxHeight: l + h + (n - 2 * r) + "px"
})) : (punchgs.TweenLite.set(t, {
maxHeight: o + "px"
}), punchgs.TweenLite.set(d, {
maxHeight: o + "px"
})), "outer-left" !== e.position && "outer-right" !== e.position && (l = 0, h = 0), e.span === !0 && "vertical" === e.direction ? (punchgs.TweenLite.set(t, {
maxHeight: l + h + (n - 2 * r) + "px",
height: l + h + (n - 2 * r) + "px",
top: 0 - l,
y: 0
}), g(d, e)) : e.span === !0 && "horizontal" === e.direction && (punchgs.TweenLite.set(t, {
maxWidth: "100%",
width: a - 2 * r + "px",
left: 0,
x: 0
}), v(d, e))
}
},
b = function(t, e, i, a) {
0 === t.find(".tp-bullets").length && (e.style = void 0 === e.style ? "" : e.style, t.append('<div class="tp-bullets ' + e.style + " " + e.direction + '"></div>'));
var n = t.find(".tp-bullets"),
r = i.data("index"),
s = e.tmp;
jQuery.each(a.thumbs[i.index()].params, function(t, e) {
s = s.replace(e.from, e.to)
}), n.append('<div class="justaddedbullet tp-bullet">' + s + "</div>");
var o = t.find(".justaddedbullet"),
d = t.find(".tp-bullet").length,
l = o.outerWidth() + parseInt(void 0 === e.space ? 0 : e.space, 0),
h = o.outerHeight() + parseInt(void 0 === e.space ? 0 : e.space, 0);
"vertical" === e.direction ? (o.css({
top: (d - 1) * h + "px",
left: "0px"
}), n.css({
height: (d - 1) * h + o.outerHeight(),
width: o.outerWidth()
})) : (o.css({
left: (d - 1) * l + "px",
top: "0px"
}), n.css({
width: (d - 1) * l + o.outerWidth(),
height: o.outerHeight()
})), o.find(".tp-bullet-image").css({
backgroundImage: "url(" + a.thumbs[i.index()].src + ")"
}), o.data("liref", r), o.click(function() {
a.sc_indicator = "bullet", t.revcallslidewithid(r), t.find(".tp-bullet").removeClass("selected"), jQuery(this).addClass("selected")
}), o.removeClass("justaddedbullet"), e.padding_top = parseInt(a.carousel.padding_top || 0, 0), e.padding_bottom = parseInt(a.carousel.padding_bottom || 0, 0), ("outer-left" == e.position || "outer-right" == e.position) && (a.outernav = !0), m(n, e)
},
w = function(t, e) {
e = parseFloat(e), t = t.replace("#", "");
var i = parseInt(t.substring(0, 2), 16),
a = parseInt(t.substring(2, 4), 16),
n = parseInt(t.substring(4, 6), 16),
r = "rgba(" + i + "," + a + "," + n + "," + e + ")";
return r
},
_ = function(t, e, i, a, n) {
var r = "tp-thumb" === a ? ".tp-thumbs" : ".tp-tabs",
s = "tp-thumb" === a ? ".tp-thumb-mask" : ".tp-tab-mask",
o = "tp-thumb" === a ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper",
d = "tp-thumb" === a ? ".tp-thumb" : ".tp-tab",
l = "tp-thumb" === a ? ".tp-thumb-image" : ".tp-tab-image";
if (e.visibleAmount = e.visibleAmount > n.slideamount ? n.slideamount : e.visibleAmount, e.sliderLayout = n.sliderLayout, 0 === t.parent().find(r).length) {
e.style = void 0 === e.style ? "" : e.style;
var h = e.span === !0 ? "tp-span-wrapper" : "",
p = '<div class="' + a + "s " + h + " " + e.position + " " + e.style + '"><div class="' + a + '-mask"><div class="' + a + 's-inner-wrapper" style="position:relative;"></div></div></div>';
"outer-top" === e.position ? t.parent().prepend(p) : "outer-bottom" === e.position ? t.after(p) : t.append(p), e.padding_top = parseInt(n.carousel.padding_top || 0, 0), e.padding_bottom = parseInt(n.carousel.padding_bottom || 0, 0), ("outer-left" == e.position || "outer-right" == e.position) && (n.outernav = !0)
}
var u = i.data("index"),
c = t.parent().find(r),
f = c.find(s),
g = f.find(o),
v = "horizontal" === e.direction ? e.width * e.visibleAmount + e.space * (e.visibleAmount - 1) : e.width,
b = "horizontal" === e.direction ? e.height : e.height * e.visibleAmount + e.space * (e.visibleAmount - 1),
_ = e.tmp;
jQuery.each(n.thumbs[i.index()].params, function(t, e) {
_ = _.replace(e.from, e.to)
}), g.append('<div data-liindex="' + i.index() + '" data-liref="' + u + '" class="justaddedthumb ' + a + '" style="width:' + e.width + "px;height:" + e.height + 'px;">' + _ + "</div>");
var x = c.find(".justaddedthumb"),
y = c.find(d).length,
T = x.outerWidth() + parseInt(void 0 === e.space ? 0 : e.space, 0),
L = x.outerHeight() + parseInt(void 0 === e.space ? 0 : e.space, 0);
x.find(l).css({
backgroundImage: "url(" + n.thumbs[i.index()].src + ")"
}), "vertical" === e.direction ? (x.css({
top: (y - 1) * L + "px",
left: "0px"
}), g.css({
height: (y - 1) * L + x.outerHeight(),
width: x.outerWidth()
})) : (x.css({
left: (y - 1) * T + "px",
top: "0px"
}), g.css({
width: (y - 1) * T + x.outerWidth(),
height: x.outerHeight()
})), c.data("maxw", v), c.data("maxh", b), c.data("wr_padding", e.wrapper_padding);
var j = "outer-top" === e.position || "outer-bottom" === e.position ? "relative" : "absolute",
C = "outer-top" !== e.position && "outer-bottom" !== e.position || "center" !== e.h_align ? "0" : "auto";
f.css({
maxWidth: v + "px",
maxHeight: b + "px",
overflow: "hidden",
position: "relative"
}), c.css({
maxWidth: v + "px",
margin: C,
maxHeight: b + "px",
overflow: "visible",
position: j,
background: w(e.wrapper_color, e.wrapper_opacity),
padding: e.wrapper_padding + "px",
boxSizing: "contet-box"
}), x.click(function() {
n.sc_indicator = "bullet";
var e = t.parent().find(o).data("distance");
e = void 0 === e ? 0 : e, Math.abs(e) < 10 && (t.revcallslidewithid(u), t.parent().find(r).removeClass("selected"), jQuery(this).addClass("selected"))
}), x.removeClass("justaddedthumb"), m(c, e)
},
x = function(t) {
var e = t.c.parent().find(".outer-top"),
i = t.c.parent().find(".outer-bottom");
t.top_outer = e.hasClass("tp-forcenotvisible") ? 0 : e.outerHeight() || 0, t.bottom_outer = i.hasClass("tp-forcenotvisible") ? 0 : i.outerHeight() || 0
},
y = function(t, e, i, a) {
e > i || i > a ? t.addClass("tp-forcenotvisible") : t.removeClass("tp-forcenotvisible")
}
}(jQuery);
Executed Writes (0)