﻿(function (a) { a.fn.jcarousel = function (h) { if (typeof h == "string") { var b = a(this).data("jcarousel"), c = Array.prototype.slice.call(arguments, 1); return b[h].apply(b, c) } else return this.each(function () { a(this).data("jcarousel", new g(this, h)) }) }; var e = { vertical: !1, start: 5, offset: 1, size: null, scroll: 1, visible: null, animation: "normal", easing: "swing", auto: 0, wrap: null, initCallback: null, reloadCallback: null, itemLoadCallback: null, itemFirstInCallback: null, itemFirstOutCallback: null, itemLastInCallback: null, itemLastOutCallback: null, itemVisibleInCallback: null, itemVisibleOutCallback: null, buttonNextHTML: "<div></div>", buttonPrevHTML: "<div></div>", buttonNextEvent: "click", buttonPrevEvent: "click", buttonNextCallback: null, buttonPrevCallback: null }; a.jcarousel = function (h, b) { this.options = a.extend({}, e, b || {}); this.locked = !1; this.buttonPrev = this.buttonNext = this.list = this.clip = this.container = null; this.wh = !this.options.vertical ? "width" : "height"; this.lt = !this.options.vertical ? "left" : "top"; for (var c = "", g = h.className.split(" "), k = 0; k < g.length; k++) if (g[k].indexOf("jcarousel-skin") != -1) { a(h).removeClass(g[k]); c = g[k]; break } if (h.nodeName == "UL" || h.nodeName == "OL") if (this.list = a(h), this.container = this.list.parent(), this.container.hasClass("jcarousel-clip")) { if (!this.container.parent().hasClass("jcarousel-container")) this.container = this.container.wrap("<div></div>"); this.container = this.container.parent() } else { if (!this.container.hasClass("jcarousel-container")) this.container = this.list.wrap("<div></div>").parent() } else this.container = a(h), this.list = this.container.find("ul,ol").eq(0); c != "" && this.container.parent()[0].className.indexOf("jcarousel-skin") == -1 && this.container.wrap('<div class=" ' + c + '"></div>'); this.clip = this.list.parent(); if (!this.clip.length || !this.clip.hasClass("jcarousel-clip")) this.clip = this.list.wrap("<div></div>").parent(); this.buttonNext = a(".jcarousel-next", this.container); if (this.buttonNext.size() == 0 && this.options.buttonNextHTML != null) this.buttonNext = this.clip.after(this.options.buttonNextHTML).next(); this.buttonNext.addClass(this.className("jcarousel-next")); this.buttonPrev = a(".jcarousel-prev", this.container); if (this.buttonPrev.size() == 0 && this.options.buttonPrevHTML != null) this.buttonPrev = this.clip.after(this.options.buttonPrevHTML).next(); this.buttonPrev.addClass(this.className("jcarousel-prev")); this.clip.addClass(this.className("jcarousel-clip")).css({ overflow: "hidden", position: "relative" }); this.list.addClass(this.className("jcarousel-list")).css({ overflow: "hidden", position: "relative", top: 0, left: 0, margin: 0, padding: 0 }); this.container.addClass(this.className("jcarousel-container")).css({ position: "relative" }); var i = this.options.visible != null ? Math.ceil(this.clipping() / this.options.visible) : null, c = this.list.children("li"), j = this; if (c.size() > 0) { var m = 0, k = this.options.offset; c.each(function () { j.format(this, k++); m += j.dimension(this, i) }); this.list.css(this.wh, m + "px"); if (!b || b.size === void 0) this.options.size = c.size() } this.container.css("display", "block"); this.buttonNext.css("display", "block"); this.buttonPrev.css("display", "block"); this.funcNext = function () { j.next() }; this.funcPrev = function () { j.prev() }; this.funcResize = function () { j.reload() }; this.options.initCallback != null && this.options.initCallback(this, "init"); a.browser.safari ? (this.buttons(!1, !1), a(window).bind("load.jcarousel", function () { j.setup() })) : this.setup() }; var g = a.jcarousel; g.fn = g.prototype = { jcarousel: "0.2.4" }; g.fn.extend = g.extend = a.extend; g.fn.extend({ setup: function () { this.prevLast = this.prevFirst = this.last = this.first = null; this.animating = !1; this.tail = this.timer = null; this.inTail = !1; if (!this.locked) { this.list.css(this.lt, this.pos(this.options.offset) + "px"); var h = this.pos(this.options.start); this.prevFirst = this.prevLast = null; this.animate(h, !1); a(window).unbind("resize.jcarousel", this.funcResize).bind("resize.jcarousel", this.funcResize) } }, reset: function () { this.list.empty(); this.list.css(this.lt, "0px"); this.list.css(this.wh, "10px"); this.options.initCallback != null && this.options.initCallback(this, "reset"); this.setup() }, reload: function () { this.tail != null && this.inTail && this.list.css(this.lt, g.intval(this.list.css(this.lt)) + this.tail); this.tail = null; this.inTail = !1; this.options.reloadCallback != null && this.options.reloadCallback(this); if (this.options.visible != null) { var h = this, b = Math.ceil(this.clipping() / this.options.visible), c = 0, l = 0; a("li", this.list).each(function (a) { c += h.dimension(this, b); a + 1 < h.first && (l = c) }); this.list.css(this.wh, c + "px"); this.list.css(this.lt, -l + "px") } this.scroll(this.first, !1) }, lock: function () { this.locked = !0; this.buttons() }, unlock: function () { this.locked = !1; this.buttons() }, size: function (a) { if (a != void 0) this.options.size = a, this.locked || this.buttons(); return this.options.size }, has: function (a, b) { if (b == void 0 || !b) b = a; if (this.options.size !== null && b > this.options.size) b = this.options.size; for (var c = a; c <= b; c++) { var g = this.get(c); if (!g.length || g.hasClass("jcarousel-item-placeholder")) return !1 } return !0 }, get: function (h) { return a(".jcarousel-item-" + h, this.list) }, add: function (a, b) { var c = this.get(a), l = 0; if (c.length == 0) for (var k, c = this.create(a), i = g.intval(a); k = this.get(--i); ) { if (i <= 0 || k.length) { i <= 0 ? this.list.prepend(c) : k.after(c); break } } else l = this.dimension(c); c.removeClass(this.className("jcarousel-item-placeholder")); typeof b == "string" ? c.html(b) : c.empty().append(b); k = this.options.visible != null ? Math.ceil(this.clipping() / this.options.visible) : null; l = this.dimension(c, k) - l; a > 0 && a < this.first && this.list.css(this.lt, g.intval(this.list.css(this.lt)) - l + "px"); this.list.css(this.wh, g.intval(this.list.css(this.wh)) + l + "px"); return c }, remove: function (a) { var b = this.get(a); if (b.length && !(a >= this.first && a <= this.last)) { var c = this.dimension(b); a < this.first && this.list.css(this.lt, g.intval(this.list.css(this.lt)) + c + "px"); b.remove(); this.list.css(this.wh, g.intval(this.list.css(this.wh)) - c + "px") } }, next: function () { this.stopAuto(); this.tail != null && !this.inTail ? this.scrollTail(!1) : this.scroll((this.options.wrap == "both" || this.options.wrap == "last") && this.options.size != null && this.last == this.options.size ? 1 : this.first + this.options.scroll) }, prev: function () { this.stopAuto(); this.tail != null && this.inTail ? this.scrollTail(!0) : this.scroll((this.options.wrap == "both" || this.options.wrap == "first") && this.options.size != null && this.first == 1 ? this.options.size : this.first - this.options.scroll) }, scrollTail: function (a) { if (!this.locked && !this.animating && this.tail) { var b = g.intval(this.list.css(this.lt)); !a ? b -= this.tail : b += this.tail; this.inTail = !a; this.prevFirst = this.first; this.prevLast = this.last; this.animate(b) } }, scroll: function (a, b) { if (!this.locked && !this.animating) { a <= 4 && a >= 1 && (a += 4); this.animate(this.pos(a), b); x = a % 4 == 0 ? 4 : a % 4; x < 0 && (x = 4 + x); for (z = 1; z <= 4; z++) if (z != x) document.getElementById(z).src = "/images/0" + z + ".gif"; else if (z == x) document.getElementById(z).src = "/images/0" + z + "-IN.gif" } }, pos: function (a) { var b = g.intval(this.list.css(this.lt)); if (this.locked || this.animating) return b; this.options.wrap != "circular" && (a = a < 1 ? 1 : this.options.size && a > this.options.size ? this.options.size : a); for (var c = this.first > a, l = this.options.wrap != "circular" && this.first <= 1 ? 1 : this.first, k = c ? this.get(l) : this.get(this.last), i = c ? l : l - 1, j = null, e = 0, n = !1, f = 0; c ? --i >= a : ++i < a; ) { j = this.get(i); n = !j.length; if (j.length == 0 && (j = this.create(i).addClass(this.className("jcarousel-item-placeholder")), k[c ? "before" : "after"](j), this.first != null && this.options.wrap == "circular" && this.options.size !== null && (i <= 0 || i > this.options.size))) k = this.get(this.index(i)), k.length && this.add(i, k.children().clone(!0)); k = j; f = this.dimension(j); n && (e += f); if (this.first != null && (this.options.wrap == "circular" || i >= 1 && (this.options.size == null || i <= this.options.size))) b = c ? b + f : b - f } for (var l = this.clipping(), r = [], p = 0, i = a, d = 0, k = this.get(a - 1); ++p; ) { j = this.get(i); n = !j.length; if (j.length == 0 && (j = this.create(i).addClass(this.className("jcarousel-item-placeholder")), k.length == 0 ? this.list.prepend(j) : k[c ? "before" : "after"](j), this.first != null && this.options.wrap == "circular" && this.options.size !== null && (i <= 0 || i > this.options.size))) k = this.get(this.index(i)), k.length && this.add(i, k.find(">*").clone(!0)); k = j; f = this.dimension(j); if (f == 0) return alert("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..."), 0; this.options.wrap != "circular" && this.options.size !== null && i > this.options.size ? r.push(j) : n && (e += f); d += f; if (d >= l) break; i++ } for (j = 0; j < r.length; j++) r[j].remove(); e > 0 && (this.list.css(this.wh, this.dimension(this.list) + e + "px"), c && (b -= e, this.list.css(this.lt, g.intval(this.list.css(this.lt)) - e + "px"))); e = a + p - 1; if (this.options.wrap != "circular" && this.options.size && e > this.options.size) e = this.options.size; if (i > e) { p = 0; i = e; for (d = 0; ++p; ) { j = this.get(i--); if (!j.length) break; d += this.dimension(j); if (d >= l) break } } i = e - p + 1; this.options.wrap != "circular" && i < 1 && (i = 1); if (this.inTail && c) b += this.tail, this.inTail = !1; this.tail = null; if (this.options.wrap != "circular" && e == this.options.size && e - p + 1 >= 1 && (c = g.margin(this.get(e), !this.options.vertical ? "marginRight" : "marginBottom"), d - c > l)) this.tail = d - l - c; for (; a-- > i; ) b += this.dimension(this.get(a)); this.prevFirst = this.first; this.prevLast = this.last; this.first = i; this.last = e; return b }, animate: function (a, b) { if (!this.locked && !this.animating) { this.animating = !0; var c = this, g = function () { c.animating = !1; a == 0 && c.list.css(c.lt, 0); (c.options.wrap == "circular" || c.options.wrap == "both" || c.options.wrap == "last" || c.options.size == null || c.last < c.options.size) && c.startAuto(); c.buttons(); c.notify("onAfterAnimation") }; this.notify("onBeforeAnimation"); !this.options.animation || b == !1 ? (this.list.css(this.lt, a + "px"), g()) : this.list.animate(!this.options.vertical ? { left: a} : { top: a }, this.options.animation, this.options.easing, g) } }, startAuto: function (a) { if (a != void 0) this.options.auto = a; if (this.options.auto == 0) return this.stopAuto(); if (this.timer == null) { var b = this; this.timer = setTimeout(function () { b.next() }, this.options.auto * 1E3) } }, stopAuto: function () { if (this.timer != null) clearTimeout(this.timer), this.timer = null }, buttons: function (a, b) { if (a == void 0 || a == null) if (a = !this.locked && this.options.size !== 0 && (this.options.wrap && this.options.wrap != "first" || this.options.size == null || this.last < this.options.size), !this.locked && (!this.options.wrap || this.options.wrap == "first") && this.options.size != null && this.last >= this.options.size) a = this.tail != null && !this.inTail; if (b == void 0 || b == null) if (b = !this.locked && this.options.size !== 0 && (this.options.wrap && this.options.wrap != "last" || this.first > 1), !this.locked && (!this.options.wrap || this.options.wrap == "last") && this.options.size != null && this.first == 1) b = this.tail != null && this.inTail; var c = this; this.buttonNext[a ? "bind" : "unbind"](this.options.buttonNextEvent + ".jcarousel", this.funcNext)[a ? "removeClass" : "addClass"](this.className("jcarousel-next-disabled")).attr("disabled", a ? !1 : !0); this.buttonPrev[b ? "bind" : "unbind"](this.options.buttonPrevEvent + ".jcarousel", this.funcPrev)[b ? "removeClass" : "addClass"](this.className("jcarousel-prev-disabled")).attr("disabled", b ? !1 : !0); if (this.buttonNext.length > 0 && (this.buttonNext[0].jcarouselstate == void 0 || this.buttonNext[0].jcarouselstate != a) && this.options.buttonNextCallback != null) this.buttonNext.each(function () { c.options.buttonNextCallback(c, this, a) }), this.buttonNext[0].jcarouselstate = a; if (this.buttonPrev.length > 0 && (this.buttonPrev[0].jcarouselstate == void 0 || this.buttonPrev[0].jcarouselstate != b) && this.options.buttonPrevCallback != null) this.buttonPrev.each(function () { c.options.buttonPrevCallback(c, this, b) }), this.buttonPrev[0].jcarouselstate = b }, notify: function (a) { var b = this.prevFirst == null ? "init" : this.prevFirst < this.first ? "next" : "prev"; this.callback("itemLoadCallback", a, b); this.prevFirst !== this.first && (this.callback("itemFirstInCallback", a, b, this.first), this.callback("itemFirstOutCallback", a, b, this.prevFirst)); this.prevLast !== this.last && (this.callback("itemLastInCallback", a, b, this.last), this.callback("itemLastOutCallback", a, b, this.prevLast)); this.callback("itemVisibleInCallback", a, b, this.first, this.last, this.prevFirst, this.prevLast); this.callback("itemVisibleOutCallback", a, b, this.prevFirst, this.prevLast, this.first, this.last) }, callback: function (h, b, c, g, k, e, j) { if (!(this.options[h] == void 0 || typeof this.options[h] != "object" && b != "onAfterAnimation")) { var m = typeof this.options[h] == "object" ? this.options[h][b] : this.options[h]; if (a.isFunction(m)) { var n = this; if (g === void 0) m(n, c, b); else if (k === void 0) this.get(g).each(function () { m(n, this, g, c, b) }); else for (var f = g; f <= k; f++) f !== null && !(f >= e && f <= j) && this.get(f).each(function () { m(n, this, f, c, b) }) } } }, create: function (a) { return this.format("<li></li>", a) }, format: function (h, b) { var c = a(h).addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-" + b)).css({ "float": "left", "list-style": "none" }); c.attr("jcarouselindex", b); return c }, className: function (a) { return a + " " + a + (!this.options.vertical ? "-horizontal" : "-vertical") }, dimension: function (h, b) { var c = h.jquery != void 0 ? h[0] : h, e = !this.options.vertical ? c.offsetWidth + g.margin(c, "marginLeft") + g.margin(c, "marginRight") : c.offsetHeight + g.margin(c, "marginTop") + g.margin(c, "marginBottom"); if (b == void 0 || e == b) return e; e = !this.options.vertical ? b - g.margin(c, "marginLeft") - g.margin(c, "marginRight") : b - g.margin(c, "marginTop") - g.margin(c, "marginBottom"); a(c).css(this.wh, e + "px"); return this.dimension(c) }, clipping: function () { return !this.options.vertical ? this.clip[0].offsetWidth - g.intval(this.clip.css("borderLeftWidth")) - g.intval(this.clip.css("borderRightWidth")) : this.clip[0].offsetHeight - g.intval(this.clip.css("borderTopWidth")) - g.intval(this.clip.css("borderBottomWidth")) }, index: function (a, b) { if (b == void 0) b = this.options.size; return Math.round(((a - 1) / b - Math.floor((a - 1) / b)) * b) + 1 } }); g.extend({ defaults: function (h) { return a.extend(e, h || {}) }, margin: function (h, b) { if (!h) return 0; var c = h.jquery != void 0 ? h[0] : h; if (b == "marginRight" && a.browser.safari) { var e = { display: "block", "float": "none", width: "auto" }, k, i; a.swap(c, e, function () { k = c.offsetWidth }); e.marginRight = 0; a.swap(c, e, function () { i = c.offsetWidth }); return i - k } return g.intval(a.css(c, b)) }, intval: function (a) { a = parseInt(a); return isNaN(a) ? 0 : a } }) })(jQuery); function getResourceItem(a, e) { var g = "http://" + window.location.host; window.location.pathname.split("/")[1].toLowerCase() == "mdsl" && (g += "/mdsl"); $$.query.ajax({ type: "GET", data: { ID: a, TYPE: e }, url: g + "/ResourceItem.ashx", dataType: "xml", success: function (a) { var b = $$.query(a).find("type").text(), c = $$.query(a).find("title").text(), g = $$.query(a).find("date").text(), a = $$.query.trim($$.query(a).find("content").text()); if (b != "") { var e = ""; b == "videos" || b == "webinars" ? (e = "<OBJECT ID='MediaPlayer' WIDTH='592' HEIGHT='390' CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'", e += "STANDBY='Loading Windows Media Player components...' TYPE='application/x-oleobject'>", e += "<PARAM NAME='WindowlessVideo' VALUE='-1'>", e += "<PARAM NAME='FileName' VALUE='" + a + "'> ", e += "<PARAM name='ShowControls' VALUE='true'>", e += "<PARAM name='ShowStatusBar' VALUE='false'>", e += "<PARAM name='ShowDisplay' VALUE='false'>", e += "<PARAM name='autostart' VALUE='true'>", e += "<EMBED TYPE='application/x-mplayer2' SRC='" + a + "' NAME='MediaPlayer'", e += "WIDTH='592' HEIGHT='390' ShowControls='1' ShowStatusBar='1' ShowDisplay='1' autostart='1'></EMBED>", e += "</OBJECT>") : b == "whitepapers" || b == "collateral" ? (b = encodeURIComponent("http://" + window.location.host + a), $$.query.browser.msie ? (e += "<div style='height: 130px; width: 300px;'>", e += "<div style='font-weight: bold; font-size: 14px; text-decoration: underlined;'>Please Select an Option:</div>", e += "</br>", e += "<p>- <a id='ieatag' href='http://docs.google.com/viewer?embedded=true&url=" + b + "' target='_Blank'>View Document in New Tab</a></p>", e += "</br>") : (e = "<div>", e += "<iframe src='http://docs.google.com/viewer?embedded=true&url=" + b + "' width='600' height='780' style='border: none;'></iframe>"), e += "<p>- <a href='" + a + "'>Download Document</a></p>", e += "</div>") : (e = "<div style='font-weight: bold; color:#800C03; font-size: 14px;'>" + c + "</div>", e += "<div style='font-weight: bold;'>" + g + "</div>", e += "</br>", e += "<div>" + a + "</div>"); $$.query.fancybox(e) } } }) } (function (a) { a.fn.preloadImages = function () { this.each(function () { a("<img/>")[0].src = this }) } })(jQuery); function getFeed(a, e, g) { var h = document.getElementsByTagName("head")[0], b = document.createElement("script"); b.type = "text/javascript"; b.src = a + "/Gateway.aspx?F=" + e + "&C=" + g; h.appendChild(b) } function overFeed(a) { a.src = "Images/" + a.title + "-RO.png" } function outFeed(a) { a.src = "Images/" + a.title + ".png" } function handleFeed(a, e) { var g = ""; a == 0 ? g = "feedTwitterContent" : a == 1 && (g = "feedLinkedInContent"); if (g = document.getElementById(g)) g.innerHTML = e } (function (a) { a.fn.hoverIntent = function (e, g) { var h = { sensitivity: 7, interval: 100, timeout: 0 }, h = a.extend(h, g ? { over: e, out: g} : e), b, c, l, k, i = function (a) { b = a.pageX; c = a.pageY }, j = function (e, f) { f.hoverIntent_t = clearTimeout(f.hoverIntent_t); if (Math.abs(l - b) + Math.abs(k - c) < h.sensitivity) return a(f).unbind("mousemove", i), f.hoverIntent_s = 1, h.over.apply(f, [e]); else l = b, k = c, f.hoverIntent_t = setTimeout(function () { j(e, f) }, h.interval) }, m = function (b) { for (var f = (b.type == "mouseover" ? b.fromElement : b.toElement) || b.relatedTarget; f && f != this; ) try { f = f.parentNode } catch (e) { f = this } if (f == this) return !1; var c = a.extend({}, b), d = this; if (d.hoverIntent_t) d.hoverIntent_t = clearTimeout(d.hoverIntent_t); if (b.type == "mouseover") { if (l = c.pageX, k = c.pageY, a(d).bind("mousemove", i), d.hoverIntent_s != 1) d.hoverIntent_t = setTimeout(function () { j(c, d) }, h.interval) } else if (a(d).unbind("mousemove", i), d.hoverIntent_s == 1) d.hoverIntent_t = setTimeout(function () { d.hoverIntent_t = clearTimeout(d.hoverIntent_t); d.hoverIntent_s = 0; h.out.apply(d, [c]) }, h.timeout) }; return this.mouseover(m).mouseout(m) } })(jQuery); (function (a) { a.fn.bgIframe = a.fn.bgiframe = function (e) { if (a.browser.msie && parseInt(a.browser.version) <= 6) { var e = a.extend({ top: "auto", left: "auto", width: "auto", height: "auto", opacity: !0, src: "javascript:false;" }, e || {}), g = function (a) { return a && a.constructor == Number ? a + "px" : a }, h = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="' + e.src + '"style="display:block;position:absolute;z-index:-1;' + (e.opacity !== !1 ? "filter:Alpha(Opacity='0');" : "") + "top:" + (e.top == "auto" ? "expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')" : g(e.top)) + ";left:" + (e.left == "auto" ? "expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')" : g(e.left)) + ";width:" + (e.width == "auto" ? "expression(this.parentNode.offsetWidth+'px')" : g(e.width)) + ";height:" + (e.height == "auto" ? "expression(this.parentNode.offsetHeight+'px')" : g(e.height)) + ';"/>'; return this.each(function () { a("> iframe.bgiframe", this).length == 0 && this.insertBefore(document.createElement(h), this.firstChild) }) } return this }; if (!a.browser.version) a.browser.version = navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1] })(jQuery); (function (a) { a.fn.superfish = function (e) { var h = a.fn.superfish, b = h.c, c = a(['<span class="', b.arrowClass, '"> &#187;</span>'].join("")), l = function () { var b = a(this), e = i(b); clearTimeout(e.sfTimer); b.showSuperfishUl().siblings().hideSuperfishUl() }, k = function () { var b = a(this), e = i(b), c = h.op; clearTimeout(e.sfTimer); e.sfTimer = setTimeout(function () { c.retainPath = a.inArray(b[0], c.$path) > -1; b.hideSuperfishUl(); c.$path.length && b.parents(["li.", c.hoverClass].join("")).length < 1 && l.call(c.$path) }, c.delay) }, i = function (a) { a = a.parents(["ul.", b.menuClass, ":first"].join(""))[0]; h.op = h.o[a.serial]; return a }; return this.each(function () { var i = this.serial = h.o.length, m = a.extend({}, h.defaults, e); m.$path = a("li." + m.pathClass, this).slice(0, m.pathLevels).each(function () { a(this).addClass([m.hoverClass, b.bcClass].join(" ")).filter("li:has(ul)").removeClass(m.pathClass) }); h.o[i] = h.op = m; a("li:has(ul)", this)[a.fn.hoverIntent && !m.disableHI ? "hoverIntent" : "hover"](l, k).each(function () { m.autoArrows && a(">a:first-child", this).addClass(b.anchorClass).append(c.clone()) }).not("." + b.bcClass).hideSuperfishUl(); var n = a("a", this); n.each(function (a) { var b = n.eq(a).parents("li"); n.eq(a).focus(function () { l.call(b) }).blur(function () { k.call(b) }) }); m.onInit.call(this) }).each(function () { var e = [b.menuClass]; h.op.dropShadows && !(a.browser.msie && a.browser.version < 7) && e.push(b.shadowClass); a(this).addClass(e.join(" ")) }) }; var e = a.fn.superfish; e.o = []; e.op = {}; e.IE7fix = function () { var g = e.op; a.browser.msie && a.browser.version > 6 && g.dropShadows && g.animation.opacity != void 0 && this.toggleClass(e.c.shadowClass + "-off") }; e.c = { bcClass: "sf-breadcrumb", menuClass: "sf-js-enabled", anchorClass: "sf-with-ul", arrowClass: "sf-sub-indicator", shadowClass: "sf-shadow" }; e.defaults = { hoverClass: "sfHover", pathClass: "overideThisToUse", pathLevels: 1, delay: 800, animation: { opacity: "show" }, speed: "normal", autoArrows: !0, dropShadows: !0, disableHI: !1, onInit: function () { }, onBeforeShow: function () { }, onShow: function () { }, onHide: function () { } }; a.fn.extend({ hideSuperfishUl: function () { var g = e.op, h = g.retainPath === !0 ? g.$path : ""; g.retainPath = !1; h = a(["li.", g.hoverClass].join(""), this).add(this).not(h).removeClass(g.hoverClass).find(">ul").hide().css("visibility", "hidden"); g.onHide.call(h); return this }, showSuperfishUl: function () { var a = e.op, h = this.addClass(a.hoverClass).find(">ul:hidden").css("visibility", "visible"); e.IE7fix.call(h); a.onBeforeShow.call(h); h.animate(a.animation, a.speed, function () { e.IE7fix.call(h); a.onShow.call(h) }); return this } }) })(jQuery); (function (a) { var e, g, h, b, c, l, k, i, j, m, n = 0, f = {}, r = [], p = 0, d = {}, s = [], B = null, u = new Image, E = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i, Q = /[^\.]\.(swf)\s*$/i, F, G = 1, w = 0, v = "", t, q, o = !1, y = a.extend(a("<div/>")[0], { prop: 0 }), H = a.browser.msie && a.browser.version < 7 && !window.XMLHttpRequest, I = function () { g.hide(); u.onerror = u.onload = null; B && B.abort(); e.empty() }, J = function () { !1 === f.onError(r, n, f) ? (g.hide(), o = !1) : (f.titleShow = !1, f.width = "auto", f.height = "auto", e.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'), A()) }, D = function () { var b = r[n], d, c, h, i, k, j; I(); f = a.extend({}, a.fn.fancybox.defaults, typeof a(b).data("fancybox") == "undefined" ? f : a(b).data("fancybox")); j = f.onStart(r, n, f); if (j === !1) o = !1; else { typeof j == "object" && (f = a.extend(f, j)); h = f.title || (b.nodeName ? a(b).attr("title") : b.title) || ""; if (b.nodeName && !f.orig) f.orig = a(b).children("img:first").length ? a(b).children("img:first") : a(b); h === "" && f.orig && f.titleFromAlt && (h = f.orig.attr("alt")); d = f.href || (b.nodeName ? a(b).attr("href") : b.href) || null; if (/^(?:javascript)/i.test(d) || d == "#") d = null; if (f.type) { if (c = f.type, !d) d = f.content } else f.content ? c = "html" : d && (c = d.match(E) ? "image" : d.match(Q) ? "swf" : a(b).hasClass("iframe") ? "iframe" : d.indexOf("#") === 0 ? "inline" : "ajax"); if (c) { c == "inline" && (b = d.substr(d.indexOf("#")), c = a(b).length > 0 ? "inline" : "ajax"); f.type = c; f.href = d; f.title = h; if (f.autoDimensions) f.type == "html" || f.type == "inline" || f.type == "ajax" ? (f.width = "auto", f.height = "auto") : f.autoDimensions = !1; if (f.modal) f.overlayShow = !0, f.hideOnOverlayClick = !1, f.hideOnContentClick = !1, f.enableEscapeButton = !1, f.showCloseButton = !1; f.padding = parseInt(f.padding, 10); f.margin = parseInt(f.margin, 10); e.css("padding", f.padding + f.margin); a(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change", function () { a(this).replaceWith(l.children()) }); switch (c) { case "html": e.html(f.content); A(); break; case "inline": if (a(b).parent().is("#fancybox-content") === !0) { o = !1; break } a('<div class="fancybox-inline-tmp" />').hide().insertBefore(a(b)).bind("fancybox-cleanup", function () { a(this).replaceWith(l.children()) }).bind("fancybox-cancel", function () { a(this).replaceWith(e.children()) }); a(b).appendTo(e); A(); break; case "image": o = !1; a.fancybox.showActivity(); u = new Image; u.onerror = function () { J() }; u.onload = function () { o = !0; u.onerror = u.onload = null; f.width = u.width; f.height = u.height; a("<img />").attr({ id: "fancybox-img", src: u.src, alt: f.title }).appendTo(e); K() }; u.src = d; break; case "swf": f.scrolling = "no"; i = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + f.width + '" height="' + f.height + '"><param name="movie" value="' + d + '"></param>'; k = ""; a.each(f.swf, function (a, b) { i += '<param name="' + a + '" value="' + b + '"></param>'; k += " " + a + '="' + b + '"' }); i += '<embed src="' + d + '" type="application/x-shockwave-flash" width="' + f.width + '" height="' + f.height + '"' + k + "></embed></object>"; e.html(i); A(); break; case "ajax": o = !1; a.fancybox.showActivity(); f.ajax.win = f.ajax.success; B = a.ajax(a.extend({}, f.ajax, { url: d, data: f.ajax.data || {}, error: function (a) { a.status > 0 && J() }, success: function (a, b, c) { if ((typeof c == "object" ? c : B).status == 200) { if (typeof f.ajax.win == "function") if (j = f.ajax.win(d, a, b, c), j === !1) { g.hide(); return } else if (typeof j == "string" || typeof j == "object") a = j; e.html(a); A() } } })); break; case "iframe": K() } } else J() } }, A = function () { var b = f.width, d = f.height, b = b.toString().indexOf("%") > -1 ? parseInt((a(window).width() - f.margin * 2) * parseFloat(b) / 100, 10) + "px" : b == "auto" ? "auto" : b + "px", d = d.toString().indexOf("%") > -1 ? parseInt((a(window).height() - f.margin * 2) * parseFloat(d) / 100, 10) + "px" : d == "auto" ? "auto" : d + "px"; e.wrapInner('<div style="width:' + b + ";height:" + d + ";overflow: " + (f.scrolling == "auto" ? "auto" : f.scrolling == "yes" ? "scroll" : "hidden") + ';position:relative;"></div>'); f.width = e.width(); f.height = e.height(); K() }, K = function () { var U; var C, O; g.hide(); if (b.is(":visible") && !1 === d.onCleanup(s, p, d)) a.event.trigger("fancybox-cancel"), o = !1; else { o = !0; a(l.add(h)).unbind(); a(window).unbind("resize.fb scroll.fb"); a(document).unbind("keydown.fb"); b.is(":visible") && d.titlePosition !== "outside" && b.css("height", b.height()); s = r; p = n; d = f; d.overlayShow ? (h.css({ "background-color": d.overlayColor, opacity: d.overlayOpacity, cursor: d.hideOnOverlayClick ? "pointer" : "auto", height: a(document).height() }), h.is(":visible") || (H && a("select:not(#fancybox-tmp select)").filter(function () { return this.style.visibility !== "hidden" }).css({ visibility: "hidden" }).one("fancybox-cleanup", function () { this.style.visibility = "inherit" }), h.show())) : h.hide(); q = R(); v = d.title || ""; w = 0; i.empty().removeAttr("style").removeClass(); if (d.titleShow !== !1 && (U = C = a.isFunction(d.titleFormat) ? d.titleFormat(v, s, p, d) : v && v.length ? d.titlePosition == "float" ? '<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">' + v + '</td><td id="fancybox-title-float-right"></td></tr></table>' : '<div id="fancybox-title-' + d.titlePosition + '">' + v + "</div>" : !1, v = U) && v !== "") switch (i.addClass("fancybox-title-" + d.titlePosition).html(v).appendTo("body").show(), d.titlePosition) { case "inside": i.css({ width: q.width - d.padding * 2, marginLeft: d.padding, marginRight: d.padding }); w = i.outerHeight(!0); i.appendTo(c); q.height += w; break; case "over": i.css({ marginLeft: d.padding, width: q.width - d.padding * 2, bottom: d.padding }).appendTo(c); break; case "float": i.css("left", parseInt((i.width() - q.width - 40) / 2, 10) * -1).appendTo(b); break; default: i.css({ width: q.width - d.padding * 2, paddingLeft: d.padding, paddingRight: d.padding }).appendTo(b) } i.hide(); if (b.is(":visible")) a(k.add(j).add(m)).hide(), C = b.position(), t = { top: C.top, left: C.left, width: b.width(), height: b.height() }, O = t.width == q.width && t.height == q.height, l.fadeTo(d.changeFade, 0.3, function () { var b = function () { l.html(e.contents()).fadeTo(d.changeFade, 1, L) }; a.event.trigger("fancybox-change"); l.empty().removeAttr("filter").css({ "border-width": d.padding, width: q.width - d.padding * 2, height: f.autoDimensions ? "auto" : q.height - w - d.padding * 2 }); O ? b() : (y.prop = 0, a(y).animate({ prop: 1 }, { duration: d.changeSpeed, easing: d.easingChange, step: M, complete: b })) }); else if (b.removeAttr("style"), l.css("border-width", d.padding), d.transitionIn == "elastic") { t = P(); l.html(e.contents()); b.show(); if (d.opacity) q.opacity = 0; y.prop = 0; a(y).animate({ prop: 1 }, { duration: d.speedIn, easing: d.easingIn, step: M, complete: L }) } else d.titlePosition == "inside" && w > 0 && i.show(), l.css({ width: q.width - d.padding * 2, height: f.autoDimensions ? "auto" : q.height - w - d.padding * 2 }).html(e.contents()), b.css(q).fadeIn(d.transitionIn == "none" ? 0 : d.speedIn, L) } }, S = function () { (d.enableEscapeButton || d.enableKeyboardNav) && a(document).bind("keydown.fb", function (b) { if (b.keyCode == 27 && d.enableEscapeButton) b.preventDefault(), a.fancybox.close(); else if ((b.keyCode == 37 || b.keyCode == 39) && d.enableKeyboardNav && b.target.tagName !== "INPUT" && b.target.tagName !== "TEXTAREA" && b.target.tagName !== "SELECT") b.preventDefault(), a.fancybox[b.keyCode == 37 ? "prev" : "next"]() }); d.showNavArrows ? ((d.cyclic && s.length > 1 || p !== 0) && j.show(), (d.cyclic && s.length > 1 || p != s.length - 1) && m.show()) : (j.hide(), m.hide()) }, L = function () { a.support.opacity || (l.get(0).style.removeAttribute("filter"), b.get(0).style.removeAttribute("filter")); f.autoDimensions && l.css("height", "auto"); b.css("height", "auto"); v && v.length && i.show(); d.showCloseButton && k.show(); S(); d.hideOnContentClick && l.bind("click", a.fancybox.close); d.hideOnOverlayClick && h.bind("click", a.fancybox.close); a(window).bind("resize.fb", a.fancybox.resize); d.centerOnScroll && a(window).bind("scroll.fb", a.fancybox.center); d.type == "iframe" && a('<iframe id="fancybox-frame" name="fancybox-frame' + (new Date).getTime() + '" frameborder="0" hspace="0" ' + (a.browser.msie ? 'allowtransparency="true""' : "") + ' scrolling="' + f.scrolling + '" src="' + d.href + '"></iframe>').appendTo(l); b.show(); o = !1; a.fancybox.center(); d.onComplete(s, p, d); var c, e; if (s.length - 1 > p && (c = s[p + 1].href, typeof c !== "undefined" && c.match(E))) e = new Image, e.src = c; if (p > 0 && (c = s[p - 1].href, typeof c !== "undefined" && c.match(E))) e = new Image, e.src = c }, M = function (a) { var c = { width: parseInt(t.width + (q.width - t.width) * a, 10), height: parseInt(t.height + (q.height - t.height) * a, 10), top: parseInt(t.top + (q.top - t.top) * a, 10), left: parseInt(t.left + (q.left - t.left) * a, 10) }; if (typeof q.opacity !== "undefined") c.opacity = a < 0.5 ? 0.5 : a; b.css(c); l.css({ width: c.width - d.padding * 2, height: c.height - w * a - d.padding * 2 }) }, N = function () { return [a(window).width() - d.margin * 2, a(window).height() - d.margin * 2, a(document).scrollLeft() + d.margin, a(document).scrollTop() + d.margin] }, R = function () { var a = N(), b = {}, c = d.autoScale, e = d.padding * 2; b.width = d.width.toString().indexOf("%") > -1 ? parseInt(a[0] * parseFloat(d.width) / 100, 10) : d.width + e; b.height = d.height.toString().indexOf("%") > -1 ? parseInt(a[1] * parseFloat(d.height) / 100, 10) : d.height + e; if (c && (b.width > a[0] || b.height > a[1])) if (f.type == "image" || f.type == "swf") { c = d.width / d.height; if (b.width > a[0]) b.width = a[0], b.height = parseInt((b.width - e) / c + e, 10); if (b.height > a[1]) b.height = a[1], b.width = parseInt((b.height - e) * c + e, 10) } else b.width = Math.min(b.width, a[0]), b.height = Math.min(b.height, a[1]); b.top = parseInt(Math.max(a[3] - 20, a[3] + (a[1] - b.height - 40) * 0.5), 10); b.left = parseInt(Math.max(a[2] - 20, a[2] + (a[0] - b.width - 40) * 0.5), 10); return b }, P = function () { var b = f.orig ? a(f.orig) : !1, c = {}; b && b.length ? (c = b.offset(), c.top += parseInt(b.css("paddingTop"), 10) || 0, c.left += parseInt(b.css("paddingLeft"), 10) || 0, c.top += parseInt(b.css("border-top-width"), 10) || 0, c.left += parseInt(b.css("border-left-width"), 10) || 0, c.width = b.width(), c.height = b.height(), c = { width: c.width + d.padding * 2, height: c.height + d.padding * 2, top: c.top - d.padding - 20, left: c.left - d.padding - 20 }) : (b = N(), c = { width: d.padding * 2, height: d.padding * 2, top: parseInt(b[3] + b[1] * 0.5, 10), left: parseInt(b[2] + b[0] * 0.5, 10) }); return c }, T = function () { g.is(":visible") ? (a("div", g).css("top", G * -40 + "px"), G = (G + 1) % 12) : clearInterval(F) }; a.fn.fancybox = function (b) { if (!a(this).length) return this; a(this).data("fancybox", a.extend({}, b, a.metadata ? a(this).metadata() : {})).unbind("click.fb").bind("click.fb", function (b) { b.preventDefault(); o || (o = !0, a(this).blur(), r = [], n = 0, b = a(this).attr("rel") || "", !b || b == "" || b === "nofollow" ? r.push(this) : (r = a("a[rel=" + b + "], area[rel=" + b + "]"), n = r.index(this)), D()) }); return this }; a.fancybox = function (b, c) { var d; if (!o) { o = !0; d = typeof c !== "undefined" ? c : {}; r = []; n = parseInt(d.index, 10) || 0; if (a.isArray(b)) { for (var e = 0, f = b.length; e < f; e++) typeof b[e] == "object" ? a(b[e]).data("fancybox", a.extend({}, d, b[e])) : b[e] = a({}).data("fancybox", a.extend({ content: b[e] }, d)); r = jQuery.merge(r, b) } else typeof b == "object" ? a(b).data("fancybox", a.extend({}, d, b)) : b = a({}).data("fancybox", a.extend({ content: b }, d)), r.push(b); if (n > r.length || n < 0) n = 0; D() } }; a.fancybox.showActivity = function () { clearInterval(F); g.show(); F = setInterval(T, 66) }; a.fancybox.hideActivity = function () { g.hide() }; a.fancybox.next = function () { return a.fancybox.pos(p + 1) }; a.fancybox.prev = function () { return a.fancybox.pos(p - 1) }; a.fancybox.pos = function (a) { o || (a = parseInt(a), r = s, a > -1 && a < s.length ? (n = a, D()) : d.cyclic && s.length > 1 && (n = a >= s.length ? 0 : s.length - 1, D())) }; a.fancybox.cancel = function () { o || (o = !0, a.event.trigger("fancybox-cancel"), I(), f.onCancel(r, n, f), o = !1) }; a.fancybox.close = function () { function c() { h.fadeOut("fast"); i.empty().hide(); b.hide(); a.event.trigger("fancybox-cleanup"); l.empty(); d.onClosed(s, p, d); s = f = []; p = n = 0; d = f = {}; o = !1 } if (!o && !b.is(":hidden")) if (o = !0, d && !1 === d.onCleanup(s, p, d)) o = !1; else if (I(), a(k.add(j).add(m)).hide(), a(l.add(h)).unbind(), a(window).unbind("resize.fb scroll.fb"), a(document).unbind("keydown.fb"), l.find("iframe").attr("src", H && /^https/i.test(window.location.href || "") ? "javascript:void(false)" : "about:blank"), d.titlePosition !== "inside" && i.empty(), b.stop(), d.transitionOut == "elastic") { t = P(); var e = b.position(); q = { top: e.top, left: e.left, width: b.width(), height: b.height() }; if (d.opacity) q.opacity = 1; i.empty().hide(); y.prop = 1; a(y).animate({ prop: 0 }, { duration: d.speedOut, easing: d.easingOut, step: M, complete: c }) } else b.fadeOut(d.transitionOut == "none" ? 0 : d.speedOut, c) }; a.fancybox.resize = function () { h.is(":visible") && h.css("height", a(document).height()); a.fancybox.center(!0) }; a.fancybox.center = function (a) { var c, e; o || (e = a === !0 ? 1 : 0, c = N(), !e && (b.width() > c[0] || b.height() > c[1]) || b.stop().animate({ top: parseInt(Math.max(c[3] - 20, c[3] + (c[1] - l.height() - 40) * 0.5 - d.padding)), left: parseInt(Math.max(c[2] - 20, c[2] + (c[0] - l.width() - 40) * 0.5 - d.padding)) }, typeof a == "number" ? a : 200)) }; a.fancybox.init = function () { a("#fancybox-wrap").length || (a("body").append(e = a('<div id="fancybox-tmp"></div>'), g = a('<div id="fancybox-loading"><div></div></div>'), h = a('<div id="fancybox-overlay"></div>'), b = a('<div id="fancybox-wrap"></div>')), c = a('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(b), c.append(l = a('<div id="fancybox-content"></div>'), k = a('<a id="fancybox-close"></a>'), i = a('<div id="fancybox-title"></div>'), j = a('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'), m = a('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')), k.click(a.fancybox.close), g.click(a.fancybox.cancel), j.click(function (b) { b.preventDefault(); a.fancybox.prev() }), m.click(function (b) { b.preventDefault(); a.fancybox.next() }), a.fn.mousewheel && b.bind("mousewheel.fb", function (b, c) { if (o) b.preventDefault(); else if (a(b.target).get(0).clientHeight == 0 || a(b.target).get(0).scrollHeight === a(b.target).get(0).clientHeight) b.preventDefault(), a.fancybox[c > 0 ? "prev" : "next"]() }), a.support.opacity || b.addClass("fancybox-ie"), H && (g.addClass("fancybox-ie6"), b.addClass("fancybox-ie6"), a('<iframe id="fancybox-hide-sel-frame" src="' + (/^https/i.test(window.location.href || "") ? "javascript:void(false)" : "about:blank") + '" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(c))) }; a.fn.fancybox.defaults = { padding: 10, margin: 40, opacity: !1, modal: !1, cyclic: !1, scrolling: "auto", width: 560, height: 340, autoScale: !0, autoDimensions: !0, centerOnScroll: !1, ajax: {}, swf: { wmode: "transparent" }, hideOnOverlayClick: !0, hideOnContentClick: !1, overlayShow: !0, overlayOpacity: 0.7, overlayColor: "#777", titleShow: !0, titlePosition: "float", titleFormat: null, titleFromAlt: !1, transitionIn: "fade", transitionOut: "fade", speedIn: 300, speedOut: 300, changeSpeed: 300, changeFade: "fast", easingIn: "swing", easingOut: "swing", showCloseButton: !0, showNavArrows: !0, enableEscapeButton: !0, enableKeyboardNav: !0, onStart: function () { }, onCancel: function () { }, onComplete: function () { }, onCleanup: function () { }, onClosed: function () { }, onError: function () { } }; a(document).ready(function () { a.fancybox.init() }) })(jQuery);
