/* Translucent - Responsive Banner Rotator / Slider | v1.4.2 | Updated:17 SEP 2012 | (c) 2011-12 Ramesh Kumar | http://codecanyon.net/user/VF */
(function (e, f, h) {
var d = {
slide_autoplay: true,
slide_delaytime: 5,
slide_transition: 1,
slide_transition_period: 800,
slide_preload_images: 1,
slide_random_order: false,
image_align_center: true,
image_resize: true,
image_resize_to_fit: false,
navigation_type: 1,
button_size: 20,
button_size_touch_device: 28,
button_margin: 4,
button_opacity: 0.7,
button_space: 2,
button_color: "#FFFFFF",
button_show_next: true,
button_show_back: false,
button_show_timer: true,
button_show_numbers: true,
button_numbers_autohide: true,
button_numbers_horizontal: false,
dot_button_size: 14,
dot_button_space: 10,
dot_button_margin: 10,
dot_button_dark: false,
dot_button_bg_blur: true,
dot_button_bg_padding: 8,
caption_float_mode: false,
caption_bg_blur: 12,
caption_padding_x: 24,
caption_padding_y: 12,
caption_margin_x: 0,
caption_margin_y: 0,
caption_position_x: 50,
caption_position_y: 100,
caption_width: 300,
caption_height: "",
caption_bg_color: "#FFFFFF",
caption_bg_opacity: 0.08,
caption_bg_radius: 6,
caption_bg_shadow: 0.3,
caption_border: 1,
caption_border_color: "#FFFFFF",
caption_border_opacity: 0.15,
caption_allow_selection: false,
mouse_drag: true,
touch_swipe: true,
touch_dragdrop_factor: 60,
touch_throw_factor: 5,
responsive: true,
responsive_limit_autoplay: "",
responsive_limit_caption: 480,
responsive_limit_navigation: 480,
responsive_limit_navigation_type: 2,
responsive_screen_based_limits: false
};
function i(k, t, q) {
var p = this;
var r = this.sett = e.extend({}, d, t);
this.instanceID = q;
this.$cont = k;
this.$children = this.$cont.find(".Slide");
if (r.slide_random_order) {
this.shuffle(this.$children)
}
this.maxW = this.$cont.css("max-width");
if (this.maxW.indexOf("%") < 0) {
this.maxW = parseInt(this.maxW)
} else {
this.maxW = false
}
this.bW = this.$cont.width();
this.oH = parseInt(this.$cont.css("height"));
this.ratio = (this.maxW || this.bW) / this.oH;
this.bH = this.getHeight();
this.FF2 = false;
this.IE8 = false;
this.canvasSupport = !!h.createElement("canvas").getContext;
this.touchDevice = "ontouchstart" in f;
this.slides = [];
this.slide_tot = this.$children.length;
this.slide_dir = -1;
this.slide_sel = 0;
this.slide_pr1 = "";
this.slide_pr2 = "";
this.slide_fin = false;
this.slide_drg = false;
this.slide_sta = true;
this.clockDraw;
this.clockContext;
this.clockStart;
this.clockDiff = 0;
this.clockTimer = r.button_show_timer;
this.clockPlaying = false;
this.buttonNext = r.button_show_next;
this.buttonBack = r.button_show_back;
this.buttonNumber = r.button_show_numbers;
this.buttonIE = this.IE8 ? 1 : 0;
this.buttonLeaveTimer;
this.navHolder;
this.draggable = ((this.touchDevice && r.touch_swipe) || (!this.touchDevice && r.mouse_drag)) ? true : false;
this.dragged = false;
this.numShow = false;
this.moved = 0;
this.timerob = e('
");
x.append(w)
} else {
w = x.find("div")
}
y.slides.push({
src: E.attr("src"),
scale: 1,
ox: "",
oy: "",
con: x,
img: E,
txt: w[0] ? w : false,
loaded: false,
butt: "",
z: y.slide_tot - C,
delay: (x.data("delay") || v.slide_delaytime) * 1000,
pd: x.data("position"),
wd: x.data("width"),
hd: x.data("height")
});
if (w[0]) {
w.css({
left: v.caption_padding_x,
top: v.caption_padding_y,
display: "none"
}).wrapInner(e("
").css("opacity", 0.99));
if (v.caption_allow_selection) {
w.bind("mousedown", function (s) {
s.stopImmediatePropagation()
})
} else {
w.addClass("noSelect").attr("unselectable", "on")
}
t = e('
');
e.extend(y.slides[C], {
cap: t,
txtCont: t.find(".txtCont")
});
n = x.data("caption_bg_shadow") || v.caption_bg_shadow;
k = "-moz-border-radius: " + v.caption_bg_radius + "px; -webkit-border-radius: " + v.caption_bg_radius + "px; border-radius: " + v.caption_bg_radius + "px; -khtml-border-radius: " + v.caption_bg_radius + "px;";
if (v.caption_bg_blur > 0) {
if (y.IE8) {
m = e('
');
if (v.caption_margin_y <= v.caption_bg_blur / 2 && !v.caption_float_mode) {
m.append('
')
}
} else {
if (!y.FF2) {
m = e('
')
}
}
} else {
if (n > 0 && !y.FF2) {
m = e('
')
}
}
u = x.data("caption_bg_color") || v.caption_bg_color;
z = x.data("caption_bg_opacity") || v.caption_bg_opacity;
B = e('
').css("opacity", z);
if (v.caption_border) {
A = e('
').css("opacity", v.caption_border_opacity)
}
if (n > 0 && !y.FF2) {
m.css(y.shProp, (o + n + ")"))
}
t.append(m).append(B).append(A);
y.slides[C].txtCont.append(w);
x.append(t);
y.slides[C].bord = A;
y.slides[C].col = B;
y.slides[C].can = m
}
x.hide().bind(y.downEvent, {
id: C,
self: y
}, y.startDrag)
}
y.imageLoad(0);
for (var C = 1; C < y.slide_tot; C++) {
var l = new Image();
y.slides[C].img.hide();
e(l).bind("load", {
id: C,
self: y
}, y.imageLoad);
l.src = y.slides[C].src
}
if (y.draggable) {
var r = y.$cont.find("a");
r.each(function () {
var s = e(this);
s.bind("click", {
l: s.attr("href"),
t: s.attr("target")
}, function (F) {
F.stopImmediatePropagation();
F.preventDefault();
if (!y.slide_drg) {
e(h).unbind(".TransBannerDrag_" + y.instanceID);
f.open(F.data.l, F.data.t ? F.data.t.toLowerCase() : "_self")
} else {
y.slide_drg = false
}
return false
});
if (s.find("img").length < 1) {
s.bind("mousedown", function (F) {
F.preventDefault();
return false
})
}
})
}
if (v.responsive) {
e(f).bind("resize", function (s) {
y.blurIteration = 1;
y.resizeBanner({
internal: true
})
})
}
},
imageLoad: function (l) {
var k, m;
if (l.data) {
k = l.data.self;
m = l.data.id
} else {
k = this;
m = l
}
k.slides[m].imgW = k.slides[m].img[0].width;
k.slides[m].imgH = k.slides[m].img[0].height;
k.resizeImage(m);
if (k.slides[m].txt) {
k.updateText(m)
}
if (!k.IE8 && !k.FF2 && k.sett.caption_bg_blur > 0 && k.slides[m].txt) {
k.createBlur(m, true)
} else {
k.showSlide(m)
}
},
resizeImage: function (p) {
var m = this,
o = m.sett,
k = m.slides,
l, n;
if (o.image_resize) {
k[p].scale = m.bW / k[p].imgW;
if ((k[p].scale * k[p].imgH <= m.bH && !o.image_resize_to_fit) || (k[p].scale * k[p].imgH >= m.bH && o.image_resize_to_fit)) {
k[p].scale = m.bH / k[p].imgH;
k[p].img.height(m.bH);
k[p].img.width(k[p].imgW * k[p].scale);
l = k[p].imgW * k[p].scale;
n = m.bH
} else {
k[p].img.width(m.bW);
k[p].img.height(k[p].imgH * k[p].scale);
l = m.bW;
n = k[p].imgH * k[p].scale
}
if (o.image_align_center) {
m.alignCenter(p)
}
if (m.IE8) {
e(k[p].can).find("img").each(function () {
this.width = l;
this.height = n
})
}
} else {
if (o.image_align_center) {
m.alignCenter(p)
}
}
},
alignCenter: function (k) {
this.slides[k].ox = (this.bW - (this.slides[k].imgW * this.slides[k].scale)) / 2;
this.slides[k].oy = (this.bH - (this.slides[k].imgH * this.slides[k].scale)) / 2;
this.slides[k].img.css({
left: this.slides[k].ox,
top: this.slides[k].oy
})
},
createBlur: function (o, l) {
var m = this,
k = m.slides[o],
n = m.getHostName(k.src);
if (n && n !== h.domain) {
e.getImageData({
url: k.src,
success: function (p) {
g(p, k.cx, k.cy, k.cw, k.ch, k.scale, k.ox, k.oy, k.can[0], m.sett.caption_bg_blur, false, m.blurIteration);
if (l) {
m.showSlide(o)
}
},
error: function (q, p) {
if (l) {
m.showSlide(o)
}
}
})
} else {
g(k.img[0], k.cx, k.cy, k.cw, k.ch, k.scale, k.ox, k.oy, k.can[0], m.sett.caption_bg_blur, false, m.blurIteration);
if (l) {
m.showSlide(o)
}
}
},
showSlide: function (k) {
this.slides[k].con.css("background-image", "none");
this.slides[k].loaded = true;
if (k == this.slide_sel) {
this.slides[k].img.fadeIn(400)
} else {
this.slides[k].img.show()
}
if (k == 0) {
this[this.sett.slide_transition]();
if (this.sett.button_show_next || this.sett.button_show_back || this.sett.button_show_timer || this.sett.button_show_numbers) {
this.setNavigation()
}
}
},
getHostName: function (k) {
var l = k.match(this.regxHost);
if (l !== null) {
return l[1].toString()
} else {
return false
}
},
updateFloatSettings: function () {
this.sett.caption_position_x = ((this.bW - ((this.sett.dot_button_size + this.sett.dot_button_space) * this.slide_tot) + this.sett.dot_button_space) / 2) - this.sett.dot_button_bg_padding;
this.sett.caption_position_y = this.bH - this.sett.dot_button_margin - (this.sett.dot_button_bg_padding * 2) - this.sett.dot_button_size;
this.sett.caption_width = ((this.sett.dot_button_size + this.sett.dot_button_space) * this.slide_tot) - this.sett.dot_button_space + (this.sett.dot_button_bg_padding * 2);
this.sett.caption_height = this.sett.dot_button_size + this.sett.dot_button_bg_padding * 2;
this.sett.caption_bg_radius = this.sett.caption_height
},
getHeight: function () {
var l = this,
k;
if (!l.sett.responsive) {
return l.$cont.height()
}
if (l.maxW) {
if (l.bW < l.maxW) {
k = l.bW / l.ratio
} else {
k = l.oH
}
l.$cont.height(k)
} else {
if (l.$cont.css("max-width").indexOf("%") < 0) {
k = l.bW / l.ratio;
l.$cont.height(k)
} else {
k = l.$cont.height()
}
}
return Math.max(20, k)
},
checkLimit: function (m, l) {
var k;
if (m) {
k = (this.sett.responsive_screen_based_limits || l) ? Math.max(screen.width, screen.height) : this.bW;
return (k <= parseInt(m) ? true : false)
} else {
return false
}
},
updateText: function (w) {
var v = this,
r = v.sett,
C = v.slides,
u = v.slides[w].con,
E = v.slides[w].img,
t = v.slides[w].txt,
p = v.slides[w].cap,
m = v.slides[w].txtCont,
A = v.slides[w].bord,
B = v.slides[w].col,
k = v.slides[w].can,
y, x, z, F, D = v.slides[w].pd,
o = v.slides[w].wd,
n = v.slides[w].hd,
q;
if (r.caption_float_mode) {
if (v.dotButtonBlurBG) {
v.updateFloatSettings()
}
if (D && !v.dotButtonBlurBG) {
y = parseInt(D.split(",")[0], 10);
x = parseInt(D.split(",")[1], 10)
} else {
y = r.caption_position_x;
x = r.caption_position_y
}
if (o && !v.dotButtonBlurBG) {
z = parseInt(o, 10)
} else {
z = r.caption_width
}
if (y == v.maxW - z) {
y = v.bW - z
} else {
if (v.maxW && !v.dotButtonBlurBG) {
y *= v.bW / v.maxW;
x *= v.bW / v.maxW
}
}
if (y + z + r.caption_margin_x > v.bW) {
z = v.bW - y - r.caption_margin_x
}
t.width((z - (r.caption_padding_x * 2)));
if (n && !v.dotButtonBlurBG) {
F = parseInt(n, 10)
} else {
if (r.caption_height == "") {
F = v.getHiddenTextHeight(u, p, t) + (r.caption_padding_y * 2)
} else {
F = r.caption_height
}
}
if (x + F + r.caption_margin_y > v.bH) {
F = v.bH - x - r.caption_margin_y
}
t.height(r.caption_height == "" ? "auto" : F);
p.css({
left: y,
top: x,
width: z,
height: F
})
} else {
p.css({
left: r.caption_padding_x,
width: v.bW - ((r.caption_padding_x + r.caption_margin_x) * 2) - (v.currentNav > 1 ? 0 : v.navWidth)
});
t.width(v.bW - ((r.caption_padding_x + r.caption_margin_x) * 2) - (v.currentNav > 1 ? 0 : v.navWidth));
q = Math.min(v.getHiddenTextHeight(u, p, t) + (r.caption_padding_y * 2), v.bH - (r.caption_margin_y * 2));
y = r.caption_margin_x;
x = v.bH - q - r.caption_margin_y;
z = v.bW - (r.caption_margin_x * 2);
F = q;
t.width(z - (v.currentNav > 1 ? 0 : v.navWidth) - (r.caption_padding_x * 2));
p.css({
left: y,
width: z,
height: F
})
}
m.css({
width: z,
height: F
});
var l = u.data("caption_bg_shadow") || r.caption_bg_shadow;
e.extend(v.slides[w], {
cx: y,
cy: x,
cw: z,
ch: F,
tx: r.caption_padding_x + y,
ty: r.caption_padding_y + x,
tw: t.width()
});
if (r.caption_bg_blur > 0) {
if (v.IE8) {
k.css({
width: z - 1,
height: F - 1
});
k.find("div").css({
width: z + (r.caption_bg_blur * 2),
height: F + (r.caption_bg_blur * 2)
});
e(C[w].can).find("img").each(function () {
e(this).css({
left: C[w].ox - y + (r.caption_bg_blur),
top: C[w].oy - x + (r.caption_bg_blur / 2)
})
});
if (r.caption_margin_y <= r.caption_bg_blur / 2 && !r.caption_float_mode) {
k.find(".TBinner").css({
width: z + (v.blurIE * 2),
height: F + (v.blurIE * 2)
}).find("img").css({
left: -y + (v.blurIE),
top: -x + (v.blurIE)
})
}
} else {
v.createBlur(w, false)
}
} else {
if (l > 0 && !v.FF2) {
k.css({
width: z,
height: F
})
}
}
B.css({
width: z,
height: F
});
if (r.caption_border) {
A.css({
width: z - (r.caption_border * 2),
height: F - (r.caption_border * 2)
})
}
},
getHiddenTextHeight: function (p, n, k) {
var o = [];
if (p.css("display") == "none") {
o.push(p.css("display", "block"))
}
if (n.css("display") == "none") {
o.push(n.css("display", "block"))
}
if (k.css("display") == "none") {
o.push(k.css("display", "block"))
}
var l = k.height();
for (var m = 0; m < o.length; m++) {
o[m].css("display", "none")
}
return l
},
shuffle: function (k) {
var m, n;
for (var l = 0; l < k.length; l++) {
m = Math.floor(Math.random() * k.length);
n = k[l];
k[l] = k[m];
k[m] = n
}
},
startDrag: function (l) {
var k = l.data.self,
o = l.data.id,
n = l.pageX || l.originalEvent.changedTouches[0].pageX,
m = l.pageY || l.originalEvent.changedTouches[0].pageY;
k.ch = 0, k.p = 0;
if (k.currentNav < 3 && k.sett.button_numbers_autohide) {
k.checkDropDown(false, false)
}
if (k.buttonNext[0]) {
k.buttonNext.trigger("mouseout", {
self: k,
num: "next",
butt: k.buttonNext
})
}
if (l.type == "mousedown") {
l.preventDefault()
}
if (!k.draggable || k.slide_drg || !k.slide_fin) {
return
}
if (k.sett.slide_transition !== "move") {
k.slides[o].con.css(k.shProp, "0px 0px 45px 0px #000000")
}
k.slide_drg = false;
e(h).unbind(".TransBannerDrag_" + k.instanceID).bind(k.moveEvent + ".TransBannerDrag_" + k.instanceID, {
self: k,
id: l.data.id,
sx: n,
sy: m
}, k.onDragMove).bind(k.upEvent + ".TransBannerDrag_" + k.instanceID, {
self: k,
id: l.data.id,
sx: n,
sy: m
}, k.onDragUp)
},
dragTransComplete: function (k) {
k.slide_fin = true;
k.slide_drg = false;
if (k.sett.button_show_numbers && this.currentNav < 3) {
k.toggleButton(true)
} else {
k.timerReset(true)
}
if (k.slides[k.n].txt) {
if (!k.dotButtonBlurBG) {
k.slides[k.n].cap.hide()
}
if (k.sett.caption_float_mode) {
k.slides[k.n].cap.css("left", (k.IE8 || k.dotButtonBlurBG) ? k.slides[k.n].cx : k.slides[k.n].cx + (100 * -k.slide_dir))
}
}
if (k.slides[k.n].txt && k.enableCaption) {
k.animateCaption()
}
if (k.autoPlaying) {
k.startDelayTimer()
}
},
onDragMove: function (n) {
var k = n.data.self,
m = k.sett,
q = n.data.id,
p = n.data.sx,
o = n.data.sy,
l;
if (k.touchDevice) {
l = n.originalEvent.changedTouches[0].pageX;
if ((n.originalEvent.touches.length > 1 || Math.abs(l - p) < Math.abs(n.originalEvent.changedTouches[0].pageY - o) / 2) && !k.slide_drg) {
k.slide_drg = false;
e(h).unbind(".TransBannerDrag_" + k.instanceID);
return
}
} else {
l = n.pageX
}
k.ch = l - k.p;
k.p = l;
k.pos = l - p;
if (k.pos > k.bW) {
k.pos = k.bW
}
if (k.pos < -k.bW) {
k.pos = -k.bW
}
if (!k.slide_drg) {
k.dragFir = k.pos
} else {
if ((k.dragFir > 0 && k.pos < 0) || (k.dragFir < 0 && k.pos > 0)) {
k.pos = k.dragFir = 0;
k.slide_drg = false
}
}
k.n = k.slide_sel + (k.pos > 0 ? -1 : 1);
if (k.n < 0) {
k.n = k.slide_tot - 1
} else {
if (k.n > k.slide_tot - 1) {
k.n = 0
}
}
if (k.slides[k.n].txt && !k.dotButtonBlurBG) {
k.slides[k.n].cap.hide()
}
k.slide_pr1 = k.n;
k.zSort(2, 1);
if (k.clockPlaying) {
k.clockPlaying = false;
k.timerob.stop();
k.timerReset(true)
}
if (k.slide_drg && k.pos == 0) {
k.slide_drg = false;
k.slides[q].con.css("left", 0);
k.slides[k.n].con.css("left", 0)
} else {
k.slide_drg = true;
k.slides[q].con.css("left", k.pos);
k.slides[k.n].con.css("left", (m.slide_transition == "move" ? k.pos + (k.pos > 0 ? -k.bW : k.bW) : 0));
k.slides[k.n].con.show()
}
n.preventDefault();
return false
},
onDragUp: function (p) {
var l = p.data.self,
n = l.sett,
r = p.data.id,
q = p.data.sx,
k = n.slide_transition == "move";
e(h).unbind(".TransBannerDrag_" + l.instanceID);
if (l.slide_drg) {
var m = 0;
var o = l.slides[r].con.position().left;
if (o > n.touch_dragdrop_factor) {
m = 1
} else {
if (o < -n.touch_dragdrop_factor) {
m = -1
}
}
if (!l.IE8) {
if (l.ch > n.touch_throw_factor) {
m = o < 0 ? 0 : 1
} else {
if (l.ch < -n.touch_throw_factor) {
m = o > 0 ? 0 : -1
}
}
}
if (m !== 0) {
l.dragged = true;
l.slide_dir = m;
l.slide_fin = false;
l.slide_sel = l.n
}
l.slides[r].con.stop().animate({
left: (l.bW + (k ? 0 : 30)) * m
}, {
duration: m == 0 ? 400 : Math.max((l.bW - (l.slides[r].con.position().left * m)) / (k ? 1.5 : 0.75), k ? 400 : 600),
easing: (k || m == 0) ? "easeOutQuad" : "easeOutQuart",
step: function (s) {
if (k) {
l.slides[l.n].con.css("left", s + (l.pos > 0 ? -l.bW : l.bW))
}
},
complete: function () {
if (!k) {
l.slides[r].con.css(l.shProp, "none")
}
if (m == 0) {
l.slide_drg = false;
!l.autoPlaying || l.startDelayTimer()
} else {
l.dragTransComplete(l)
}
}
})
}
return false
},
changeSlide: function (k) {
this.slide_pr2 = this.slide_pr1;
this.slide_pr1 = this.slide_sel;
this.dragged = false;
if (k == "next") {
this.slide_sel = this.slide_sel + 1 > this.slide_tot - 1 ? 0 : this.slide_sel + 1
} else {
if (k == "back") {
this.slide_sel = this.slide_sel - 1 < 0 ? this.slide_tot - 1 : this.slide_sel - 1
} else {
this.slide_sel = k
}
}
this[this.sett.slide_transition]()
},
zSort: function (m, l) {
var n = 1;
for (var k = 0; k < this.slide_tot; k++) {
if (k !== this.slide_sel && k !== this.slide_pr1) {
if (this.slides[k]) {
this.slides[k].con.css("z-index", n);
if (this.IE8) {
this.slides[k].con.hide()
}
}
n++
}
}
if (this.slides[this.slide_pr1]) {
this.slides[this.slide_pr1].con.css("z-index", this.slide_tot + l)
}
if (this.slides[this.slide_sel]) {
this.slides[this.slide_sel].con.css("z-index", this.slide_tot + m)
}
},
textOut: function () {
var k = this;
if (this.slides[this.slide_pr1] && this.sett.slide_transition == "fade") {
this.slides[this.slide_pr1].txt.stop(true).animate({
left: -k.slides[k.slide_pr1].cw / 2
}, {
duration: 150,
easing: "easeOutQuad",
queue: false,
complete: function () {
e(this).hide()
}
})
}
},
textIn: function () {
var k = this,
l = -k.slide_dir,
n = k.IE8 ? "filter" : "opacity",
m = k.IE8 ? "none" : 1;
if (k.sett.slide_transition == "fade" && !k.dragged) {
l = 1
}
if (k.slides[k.slide_sel].txt) {
k.slides[k.slide_sel].txt.css({
left: k.sett.caption_padding_x + (100 * l),
prop: m
}).hide().fadeIn(600, function () {
if (k.IE8) {
e(this).removeAttr("filter").removeAttr("-ms-filter")
}
}).animate({
left: k.sett.caption_padding_x
}, {
duration: 800,
easing: "easeOutQuart",
queue: false
})
}
},
animateCaption: function () {
var k = this,
l = this.slide_sel;
this.slides[this.slide_sel].txt.hide();
if (this.sett.caption_float_mode) {
if (this.IE8 || this.dotButtonBlurBG) {
if (!k.dotButtonBlurBG) {
this.slides[l].cap.hide().fadeIn({
duration: 300
})
}
} else {
this.slides[l].cap.hide().fadeIn({
duration: 800,
queue: false
}).animate({
left: this.slides[l].cx
}, {
duration: 600
})
}
this.textIn()
} else {
if (this.IE8) {
this.slides[l].cap.hide().fadeIn({
duration: 600,
complete: function () {
k.textIn()
},
queue: false
})
} else {
this.slides[l].cap.hide().fadeIn({
duration: 600,
queue: false
}).animate({
_: 100
}, {
duration: 400,
complete: function () {
k.textIn()
}
})
}
}
},
setNavigation: function () {
var k = this;
for (var l = 1; l <= 3; l++) {
if (((!k.sett.responsive || k.sett.responsive_limit_navigation == "" || !k.checkLimit(k.sett.responsive_limit_navigation, true)) && k.sett.navigation_type === l) || (k.sett.responsive && k.sett.responsive_limit_navigation !== "" && k.sett.responsive_limit_navigation_type === l)) {
if (l == 1) {
k.navHolder = k.navigation();
k.$cont.prepend(k.navHolder)
} else {
if (l == 2) {
k.navHolderD = k.dotNavigation();
k.$cont.prepend(k.navHolderD)
} else {
if (l == 3) {
k.navHolderA = k.arrowNavigation();
k.$cont.prepend(k.navHolderA)
}
}
}
}
}
k.swapNavigation(false);
if (!k.sett.button_numbers_autohide && k.sett.button_show_numbers && k.navHolder) {
for (var l = 0; l < k.slide_tot; l++) {
k.showHideButton(l, true)
}
}
},
arrowNavigation: function () {
var k = this,
n = k.sett,
m = n.button_size,
o = n.button_space,
l = e('
');
k.buttonNextA = k.addButton(k, l, 4, true, false, "next").css({
left: k.bW - m - n.button_margin,
top: (k.bH - m) / 2
});
k.buttonBackA = k.addButton(k, l, 5, true, false, "back").css({
left: n.button_margin,
top: (k.bH - m) / 2
});
return l
},
dotNavigation: function () {
var l = this,
p = l.sett,
o = p.dot_button_size + p.dot_button_space,
q = 0,
k = (((o + q) * l.slide_tot) - q) / 2,
n = e('
');
for (var m = 0; m < l.slide_tot; m++) {
l.slides[m].buttS = l.addButton(l, n, 4, false, true, m).css({
left: ((o + q) * m) - k,
top: -(p.dot_button_margin > -1 ? o - (p.dot_button_space / 2) + p.dot_button_margin + (l.dotButtonBlurBG ? p.dot_button_bg_padding : 0) : p.dot_button_margin + (p.dot_button_space / 2))
})
}
return n
},
navigation: function () {
var z = this,
A = z.sett,
p = z.slides,
u = z.buttonNext,
l = z.buttonBack,
t = z.buttonPause,
x = z.buttonIE,
B = A.button_size,
k = A.button_space;
nav = z.nav = z;
z.currentDown = -1;
var w = e('
');
if (u || z.buttonNumber) {
var v = e('
');
if (A.button_numbers_horizontal) {
v.css({
"z-index": 4,
position: "absolute",
left: -(B + k) * (z.slide_tot + (u ? 1 : 0)) + k,
top: -B,
width: (B + k) * (z.slide_tot + (u ? 1 : 0)) - k,
height: B
})
}
w.append(v)
}
if (u) {
u = z.buttonNext = z.addButton(nav, v, 4, true, false, "next").css({
left: (A.button_numbers_horizontal ? ((B + k) * z.slide_tot) : 0) - x,
top: (A.button_numbers_horizontal ? 0 : ((B + k) * z.slide_tot)) - x
});
if (A.button_numbers_autohide && z.buttonNumber) {
if (!z.touchDevice) {
u.bind("mouseenter", {
self: z,
up: true
}, z.checkDropDown);
v.bind("mouseleave", {
self: z,
up: false
}, z.checkDropDown).bind("mouseenter", function (s) {
if (z.numShow) {
clearTimeout(z.buttonLeaveTimer)
}
})
}
}
}
if (z.clockTimer) {
var q, o;
if (z.canvasSupport) {
z.clockTimer = e('
');
var y = z.clockContext = z.clockTimer[0].getContext("2d");
y.shadowColor = "rgba(0, 0, 0, 0.5)";
y.shadowBlur = 3;
y.shadowOffsetX = 0;
y.shadowOffsetY = 0;
y.lineWidth = B / 10;
y.lineCap = "round"
} else {
z.clockTimer = e('
')
}
if (A.button_numbers_horizontal && u) {
v.append(z.clockTimer)
} else {
w.append(z.clockTimer)
}
if (A.button_numbers_horizontal) {
if (u) {
if (z.buttonNumber && !A.button_numbers_autohide) {
q = -(B + k);
o = 0
} else {
q = (B + k) * (z.slide_tot - 1);
o = 0
}
} else {
if (z.buttonNumber && !A.button_numbers_autohide) {
q = -((B + k) * (z.slide_tot + 1)) + k;
o = -B
} else {
q = -B;
o = -B - x
}
}
} else {
q = -((B * (u || z.buttonNumber ? 2 : 1)) + (u || z.buttonNumber ? k : 0));
o = -B
}
z.clockTimer.css({
left: q,
top: o
});
t = z.buttonPause = z.addButton(nav, A.button_numbers_horizontal && u ? v : w, 3, true, false, "pause").css({
left: q - x,
top: o - x
});
if (z.autoPlaying) {
t.css("opacity", 0)
} else {
z.clockTimer.css("opacity", 0)
}
if (!z.touchDevice) {
t.bind("mouseenter", function (s) {
t.stop().animate({
opacity: 1
}, {
duration: 400,
easing: "easeOutQuad"
})
}).bind("mouseleave", function (s) {
if (z.autoPlaying) {
t.stop().animate({
opacity: 0
}, {
duration: 400,
easing: "easeOutQuart"
})
}
})
}
}
if (l) {
var n, m;
l = z.buttonBack = z.addButton(nav, A.button_numbers_horizontal && u ? v : w, 1, true, false, "back");
if (A.button_numbers_horizontal) {
if (u) {
n = (B + k) * (z.slide_tot - (z.clockTimer ? 2 : 1));
m = 0
} else {
if (z.clockTimer) {
n = parseInt(z.clockTimer.css("left"), 10) - B - k;
m = parseInt(z.clockTimer.css("top"), 10)
} else {
n = -B + x;
m = -B
}
}
} else {
if (z.clockTimer) {
n = (-(B + k) * (u ? 3 : 2)) + k
} else {
n = -((B * (u || z.buttonNumber ? 2 : 1)) + (u || z.buttonNumber ? k : 0))
}
m = -B
}
l.css({
left: n - x,
top: m - x
})
}
if (z.buttonNumber) {
for (var r = 0; r < z.slide_tot; r++) {
p[r].butt = z.addButton(nav, v, z.slide_tot - r + 5, false, false, r);
if (A.button_numbers_horizontal) {
p[r].butt.css({
top: -x,
left: ((B + k) * r) - x
})
} else {
p[r].butt.css({
left: -x,
top: ((B + k) * r) - x
})
}
if (r == z.slide_sel) {
p[r].butt.bg.css("opacity", 1)
}
p[r].butt.hide()
}
}
w.css({
right: A.button_margin - (A.caption_float_mode ? 0 : -A.caption_margin_x),
bottom: A.button_margin - (A.caption_float_mode ? 0 : -A.caption_margin_y)
});
return w
},
swapNavigation: function (k) {
e(h).unbind(".TransBannerButtonUp_" + this.instanceID);
if (this.currentNav === 1) {
if (this.navHolder) {
this.navHolder.show()
}
if (this.navHolderD) {
this.navHolderD.hide()
}
if (this.navHolderA) {
this.navHolderA.hide()
}
} else {
if (this.currentNav === 2) {
if (this.navHolder) {
this.navHolder.hide()
}
if (this.navHolderD) {
this.navHolderD.show()
}
if (this.navHolderA) {
this.navHolderA.hide()
}
} else {
if (this.currentNav === 3) {
if (this.navHolder) {
this.navHolder.hide()
}
if (this.navHolderD) {
this.navHolderD.hide()
}
if (this.navHolderA) {
this.navHolderA.show()
}
}
}
}
e(h).bind(this.upEvent + ".TransBannerButtonUp_" + this.instanceID, {
self: this
}, this.releaseButton);
if (this.currentNav < 3) {
this.toggleButton(true)
}
this.timerReset(true);
if (this.autoPlaying && k) {
this.startDelayTimer()
}
},
addButton: function (k, t, v, s, l, p) {
var w = this,
x = l ? w.sett.dot_button_size + w.sett.dot_button_space : w.sett.button_size,
o, u, r, n = e('
" + (l || !w.IE8 ? "" : '
') + "
"),
m = n.find(".defaultButton");
if (w.IE8) {
o = n.find(".buttonShadow");
u = m.find(".iconHolder");
if (s) {
u.css("background-position", (l ? w.icDotOff : (p == "next" ? ((x - w.icSize) / 2) - w.icSize : p == "pause" ? ((x - w.icSize) / 2) - (w.autoPlaying ? w.icSize * 2 : w.icSize * 3) : (x - w.icSize) / 2) - w.icOff) + "px center")
} else {
if (l) {
m.append(l = e('
'))
} else {
var q = u.find(".buttonText")
}
}
n.append(m, o)
} else {
if (s || l) {
m.css("background-position", (l ? w.icDotOff : (p == "next" ? ((x - w.icSize) / 2) - w.icSize : p == "pause" ? ((x - w.icSize) / 2) - (w.autoPlaying ? w.icSize * 2 : w.icSize * 3) : (x - w.icSize) / 2) - w.icOff) + "px center")
} else {
r = e('
' + (p + 1) + "
")
}
if (!l) {
m.css(w.shProp, "0px 0px 2px rgba(0, 0, 0, .7)")
}
n.append(m, r)
}
if (!l) {
m.css("opacity", w.sett.button_opacity)
}
n.bg = m;
n.sh = o;
n.ih = u;
n.bt = q;
n.dot = l;
t.append(n);
n.bind("mouseenter mouseleave " + w.downEvent, {
self: w,
num: p,
dot: l,
btn: n
}, w.hoverButton);
return n
},
hoverButton: function (p) {
var l = p.data.self,
m = p.data.num,
k = p.data.dot,
o = p.data.btn,
n = k ? l.sett.dot_button_size + l.sett.dot_button_space : l.sett.button_size,
q;
if (p.type == "mouseenter") {
if (k) {
if (l.IE8) {
o.dot.css("left", l.icDotOff - l.icSize)
} else {
o.bg.css("background-position", l.icDotOff - l.icSize + "px center")
}
} else {
o.bg.css({
opacity: 1
})
}
} else {
if (p.type == "mouseleave") {
if (m != l.slide_sel) {
if (k) {
if (l.IE8) {
o.dot.css("left", l.icDotOff)
} else {
o.bg.css("background-position", l.icDotOff + "px center")
}
} else {
o.bg.css("opacity", l.sett.button_opacity)
}
}
} else {
p.stopImmediatePropagation();
if (m !== l.slide_sel) {
if (k) {
if (l.IE8) {
o.dot.css("left", l.icDotOff - (l.icSize * 2))
} else {
o.bg.css("background-position", (l.icDotOff - (l.icSize * 2)) + "px center")
}
} else {
q = ((n - l.icSize) / 2) - l.icOff - 1;
if (m == "next") {
q -= l.icSize
} else {
if (m == "pause" && l.autoPlaying) {
q -= l.icSize * 2
} else {
if (m == "pause" && !l.autoPlaying) {
q -= l.icSize * 3
}
}
}
l.resizeButton(o, l.buttonIE + (k ? 0 : 1), 1, n - 2, q, m == "next" && !l.numShow && l.touchDevice ? l.sett.button_opacity : 1);
if (o.bt) {
o.bt.css("top", -2)
}
}
l.currentDown = m
}
if (l.touchDevice && l.currentNav < 3) {
if (m == "next" && !l.numShow) {
l.checkDropDown(false, true)
} else {
if (m == "back" || m == "pause" && l.numShow) {
l.checkDropDown(false, false)
}
}
}
}
}
},
releaseButton: function (p) {
var k = p.data.self,
m = (k.currentNav == 2) ? k.sett.dot_button_size + k.sett.dot_button_space : k.sett.button_size,
n = k.checkTransitionStatus(),
o = (k.currentDown < 0 || k.slide_sel === k.currentDown) ? true : false;
if (k.currentDown == "next") {
if (n) {
k.slide_dir = -1;
k.changeSlide("next")
}
k.resizeButton(k.currentNav == 3 ? k.buttonNextA : k.buttonNext, k.buttonIE, 0, m, (((m - k.icSize) / 2) - k.icSize) - k.icOff, 1)
} else {
if (k.currentDown == "back") {
if (n) {
k.slide_dir = 1;
k.changeSlide("back")
}
k.resizeButton(k.currentNav == 3 ? k.buttonBackA : k.buttonBack, k.buttonIE, 0, m, ((m - k.icSize) / 2) - k.icOff, k.touchDevice ? k.sett.button_opacity : 1)
} else {
if (k.currentDown == "pause") {
if (k.autoPlaying) {
k.autoPlaying = false;
k.buttonPause.css("opacity", 1);
k.clockTimer.css("opacity", 0);
k.timerReset(true)
} else {
k.autoPlaying = true;
k.buttonPause.stop().animate({
opacity: 0
}, {
duration: 400,
easing: "easeOutQuart"
});
k.clockTimer.css("opacity", 1);
k.timerReset(true);
k.startDelayTimer()
}
k.resizeButton(k.buttonPause, k.buttonIE, 0, m, (((m - k.icSize) / 2) - (k.autoPlaying ? k.icSize * 2 : k.icSize * 3)) - k.icOff, k.touchDevice ? k.sett.button_opacity : 1)
} else {
if (k.currentDown > -1) {
if (n && k.slide_sel !== k.currentDown) {
if (k.currentDown > k.slide_sel) {
k.slide_dir = -1
} else {
if (k.currentDown < k.slide_sel) {
k.slide_dir = 1
}
}
k.changeSlide(k.currentDown)
}
if (k.currentNav !== 2) {
var l = k.currentNav === 1 ? k.slides[k.slide_sel].butt : k.slides[k.slide_sel].buttS;
if (l.ih) {
l.ih.height(m - 2)
}
if (l.bt) {
l.bt.css("top", -1)
}
}
}
}
}
}
if (k.currentDown !== "pause" && !o) {
if (k.sett.button_show_numbers && k.currentNav < 3) {
k.toggleButton(false)
} else {
k.timerReset(false)
}
}
k.currentDown = -1
},
resizeButton: function (n, o, m, l, q, k, p) {
n.bg.css({
opacity: k,
left: o,
top: o,
width: l,
height: l,
"background-position": q + "px center"
});
if (n.sh) {
n.sh.css({
left: m,
top: m,
width: l + 2,
height: l + 2
})
}
if (n.ih) {
n.ih.css({
height: l - 2,
"background-position": q + "px center"
})
}
},
toggleButton: function (k) {
var n = (this.currentNav == 2 ? this.sett.dot_button_size + this.sett.dot_button_space : this.sett.button_size);
for (var m = 0, l; m < this.slide_tot; m++) {
l = this.currentNav > 1 ? this.slides[m].buttS : this.slides[m].butt;
if (l) {
l.bg.css({
opacity: (m == this.slide_sel || this.currentNav == 2) ? 1 : this.sett.button_opacity,
left: this.buttonIE,
top: this.buttonIE,
width: n,
height: n
})
}
if (this.currentNav == 2) {
if (this.IE8) {
l.dot.css("left", this.icDotOff - (m == this.slide_sel ? this.icSize : 0))
} else {
l.bg.css("background-position", (this.icDotOff - (m == this.slide_sel ? this.icSize : 0)) + "px center")
}
}
}
this.timerReset(k);
l = this.currentNav > 1 ? this.slides[this.slide_sel].buttS : this.slides[this.slide_sel].butt;
if (this.buttonIE > 0 && l.sh) {
l.sh.css({
left: 0,
top: 0,
width: this.sett.button_size + 2,
height: this.sett.button_size + 2
})
}
},
checkDropDown: function (n, k) {
var l = n ? n.data.self : this;
var k = n ? n.data.up : k;
if (k && !l.numShow) {
for (var m = 0; m < l.slide_tot; m++) {
clearTimeout(l.buttonLeaveTimer);
clearTimeout(l.slides[m].timer);
l.showHideButton(m, true)
}
} else {
if (!k && l.numShow) {
l.buttonLeaveTimer = setTimeout(function () {
l.numShow = false;
for (var o = 0; o < l.slide_tot; o++) {
l.showHideButton(o, false)
}
}, n ? 300 : 0)
}
}
},
showHideButton: function (o, k) {
var m = this;
var n, p, r, q, l;
l = m.slides[o].butt;
clearTimeout(m.buttonLeaveTimer);
clearTimeout(m.slides[o].timer);
l.stop();
if (k) {
m.numShow = true;
m.slides[o].butt.show();
if (l.css("opacity") == 1) {
l.css("opacity", 0)
}
n = (m.slide_tot - o) * (100 / m.slide_tot);
p = 20 + ((m.slide_tot - o) * (300 / m.slide_tot));
r = 1;
q = 3
} else {
m.numShow = false;
n = o * (150 / m.slide_tot);
p = 20 + (o * (150 / m.slide_tot));
r = 0;
q = 8
}
m.slides[o].timer = setTimeout(function () {
l.animate({
opacity: r
}, {
duration: p,
step: function (s) {
m.showHideStep(s, q, l, k, o)
},
complete: function () {
if (!k) {
m.slides[o].butt.hide()
}
}
})
}, n)
},
showHideStep: function (m, r, n, q, o) {
var t = this,
v = t.currentNav == 2 ? t.sett.dot_button_size : t.sett.button_size,
k = t.currentNav == 2 ? t.sett.dot_button_space : t.sett.button_space,
l = parseInt((v / r) - (v / r * m), 10),
u = v - (l * 2);
n.bg.css({
left: l + t.buttonIE,
top: l + t.buttonIE,
width: u,
height: u
});
if (t.buttonIE > 0) {
n.sh.css({
left: l,
top: l,
width: u + 2,
height: u + 2
})
}
if (n.ih) {
n.bt.css("top", -l - 1);
n.ih.height(u - 2)
}
if (t.sett.button_numbers_horizontal && o == t.slide_tot - 1) {
if (t.clockTimer && t.navHolder) {
if (t.buttonNext) {
t.clockTimer.css("left", q ? -(v + k) * m : ((v + k) * (t.slide_tot - 1) * (1 - m)) + (v + k) * m)
}
if (t.buttonBack) {
t.buttonBack.css("left", parseInt(t.clockTimer.css("left")) - v - k - t.buttonIE)
}
t.buttonPause.css({
left: parseInt(t.clockTimer.css("left"), 10) - t.buttonIE,
top: parseInt(t.clockTimer.css("top"), 10) - t.buttonIE
})
} else {
if (t.buttonBack && t.buttonNext) {
t.buttonBack.css("left", (q ? -m * (v + k) : ((v + k) * (t.slide_tot - 1) * (1 - m)) + (v + k) * m) - t.buttonIE)
}
}
}
},
checkTransitionStatus: function () {
if (this.sett.slide_transition == "fade") {
if (this.slide_fin) {
return true
} else {
return false
}
} else {
if (this.slide_dir < 0 && this.slides[this.slide_sel].con.position().left < this.bW / 2) {
return true
} else {
if (this.slide_dir > 0 && this.slides[this.slide_sel].con.position().left > -this.bW / 2) {
return true
} else {
return false
}
}
}
},
startDelayTimer: function () {
var k = this;
if (k.clockTimer && k.currentNav == 1) {
// k.clockTimer.stop()
}
k.clockPlaying = true;
k.timerob.stop().css("left", 0).animate({
left: 720
}, {
easing: "linear",
duration: k.slides[k.slide_sel].delay,
queue: false,
step: function (m) {
if (k.sett.button_show_timer && k.currentNav == 1) {
if (k.canvasSupport) {
var l = k.drawTimer(k);
l.strokeStyle = k.sett.button_color;
l.beginPath();
l.arc(k.sett.button_size / 2, k.sett.button_size / 2, (k.sett.button_size / 2) - (k.sett.button_size / 10), (Math.PI * 2 * (m / 720)) - (Math.PI / 2), -Math.PI / 2, true);
l.stroke();
l.closePath()
} else {
var n = (parseInt(m / 720 * 39, 10) * -(24 * k.sett.button_size / 20)) - 2;
n < -(39 * (24 * k.sett.button_size / 20)) - 2 ? n = -2 : "";
k.clockTimer.children().eq(0).css("left", n)
}
}
},
complete: function () {
k.clockPlaying = false;
if (!k.slide_drg) {
k.slide_dir = -1;
k.changeSlide("next");
if (k.sett.button_show_numbers && k.currentNav < 3) {
k.toggleButton(false)
} else {
k.timerReset(false)
}
}
}
})
},
timerReset: function (l) {
var k = this;
if (k.clockPlaying) {
k.timerob.stop()
}
if (k.autoPlaying) {
if (k.clockTimer && k.currentNav == 1) {
if (l) {
k.timerHalt()
} else {
k.clockTimer.stop().fadeTo(300, 0.4, function (m) {
k.timerHalt()
})
}
}
}
},
timerHalt: function () {
var k = this;
if (k.canvasSupport) {
k.drawTimer(k)
} else {
k.clockTimer.css("filter", "none").children().eq(0).css("left", -2)
}
},
drawTimer: function (l) {
var k = l.clockContext;
k.clearRect(0, 0, l.sett.button_size, l.sett.button_size);
k.strokeStyle = "rgba(255, 255, 255, .4)";
k.beginPath();
k.arc(l.sett.button_size / 2, l.sett.button_size / 2, (l.sett.button_size / 2) - (l.sett.button_size / 10), 0, Math.PI * 2, true);
k.stroke();
k.closePath();
l.clockTimer.css("opacity", 1);
return k
},
transPrepare: function (n, m, o, l) {
var k = this;
k.zSort(n, m);
if (k.slides[o].txt) {
if (!k.dotButtonBlurBG) {
k.slides[o].cap.hide()
}
if (k.sett.caption_float_mode) {
k.slides[o].cap.css("left", k.slides[o].cx + (k.IE8 || k.dotButtonBlurBG ? 0 : (100 * -k.slide_dir)))
}
if (l && k.IE8) {
k.slides[o].txt.stop(true);
k.slides[o].cap.stop(true)
}
}
if (k.slide_pr1 !== "") {
if (k.slides[k.slide_pr1].txt) {
k.textOut()
}
}
k.slide_drg = false;
k.slide_fin = false;
k.slide_playing = true
},
transComplete: function (k, l) {
k.slide_fin = true;
if (k.slide_sta) {
k.slide_sta = false;
k.$cont.css("background-image", "none")
}
if (k.slide_sel == k.slide_sel && k.slides[l].txt && k.enableCaption && k.slide_sel == l) {
k.animateCaption()
}
if (k.autoPlaying) {
if (k.currentNav == 3) {
k.toggleButton(true)
}
k.startDelayTimer()
}
},
move: function () {
var k = this,
l = k.slide_sel;
k.transPrepare(2, 1, l, false);
k.slides[l].con.stop().css({
left: (k.slide_pr1 !== "" ? k.slides[k.slide_pr1].con.position().left + (-k.bW * k.slide_dir) : -k.bW * k.slide_dir),
display: "block"
}).animate({
left: 0
}, {
duration: k.sett.slide_transition_period + 100,
easing: "easeInOutQuart",
step: function (m) {
if (k.slide_pr1 !== "" && k.slide_pr1 !== l) {
k.slides[k.slide_pr1].con.stop().css("left", m + (k.bW * k.slide_dir))
}
if (k.slide_pr2 !== "" && k.slide_pr2 !== l && k.slide_pr2 !== k.slide_pr1) {
k.slides[k.slide_pr2].con.stop().css("left", m + (k.bW * 2 * k.slide_dir))
}
},
complete: function () {
k.transComplete(k, l)
}
})
},
fade: function () {
var k = this,
l = k.slide_sel;
k.transPrepare(2, 1, l, false);
k.slides[l].con.stop().css({
left: 0,
display: "none"
}).fadeIn({
duration: k.sett.slide_transition_period + 100,
easing: "easeInOutQuart",
complete: function () {
k.transComplete(k, l)
}
})
},
slideIn: function () {
var k = this,
m = this.slide_sel,
l = k.shProp;
k.transPrepare(2, 1, m, true);
k.slides[m].con.stop(true).css({
left: (k.bW + 30) * -k.slide_dir,
sh: "0px 0px 45px 0px #000000",
display: "block"
}).animate({
left: 0
}, {
duration: k.sett.slide_transition_period + 100,
easing: "easeInOutQuart",
complete: function () {
k.transComplete(k, m);
k.slides[m].con.css(k.shProp, "none")
}
})
},
slideOut: function () {
var k = this,
m = this.slide_sel,
l = k.shProp;
k.transPrepare(1, 2, m, false);
if (k.slide_pr1 !== "") {
k.slides[m].con.stop(true).css({
left: 0,
sh: "0px 0px 45px 0px #000000",
display: "block"
});
if (k.IE8 && k.slides[m].txt) {
k.slides[k.slide_pr1].txt.stop(true);
k.slides[k.slide_pr1].cap.stop(true)
}
k.slides[k.slide_pr1].con.stop(true).animate({
left: k.slide_dir * (k.bW + 30)
}, {
duration: k.sett.slide_transition_period,
easing: "easeInOutQuart",
complete: function () {
k.transComplete(k, m);
k.slides[m].con.css(k.shProp, "none")
}
})
} else {
k.slides[m].con.stop(true).css({
left: k.bW,
display: "block"
}).animate({
left: 0
}, {
duration: k.sett.slide_transition_period,
easing: "easeInOutQuart",
complete: function () {
k.slide_fin = true;
if (m == k.slide_sel && k.slides[m].txt && k.enableCaption) {
k.animateCaption()
}
if (k.autoPlaying) {
k.startDelayTimer()
}
}
})
}
},
resizeBanner: function (o) {
var l = this,
k = l.bW;
if (o.internal) {
l.bW = l.$cont.width();
l.bH = l.getHeight()
} else {
if (o.width) {
l.bW = k = o.width;
l.$cont.width(l.bW)
} else {
if (o.maxWidth) {
l.bW = k = l.maxW = o.maxWidth;
l.$cont.css("max-width", l.maxW + "px");
l.bW = l.$cont.width()
}
}
if (o.height) {
l.bH = l.oH = o.height;
l.ratio = k / l.oH
} else {
l.oH = k / l.ratio
}
l.bH = l.getHeight()
}
if (l.sett.responsive) {
l.enableCaption = !l.checkLimit(l.sett.responsive_limit_caption, false);
if (l.sett.responsive_limit_navigation !== "") {
if (l.checkLimit(l.sett.responsive_limit_navigation, false)) {
if (l.currentNav !== l.sett.responsive_limit_navigation_type) {
l.currentNav = l.sett.responsive_limit_navigation_type;
l.swapNavigation(true)
}
} else {
if (l.currentNav !== l.sett.navigation_type) {
l.currentNav = l.sett.navigation_type;
l.swapNavigation(true)
}
}
}
}
if (l.currentNav == 2) {
l.navHolderD.css("left", l.bW / 2)
} else {
if (l.currentNav == 3) {
l.buttonNextA.css({
left: l.bW - l.sett.button_size - l.sett.button_margin,
top: (l.bH - l.sett.button_size) / 2
});
l.buttonBackA.css({
left: l.sett.button_margin,
top: (l.bH - l.sett.button_size) / 2
})
}
}
for (var m = l.slide_sel, n = true; m < l.slide_tot; m++) {
if (n || m !== l.slide_sel) {
l.resizeImage(m);
if (l.slides[m].txt) {
l.updateText(m);
if (!l.enableCaption && !l.dotButtonBlurBG) {
l.slides[m].cap.hide()
} else {
l.slides[m].cap.show();
l.slides[m].txt.show()
}
}
if (n) {
m = (l.slide_sel == 0) ? 0 : -1;
n = false
} else {
l.slides[m].con.stop().css("left", l.bW * l.slide_dir)
}
}
}
}
};
e.fn.TransBanner = function (l) {
var k = arguments;
return this.each(function (o) {
var n = e(this);
var m = n.data("TransBanner");
if (!m) {
var p = new Date();
n.data("TransBanner", new i(n, l, p.getTime()))
} else {
if (m[k[0]]) {
m[l].apply(m, Array.prototype.slice.call(k, 1))
}
}
})
};
//Below is slightly customized version of StackBoxBlur to fit TransBanner
/*
StackBoxBlur - a fast almost Box Blur For Canvas
Version: 0.3
Author: Mario Klingemann
Contact: mario@quasimondo.com
Website: http://www.quasimondo.com/
Twitter: @quasimondo
In case you find this class useful - especially in commercial projects -
I am not totally unhappy for a small donation to my PayPal account
mario@quasimondo.de
Copyright (c) 2010 Mario Klingemann
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/
var j = [1, 171, 205, 293, 57, 373, 79, 137, 241, 27, 391, 357, 41, 19, 283, 265, 497, 469, 443, 421, 25, 191, 365, 349, 335, 161, 155, 149, 9, 278, 269, 261, 505, 245, 475, 231, 449, 437, 213, 415, 405, 395, 193, 377, 369, 361, 353, 345, 169, 331, 325, 319, 313, 307, 301, 37, 145, 285, 281, 69, 271, 267, 263, 259, 509, 501, 493, 243, 479, 118, 465, 459, 113, 446, 55, 435, 429, 423, 209, 413, 51, 403, 199, 393, 97, 3, 379, 375, 371, 367, 363, 359, 355, 351, 347, 43, 85, 337, 333, 165, 327, 323, 5, 317, 157, 311, 77, 305, 303, 75, 297, 294, 73, 289, 287, 71, 141, 279, 277, 275, 68, 135, 67, 133, 33, 262, 260, 129, 511, 507, 503, 499, 495, 491, 61, 121, 481, 477, 237, 235, 467, 232, 115, 457, 227, 451, 7, 445, 221, 439, 218, 433, 215, 427, 425, 211, 419, 417, 207, 411, 409, 203, 202, 401, 399, 396, 197, 49, 389, 387, 385, 383, 95, 189, 47, 187, 93, 185, 23, 183, 91, 181, 45, 179, 89, 177, 11, 175, 87, 173, 345, 343, 341, 339, 337, 21, 167, 83, 331, 329, 327, 163, 81, 323, 321, 319, 159, 79, 315, 313, 39, 155, 309, 307, 153, 305, 303, 151, 75, 299, 149, 37, 295, 147, 73, 291, 145, 289, 287, 143, 285, 71, 141, 281, 35, 279, 139, 69, 275, 137, 273, 17, 271, 135, 269, 267, 133, 265, 33, 263, 131, 261, 130, 259, 129, 257, 1];
var a = [0, 9, 10, 11, 9, 12, 10, 11, 12, 9, 13, 13, 10, 9, 13, 13, 14, 14, 14, 14, 10, 13, 14, 14, 14, 13, 13, 13, 9, 14, 14, 14, 15, 14, 15, 14, 15, 15, 14, 15, 15, 15, 14, 15, 15, 15, 15, 15, 14, 15, 15, 15, 15, 15, 15, 12, 14, 15, 15, 13, 15, 15, 15, 15, 16, 16, 16, 15, 16, 14, 16, 16, 14, 16, 13, 16, 16, 16, 15, 16, 13, 16, 15, 16, 14, 9, 16, 16, 16, 16, 16, 16, 16, 16, 16, 13, 14, 16, 16, 15, 16, 16, 10, 16, 15, 16, 14, 16, 16, 14, 16, 16, 14, 16, 16, 14, 15, 16, 16, 16, 14, 15, 14, 15, 13, 16, 16, 15, 17, 17, 17, 17, 17, 17, 14, 15, 17, 17, 16, 16, 17, 16, 15, 17, 16, 17, 11, 17, 16, 17, 16, 17, 16, 17, 17, 16, 17, 17, 16, 17, 17, 16, 16, 17, 17, 17, 16, 14, 17, 17, 17, 17, 15, 16, 14, 16, 15, 16, 13, 16, 15, 16, 14, 16, 15, 16, 12, 16, 15, 16, 17, 17, 17, 17, 17, 13, 16, 15, 17, 17, 17, 16, 15, 17, 17, 17, 16, 15, 17, 17, 14, 16, 17, 17, 16, 17, 17, 16, 15, 17, 16, 14, 17, 16, 15, 17, 16, 17, 17, 16, 17, 15, 16, 17, 14, 17, 16, 15, 17, 16, 17, 13, 17, 16, 17, 17, 16, 17, 14, 17, 16, 17, 16, 17, 16, 17, 9];
function g(v, y, r, s, w, x, A, C, B, t, E, z) {
var q = s;
var u = w;
B.style.width = q + "px";
B.style.height = u + "px";
B.width = q;
B.height = u;
var D = B.getContext("2d");
D.clearRect(0, 0, q, u);
D.scale(x, x);
D.drawImage(v, (-y + (A !== "" ? A : 0)) / x, (-r + (C !== "" ? C : 0)) / x);
if (isNaN(t) || t < 1) {
return
}
b(B, 0, 0, q, u, t, z);
D.restore()
}
function b(aC, aj, al, aI, aH, ab, X) {
if (isNaN(ab) || ab < 1) {
return
}
ab |= 0;
if (isNaN(X)) {
X = 1
}
X |= 0;
if (X > 3) {
X = 3
}
if (X < 1) {
X = 1
}
var p = aC.getContext("2d");
var Y;
try {
try {
Y = p.getImageData(aj, al, aI, aH)
} catch (x) {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
Y = p.getImageData(aj, al, aI, aH)
} catch (x) {
return
}
}
} catch (x) {}
var aD = Y.data;
var ad, ae, V, Z, av, ar, ay, aF, aE, am, ax, ak, ao, ag, ac, au, az, at, aq, ah;
var y = ab + ab + 1;
var af = aI << 2;
var aw = aI - 1;
var aa = aH - 1;
var aA = ab + 1;
var ai = new c();
var an = ai;
for (V = 1; V < y; V++) {
an = an.next = new c();
if (V == aA) {
var aB = an
}
}
an.next = ai;
var W = null;
var ap = j[ab];
var aG = a[ab];
while (X-- > 0) {
ay = ar = 0;
for (ae = aH; --ae > -1;) {
aF = aA * (az = aD[ar]);
aE = aA * (at = aD[ar + 1]);
am = aA * (aq = aD[ar + 2]);
an = ai;
for (V = aA; --V > -1;) {
an.r = az;
an.g = at;
an.b = aq;
an = an.next
}
for (V = 1; V < aA; V++) {
Z = ar + ((aw < V ? aw : V) << 2);
aF += (an.r = aD[Z++]);
aE += (an.g = aD[Z++]);
am += (an.b = aD[Z]);
an = an.next
}
W = ai;
for (ad = 0; ad < aI; ad++) {
aD[ar++] = (aF * ap) >>> aG;
aD[ar++] = (aE * ap) >>> aG;
aD[ar++] = (am * ap) >>> aG;
ar++;
Z = (ay + ((Z = ad + ab + 1) < aw ? Z : aw)) << 2;
aF -= W.r - (W.r = aD[Z++]);
aE -= W.g - (W.g = aD[Z++]);
am -= W.b - (W.b = aD[Z]);
W = W.next
}
ay += aI
}
for (ad = 0; ad < aI; ad++) {
ar = ad << 2;
aF = aA * (az = aD[ar++]);
aE = aA * (at = aD[ar++]);
am = aA * (aq = aD[ar]);
an = ai;
for (V = 0; V < aA; V++) {
an.r = az;
an.g = at;
an.b = aq;
an = an.next
}
av = aI;
for (V = 1; V <= ab; V++) {
ar = (av + ad) << 2;
aF += (an.r = aD[ar++]);
aE += (an.g = aD[ar++]);
am += (an.b = aD[ar]);
an = an.next;
if (V < aa) {
av += aI
}
}
ar = ad;
W = ai;
for (ae = 0; ae < aH; ae++) {
Z = ar << 2;
aD[Z] = (aF * ap) >>> aG;
aD[Z + 1] = (aE * ap) >>> aG;
aD[Z + 2] = (am * ap) >>> aG;
Z = (ad + (((Z = ae + aA) < aa ? Z : aa) * aI)) << 2;
aF -= W.r - (W.r = aD[Z]);
aE -= W.g - (W.g = aD[Z + 1]);
am -= W.b - (W.b = aD[Z + 2]);
W = W.next;
ar += aI
}
}
}
p.putImageData(Y, aj, al)
}
function c() {
this.r = 0;
this.g = 0;
this.b = 0;
this.a = 0;
this.next = null
}
})(jQuery, window, document);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
*
* jQuery $.getImageData Plugin 0.3
* http://www.maxnov.com/getimagedata
*
* Written by Max Novakovic (http://www.maxnov.com/)
* Date: Thu Jan 13 2011
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Includes jQuery JSONP Core Plugin 2.1.4
* http://code.google.com/p/jquery-jsonp/
* Copyright 2010, Julian Aubourg
* Released under the MIT License.
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Copyright 2011, Max Novakovic
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.maxnov.com/getimagedata/#license
*
*/
(function (c, g) {
function n() {}
function o(a) {
s = [a]
}
function e(a, j, k) {
return a && a.apply(j.context || j, k)
}
function h(a) {
function j(b) {
!l++ && g(function () {
p();
q && (t[d] = {
s: [b]
});
z && (b = z.apply(a, [b]));
e(a.success, a, [b, A]);
e(B, a, [a, A])
}, 0)
}
function k(b) {
!l++ && g(function () {
p();
q && b != C && (t[d] = b);
e(a.error, a, [a, b]);
e(B, a, [a, b])
}, 0)
}
a = c.extend({}, D, a);
var B = a.complete,
z = a.dataFilter,
E = a.callbackParameter,
F = a.callback,
R = a.cache,
q = a.pageCache,
G = a.charset,
d = a.url,
f = a.data,
H = a.timeout,
r, l = 0,
p = n;
a.abort = function () {
!l++ &&
p()
};
if (e(a.beforeSend, a, [a]) === false || l) return a;
d = d || u;
f = f ? typeof f == "string" ? f : c.param(f, a.traditional) : u;
d += f ? (/\?/.test(d) ? "&" : "?") + f : u;
E && (d += (/\?/.test(d) ? "&" : "?") + encodeURIComponent(E) + "=?");
!R && !q && (d += (/\?/.test(d) ? "&" : "?") + "_" + (new Date).getTime() + "=");
d = d.replace(/=\?(&|$)/, "=" + F + "$1");
q && (r = t[d]) ? r.s ? j(r.s[0]) : k(r) : g(function (b, m, v) {
if (!l) {
v = H > 0 && g(function () {
k(C)
}, H);
p = function () {
v && clearTimeout(v);
b[I] = b[w] = b[J] = b[x] = null;
i[K](b);
m && i[K](m)
};
window[F] = o;
b = c(L)[0];
b.id = M + S++;
if (G) b[T] =
G;
var O = function (y) {
(b[w] || n)();
y = s;
s = undefined;
y ? j(y[0]) : k(N)
};
if (P.msie) {
b.event = w;
b.htmlFor = b.id;
b[I] = function () {
/loaded|complete/.test(b.readyState) && O()
}
} else {
b[x] = b[J] = O;
P.opera ? (m = c(L)[0]).text = "jQuery('#" + b.id + "')[0]." + x + "()" : b[Q] = Q
}
b.src = d;
i.insertBefore(b, i.firstChild);
m && i.insertBefore(m, i.firstChild)
}
}, 0);
return a
}
var Q = "async",
T = "charset",
u = "",
N = "error",
M = "_jqjsp",
w = "onclick",
x = "on" + N,
J = "onload",
I = "onreadystatechange",
K = "removeChild",
L = "",
A = "success",
C = "timeout",
P = c.browser,
i = c("head")[0] || document.documentElement,
t = {},
S = 0,
s, D = {
callback: M,
url: location.href
};
h.setup = function (a) {
c.extend(D, a)
};
c.jsonp = h
})(jQuery, setTimeout);
(function (c) {
c.getImageData = function (a) {
var f = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
if (a.url) {
var g = location.protocol === "https:",
e = "";
e = a.server && f.test(a.server) && a.server.indexOf("https:") && (g || a.url.indexOf("https:")) ? a.server : "//img-to-json.appspot.com/?callback=?";
c.jsonp({
url: e,
data: {
url: escape(a.url)
},
dataType: "jsonp",
timeout: 1E4,
success: function (b) {
var d = new Image;
c(d).load(function () {
this.width = b.width;
this.height = b.height;
typeof a.success == typeof Function && a.success(this)
}).attr("src", b.data)
},
error: function (b, d) {
typeof a.error == typeof Function && a.error(b, d)
}
})
} else typeof a.error == typeof Function && a.error(null, "no_url")
}
})(jQuery);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
;;;!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.prolight.instance||(b=new t,b.init(),a.prolight.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition" in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e
(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('
'):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.prolight={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.prolight.instance&&a.prolight.instance.close()},registerModule:function(b,c){c.options&&(a.prolight.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.prolight=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("prolight"):d[0].prolight,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("prolight",c):d[0].prolight=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.prolight.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.prolight.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'
The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("/DependencyHandler.axd/f1d92886df7e8a97b700593a5c298547/1163/%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.prolight.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'
The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("/DependencyHandler.axd/f1d92886df7e8a97b700593a5c298547/1163/%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("/DependencyHandler.axd/f1d92886df7e8a97b700593a5c298547/1163/%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.prolight.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.prolight.registerModule(P,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.prolight.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'
',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('
![]()
').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.prolight.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart" in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()});var mfpAnimation=function(){$('.prolight_image').off().each(function(){$(this).prolight({type:'image',callbacks:{beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace('mfp-figure','mfp-figure mfp-with-anim');this.st.mainClass=this.st.el.attr('data-effect')?this.st.el.attr('data-effect'):"mfp-zoom-in";}},removalDelay:500,closeOnContentClick:true,midClick:true});});$("[class^='prolight_image_gallery']").off().each(function(){$("."+$(this).attr("class").split(" ")[0]).prolight({type:'image',gallery:{enabled:true,navigateByImgClick:true,preload:[0,1]},image:{tError:'could not be loaded.',titleSrc:function(item){return item.el.attr('title');}},callbacks:{beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace('mfp-figure','mfp-figure mfp-with-anim');this.st.mainClass=this.st.el.attr('data-effect')?this.st.el.attr('data-effect'):"mfp-zoom-in";},open:function(){$.prolight.instance.next=function(){var self=this;self.wrap.removeClass('mfp-ready');setTimeout(function(){$.prolight.proto.next.call(self);},120);};$.prolight.instance.prev=function(){var self=this;self.wrap.removeClass('mfp-ready');setTimeout(function(){$.prolight.proto.prev.call(self);},120);}},imageLoadComplete:function(){var self=this;setTimeout(function(){self.wrap.addClass('mfp-ready');},16);}},removalDelay:500,closeOnContentClick:true,midClick:true})});$('.prolight_image_group').off().each(function(index,element){$(this).prolight({delegate:'a',type:'image',tLoading:'Loading ...',gallery:{enabled:true,navigateByImgClick:true,preload:[1,1]},image:{tError:' could not be loaded.',titleSrc:function(item){return item.el.attr('title');}},callbacks:{beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace('mfp-figure','mfp-figure mfp-with-anim');this.st.mainClass=this.st.el.attr('data-effect')?this.st.el.attr('data-effect'):"mfp-zoom-in";},open:function(){$.prolight.instance.next=function(){var self=this;self.wrap.removeClass('mfp-ready');setTimeout(function(){$.prolight.proto.next.call(self);},120);};$.prolight.instance.prev=function(){var self=this;self.wrap.removeClass('mfp-ready');setTimeout(function(){$.prolight.proto.prev.call(self);},120);}},imageLoadComplete:function(){var self=this;setTimeout(function(){self.wrap.addClass('mfp-ready');},16);}},removalDelay:500,closeOnContentClick:true,midClick:true});});$('.prolight_youtube, .prolight_vimeo, .prolight_gmaps').prolight({disableOn:700,type:'iframe',preloader:false,fixedContentPos:false,callbacks:{beforeOpen:function(){this.st.mainClass=this.st.el.attr('data-effect')?this.st.el.attr('data-effect'):"mfp-zoom-in";}},removalDelay:500,closeOnContentClick:true,midClick:true});$("[class^='prolight_youtube_gallery'],[class^='prolight_vimeo_gallery'],[class^='prolight_gmaps_gallery']").off().each(function(){$("."+$(this).attr("class").split(" ")[0]).prolight({disableOn:700,type:'iframe',preloader:false,fixedContentPos:false,gallery:{enabled:true,preload:[0,1]},callbacks:{beforeOpen:function(){this.st.mainClass=this.st.el.attr('data-effect')?this.st.el.attr('data-effect'):"mfp-zoom-in";},open:function(){$.prolight.instance.next=function(){var self=this;self.wrap.removeClass('mfp-ready');setTimeout(function(){$.prolight.proto.next.call(self);setTimeout(function(){self.wrap.addClass('mfp-ready');},16);},120);};$.prolight.instance.prev=function(){var self=this;self.wrap.removeClass('mfp-ready');setTimeout(function(){$.prolight.proto.prev.call(self);setTimeout(function(){self.wrap.addClass('mfp-ready');},16);},120);}}},removalDelay:500,closeOnContentClick:true,midClick:true})});$('.prolight_youtube_group, .prolight_vimeo_group, .prolight_gmaps_group').off().each(function(index,element){$(this).prolight({delegate:'a',disableOn:700,type:'iframe',preloader:false,fixedContentPos:false,gallery:{enabled:true,preload:[0,1]},callbacks:{beforeOpen:function(){this.st.mainClass=this.st.el.attr('data-effect')?this.st.el.attr('data-effect'):"mfp-zoom-in";},open:function(){$.prolight.instance.next=function(){var self=this;self.wrap.removeClass('mfp-ready');setTimeout(function(){$.prolight.proto.next.call(self);setTimeout(function(){self.wrap.addClass('mfp-ready');},16);},120);};$.prolight.instance.prev=function(){var self=this;self.wrap.removeClass('mfp-ready');setTimeout(function(){$.prolight.proto.prev.call(self);setTimeout(function(){self.wrap.addClass('mfp-ready');},16);},120);}}},removalDelay:500,closeOnContentClick:true,midClick:true});});$(".prolight_Box").off().each(function(){$(this).prolight({type:'inline',fixedContentPos:false,fixedBgPos:true,overflowY:'auto',closeBtnInside:true,preloader:false,midClick:true,mainClass:'prolight_zoom_in',callbacks:{beforeOpen:function(){this.st.mainClass=this.st.el.attr('data-effect')?this.st.el.attr('data-effect'):"mfp-zoom-in";}},removalDelay:500,closeOnContentClick:false,midClick:true})});$(".prolight_ajax").off().each(function(){$(".prolight_ajax").prolight({type:'ajax',alignTop:true,overflowY:'scroll',callbacks:{beforeOpen:function(){this.st.mainClass=this.st.el.attr('data-effect')?this.st.el.attr('data-effect'):"mfp-zoom-in";}},removalDelay:500,closeOnContentClick:false,midClick:true});});$("[class*='prolight_ajax_group']").off().each(function(){$("."+$(this).attr("class").split(" ")[0]).prolight({type:'ajax',alignTop:true,overflowY:'scroll',gallery:{enabled:true,preload:[0,1]},callbacks:{beforeOpen:function(){this.st.mainClass=this.st.el.attr('data-effect')?this.st.el.attr('data-effect'):"mfp-zoom-in";},open:function(){$.prolight.instance.next=function(){var self=this;self.wrap.removeClass('mfp-ready');setTimeout(function(){$.prolight.proto.next.call(self);setTimeout(function(){self.wrap.addClass('mfp-ready');},16);},120);};$.prolight.instance.prev=function(){var self=this;self.wrap.removeClass('mfp-ready');setTimeout(function(){$.prolight.proto.prev.call(self);setTimeout(function(){self.wrap.addClass('mfp-ready');},16);},120);}}},removalDelay:500,closeOnContentClick:false,midClick:true})});}
$(document).ready(function(){setTimeout(function(){mfpAnimation();},300)});
;;;var DNN_COL_DELIMITER=String.fromCharCode(16);var DNN_ROW_DELIMITER=String.fromCharCode(15);var __dnn_m_bPageLoaded=false;if(window.addEventListener){window.addEventListener("load",__dnn_Page_OnLoad,false)}else{window.attachEvent("onload",__dnn_Page_OnLoad)}function __dnn_ClientAPIEnabled(){return typeof(dnn)!="undefined"&&typeof(dnn.dom)!="undefined"}function __dnn_Page_OnLoad(){if(__dnn_ClientAPIEnabled()){dnn.dom.attachEvent(window,"onscroll",__dnn_bodyscroll)}__dnn_m_bPageLoaded=true}function __dnn_KeyDown(iKeyCode,sFunc,e){if(e==null){e=window.event}if(e.keyCode==iKeyCode){eval(unescape(sFunc));return false}}function __dnn_bodyscroll(){var a=document.forms[0];if(__dnn_ClientAPIEnabled()&&__dnn_m_bPageLoaded&&typeof(a.ScrollTop)!="undefined"){a.ScrollTop.value=document.documentElement.scrollTop?document.documentElement.scrollTop:dnn.dom.getByTagName("body")[0].scrollTop}}function __dnn_setScrollTop(c){if(__dnn_ClientAPIEnabled()){if(c==null){c=document.forms[0].ScrollTop.value}var a=dnn.getVar("ScrollToControl");if(a!=null&&a.length>0){var b=dnn.dom.getById(a);if(b!=null){c=dnn.dom.positioning.elementTop(b);dnn.setVar("ScrollToControl","")}}if(document.getElementsByTagName("html")[0].style.overflow!="hidden"){window.scrollTo(0,c)}}}function __dnn_SetInitialFocus(a){var b=dnn.dom.getById(a);if(b!=null&&__dnn_CanReceiveFocus(b)){b.focus()}}function __dnn_CanReceiveFocus(b){if(b.style.display!="none"&&b.tabIndex>-1&&b.disabled==false&&b.style.visible!="hidden"){var a=b.parentElement;while(a!=null&&a.tagName!="BODY"){if(a.style.display=="none"||a.disabled||a.style.visible=="hidden"){return false}a=a.parentElement}return true}else{return false}}function __dnn_ContainerMaxMin_OnClick(i,b){var g=dnn.dom.getById(b);if(g!=null){var e=i.childNodes[0];var l=dnn.getVar("containerid_"+b);var j=dnn.getVar("cookieid_"+b);var d=e.src.toLowerCase().substr(e.src.lastIndexOf("/"));var a;var h;var k;if(dnn.getVar("min_icon_"+l)){k=dnn.getVar("min_icon_"+l)}else{k=dnn.getVar("min_icon")}if(dnn.getVar("max_icon_"+l)){h=dnn.getVar("max_icon_"+l)}else{h=dnn.getVar("max_icon")}a=h.toLowerCase().substr(h.lastIndexOf("/"));var c=5;var f=dnn.getVar("animf_"+b);if(f!=null){c=new Number(f)}if(d==a){e.src=k;dnn.dom.expandElement(g,c);e.title=dnn.getVar("min_text");if(j!=null){if(dnn.getVar("__dnn_"+l+":defminimized")=="true"){dnn.dom.setCookie(j,"true",365)}else{dnn.dom.deleteCookie(j)}}else{dnn.setVar("__dnn_"+l+"_Visible","true")}}else{e.src=h;dnn.dom.collapseElement(g,c);e.title=dnn.getVar("max_text");if(j!=null){if(dnn.getVar("__dnn_"+l+":defminimized")=="true"){dnn.dom.deleteCookie(j)}else{dnn.dom.setCookie(j,"false",365)}}else{dnn.setVar("__dnn_"+l+"_Visible","false")}}return true}return false}function __dnn_Help_OnClick(a){var b=dnn.dom.getById(a);if(b!=null){if(b.style.display=="none"){b.style.display=""}else{b.style.display="none"}return true}return false}function __dnn_SectionMaxMin(f,c){var d=dnn.dom.getById(c);if(d!=null){var g=f.getAttribute("max_icon");var e=f.getAttribute("min_icon");var a=f.getAttribute("userctr")!=null;var b;if(d.style.display=="none"){f.src=e;d.style.display="";if(a){b="True"}else{dnn.setVar(f.id+":exp",1)}}else{f.src=g;d.style.display="none";if(a){b="False"}else{dnn.setVar(f.id+":exp",0)}}if(a){dnncore.setUserProp(f.getAttribute("userctr"),f.getAttribute("userkey"),b,null)}return true}return false}function __dnn_enableDragDrop(){var b=dnn.getVar("__dnn_dragDrop").split(";");var e;for(var c=0;c
0){var a=dnn.dom.getById(e[0]);var d=dnn.dom.getById(e[1]);if(a!=null&&d!=null){a.setAttribute("moduleid",e[2]);dnn.dom.positioning.enableDragAndDrop(a,d,"__dnn_dragComplete()","__dnn_dragOver()")}}}}var __dnn_oPrevSelPane;var __dnn_oPrevSelModule;var __dnn_dragEventCount=0;function __dnn_dragOver(){__dnn_dragEventCount++;if(__dnn_dragEventCount%75!=0){return}var c=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);var a=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);if(__dnn_oPrevSelPane!=null){__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder}if(a!=null){__dnn_oPrevSelPane=a;a.pane.style.border="4px double "+DNN_HIGHLIGHT_COLOR;var e=__dnn_getPaneControlIndex(c,a);var b;var f;for(var d=0;dd&&a.controls[d].id!=c.id){b=a.controls[d]}if(e<=d&&a.controls[d].id!=c.id){f=a.controls[d];break}}if(__dnn_oPrevSelModule!=null){dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder}if(f!=null){__dnn_oPrevSelModule=f;dnn.dom.getNonTextNode(f.control).style.borderTop="5px groove "+DNN_HIGHLIGHT_COLOR}else{if(b!=null){__dnn_oPrevSelModule=b;dnn.dom.getNonTextNode(b.control).style.borderBottom="5px groove "+DNN_HIGHLIGHT_COLOR}}}}function __dnn_dragComplete(){var f=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);var d=f.getAttribute("moduleid");if(__dnn_oPrevSelPane!=null){__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder}if(__dnn_oPrevSelModule!=null){dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder}var b=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);var e;if(b==null){var a=__dnn_Panes();for(var c=0;c0){__dnn_m_aryPanes[__dnn_m_aryPanes.length]=new __dnn_Pane(dnn.dom.getById(b[c]),a[c])}}}var __dnn_m_aryPanes;var __dnn_m_aryModules;function __dnn_Panes(){if(__dnn_m_aryPanes==null){__dnn_m_aryPanes=new Array();__dnn_RefreshPanes()}return __dnn_m_aryPanes}function __dnn_Modules(a){if(__dnn_m_aryModules==null){__dnn_RefreshPanes()}return __dnn_m_aryModules[a]}function __dnn_getMostSelectedPane(g){var c=new dnn.dom.positioning.dims(g);var f=0;var a;var h;for(var e=0;e<__dnn_Panes().length;e++){var b=__dnn_Panes()[e];var d=new dnn.dom.positioning.dims(b.pane);a=dnn.dom.positioning.elementOverlapScore(d,c);if(a>f){f=a;h=b}}return h}function __dnn_getPaneControlIndex(f,b){if(b==null){return}var a=new dnn.dom.positioning.dims(f);var e;if(b.controls.length==0){return 0}for(var c=0;c0){e+=c+"~";this.controls[this.controls.length]=new __dnn_PaneControl(g,f);__dnn_m_aryModules[c]=g.id;f+=1}}}this.moduleOrder=e}function __dnn_PaneControl(a,b){this.control=a;this.id=a.id;this.index=b;this.origBorder=a.style.border}function __dnn_ShowModalPage(a){dnnModal.show(a,true,550,950,true,"")}function __dnncore(){this.GetUserVal=0;this.SetUserVal=1}__dnncore.prototype={getUserProp:function(b,c,a){this._doUserCallBack(dnncore.GetUserVal,b,c,null,new dnncore.UserPropArgs(b,c,a))},setUserProp:function(c,d,a,b){this._doUserCallBack(dnncore.SetUserVal,c,d,a,new dnncore.UserPropArgs(c,d,b))},_doUserCallBack:function(c,d,e,a,b){if(dnn&&dnn.xmlhttp){var f=c+COL_DELIMITER+d+COL_DELIMITER+e+COL_DELIMITER+a;dnn.xmlhttp.doCallBack("__Page",f,dnncore._callBackSuccess,b,dnncore._callBackFail,null,true,null,0)}else{alert("Client Personalization not enabled")}},_callBackSuccess:function(a,b,c){if(b.pFunc){b.pFunc(b.namingCtr,b.key,a)}},_callBackFail:function(a,b){window.status=a}};__dnncore.prototype.UserPropArgs=function(b,c,a){this.namingCtr=b;this.key=c;this.pFunc=a};var dnncore=new __dnncore();
;;;(function($){if(typeof dnn=='undefined')window.dnn={};if(typeof dnn.searchSkinObject=='undefined'){dnn.searchSkinObject=function(options){var settings={delayTriggerAutoSearch:100,minCharRequiredTriggerAutoSearch:2,searchType:'S',enableWildSearch:true,cultureCode:'en-US'};this.settings=$.extend({},settings,options);};dnn.searchSkinObject.prototype={_ignoreKeyCodes:[9,13,16,17,18,19,20,27,33,34,35,36,37,38,39,40,45],init:function(){var throttle=null,self=this;var makeUrl=function(val,service){var url=service?service.getServiceRoot('internalservices')+'searchService/preview':null;if(!url)return null;var params={};params['keywords']=val.replace(/^\s+|\s+$/g,'');if(!self.settings.enableWildSearch)params["forceWild"]="0";params['culture']=self.settings.cultureCode;if(self.settings.portalId>=0)
params['portal']=self.settings.portalId;var urlAppend=[];$.each(params,function(index,value){urlAppend.push([index,encodeURIComponent(value)].join('='));});if(urlAppend.length){url+=url.indexOf('?')===-1?'?':'&';url+=urlAppend.join('&');}
return url;};var generatePreviewTemplate=function(data,$wrap){var preview=$('.searchSkinObjectPreview',$wrap);if(preview.length)
preview.remove();var markup='';if(data&&data.length){for(var i=0;i'+groupTitle+'';for(var j=0;j';if(item.Attributes.Avatar){markup+='
';}
markup+=''+itemTitle+'';if(itemDescription){markup+=''+itemDescription+'
';}
if(itemSnippet){markup+=''+itemSnippet+'
';}
markup+='';}}}
var moreResults=$wrap.attr('data-moreresults');markup+='- '+moreResults+'
';markup+='
';}
else{var noResult=$wrap.attr('data-noresult');markup+=''+noResult+'';}
$wrap.append(markup);preview=$('.searchSkinObjectPreview',$wrap);$('li',preview).on('click',function(){var navigateUrl=$(this).attr('data-url');if(navigateUrl){window.location.href=navigateUrl;}
return false;});$('.searchSkinObjectPreview_more',$wrap).on('click',function(){var $searchButton=$wrap.next();if(!$searchButton.length){$searchButton=$wrap.parent().next();}
$searchButton[0].click();return false;});};$('.searchInputContainer a.dnnSearchBoxClearText').on('click',function(){var $this=$(this);var $wrap=$this.parent();$('.searchInputContainer input').val('').focus();$this.removeClass('dnnShow');$('.searchSkinObjectPreview',$wrap).remove();return false;});$('.searchInputContainer').next().on('click',function(){var $this=$(this);var inputBox=$this.prev().find('input[type="text"]');var val=inputBox.val();if(val.length){return true;}
return false;});$('.searchInputContainer input').on('keyup',function(e){var k=e.keyCode||e.witch;if($.inArray(k,self._ignoreKeyCodes)>-1)return;var $this=$(this);var $wrap=$this.parent();var val=$this.val();var container=$this.parent('.searchInputContainer');if(!val){$('a.dnnSearchBoxClearText',$wrap).removeClass('dnnShow');$('.searchSkinObjectPreview',$wrap).remove();}else{$('a.dnnSearchBoxClearText',$wrap).addClass('dnnShow');if(self.settings.searchType!='S'||val.lengthn)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel" in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent" in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});(function($){$.fn.dnngomegamenu=function(m){m=$.extend({slide_speed:200,delay_show:150,delay_disappear:500,megamenuwidth:"box",WidthBoxClassName:".dnn_layout",popUp:"vertical",direction:"ltr"},m||{});var rtl=m.direction=="rtl"?true:false;return this.each(function(index){var me=$(this),primary=me.find(".primary_structure > li"),slide=".dnngo_menuslide",subs=".dnngo_submenu",subbox="dnngo_boxslide",hover="menu_hover",slidedefault="dnngo_slide_menu",interval,interval2;if(rtl){me.addClass("rtl")}
if(!!('ontouchstart' in window)){primary.children("a").on('click',function(){if($(this).siblings("div").css("display")=="none"){return false;}})}
primary.mouseenter(function(){var e=$(this),slides=e.find(slide);clearTimeout(interval);interval2=setInterval(function(){if(slides.css('display')=='none'){e.addClass("menu_hover");slides.attr("style"," ");var space=20;var winwidth=$(window).width()-space,width=slides.width();var c_width=slides.data("width");c_width==0?c_width=false:"";var posBox=$(m.WidthBoxClassName).last();if(m.popUp=="vertical"){var left=e.offset().left;if(slides.find("ul").hasClass(slidedefault)){if(winwidth-leftleft-posleft){cur=left-posleft;}
if(left+c_width-ju>posBox.innerWidth()+posleft){cur=left+c_width-(posBox.innerWidth()+posleft)}
slides.css({"width":c_width,"left":-cur})}}else{if(m.megamenuwidth=="full"){if(slides.find("div").hasClass(subbox)){slides.css({"width":winwidth,"max-width":winwidth,"left":-left+space/2})}}
if(m.megamenuwidth=="box"){if(slides.find("div").hasClass(subbox)){slides.css({"width":posBox.innerWidth(),"max-width":winwidth,"left":posBox.offset().left-left-(Math.min(posBox.innerWidth(),winwidth)-posBox.innerWidth())/2})}}}}
if(m.popUp=="level"){if(slides.find("ul").hasClass(slidedefault)){if(rtl){slides.css({"right":"100%","left":"auto"});}else{slides.css("left","100%");}}
if(m.megamenuwidth=="box"){var subwidth=$(m.WidthBoxClassName).last().innerWidth();}else{var subwidth=$(window).width();if(c_width){subwidth=Math.min($(window).width(),c_width);}}
if(slides.find("div").hasClass(subbox)){if(rtl){slides.css({"width":subwidth,"max-width":slides.parent().offset().left-space/2,"right":"100%","left":"auto"})}else{slides.css({"width":subwidth,"max-width":winwidth-slides.parent().offset().left-slides.parent().innerWidth()+space/2,"left":"100%"})}}
var top=e.offset().top-$(window).scrollTop(),winheight=$(window).height(),height=slides.height();if(winheightm.delay_disappear?m.slide_speed:m.delay_disappear);})
primary.find("li").mouseenter(function(){var subbox=$(this).find("> "+subs);if(subbox.css('display')=='none'){$(this).addClass(hover);subbox.fadeIn(m.slide_speed);sub_l=$(this).offset().left;sub_left=sub_l+$(this).width(),winwidth=$(window).width(),sub_width=subbox.width();if(rtl){if(sub_l$(window).height()){var s_top=$(window).scrollTop(),h=e.innerHeight(),w_h=$(window).height(),e_top=0,p_height=e.parent().innerHeight(),n_w=false,min_top,max_top,rollerEv;e.addClass("roller");var up=$("");var down=$("")
up.css({"width":e.width(),})
down.css({"width":e.width(),})
up.insertBefore(e.children("ul,div.dnngo_boxslide")).hide();down.insertAfter(e.children("ul,div.dnngo_boxslide"));if(e.hasClass("dnngo_submenu")||m.popUp=="level"){p_height=0;}
if(h=min_top){e.css("top",min_top)
clearInterval(rollerEv);up.hide();}else{e.css("top",e_top)}}
function down_d(){e_top=parseInt(e.css("top"))-30;if(e_topmin_top){if(event.deltaY<0){e.stop().css({"top":Math.max(e_top,min_top)})
up.show();}
if(event.deltaY>0&&parseInt(e.css("top"))<=min_top){e.stop().css({"top":min_top});down.show();}
up.hide();}else if(e_top<=max_top){e.stop().css({"top":max_top})
down.hide();if(event.deltaY<0&&parseInt(e.css("top"))>=min_top){up.show();}}else{e.stop().css({"top":e_top})
up.show();down.show();}}else{if(event.deltaY<0){e.stop().css({"top":Math.max(e_top,max_top)})
if(e_top<=max_top){down.hide();}}}
event.stopPropagation();event.preventDefault();});}}
function removeroller(e,defaultTop){if(e.hasClass("roller")){e.css("top",defaultTop);e.removeClass("roller");e.find(".roller-up , .roller-down").remove();e.unbind('mousewheel')}}
me.find(".dnngo_menuslide,.dnngo_submenu").each(function(index,element){var e=$(this),defaultTop=e.css("top"),rollerinterval;e.on("mouseenter",function(){if(!e.hasClass("roller")){if(m.popUp=="level"){defaultTop=e.css("top");}
roller(e,defaultTop)}
clearTimeout(rollerinterval);})
if(e.hasClass("dnngo_menuslide")){e.on("mouseleave",function(){rollerinterval=setTimeout(function(){removeroller(e,defaultTop)},m.slide_speed>m.delay_disappear?m.slide_speed+m.slide_speed:m.delay_disappear+m.slide_speed);})}
if(e.hasClass("dnngo_submenu")){e.parent("li").on("mouseleave",function(){var te=$(this).children(".dnngo_submenu");rollerinterval=setTimeout(function(){removeroller(te,defaultTop)},m.slide_speed>m.delay_disappear?m.slide_speed+m.slide_speed:m.delay_disappear+m.slide_speed);})}});});};})(jQuery);(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY)) »'].join('')),over=function(){var $$=$(this),menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showmobile_menuUl().siblings().hidemobile_menuUl();},out=function(){var $$=$(this),menu=getMenu($$),o=sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hidemobile_menuUl();if(o.$path.length&&$$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}},o.delay);},getMenu=function($menu){var menu=$menu.parents(['ul.',c.menuClass,':first'].join(''))[0];sf.op=sf.o[menu.serial];return menu;},addArrow=function($a){$a.addClass(c.anchorClass).append($arrow.clone());};return this.each(function(){var s=this.serial=sf.o.length;var o=$.extend({},sf.defaults,op);o.$path=$('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass);});sf.o[s]=sf.op=o;$('li:has(ul)',this)[($.fn.hoverIntent&&!o.disableHI)?'hoverIntent':'hover'](over,out).each(function(){if(o.autoArrows)addArrow($('>a:first-child',this));}).not('.'+c.bcClass).hidemobile_menuUl();var $a=$('a',this);$a.each(function(i){var $li=$a.eq(i).parents('li');});o.onInit.call(this);}).each(function(){var menuClasses=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7))menuClasses.push(c.shadowClass);$(this).addClass(menuClasses.join(' '));});};var sf=$.fn.mobile_menu;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=undefined)
this.toggleClass(sf.c.shadowClass+'-off');};sf.c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow'};sf.defaults={hoverClass:'sfHover',pathClass:'overideThisToUse',pathLevels:2,delay:1000,animation:{height:'show'},speed:'normal',autoArrows:false,dropShadows:false,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hidemobile_menuUl:function(){var o=sf.op,not=(o.retainPath===true)?o.$path:'';o.retainPath=false;var $ul=$(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide();o.onHide.call($ul);return this;},showmobile_menuUl:function(){var o=sf.op,sh=sf.c.shadowClass+'-off',$ul=this.not('.accorChild').addClass(o.hoverClass).find('>ul:hidden');sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){sf.IE7fix.call($ul);o.onShow.call($ul);});return this;}});})(jQuery);jQuery(function($){if($('.sf-menu').length!=0){$('.sf-menu').mobile_menu()}});(function($){$.fn.phototabs=function(options){var el=$(this);el.each(function(){var m={'switchtime':2000,'animationtime':1000,'startpic':0,'autoPaly':true,'showArrow':true};if(el.find("li").length==0){return false};if(options){$.extend(m,options)};var l=1;var pic_tab=function(n){var current=parseInt(m['startpic']+n);if(current>el.find("li").length-1){current=0}else if(current<0){current=el.find("li").length-1};el.find("li").css("opacity","0").stop(true);el.addClass("preloader");l++;$('
').load(function(){if(l==$(this).attr("alt")){el.removeClass("preloader");el.find("li").eq(current).addClass("selected").css("display","block").animate({"opacity":1},m["animationtime"])};$(this).remove()});if(current!=m['startpic']){el.find("li").eq(m['startpic']).css("opacity",1).animate({"opacity":0},m["animationtime"]).removeClass("selected")};m['startpic']=current};if(el.find("li").length>1){if(m["autoPaly"]){var pic_play=setInterval(function(){pic_tab(1)},m['switchtime'])};if(m["showArrow"]){el.append("");el.find(".next_page").click(function(){clearTimeout(pic_play);pic_tab(1);if(m["autoPaly"]){pic_play=setInterval(function(){pic_tab(1)},m['switchtime'])}});el.find(".last_page").click(function(){clearTimeout(pic_play);pic_tab(-1);if(m["autoPaly"]){pic_play=setInterval(function(){pic_tab(1)},m['switchtime'])}})}}})}})(jQuery);!function(e){function n(){e[t].glbl||(l={$wndw:e(window),$html:e("html"),$body:e("body")},a={},i={},r={},e.each([a,i,r],function(e,n){n.add=function(e){e=e.split(" ");for(var t=0,s=e.length;s>t;t++)n[e[t]]=n.mm(e[t])}}),a.mm=function(e){return"mm-"+e},a.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),a.umm=function(e){return"mm-"==e.slice(0,3)&&(e=e.slice(3)),e},i.mm=function(e){return"mm-"+e},i.add("parent sub"),r.mm=function(e){return e+".mm"},r.add("transitionend webkitTransitionEnd mousedown mouseup touchstart touchmove touchend click keydown"),e[t]._c=a,e[t]._d=i,e[t]._e=r,e[t].glbl=l)}var t="mmenu",s="5.5.3";if(!(e[t]&&e[t].version>s)){e[t]=function(e,n,t){this.$menu=e,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=n,this.conf=t,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var s=this.$pnls.children();return this._initAddons(),this.init(s),"function"==typeof this.___debug&&this.___debug(),this},e[t].version=s,e[t].addons={},e[t].uniqueId=0,e[t].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},e[t].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},e[t].prototype={init:function(e){e=e.not("."+a.nopanel),e=this._initPanels(e),this.trigger("init",e),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(e){this.$menu.find("."+a.listview).children().removeClass(a.selected),e.addClass(a.selected),this.trigger("setSelected",e)},openPanel:function(n){var s=n.parent();if(s.hasClass(a.vertical)){var i=s.parents("."+a.subopened);if(i.length)return this.openPanel(i.first());s.addClass(a.opened)}else{if(n.hasClass(a.current))return;var r=this.$pnls.children("."+a.panel),l=r.filter("."+a.current);r.removeClass(a.highest).removeClass(a.current).not(n).not(l).not("."+a.vertical).addClass(a.hidden),e[t].support.csstransitions||l.addClass(a.hidden),n.hasClass(a.opened)?n.nextAll("."+a.opened).addClass(a.highest).removeClass(a.opened).removeClass(a.subopened):(n.addClass(a.highest),l.addClass(a.subopened)),n.removeClass(a.hidden).addClass(a.current),setTimeout(function(){n.removeClass(a.subopened).addClass(a.opened)},this.conf.openingInterval)}this.trigger("openPanel",n)},closePanel:function(e){var n=e.parent();n.hasClass(a.vertical)&&(n.removeClass(a.opened),this.trigger("closePanel",e))},closeAllPanels:function(){this.$menu.find("."+a.listview).children().removeClass(a.selected).filter("."+a.vertical).removeClass(a.opened);var e=this.$pnls.children("."+a.panel),n=e.first();this.$pnls.children("."+a.panel).not(n).removeClass(a.subopened).removeClass(a.opened).removeClass(a.current).removeClass(a.highest).addClass(a.hidden),this.openPanel(n)},togglePanel:function(e){var n=e.parent();n.hasClass(a.vertical)&&this[n.hasClass(a.opened)?"closePanel":"openPanel"](e)},getInstance:function(){return this},bind:function(e,n){this.cbck[e]=this.cbck[e]||[],this.cbck[e].push(n)},trigger:function(){var e=this,n=Array.prototype.slice.call(arguments),t=n.shift();if(this.cbck[t])for(var s=0,a=this.cbck[t].length;a>s;s++)this.cbck[t][s].apply(e,n)},_initMenu:function(){this.opts.offCanvas&&this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){e(this).attr("id",a.mm(e(this).attr("id")))})),this.$menu.contents().each(function(){3==e(this)[0].nodeType&&e(this).remove()}),this.$pnls=e('').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(a.wrapper);var n=[a.menu];this.opts.slidingSubmenus||n.push(a.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&n.push(this.opts.extensions),this.$menu.addClass(n.join(" "))},_initPanels:function(n){var t=this,s=this.__findAddBack(n,"ul, ol");this.__refactorClass(s,this.conf.classNames.inset,"inset").addClass(a.nolistview+" "+a.nopanel),s.not("."+a.nolistview).addClass(a.listview);var r=this.__findAddBack(n,"."+a.listview).children();this.__refactorClass(r,this.conf.classNames.selected,"selected"),this.__refactorClass(r,this.conf.classNames.divider,"divider"),this.__refactorClass(r,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(n,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var l=e(),d=n.add(n.find("."+a.panel)).add(this.__findAddBack(n,"."+a.listview).children().children(this.conf.panelNodetype)).not("."+a.nopanel);this.__refactorClass(d,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||d.addClass(a.vertical),d.each(function(){var n=e(this),s=n;n.is("ul, ol")?(n.wrap(''),s=n.parent()):s.addClass(a.panel);var i=n.attr("id");n.removeAttr("id"),s.attr("id",i||t.__getUniqueId()),n.hasClass(a.vertical)&&(n.removeClass(t.conf.classNames.vertical),s.add(s.parent()).addClass(a.vertical)),l=l.add(s)});var o=e("."+a.panel,this.$menu);l.each(function(){var n=e(this),s=n.parent(),r=s.children("a, span").first();if(s.is("."+a.panels)||(s.data(i.sub,n),n.data(i.parent,s)),!s.children("."+a.next).length&&s.parent().is("."+a.listview)){var l=n.attr("id"),d=e('').insertBefore(r);r.is("span")&&d.addClass(a.fullsubopen)}if(!n.children("."+a.navbar).length&&!s.hasClass(a.vertical)){if(s.parent().is("."+a.listview))var s=s.closest("."+a.panel);else var r=s.closest("."+a.panel).find('a[href="#'+n.attr("id")+'"]').first(),s=r.closest("."+a.panel);var o=e('');if(s.length){var l=s.attr("id");switch(t.opts.navbar.titleLink){case"anchor":_url=r.attr("href");break;case"panel":case"parent":_url="#"+l;break;case"none":default:_url=!1}o.append('').append(e('").text(r.text())).prependTo(n),t.opts.navbar.add&&n.addClass(a.hasnavbar)}else t.opts.navbar.title&&(o.append(''+t.opts.navbar.title+"").prependTo(n),t.opts.navbar.add&&n.addClass(a.hasnavbar))}});var c=this.__findAddBack(n,"."+a.listview).children("."+a.selected).removeClass(a.selected).last().addClass(a.selected);c.add(c.parentsUntil("."+a.menu,"li")).filter("."+a.vertical).addClass(a.opened).end().not("."+a.vertical).each(function(){e(this).parentsUntil("."+a.menu,"."+a.panel).not("."+a.vertical).first().addClass(a.opened).parentsUntil("."+a.menu,"."+a.panel).not("."+a.vertical).first().addClass(a.opened).addClass(a.subopened)}),c.children("."+a.panel).not("."+a.vertical).addClass(a.opened).parentsUntil("."+a.menu,"."+a.panel).not("."+a.vertical).first().addClass(a.opened).addClass(a.subopened);var h=o.filter("."+a.opened);return h.length||(h=l.first()),h.addClass(a.opened).last().addClass(a.current),l.not("."+a.vertical).not(h.last()).addClass(a.hidden).end().appendTo(this.$pnls),l},_initAnchors:function(){var n=this;l.$body.on(r.click+"-oncanvas","a[href]",function(s){var i=e(this),r=!1,l=n.$menu.find(i).length;for(var d in e[t].addons)if(r=e[t].addons[d].clickAnchor.call(n,i,l))break;if(!r&&l){var o=i.attr("href");if(o.length>1&&"#"==o.slice(0,1))try{var c=e(o,n.$menu);c.is("."+a.panel)&&(r=!0,n[i.parent().hasClass(a.vertical)?"togglePanel":"openPanel"](c))}catch(h){}}if(r&&s.preventDefault(),!r&&l&&i.is("."+a.listview+" > li > a")&&!i.is('[rel="external"]')&&!i.is('[target="_blank"]')){n.__valueOrFn(n.opts.onClick.setSelected,i)&&n.setSelected(e(s.target).parent());var p=n.__valueOrFn(n.opts.onClick.preventDefault,i,"#"==o.slice(0,1));p&&s.preventDefault(),n.__valueOrFn(n.opts.onClick.close,i,p)&&n.close()}})},_initAddons:function(){for(var n in e[t].addons)e[t].addons[n].add.call(this),e[t].addons[n].add=function(){};for(var n in e[t].addons)e[t].addons[n].setup.call(this)},__api:function(){var n=this,t={};return e.each(this._api,function(){var e=this;t[e]=function(){var s=n[e].apply(n,arguments);return"undefined"==typeof s?t:s}}),t},__valueOrFn:function(e,n,t){return"function"==typeof e?e.call(n[0]):"undefined"==typeof e&&"undefined"!=typeof t?t:e},__refactorClass:function(e,n,t){return e.filter("."+n).removeClass(n).addClass(a[t])},__findAddBack:function(e,n){return e.find(n).add(e.filter(n))},__filterListItems:function(e){return e.not("."+a.divider).not("."+a.hidden)},__transitionend:function(e,n,t){var s=!1,a=function(){s||n.call(e[0]),s=!0};e.one(r.transitionend,a),e.one(r.webkitTransitionEnd,a),setTimeout(a,1.1*t)},__getUniqueId:function(){return a.mm(e[t].uniqueId++)}},e.fn[t]=function(s,a){return n(),s=e.extend(!0,{},e[t].defaults,s),a=e.extend(!0,{},e[t].configuration,a),this.each(function(){var n=e(this);if(!n.data(t)){var i=new e[t](n,s,a);n.data(t,i.__api())}})},e[t].support={touch:"ontouchstart" in window||navigator.msMaxTouchPoints,csstransitions:function(){if("undefined"!=typeof Modernizr&&"undefined"!=typeof Modernizr.csstransitions)return Modernizr.csstransitions;var e=document.body||document.documentElement,n=e.style,t="transition";if("string"==typeof n[t])return!0;var s=["Moz","webkit","Webkit","Khtml","O","ms"];t=t.charAt(0).toUpperCase()+t.substr(1);for(var a=0;a "+i.pageNodetype),a.$allMenus=(a.$allMenus||e()).add(this.$menu),this.vars.opened=!1;var r=[n.offcanvas];"left"!=s.position&&r.push(n.mm(s.position)),"back"!=s.zposition&&r.push(n.mm(s.zposition)),this.$menu.addClass(r.join(" ")).parent().removeClass(n.wrapper),this.setPage(a.$page),this._initBlocker(),this["_initWindow_"+o](),this.$menu[i.menuInjectMethod+"To"](i.menuWrapperSelector)}},add:function(){n=e[t]._c,s=e[t]._d,i=e[t]._e,n.add("offcanvas slideout blocking modal background opening blocker page"),s.add("style"),i.add("resize")},clickAnchor:function(e){if(!this.opts[o])return!1;var t=this.$menu.attr("id");if(t&&t.length&&(this.conf.clone&&(t=n.umm(t)),e.is('[href="#'+t+'"]')))return this.open(),!0;if(a.$page){var t=a.$page.first().attr("id");return t&&t.length&&e.is('[href="#'+t+'"]')?(this.close(),!0):!1}}},e[t].defaults[o]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},e[t].configuration[o]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},e[t].prototype.open=function(){if(!this.vars.opened){var e=this;this._openSetup(),setTimeout(function(){e._openFinish()},this.conf.openingInterval),this.trigger("open")}},e[t].prototype._openSetup=function(){var t=this,r=this.opts[o];this.closeAllOthers(),a.$page.each(function(){e(this).data(s.style,e(this).attr("style")||"")}),a.$wndw.trigger(i.resize+"-"+o,[!0]);var p=[n.opened];r.blockUI&&p.push(n.blocking),"modal"==r.blockUI&&p.push(n.modal),r.moveBackground&&p.push(n.background),"left"!=r.position&&p.push(n.mm(this.opts[o].position)),"back"!=r.zposition&&p.push(n.mm(this.opts[o].zposition)),this.opts.extensions&&p.push(this.opts.extensions),a.$html.addClass(p.join(" ")),setTimeout(function(){t.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(n.current+" "+n.opened)},e[t].prototype._openFinish=function(){var e=this;this.__transitionend(a.$page.first(),function(){e.trigger("opened")},this.conf.transitionDuration),a.$html.addClass(n.opening),this.trigger("opening")},e[t].prototype.close=function(){if(this.vars.opened){var t=this;this.__transitionend(a.$page.first(),function(){t.$menu.removeClass(n.current).removeClass(n.opened),a.$html.removeClass(n.opened).removeClass(n.blocking).removeClass(n.modal).removeClass(n.background).removeClass(n.mm(t.opts[o].position)).removeClass(n.mm(t.opts[o].zposition)),t.opts.extensions&&a.$html.removeClass(t.opts.extensions),a.$page.each(function(){e(this).attr("style",e(this).data(s.style))}),t.vars.opened=!1,t.trigger("closed")},this.conf.transitionDuration),a.$html.removeClass(n.opening),this.trigger("close"),this.trigger("closing")}},e[t].prototype.closeAllOthers=function(){a.$allMenus.not(this.$menu).each(function(){var o=e(this).data(t);o&&o.close&&o.close()})},e[t].prototype.setPage=function(t){var s=this,i=this.conf[o];t&&t.length||(t=a.$body.find("form"),i.noPageSelector.length&&(t=t.not(i.noPageSelector.join(", "))),t.length>1&&i.wrapPageIfNeeded&&(t=t.wrapAll("<"+this.conf[o].pageNodetype+" />").parent())),t.each(function(){e(this).attr("id",e(this).attr("id")||s.__getUniqueId())}),t.addClass(n.page+" "+n.slideout),a.$page=t,this.trigger("setPage",t)},e[t].prototype["_initWindow_"+o]=function(){a.$wndw.off(i.keydown+"-"+o).on(i.keydown+"-"+o,function(e){return a.$html.hasClass(n.opened)&&9==e.keyCode?(e.preventDefault(),!1):void 0});var e=0;a.$wndw.off(i.resize+"-"+o).on(i.resize+"-"+o,function(t,o){if(1==a.$page.length&&(o||a.$html.hasClass(n.opened))){var s=a.$wndw.height();(o||s!=e)&&(e=s,a.$page.css("minHeight",s))}})},e[t].prototype._initBlocker=function(){var t=this;this.opts[o].blockUI&&(a.$blck||(a.$blck=e('')),a.$blck.appendTo(a.$body).off(i.touchstart+"-"+o+" "+i.touchmove+"-"+o).on(i.touchstart+"-"+o+" "+i.touchmove+"-"+o,function(e){e.preventDefault(),e.stopPropagation(),a.$blck.trigger(i.mousedown+"-"+o)}).off(i.mousedown+"-"+o).on(i.mousedown+"-"+o,function(e){e.preventDefault(),a.$html.hasClass(n.modal)||(t.closeAllOthers(),t.close())}))};var n,s,i,a}(jQuery);!function(t){var e="mmenu",s="autoHeight";t[e].addons[s]={setup:function(){if(this.opts.offCanvas){switch(this.opts.offCanvas.position){case"left":case"right":return}var n=this,o=this.opts[s];if(this.conf[s],h=t[e].glbl,"boolean"==typeof o&&o&&(o={height:"auto"}),"object"!=typeof o&&(o={}),o=this.opts[s]=t.extend(!0,{},t[e].defaults[s],o),"auto"==o.height){this.$menu.addClass(i.autoheight);var u=function(t){var e=parseInt(this.$pnls.css("top"),10)||0;_bot=parseInt(this.$pnls.css("bottom"),10)||0,this.$menu.addClass(i.measureheight),t=t||this.$pnls.children("."+i.current),t.is("."+i.vertical)&&(t=t.parents("."+i.panel).not("."+i.vertical).first()),this.$menu.height(t.outerHeight()+e+_bot).removeClass(i.measureheight)};this.bind("update",u),this.bind("openPanel",u),this.bind("closePanel",u),this.bind("open",u),h.$wndw.off(a.resize+"-autoheight").on(a.resize+"-autoheight",function(){u.call(n)})}}},add:function(){i=t[e]._c,n=t[e]._d,a=t[e]._e,i.add("autoheight measureheight"),a.add("resize")},clickAnchor:function(){}},t[e].defaults[s]={height:"default"};var i,n,a,h}(jQuery);!function(o){var t="mmenu",n="backButton";o[t].addons[n]={setup:function(){if(this.opts.offCanvas){var i=this,e=this.opts[n];if(this.conf[n],a=o[t].glbl,"boolean"==typeof e&&(e={close:e}),"object"!=typeof e&&(e={}),e=o.extend(!0,{},o[t].defaults[n],e),e.close){var c="#"+i.$menu.attr("id");this.bind("opened",function(){location.hash!=c&&history.pushState(null,document.title,c)}),o(window).on("popstate",function(o){a.$html.hasClass(s.opened)?(o.stopPropagation(),i.close()):location.hash==c&&(o.stopPropagation(),i.open())})}}},add:function(){return window.history&&window.history.pushState?(s=o[t]._c,i=o[t]._d,void(e=o[t]._e)):void(o[t].addons[n].setup=function(){})},clickAnchor:function(){}},o[t].defaults[n]={close:!1};var s,i,e,a}(jQuery);!function(t){var n="mmenu",e="counters";t[n].addons[e]={setup:function(){var s=this,o=this.opts[e];this.conf[e],c=t[n].glbl,"boolean"==typeof o&&(o={add:o,update:o}),"object"!=typeof o&&(o={}),o=this.opts[e]=t.extend(!0,{},t[n].defaults[e],o),this.bind("init",function(n){this.__refactorClass(t("em",n),this.conf.classNames[e].counter,"counter")}),o.add&&this.bind("init",function(n){n.each(function(){var n=t(this).data(a.parent);n&&(n.children("em."+i.counter).length||n.prepend(t('')))})}),o.update&&this.bind("update",function(){this.$pnls.find("."+i.panel).each(function(){var n=t(this),e=n.data(a.parent);if(e){var c=e.children("em."+i.counter);c.length&&(n=n.children("."+i.listview),n.length&&c.html(s.__filterListItems(n.children()).length))}})})},add:function(){i=t[n]._c,a=t[n]._d,s=t[n]._e,i.add("counter search noresultsmsg")},clickAnchor:function(){}},t[n].defaults[e]={add:!1,update:!1},t[n].configuration.classNames[e]={counter:"Counter"};var i,a,s,c}(jQuery);!function(i){var e="mmenu",s="dividers";i[e].addons[s]={setup:function(){var n=this,a=this.opts[s];if(this.conf[s],l=i[e].glbl,"boolean"==typeof a&&(a={add:a,fixed:a}),"object"!=typeof a&&(a={}),a=this.opts[s]=i.extend(!0,{},i[e].defaults[s],a),this.bind("init",function(){this.__refactorClass(i("li",this.$menu),this.conf.classNames[s].collapsed,"collapsed")}),a.add&&this.bind("init",function(e){switch(a.addTo){case"panels":var s=e;break;default:var s=i(a.addTo,this.$pnls).filter("."+d.panel)}i("."+d.divider,s).remove(),s.find("."+d.listview).not("."+d.vertical).each(function(){var e="";n.__filterListItems(i(this).children()).each(function(){var s=i.trim(i(this).children("a, span").text()).slice(0,1).toLowerCase();s!=e&&s.length&&(e=s,i(''+s+"").insertBefore(this))})})}),a.collapse&&this.bind("init",function(e){i("."+d.divider,e).each(function(){var e=i(this),s=e.nextUntil("."+d.divider,"."+d.collapsed);s.length&&(e.children("."+d.subopen).length||(e.wrapInner(""),e.prepend('')))})}),a.fixed){var o=function(e){e=e||this.$pnls.children("."+d.current);var s=e.find("."+d.divider).not("."+d.hidden);if(s.length){this.$menu.addClass(d.hasdividers);var n=e.scrollTop()||0,t="";e.is(":visible")&&e.find("."+d.divider).not("."+d.hidden).each(function(){i(this).position().top+n').prependTo(this.$pnls).children(),this.bind("openPanel",o),this.bind("init",function(e){e.off(t.scroll+"-dividers "+t.touchmove+"-dividers").on(t.scroll+"-dividers "+t.touchmove+"-dividers",function(){o.call(n,i(this))})})}},add:function(){d=i[e]._c,n=i[e]._d,t=i[e]._e,d.add("collapsed uncollapsed fixeddivider hasdividers"),t.add("scroll")},clickAnchor:function(i,e){if(this.opts[s].collapse&&e){var n=i.parent();if(n.is("."+d.divider)){var t=n.nextUntil("."+d.divider,"."+d.collapsed);return n.toggleClass(d.opened),t[n.hasClass(d.opened)?"addClass":"removeClass"](d.uncollapsed),!0}}return!1}},i[e].defaults[s]={add:!1,addTo:"panels",fixed:!1,collapse:!1},i[e].configuration.classNames[s]={collapsed:"Collapsed"};var d,n,t,l}(jQuery);!function(e){function t(e,t,n){return t>e&&(e=t),e>n&&(e=n),e}var n="mmenu",o="dragOpen";e[n].addons[o]={setup:function(){if(this.opts.offCanvas){var i=this,a=this.opts[o],p=this.conf[o];if(r=e[n].glbl,"boolean"==typeof a&&(a={open:a}),"object"!=typeof a&&(a={}),a=this.opts[o]=e.extend(!0,{},e[n].defaults[o],a),a.open){var d,f,c,u,h,l={},m=0,g=!1,v=!1,w=0,_=0;switch(this.opts.offCanvas.position){case"left":case"right":l.events="panleft panright",l.typeLower="x",l.typeUpper="X",v="width";break;case"top":case"bottom":l.events="panup pandown",l.typeLower="y",l.typeUpper="Y",v="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":l.negative=!0,u=function(e){e>=r.$wndw[v]()-a.maxStartPos&&(m=1)};break;default:l.negative=!1,u=function(e){e<=a.maxStartPos&&(m=1)}}switch(this.opts.offCanvas.position){case"left":l.open_dir="right",l.close_dir="left";break;case"right":l.open_dir="left",l.close_dir="right";break;case"top":l.open_dir="down",l.close_dir="up";break;case"bottom":l.open_dir="up",l.close_dir="down"}switch(this.opts.offCanvas.zposition){case"front":h=function(){return this.$menu};break;default:h=function(){return e("."+s.slideout)}}var b=this.__valueOrFn(a.pageNode,this.$menu,r.$page);"string"==typeof b&&(b=e(b));var y=new Hammer(b[0],a.vendors.hammer);y.on("panstart",function(e){u(e.center[l.typeLower]),r.$slideOutNodes=h(),g=l.open_dir}).on(l.events+" panend",function(e){m>0&&e.preventDefault()}).on(l.events,function(e){if(d=e["delta"+l.typeUpper],l.negative&&(d=-d),d!=w&&(g=d>=w?l.open_dir:l.close_dir),w=d,w>a.threshold&&1==m){if(r.$html.hasClass(s.opened))return;m=2,i._openSetup(),i.trigger("opening"),r.$html.addClass(s.dragging),_=t(r.$wndw[v]()*p[v].perc,p[v].min,p[v].max)}2==m&&(f=t(w,10,_)-("front"==i.opts.offCanvas.zposition?_:0),l.negative&&(f=-f),c="translate"+l.typeUpper+"("+f+"px )",r.$slideOutNodes.css({"-webkit-transform":"-webkit-"+c,transform:c}))}).on("panend",function(){2==m&&(r.$html.removeClass(s.dragging),r.$slideOutNodes.css("transform",""),i[g==l.open_dir?"_openFinish":"close"]()),m=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(e[n].addons[o].setup=function(){}):(s=e[n]._c,i=e[n]._d,a=e[n]._e,void s.add("dragging"))},clickAnchor:function(){}},e[n].defaults[o]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer:{}}},e[n].configuration[o]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}};var s,i,a,r}(jQuery);!function(s){var i="mmenu",t="fixedElements";s[i].addons[t]={setup:function(){if(this.opts.offCanvas){var n=this.opts[t];this.conf[t],d=s[i].glbl,n=this.opts[t]=s.extend(!0,{},s[i].defaults[t],n);var a=function(s){var i=this.conf.classNames[t].fixed;this.__refactorClass(s.find("."+i),i,"slideout").appendTo(d.$body)};a.call(this,d.$page),this.bind("setPage",a)}},add:function(){n=s[i]._c,a=s[i]._d,e=s[i]._e,n.add("fixed")},clickAnchor:function(){}},s[i].configuration.classNames[t]={fixed:"Fixed"};var n,a,e,d}(jQuery);!function(e){var n="mmenu",i="iconPanels";e[n].addons[i]={setup:function(){var a=this,l=this.opts[i];if(this.conf[i],d=e[n].glbl,"boolean"==typeof l&&(l={add:l}),"number"==typeof l&&(l={add:!0,visible:l}),"object"!=typeof l&&(l={}),l=this.opts[i]=e.extend(!0,{},e[n].defaults[i],l),l.visible++,l.add){this.$menu.addClass(s.iconpanel);for(var t=[],o=0;o<=l.visible;o++)t.push(s.iconpanel+"-"+o);t=t.join(" ");var c=function(n){var i=a.$pnls.children("."+s.panel).removeClass(t),d=i.filter("."+s.subopened);d.removeClass(s.hidden).add(n).slice(-l.visible).each(function(n){e(this).addClass(s.iconpanel+"-"+n)})};this.bind("openPanel",c),this.bind("init",function(n){c.call(a,a.$pnls.children("."+s.current)),l.hideNavbars&&n.removeClass(s.hasnavbar),n.each(function(){e(this).children("."+s.subblocker).length||e(this).prepend('')})})}},add:function(){s=e[n]._c,a=e[n]._d,l=e[n]._e,s.add("iconpanel subblocker")},clickAnchor:function(){}},e[n].defaults[i]={add:!1,visible:3,hideNavbars:!1};var s,a,l,d}(jQuery);!function(n){var a="mmenu",t="navbars";n[a].addons[t]={setup:function(){var r=this,s=this.opts[t],c=this.conf[t];if(i=n[a].glbl,"undefined"!=typeof s){s instanceof Array||(s=[s]);var d={};n.each(s,function(i){var o=s[i];"boolean"==typeof o&&o&&(o={}),"object"!=typeof o&&(o={}),"undefined"==typeof o.content&&(o.content=["prev","title"]),o.content instanceof Array||(o.content=[o.content]),o=n.extend(!0,{},r.opts.navbar,o);var l=o.position,h=o.height;"number"!=typeof h&&(h=1),h=Math.min(4,Math.max(1,h)),"bottom"!=l&&(l="top"),d[l]||(d[l]=0),d[l]++;var f=n("").addClass(e.navbar+" "+e.navbar+"-"+l+" "+e.navbar+"-"+l+"-"+d[l]+" "+e.navbar+"-size-"+h);d[l]+=h-1;for(var v=0,p=o.content.length;p>v;v++){var u=n[a].addons[t][o.content[v]]||!1;u?u.call(r,f,o,c):(u=o.content[v],u instanceof n||(u=n(o.content[v])),u.each(function(){f.append(n(this))}))}var b=Math.ceil(f.children().not("."+e.btn).length/h);b>1&&f.addClass(e.navbar+"-content-"+b),f.children("."+e.btn).length&&f.addClass(e.hasbtns),f.prependTo(r.$menu)});for(var o in d)r.$menu.addClass(e.hasnavbar+"-"+o+"-"+d[o])}},add:function(){e=n[a]._c,r=n[a]._d,s=n[a]._e,e.add("close hasbtns")},clickAnchor:function(){}},n[a].configuration[t]={breadcrumbSeparator:"/"},n[a].configuration.classNames[t]={panelTitle:"Title",panelNext:"Next",panelPrev:"Prev"};var e,r,s,i}(jQuery),function(n){var a="mmenu",t="navbars",e="breadcrumbs";n[a].addons[t][e]=function(t,e,r){var s=n[a]._c,i=n[a]._d;s.add("breadcrumbs separator"),t.append(''),this.bind("init",function(a){a.removeClass(s.hasnavbar).each(function(){for(var a=[],t=n(this),e=n(''),c=n(this).children().first(),d=!0;c&&c.length;){c.is("."+s.panel)||(c=c.closest("."+s.panel));var o=c.children("."+s.navbar).children("."+s.title).text();a.unshift(d?""+o+"":''+o+""),d=!1,c=c.data(i.parent)}e.append(a.join(''+r.breadcrumbSeparator+"")).appendTo(t.children("."+s.navbar))})});var c=function(){var n=this.$pnls.children("."+s.current),a=t.find("."+s.breadcrumbs),e=n.children("."+s.navbar).children("."+s.breadcrumbs);a.html(e.html())};this.bind("openPanel",c),this.bind("init",c)}}(jQuery),function(n){var a="mmenu",t="navbars",e="close";n[a].addons[t][e]=function(t){var e=n[a]._c,r=n[a].glbl;t.append('');var s=function(n){t.find("."+e.close).attr("href","#"+n.attr("id"))};s.call(this,r.$page),this.bind("setPage",s)}}(jQuery),function(n){var a="mmenu",t="navbars",e="next";n[a].addons[t][e]=function(e){var r=n[a]._c;e.append('');var s=function(n){n=n||this.$pnls.children("."+r.current);var a=e.find("."+r.next),s=n.find("."+this.conf.classNames[t].panelNext),i=s.attr("href"),c=s.html();a[i?"attr":"removeAttr"]("href",i),a[i||c?"removeClass":"addClass"](r.hidden),a.html(c)};this.bind("openPanel",s),this.bind("init",function(){s.call(this)})}}(jQuery),function(n){var a="mmenu",t="navbars",e="prev";n[a].addons[t][e]=function(e){var r=n[a]._c;e.append(''),this.bind("init",function(n){n.removeClass(r.hasnavbar)});var s=function(){var n=this.$pnls.children("."+r.current),a=e.find("."+r.prev),s=n.find("."+this.conf.classNames[t].panelPrev);s.length||(s=n.children("."+r.navbar).children("."+r.prev));var i=s.attr("href"),c=s.html();a[i?"attr":"removeAttr"]("href",i),a[i||c?"removeClass":"addClass"](r.hidden),a.html(c)};this.bind("openPanel",s),this.bind("init",s)}}(jQuery),function(n){var a="mmenu",t="navbars",e="searchfield";n[a].addons[t][e]=function(t){var e=n[a]._c,r=n('').appendTo(t);"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=r}}(jQuery),function(n){var a="mmenu",t="navbars",e="title";n[a].addons[t][e]=function(e,r){var s=n[a]._c;e.append('');var i=function(n){n=n||this.$pnls.children("."+s.current);var a=e.find("."+s.title),i=n.find("."+this.conf.classNames[t].panelTitle);i.length||(i=n.children("."+s.navbar).children("."+s.title));var c=i.attr("href"),d=i.html()||r.title;a[c?"attr":"removeAttr"]("href",c),a[c||d?"removeClass":"addClass"](s.hidden),a.html(d)};this.bind("openPanel",i),this.bind("init",function(){i.call(this)})}}(jQuery);!function(e){function s(e){switch(e){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1}var n="mmenu",a="searchfield";e[n].addons[a]={setup:function(){var o=this,d=this.opts[a],c=this.conf[a];r=e[n].glbl,"boolean"==typeof d&&(d={add:d}),"object"!=typeof d&&(d={}),d=this.opts[a]=e.extend(!0,{},e[n].defaults[a],d),this.bind("close",function(){this.$menu.find("."+l.search).find("input").blur()}),this.bind("init",function(n){if(d.add){switch(d.addTo){case"panels":var a=n;break;default:var a=e(d.addTo,this.$menu)}a.each(function(){var s=e(this);if(!s.is("."+l.panel)||!s.is("."+l.vertical)){if(!s.children("."+l.search).length){var n=c.form?"form":"div",a=e("<"+n+' class="'+l.search+'" />');if(c.form&&"object"==typeof c.form)for(var t in c.form)a.attr(t,c.form[t]);a.append(''),s.hasClass(l.search)?s.replaceWith(a):s.prepend(a).addClass(l.hassearch)}if(d.noResults){var i=s.closest("."+l.panel).length;if(i||(s=o.$pnls.children("."+l.panel).first()),!s.children("."+l.noresultsmsg).length){var r=s.children("."+l.listview).first();e('').append(d.noResults)[r.length?"insertAfter":"prependTo"](r.length?r:s)}}}}),d.search&&e("."+l.search,this.$menu).each(function(){var n=e(this),a=n.closest("."+l.panel).length;if(a)var r=n.closest("."+l.panel),c=r;else var r=e("."+l.panel,o.$menu),c=o.$menu;var h=n.children("input"),u=o.__findAddBack(r,"."+l.listview).children("li"),f=u.filter("."+l.divider),p=o.__filterListItems(u),v="> a",m=v+", > span",b=function(){var s=h.val().toLowerCase();r.scrollTop(0),p.add(f).addClass(l.hidden).find("."+l.fullsubopensearch).removeClass(l.fullsubopen).removeClass(l.fullsubopensearch),p.each(function(){var n=e(this),a=v;(d.showTextItems||d.showSubPanels&&n.find("."+l.next))&&(a=m),e(a,n).text().toLowerCase().indexOf(s)>-1&&n.add(n.prevAll("."+l.divider).first()).removeClass(l.hidden)}),d.showSubPanels&&r.each(function(){var s=e(this);o.__filterListItems(s.find("."+l.listview).children()).each(function(){var s=e(this),n=s.data(t.sub);s.removeClass(l.nosubresults),n&&n.find("."+l.listview).children().removeClass(l.hidden)})}),e(r.get().reverse()).each(function(s){var n=e(this),i=n.data(t.parent);i&&(o.__filterListItems(n.find("."+l.listview).children()).length?(i.hasClass(l.hidden)&&i.children("."+l.next).not("."+l.fullsubopen).addClass(l.fullsubopen).addClass(l.fullsubopensearch),i.removeClass(l.hidden).removeClass(l.nosubresults).prevAll("."+l.divider).first().removeClass(l.hidden)):a||(n.hasClass(l.opened)&&setTimeout(function(){o.openPanel(i.closest("."+l.panel))},1.5*(s+1)*o.conf.openingInterval),i.addClass(l.nosubresults)))}),c[p.not("."+l.hidden).length?"removeClass":"addClass"](l.noresults),this.update()};h.off(i.keyup+"-searchfield "+i.change+"-searchfield").on(i.keyup+"-searchfield",function(e){s(e.keyCode)||b.call(o)}).on(i.change+"-searchfield",function(){b.call(o)})})}})},add:function(){l=e[n]._c,t=e[n]._d,i=e[n]._e,l.add("search hassearch noresultsmsg noresults nosubresults fullsubopensearch"),i.add("change keyup")},clickAnchor:function(){}},e[n].defaults[a]={add:!1,addTo:"panels",search:!0,placeholder:"Search",noResults:"No results found.",showTextItems:!1,showSubPanels:!0},e[n].configuration[a]={form:!1};var l,t,i,r}(jQuery);!function(e){var a="mmenu",r="sectionIndexer";e[a].addons[r]={setup:function(){var i=this,d=this.opts[r];this.conf[r],t=e[a].glbl,"boolean"==typeof d&&(d={add:d}),"object"!=typeof d&&(d={}),d=this.opts[r]=e.extend(!0,{},e[a].defaults[r],d),this.bind("init",function(a){if(d.add){switch(d.addTo){case"panels":var r=a;break;default:var r=e(d.addTo,this.$menu).filter("."+n.panel)}r.find("."+n.divider).closest("."+n.panel).addClass(n.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+n.hasindexer).length){this.$indexer=e('').prependTo(this.$pnls).append('abcdefghijklmnopqrstuvwxyz'),this.$indexer.children().on(s.mouseover+"-sectionindexer "+n.touchstart+"-sectionindexer",function(){var a=e(this).attr("href").slice(1),r=i.$pnls.children("."+n.current),s=r.find("."+n.listview),t=!1,d=r.scrollTop(),h=s.position().top+parseInt(s.css("margin-top"),10)+parseInt(s.css("padding-top"),10)+d;r.scrollTop(0),s.children("."+n.divider).not("."+n.hidden).each(function(){t===!1&&a==e(this).text().slice(0,1).toLowerCase()&&(t=e(this).position().top+h)}),r.scrollTop(t!==!1?t:d)});var t=function(e){i.$menu[(e.hasClass(n.hasindexer)?"add":"remove")+"Class"](n.hasindexer)};this.bind("openPanel",t),t.call(this,this.$pnls.children("."+n.current))}})},add:function(){n=e[a]._c,i=e[a]._d,s=e[a]._e,n.add("indexer hasindexer"),s.add("mouseover touchstart")},clickAnchor:function(e){return e.parent().is("."+n.indexer)?!0:void 0}},e[a].defaults[r]={add:!1,addTo:"panels"};var n,i,s,t}(jQuery);!function(t){var e="mmenu",c="toggles";t[e].addons[c]={setup:function(){var n=this;this.opts[c],this.conf[c],l=t[e].glbl,this.bind("init",function(e){this.__refactorClass(t("input",e),this.conf.classNames[c].toggle,"toggle"),this.__refactorClass(t("input",e),this.conf.classNames[c].check,"check"),t("input."+s.toggle+", input."+s.check,e).each(function(){var e=t(this),c=e.closest("li"),i=e.hasClass(s.toggle)?"toggle":"check",l=e.attr("id")||n.__getUniqueId();c.children('label[for="'+l+'"]').length||(e.attr("id",l),c.prepend(e),t('').insertBefore(c.children("a, span").last()))})})},add:function(){s=t[e]._c,n=t[e]._d,i=t[e]._e,s.add("toggle check")},clickAnchor:function(){}},t[e].configuration.classNames[c]={toggle:"Toggle",check:"Check"};var s,n,i,l}(jQuery);(function(e){e.fn.mobile_menu=function(op){op=$.extend({slidingSubmenus:true,counters:true,navbartitle:"Menu",headerbox:".menu_header",footerbox:".menu_footer"},op||{});var nav=$(this);nav.mmenu({slidingSubmenus:op.slidingSubmenus,searchfield:false,counters:op.counters,navbar:{title:op.navbartitle},navbars:[{position:'top',content:['']},{position:'top',content:['prev','title','close']},{position:'bottom',content:['']}]});var header=nav.find(".menu_header_box"),footer=nav.find(".menu_footer_box");$(op.headerbox).prependTo(header);$(op.footerbox).prependTo(footer);nav.addClass("mm-current");var th,bh,th2;var h=function(){th=header.outerHeight();bh=footer.outerHeight();th2=nav.find(".mm-navbar-top-2").outerHeight();nav.find(".mm-navbar-top-2").css({top:th});nav.find(".mm-panels").css({top:th+th2,bottom:bh});}
h();$(window).resize(function(e){h();});nav.removeClass("mm-current");}})(jQuery);
;;;(function($){$.dnnSF=function(moduleId){var base=this;base.getServiceRoot=function(moduleName){var serviceRoot=dnn.getVar("sf_siteRoot","/");serviceRoot+="API/"+moduleName+"/";return serviceRoot;};base.getTabId=function(){return dnn.getVar("sf_tabId",-1);};base.getModuleId=function(){return moduleId;};base.setModuleHeaders=function(xhr){var tabId=base.getTabId();if(tabId>-1){xhr.setRequestHeader("ModuleId",base.getModuleId());xhr.setRequestHeader("TabId",tabId);}var afValue=base.getAntiForgeryValue();if(afValue){xhr.setRequestHeader("RequestVerificationToken",afValue);}};base.getAntiForgeryKey=function(){return"__RequestVerificationToken";};base.getAntiForgeryValue=function(){return $('[name="__RequestVerificationToken"]').val();};return base;};$.ServicesFramework=function(moduleId){return new $.dnnSF(moduleId);};})(jQuery);
;;;