﻿(function($) { $.fn.bannerrotator = function(f) { var g = { fade: 6000, timeout: 10000, xmlFile: '/images/banner.xml' }; var h = $.extend(g, f); var i = this; l.imageTimeout = h.timeout; l.fadeSpeed = h.fade; $.get(h.xmlFile, function(d) { $(d).find('image').each(function(a, b) { var c = $(b); l.imgSrcs[a] = new k(c.attr('src'), c.attr('alt')) }); if (l.imgSrcs.length < 2) return; if (i.length == 1) i.append(document.createElement('img')); var e = i.find("img"); l.frontFrame = e[1]; l.backFrame = e[0]; j() }) }; var j = function() { if (++l.curSrc >= l.imgSrcs.length) l.curSrc = 0; var a = l.frontFrame; l.frontFrame = l.backFrame; l.backFrame = a; l.frontFrame.className = ""; l.frontFrame.removeAttribute('style'); l.backFrame.className = "show"; l.backFrame.src = l.imgSrcs[l.curSrc].src; l.backFrame.alt = l.imgSrcs[l.curSrc].alt; setTimeout(function() { $(l.backFrame).fadeIn(l.fadeSpeed, j) }, l.imageTimeout) }; var k = function(a, b) { this.src = a; this.alt = b }; var l = { imgSrcs: [], curSrc: 0, frontFrame: null, backFrame: null, fadeSpeed: 6000, imageTimeout: 10000} })(jQuery);
(function ($) { $.fn.newsrotator = function (options) { var newsContainer = this; var defaults = { fade: 750, timeout: 9000, category: 'news' }; var opts = $.extend(defaults, options); properties.fadeSpeed = opts.fade; properties.timeout = opts.timeout; var html = "<div class='newsNav'><span id='newsToggle'>Pause</span><span id='newsPrev'>&laquo;</span>"; var url; if (opts.category == "news") url = "/api/featurednews.ashx"; else url = "/api/latestnews.ashx?category=" + opts.category; $.getJSON(url, function (data) { $.each(data, function (i, elem) { var itm = $(elem); var curItem = new newsItem(i, elem.ID, elem.NewsTitle, elem.Url, new Date(parseFloat(elem.PublicationDate.slice(6, 19))).format('dddd MMMM dd, yyyy').toLocaleString(), elem.Thumbnail, elem.Summary); properties.newsList[i] = curItem; html = html.concat("<a href=\"", curItem.url, "\" title=\"", curItem.title, "\" rev=\"", i + 1, "\">", i + 1, "</a>") }); if (properties.newsList.length < 2) { return } html += "<span id='newsNext'>&raquo;</span></div>"; $('.newsNav').replaceWith(html); $("#newsToggle").click(function () { var btn = $(this); if (btn.text() == "Pause") { clearTimeout(timer); btn.text("Resume") } else { fadeNews(); btn.text("Pause") } }); $("#newsPrev").click(function () { clearTimeout(timer); properties.curNews -= 2; if (properties.curNews < 0) properties.curNews = properties.newsList.length + properties.curNews; properties.backFrame.className = "show"; $(properties.backFrame).html(properties.newsList[properties.curNews].tohtml()); properties.frontFrame.className = ""; properties.frontFrame.removeAttribute('style'); fadeNews() }); $("#newsNext").click(function () { clearTimeout(timer); fadeNews() }); $(".newsNav a").click(function (e) { clearTimeout(timer); var lnk = $(e.target); properties.curNews = lnk.text() - 1; properties.backFrame.className = "show"; $(properties.backFrame).html(properties.newsList[properties.curNews].tohtml()); properties.frontFrame.className = ""; properties.frontFrame.removeAttribute('style'); fadeNews(); return false }); if (newsContainer.length == 1) newsContainer.append(document.createElement('div')); var divs = $('.newsFrame div'); properties.frontFrame = divs[1]; properties.backFrame = divs[0]; $(".newsNav a[rev=1]").addClass("selected"); toggleNews(); $(".newsNav a").poshytip({ className: 'tip-yellowsimple', showTimeout: 1, alignTo: 'target', alignX: 'center', offsetY: 5, allowTipHover: false }) }) }; var toggleNews = function () { if (++properties.curNews >= properties.newsList.length) properties.curNews = 0; var temp = properties.frontFrame; properties.frontFrame = properties.backFrame; properties.backFrame = temp; properties.frontFrame.className = ""; properties.frontFrame.removeAttribute('style'); properties.backFrame.className = "show"; $(properties.backFrame).html(properties.newsList[properties.curNews].tohtml()); timer = setTimeout(fadeNews, properties.timeout) }; var fadeNews = function () { $(properties.backFrame).fadeIn(properties.fadeSpeed, toggleNews); var curlnk = $(".newsNav a[rev=" + (properties.curNews + 1) + "]"); curlnk.addClass("selected"); curlnk.siblings().removeClass("selected") }; var properties = { newsList: [], curNews: 0, frontFrame: null, backFrame: null, fadeSpeed: 750, timeout: 1000 }; var timer = null; var newsItem = function (position, guid, title, url, date, img, summary) { this.position = position; this.guid = guid; this.title = title; this.url = url; this.date = date; this.img = img; this.summary = summary; this.tohtml = function ToHtml() { if (!this.html) { this.html = "<h3><a href=\"" + this.url + "\">" + this.title + "</a></h3>"; this.html += "<a class=\"fullstory\" href=\"" + this.url + "\">Full Story &raquo;</a>"; this.html += "<a class=\"sf_newsImage\" href=\"" + this.url + "\"><img src=\"" + this.img + "\" alt=\"" + this.title + "\" /></a>"; this.html += "<p><strong>Posted " + this.date + "</strong><br />" + this.summary + "</p>" } return this.html } } })(jQuery);
(function($) { $.fn.ajaxmenu = function(options) { var menu = $(this); var defaults = { menuFile: "", callback: null }; var opts = $.extend(defaults, options); if (!opts.menuFile) return; menu.fadeOut("fast", function() { menu.load(opts.menuFile, function() { menu.fadeIn("fast", opts.callback) }) }) } })(jQuery);
(function($) { $.fn.superfish = function(d) { var e = $.fn.superfish, c = e.c, $arrow = $(['<span class="', c.arrowClass, '"> &#187;</span>'].join('')), over = function() { var a = $(this), menu = getMenu(a); clearTimeout(menu.sfTimer); a.showSuperfishUl().siblings().hideSuperfishUl() }, out = function() { var a = $(this), menu = getMenu(a), o = e.op; clearTimeout(menu.sfTimer); menu.sfTimer = setTimeout(function() { o.retainPath = ($.inArray(a[0], o.$path) > -1); a.hideSuperfishUl(); if (o.$path.length && a.parents(['li.', o.hoverClass].join('')).length < 1) { over.call(o.$path) } }, o.delay) }, getMenu = function(a) { var b = a.parents(['ul.', c.menuClass, ':first'].join(''))[0]; e.op = e.o[b.serial]; return b }, addArrow = function(a) { a.addClass(c.anchorClass).append($arrow.clone()) }; return this.each(function() { var s = this.serial = e.o.length; var o = $.extend({}, e.defaults, d); 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) }); e.o[s] = e.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).hideSuperfishUl(); var b = $('a', this); b.each(function(i) { var a = b.eq(i).parents('li'); b.eq(i).focus(function() { over.call(a) }).blur(function() { out.call(a) }) }); o.onInit.call(this) }).each(function() { var a = [c.menuClass]; if (e.op.dropShadows && !($.browser.msie && $.browser.version < 7)) a.push(c.shadowClass); $(this).addClass(a.join(' ')) }) }; var f = $.fn.superfish; f.o = []; f.op = {}; f.IE7fix = function() { var o = f.op; if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity != undefined) this.toggleClass(f.c.shadowClass + '-off') }; f.c = { bcClass: 'sf-breadcrumb', menuClass: 'sf-js-enabled', anchorClass: 'sf-with-ul', arrowClass: 'sf-sub-indicator', shadowClass: 'sf-shadow' }; f.defaults = { hoverClass: 'sfHover', pathClass: 'overideThisToUse', pathLevels: 1, delay: 800, animation: { opacity: 'show' }, speed: 'normal', autoArrows: true, dropShadows: true, disableHI: false, onInit: function() { }, onBeforeShow: function() { }, onShow: function() { }, onHide: function() { } }; $.fn.extend({ hideSuperfishUl: function() { var o = f.op, not = (o.retainPath === true) ? o.$path : ''; o.retainPath = false; var a = $(['li.', o.hoverClass].join(''), this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility', 'hidden'); o.onHide.call(a); return this }, showSuperfishUl: function() { var o = f.op, sh = f.c.shadowClass + '-off', $ul = this.addClass(o.hoverClass).find('>ul:hidden').css('visibility', 'visible'); f.IE7fix.call($ul); o.onBeforeShow.call($ul); $ul.animate(o.animation, o.speed, function() { f.IE7fix.call($ul); o.onShow.call($ul) }); return this } }) })(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)) < cfg.sensitivity) { $(ob).unbind("mousemove", track); ob.hoverIntent_s = 1; return cfg.over.apply(ob, [ev]) } else { pX = cX; pY = cY; ob.hoverIntent_t = setTimeout(function() { compare(ev, ob) }, cfg.interval) } }; var delay = function(ev, ob) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); ob.hoverIntent_s = 0; return cfg.out.apply(ob, [ev]) }; var handleHover = function(e) { var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget; while (p && p != this) { try { p = p.parentNode } catch (e) { p = this } } if (p == this) { return false } var ev = jQuery.extend({}, e); var ob = this; if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t) } if (e.type == "mouseover") { pX = ev.pageX; pY = ev.pageY; $(ob).bind("mousemove", track); if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout(function() { compare(ev, ob) }, cfg.interval) } } else { $(ob).unbind("mousemove", track); if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout(function() { delay(ev, ob) }, cfg.timeout) } } }; return this.mouseover(handleHover).mouseout(handleHover) } })(jQuery);
(function($) { $.fn.tabSlideOut = function(callerSettings) { var settings = $.extend({ tabHandle: '.handle', speed: 300, action: 'click', tabLocation: 'left', topPos: '200px', leftPos: '20px', fixedPosition: false, positioning: 'absolute', pathToTabImage: null, imageHeight: null, imageWidth: null, onLoadSlideOut: false }, callerSettings || {}); settings.tabHandle = $(settings.tabHandle); var obj = this; if (settings.fixedPosition === true) { settings.positioning = 'fixed' } else { settings.positioning = 'absolute' } if (document.all && !window.opera && !window.XMLHttpRequest) { settings.positioning = 'absolute' } if (settings.pathToTabImage != null) { settings.tabHandle.css({ 'background': 'url(' + settings.pathToTabImage + ') no-repeat', 'width': settings.imageWidth, 'height': settings.imageHeight }) } settings.tabHandle.css({ 'display': 'block', 'textIndent': '-99999px', 'outline': 'none', 'position': 'absolute' }); obj.css({ 'line-height': '1', 'position': settings.positioning }); var properties = { containerWidth: parseInt(obj.outerWidth(), 10) + 'px', containerHeight: parseInt(obj.outerHeight(), 10) + 'px', tabWidth: parseInt(settings.tabHandle.outerWidth(), 10) + 'px', tabHeight: parseInt(settings.tabHandle.outerHeight(), 10) + 'px' }; if (settings.tabLocation === 'top' || settings.tabLocation === 'bottom') { obj.css({ 'left': settings.leftPos }); settings.tabHandle.css({ 'right': 0 }) } if (settings.tabLocation === 'top') { obj.css({ 'top': '-' + properties.containerHeight }); settings.tabHandle.css({ 'bottom': '-' + properties.tabHeight }) } if (settings.tabLocation === 'bottom') { obj.css({ 'bottom': '-' + properties.containerHeight, 'position': 'fixed' }); settings.tabHandle.css({ 'top': '-' + properties.tabHeight }) } if (settings.tabLocation === 'left' || settings.tabLocation === 'right') { obj.css({ 'height': properties.containerHeight, 'top': settings.topPos }); settings.tabHandle.css({ 'top': 0 }) } if (settings.tabLocation === 'left') { obj.css({ 'left': '-' + properties.containerWidth }); settings.tabHandle.css({ 'right': '-' + properties.tabWidth }) } if (settings.tabLocation === 'right') { obj.css({ 'right': '-' + properties.containerWidth }); settings.tabHandle.css({ 'left': '-' + properties.tabWidth }); $('html').css('overflow-x', 'hidden') } settings.tabHandle.click(function(event) { event.preventDefault() }); var slideIn = function() { if (settings.tabLocation === 'top') { obj.animate({ top: '-' + properties.containerHeight }, settings.speed).removeClass('open') } else if (settings.tabLocation === 'left') { obj.animate({ left: '-' + properties.containerWidth }, settings.speed).removeClass('open') } else if (settings.tabLocation === 'right') { obj.animate({ right: '-' + properties.containerWidth }, settings.speed).removeClass('open') } else if (settings.tabLocation === 'bottom') { obj.animate({ bottom: '-' + properties.containerHeight }, settings.speed).removeClass('open') } }; var slideOut = function() { if (settings.tabLocation == 'top') { obj.animate({ top: '-3px' }, settings.speed).addClass('open') } else if (settings.tabLocation == 'left') { obj.animate({ left: '-3px' }, settings.speed).addClass('open') } else if (settings.tabLocation == 'right') { obj.animate({ right: '-3px' }, settings.speed).addClass('open') } else if (settings.tabLocation == 'bottom') { obj.animate({ bottom: '-3px' }, settings.speed).addClass('open') } }; var clickScreenToClose = function() { obj.click(function(event) { event.stopPropagation() }); $(document).click(function() { slideIn() }) }; var clickAction = function() { settings.tabHandle.click(function(event) { if (obj.hasClass('open')) { slideIn() } else { slideOut() } }); clickScreenToClose() }; var hoverAction = function() { obj.hover(function() { slideOut() }, function() { slideIn() }); settings.tabHandle.click(function(event) { if (obj.hasClass('open')) { slideIn() } }); clickScreenToClose() }; var slideOutOnLoad = function() { slideIn(); setTimeout(slideOut, 500) }; if (settings.action === 'click') { clickAction() } if (settings.action === 'hover') { hoverAction() } if (settings.onLoadSlideOut) { slideOutOnLoad() } } })(jQuery);
(function($) { var dropShadowZindex = 1; $.fn.dropShadow = function(options) { var opt = $.extend({ left: 4, top: 4, blur: 2, opacity: .5, color: "black", swap: false }, options); var jShadows = $([]); this.not(".dropShadow").each(function() { var jthis = $(this); var shadows = []; var blur = (opt.blur <= 0) ? 0 : opt.blur; var opacity = (blur == 0) ? opt.opacity : opt.opacity / (blur * 8); var zOriginal = (opt.swap) ? dropShadowZindex : dropShadowZindex + 1; var zShadow = (opt.swap) ? dropShadowZindex + 1 : dropShadowZindex; var shadowId; if (this.id) { shadowId = this.id + "_dropShadow" } else { shadowId = "ds" + (1 + Math.floor(9999 * Math.random())) } $.data(this, "shadowId", shadowId); $.data(this, "shadowOptions", options); jthis.attr("shadowId", shadowId).css("zIndex", zOriginal); if (jthis.css("position") != "absolute") { jthis.css({ position: "relative", zoom: 1 }) } bgColor = jthis.css("backgroundColor"); if (bgColor == "rgba(0, 0, 0, 0)") bgColor = "transparent"; if (bgColor != "transparent" || jthis.css("backgroundImage") != "none" || this.nodeName == "SELECT" || this.nodeName == "INPUT" || this.nodeName == "TEXTAREA") { shadows[0] = $("<div></div>").css("background", opt.color) } else { shadows[0] = jthis.clone().removeAttr("id").removeAttr("name").removeAttr("shadowId").css("color", opt.color) } shadows[0].addClass("dropShadow").css({ height: jthis.outerHeight(), left: blur, opacity: opacity, position: "absolute", top: blur, width: jthis.outerWidth(), zIndex: zShadow }); var layers = (8 * blur) + 1; for (i = 1; i < layers; i++) { shadows[i] = shadows[0].clone() } var i = 1; var j = blur; while (j > 0) { shadows[i].css({ left: j * 2, top: 0 }); shadows[i + 1].css({ left: j * 4, top: j * 2 }); shadows[i + 2].css({ left: j * 2, top: j * 4 }); shadows[i + 3].css({ left: 0, top: j * 2 }); shadows[i + 4].css({ left: j * 3, top: j }); shadows[i + 5].css({ left: j * 3, top: j * 3 }); shadows[i + 6].css({ left: j, top: j * 3 }); shadows[i + 7].css({ left: j, top: j }); i += 8; j-- } var divShadow = $("<div></div>").attr("id", shadowId).addClass("dropShadow").css({ left: jthis.position().left + opt.left - blur, marginTop: jthis.css("marginTop"), marginRight: jthis.css("marginRight"), marginBottom: jthis.css("marginBottom"), marginLeft: jthis.css("marginLeft"), position: "absolute", top: jthis.position().top + opt.top - blur, zIndex: zShadow }); for (i = 0; i < layers; i++) { divShadow.append(shadows[i]) } jthis.after(divShadow); jShadows = jShadows.add(divShadow); $(window).resize(function() { try { divShadow.css({ left: jthis.position().left + opt.left - blur, top: jthis.position().top + opt.top - blur }) } catch (e) { } }); dropShadowZindex += 2 }); return this.pushStack(jShadows) }; $.fn.redrawShadow = function() { this.removeShadow(); return this.each(function() { var shadowOptions = $.data(this, "shadowOptions"); $(this).dropShadow(shadowOptions) }) }; $.fn.removeShadow = function() { return this.each(function() { var shadowId = $(this).shadowId(); $("div#" + shadowId).remove() }) }; $.fn.shadowId = function() { return $.data(this[0], "shadowId") }; $(function() { var noPrint = "<style type='text/css' media='print'>"; noPrint += ".dropShadow{visibility:hidden;}</style>"; $("head").append(noPrint) }) })(jQuery);
(function ($) { $.fn.tipsy = function (options) { options = $.extend({}, $.fn.tipsy.defaults, options); return this.each(function () { var opts = $.fn.tipsy.elementOptions(this, options); $(this).hover(function () { $.data(this, 'cancel.tipsy', true); var tip = $.data(this, 'active.tipsy'); if (!tip) { tip = $('<div class="tipsy"><div class="tipsy-inner"/></div>'); tip.css({ position: 'absolute', zIndex: 100000 }); $.data(this, 'active.tipsy', tip) } if ($(this).attr('title') || typeof ($(this).attr('original-title')) != 'string') { $(this).attr('original-title', $(this).attr('title') || '').removeAttr('title') } var title; if (typeof opts.title == 'string') { title = $(this).attr(opts.title == 'title' ? 'original-title' : opts.title) } else if (typeof opts.title == 'function') { title = opts.title.call(this) } tip.find('.tipsy-inner')[opts.html ? 'html' : 'text'](title || opts.fallback); var pos = $.extend({}, $(this).offset(), { width: this.offsetWidth, height: this.offsetHeight }); tip.get(0).className = 'tipsy'; tip.remove().css({ top: 0, left: 0, visibility: 'hidden', display: 'block' }).appendTo(document.body); var actualWidth = tip[0].offsetWidth, actualHeight = tip[0].offsetHeight; var gravity = (typeof opts.gravity == 'function') ? opts.gravity.call(this) : opts.gravity; switch (gravity.charAt(0)) { case 'n': tip.css({ top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 }).addClass('tipsy-north'); break; case 's': tip.css({ top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 }).addClass('tipsy-south'); break; case 'e': tip.css({ top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth }).addClass('tipsy-east'); break; case 'w': tip.css({ top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }).addClass('tipsy-west'); break } if (opts.fade) { tip.css({ opacity: 0, display: 'block', visibility: 'visible' }).animate({ opacity: 0.8 }) } else { tip.css({ visibility: 'visible' }) } }, function () { $.data(this, 'cancel.tipsy', false); var self = this; setTimeout(function () { if ($.data(this, 'cancel.tipsy')) return; var tip = $.data(self, 'active.tipsy'); if (opts.fade) { tip.stop().fadeOut(function () { $(this).remove() }) } else { tip.remove() } }, 100) }) }) }; $.fn.tipsy.elementOptions = function (ele, options) { return $.metadata ? $.extend({}, options, $(ele).metadata()) : options }; $.fn.tipsy.defaults = { fade: false, fallback: '', gravity: 'n', html: false, title: 'title' }; $.fn.tipsy.autoNS = function () { return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n' }; $.fn.tipsy.autoWE = function () { return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w' } })(jQuery);
(function (e) { var a = [], d = /^url\(["']?([^"'\)]*)["']?\);?$/i, c = /\.png$/i, b = e.browser.msie && e.browser.version == 6; function f() { e.each(a, function () { this.refresh(true) }) } e(window).resize(f); e.Poshytip = function (h, g) { this.$elm = e(h); this.opts = e.extend({}, e.fn.poshytip.defaults, g); this.$tip = e(['<div class="', this.opts.className, '">', '<div class="tip-inner tip-bg-image"></div>', '<div class="tip-arrow tip-arrow-top tip-arrow-right tip-arrow-bottom tip-arrow-left"></div>', "</div>"].join("")); this.$arrow = this.$tip.find("div.tip-arrow"); this.$inner = this.$tip.find("div.tip-inner"); this.disabled = false; this.init() }; e.Poshytip.prototype = { init: function () { a.push(this); this.$elm.data("title.poshytip", this.$elm.attr("title")).data("poshytip", this); switch (this.opts.showOn) { case "hover": this.$elm.bind({ "mouseenter.poshytip": e.proxy(this.mouseenter, this), "mouseleave.poshytip": e.proxy(this.mouseleave, this) }); if (this.opts.alignTo == "cursor") { this.$elm.bind("mousemove.poshytip", e.proxy(this.mousemove, this)) } if (this.opts.allowTipHover) { this.$tip.hover(e.proxy(this.clearTimeouts, this), e.proxy(this.hide, this)) } break; case "focus": this.$elm.bind({ "focus.poshytip": e.proxy(this.show, this), "blur.poshytip": e.proxy(this.hide, this) }); break } }, mouseenter: function (g) { if (this.disabled) { return true } this.clearTimeouts(); this.$elm.attr("title", ""); this.showTimeout = setTimeout(e.proxy(this.show, this), this.opts.showTimeout) }, mouseleave: function () { if (this.disabled) { return true } this.clearTimeouts(); this.$elm.attr("title", this.$elm.data("title.poshytip")); this.hideTimeout = setTimeout(e.proxy(this.hide, this), this.opts.hideTimeout) }, mousemove: function (g) { if (this.disabled) { return true } this.eventX = g.pageX; this.eventY = g.pageY; if (this.opts.followCursor && this.$tip.data("active")) { this.calcPos(); this.$tip.css({ left: this.pos.l, top: this.pos.t }); if (this.pos.arrow) { this.$arrow[0].className = "tip-arrow tip-arrow-" + this.pos.arrow } } }, show: function () { if (this.disabled || this.$tip.data("active")) { return } this.reset(); this.update(); this.display() }, hide: function () { if (this.disabled || !this.$tip.data("active")) { return } this.display(true) }, reset: function () { this.$tip.queue([]).detach().css("visibility", "hidden").data("active", false); this.$inner.find("*").poshytip("hide"); if (this.opts.fade) { this.$tip.css("opacity", this.opacity) } this.$arrow[0].className = "tip-arrow tip-arrow-top tip-arrow-right tip-arrow-bottom tip-arrow-left" }, update: function (i) { if (this.disabled) { return } var h = i !== undefined; if (h) { if (!this.$tip.data("active")) { return } } else { i = this.opts.content } this.$inner.contents().detach(); var g = this; this.$inner.append(typeof i == "function" ? i.call(this.$elm[0], function (j) { g.update(j) }) : i == "[title]" ? this.$elm.data("title.poshytip") : i); this.refresh(h) }, refresh: function (h) { if (this.disabled) { return } if (h) { if (!this.$tip.data("active")) { return } var k = { left: this.$tip.css("left"), top: this.$tip.css("top")} } this.$tip.css({ left: 0, top: 0 }).appendTo(document.body); if (this.opacity === undefined) { this.opacity = this.$tip.css("opacity") } var l = this.$tip.css("background-image").match(d), m = this.$arrow.css("background-image").match(d); if (l) { var i = c.test(l[1]); if (b && i) { this.$tip.css("background-image", "none"); this.$inner.css({ margin: 0, border: 0, padding: 0 }); l = i = false } else { this.$tip.prepend('<table border="0" cellpadding="0" cellspacing="0"><tr><td class="tip-top tip-bg-image" colspan="2"><span></span></td><td class="tip-right tip-bg-image" rowspan="2"><span></span></td></tr><tr><td class="tip-left tip-bg-image" rowspan="2"><span></span></td><td></td></tr><tr><td class="tip-bottom tip-bg-image" colspan="2"><span></span></td></tr></table>').css({ border: 0, padding: 0, "background-image": "none", "background-color": "transparent" }).find(".tip-bg-image").css("background-image", 'url("' + l[1] + '")').end().find("td").eq(3).append(this.$inner) } if (i && !e.support.opacity) { this.opts.fade = false } } if (m && !e.support.opacity) { if (b && c.test(m[1])) { m = false; this.$arrow.css("background-image", "none") } this.opts.fade = false } var o = this.$tip.find("table"); if (b) { this.$tip[0].style.width = ""; o.width("auto").find("td").eq(3).width("auto"); var n = this.$tip.width(), j = parseInt(this.$tip.css("min-width")), g = parseInt(this.$tip.css("max-width")); if (!isNaN(j) && n < j) { n = j } else { if (!isNaN(g) && n > g) { n = g } } this.$tip.add(o).width(n).eq(0).find("td").eq(3).width("100%") } else { if (o[0]) { o.width("auto").find("td").eq(3).width("auto").end().end().width(this.$tip.width()).find("td").eq(3).width("100%") } } this.tipOuterW = this.$tip.outerWidth(); this.tipOuterH = this.$tip.outerHeight(); this.calcPos(); if (m && this.pos.arrow) { this.$arrow[0].className = "tip-arrow tip-arrow-" + this.pos.arrow; this.$arrow.css("visibility", "inherit") } if (h) { this.$tip.css(k).animate({ left: this.pos.l, top: this.pos.t }, 200) } else { this.$tip.css({ left: this.pos.l, top: this.pos.t }) } }, display: function (h) { var i = this.$tip.data("active"); if (i && !h || !i && h) { return } this.$tip.stop(); if ((this.opts.slide && this.pos.arrow || this.opts.fade) && (h && this.opts.hideAniDuration || !h && this.opts.showAniDuration)) { var m = {}, l = {}; if (this.opts.slide && this.pos.arrow) { var k, g; if (this.pos.arrow == "bottom" || this.pos.arrow == "top") { k = "top"; g = "bottom" } else { k = "left"; g = "right" } var j = parseInt(this.$tip.css(k)); m[k] = j + (h ? 0 : this.opts.slideOffset * (this.pos.arrow == g ? -1 : 1)); l[k] = j + (h ? this.opts.slideOffset * (this.pos.arrow == g ? 1 : -1) : 0) } if (this.opts.fade) { m.opacity = h ? this.$tip.css("opacity") : 0; l.opacity = h ? 0 : this.opacity } this.$tip.css(m).animate(l, this.opts[h ? "hideAniDuration" : "showAniDuration"]) } h ? this.$tip.queue(e.proxy(this.reset, this)) : this.$tip.css("visibility", "inherit"); this.$tip.data("active", !i) }, disable: function () { this.reset(); this.disabled = true }, enable: function () { this.disabled = false }, destroy: function () { this.reset(); this.$tip.remove(); this.$elm.unbind("poshytip").removeData("title.poshytip").removeData("poshytip"); a.splice(e.inArray(this, a), 1) }, clearTimeouts: function () { if (this.showTimeout) { clearTimeout(this.showTimeout); this.showTimeout = 0 } if (this.hideTimeout) { clearTimeout(this.hideTimeout); this.hideTimeout = 0 } }, calcPos: function () { var n = { l: 0, t: 0, arrow: "" }, h = e(window), k = { l: h.scrollLeft(), t: h.scrollTop(), w: h.width(), h: h.height() }, p, j, m, i, q, g; if (this.opts.alignTo == "cursor") { p = j = m = this.eventX; i = q = g = this.eventY } else { var o = this.$elm.offset(), l = { l: o.left, t: o.top, w: this.$elm.outerWidth(), h: this.$elm.outerHeight() }; p = l.l + (this.opts.alignX != "inner-right" ? 0 : l.w); j = p + Math.floor(l.w / 2); m = p + (this.opts.alignX != "inner-left" ? l.w : 0); i = l.t + (this.opts.alignY != "inner-bottom" ? 0 : l.h); q = i + Math.floor(l.h / 2); g = i + (this.opts.alignY != "inner-top" ? l.h : 0) } switch (this.opts.alignX) { case "right": case "inner-left": n.l = m + this.opts.offsetX; if (n.l + this.tipOuterW > k.l + k.w) { n.l = k.l + k.w - this.tipOuterW } if (this.opts.alignX == "right" || this.opts.alignY == "center") { n.arrow = "left" } break; case "center": n.l = j - Math.floor(this.tipOuterW / 2); if (n.l + this.tipOuterW > k.l + k.w) { n.l = k.l + k.w - this.tipOuterW } else { if (n.l < k.l) { n.l = k.l } } break; default: n.l = p - this.tipOuterW - this.opts.offsetX; if (n.l < k.l) { n.l = k.l } if (this.opts.alignX == "left" || this.opts.alignY == "center") { n.arrow = "right" } } switch (this.opts.alignY) { case "bottom": case "inner-top": n.t = g + this.opts.offsetY; if (!n.arrow || this.opts.alignTo == "cursor") { n.arrow = "top" } if (n.t + this.tipOuterH > k.t + k.h) { n.t = i - this.tipOuterH - this.opts.offsetY; if (n.arrow == "top") { n.arrow = "bottom" } } break; case "center": n.t = q - Math.floor(this.tipOuterH / 2); if (n.t + this.tipOuterH > k.t + k.h) { n.t = k.t + k.h - this.tipOuterH } else { if (n.t < k.t) { n.t = k.t } } break; default: n.t = i - this.tipOuterH - this.opts.offsetY; if (!n.arrow || this.opts.alignTo == "cursor") { n.arrow = "bottom" } if (n.t < k.t) { n.t = g + this.opts.offsetY; if (n.arrow == "bottom") { n.arrow = "top" } } } this.pos = n } }; e.fn.poshytip = function (g) { if (typeof g == "string") { return this.each(function () { var i = e(this).data("poshytip"); if (i && i[g]) { i[g]() } }) } var h = e.extend({}, e.fn.poshytip.defaults, g); if (!e("#poshytip-css-" + h.className)[0]) { e(['<style id="poshytip-css-', h.className, '" type="text/css">', "div.", h.className, "{visibility:hidden;position:absolute;top:0;left:0;}", "div.", h.className, " table, div.", h.className, " td{margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;}", "div.", h.className, " td.tip-bg-image span{display:block;font:1px/1px sans-serif;height:", h.bgImageFrameSize, "px;width:", h.bgImageFrameSize, "px;overflow:hidden;}", "div.", h.className, " td.tip-right{background-position:100% 0;}", "div.", h.className, " td.tip-bottom{background-position:100% 100%;}", "div.", h.className, " td.tip-left{background-position:0 100%;}", "div.", h.className, " div.tip-inner{background-position:-", h.bgImageFrameSize, "px -", h.bgImageFrameSize, "px;}", "div.", h.className, " div.tip-arrow{visibility:hidden;position:absolute;overflow:hidden;font:1px/1px sans-serif;}", "</style>"].join("")).appendTo("head") } return this.each(function () { new e.Poshytip(this, h) }) }; e.fn.poshytip.defaults = { content: "[title]", className: "tip-yellow", bgImageFrameSize: 10, showTimeout: 500, hideTimeout: 100, showOn: "hover", alignTo: "cursor", alignX: "right", alignY: "top", offsetX: -22, offsetY: 18, allowTipHover: true, followCursor: false, fade: true, slide: true, slideOffset: 8, showAniDuration: 300, hideAniDuration: 300} })(jQuery);
(function ($) { $.fn.makeacolumnlists = function (settings) { settings = $.extend({ cols: 3, colWidth: 0, equalHeight: false, startN: 1 }, settings); if ($('> li', this)) { this.each(function (y) { var y = $('.li_container').size(), height = 0, maxHeight = 0, t = $(this), classN = t.attr('class'), listsize = $('> li', this).size(), percol = Math.ceil(listsize / settings.cols), contW = t.width(), bl = (isNaN(parseInt(t.css('borderLeftWidth'), 10)) ? 0 : parseInt(t.css('borderLeftWidth'), 10)), br = (isNaN(parseInt(t.css('borderRightWidth'), 10)) ? 0 : parseInt(t.css('borderRightWidth'), 10)), pl = parseInt(t.css('paddingLeft'), 10), pr = parseInt(t.css('paddingRight'), 10), ml = parseInt(t.css('marginLeft'), 10), mr = parseInt(t.css('marginRight'), 10), col_Width = Math.floor((contW - (settings.cols - 1) * (bl + br + pl + pr + ml + mr)) / settings.cols); if (settings.colWidth) { col_Width = settings.colWidth } var colnum = 1, percol2 = percol; $(this).addClass('li_cont1').wrap('<div id="li_container' + (++y) + '" class="li_container"></div>'); if (settings.equalHeight == 'li') { $('> li', this).each(function () { var e = $(this); var border_top = (isNaN(parseInt(e.css('borderTopWidth'), 10)) ? 0 : parseInt(e.css('borderTopWidth'), 10)); var border_bottom = (isNaN(parseInt(e.css('borderBottomWidth'), 10)) ? 0 : parseInt(e.css('borderBottomWidth'), 10)); height = e.height() + parseInt(e.css('paddingTop'), 10) + parseInt(e.css('paddingBottom'), 10) + border_top + border_bottom; maxHeight = (height > maxHeight) ? height : maxHeight }) } for (var i = 0; i <= listsize; i++) { if (i >= percol2) { percol2 += percol; colnum++ } var eh = $('> li:eq(' + i + ')', this); eh.addClass('li_col' + colnum); if ($(this).is('ol')) { eh.attr('value', '' + (i + settings.startN)) + '' } if (settings.equalHeight == 'li') { var border_top = (isNaN(parseInt(eh.css('borderTopWidth'), 10)) ? 0 : parseInt(eh.css('borderTopWidth'), 10)); var border_bottom = (isNaN(parseInt(eh.css('borderBottomWidth'), 10)) ? 0 : parseInt(eh.css('borderBottomWidth'), 10)); mh = maxHeight - (parseInt(eh.css('paddingTop'), 10) + parseInt(eh.css('paddingBottom'), 10) + border_top + border_bottom); eh.height(mh) } } $(this).css({ cssFloat: 'left', width: '' + col_Width + 'px' }); for (colnum = 2; colnum <= settings.cols; colnum++) { if ($(this).is('ol')) { $('li.li_col' + colnum, this).appendTo('#li_container' + y).wrapAll('<ol class="li_cont' + colnum + ' ' + classN + '" style="float:left; width: ' + col_Width + 'px;"></ol>') } else { $('li.li_col' + colnum, this).appendTo('#li_container' + y).wrapAll('<ul class="li_cont' + colnum + ' ' + classN + '" style="float:left; width: ' + col_Width + 'px;"></ul>') } } if (settings.equalHeight == 'ul' || settings.equalHeight == 'ol') { for (colnum = 1; colnum <= settings.cols; colnum++) { $('#li_container' + y + ' .li_cont' + colnum).each(function () { var e = $(this); var border_top = (isNaN(parseInt(e.css('borderTopWidth'), 10)) ? 0 : parseInt(e.css('borderTopWidth'), 10)); var border_bottom = (isNaN(parseInt(e.css('borderBottomWidth'), 10)) ? 0 : parseInt(e.css('borderBottomWidth'), 10)); height = e.height() + parseInt(e.css('paddingTop'), 10) + parseInt(e.css('paddingBottom'), 10) + border_top + border_bottom; maxHeight = (height > maxHeight) ? height : maxHeight }) } for (colnum = 1; colnum <= settings.cols; colnum++) { var eh = $('#li_container' + y + ' .li_cont' + colnum); var border_top = (isNaN(parseInt(eh.css('borderTopWidth'), 10)) ? 0 : parseInt(eh.css('borderTopWidth'), 10)); var border_bottom = (isNaN(parseInt(eh.css('borderBottomWidth'), 10)) ? 0 : parseInt(eh.css('borderBottomWidth'), 10)); mh = maxHeight - (parseInt(eh.css('paddingTop'), 10) + parseInt(eh.css('paddingBottom'), 10) + border_top + border_bottom); eh.height(mh) } } $('#li_container' + y).append('<div style="clear:both; overflow:hidden; height:0px;"></div>') }) } } })(jQuery); (function ($) { $.fn.uncolumnlists = function () { $('.li_cont1').each(function (i) { var onecolSize = $('#li_container' + (++i) + ' .li_cont1 > li').size(); if ($('#li_container' + i + ' .li_cont1').is('ul')) { $('#li_container' + i + ' > ul > li').appendTo('#li_container' + i + ' ul:first'); for (var j = 1; j <= onecolSize; j++) { $('#li_container' + i + ' ul:first li').removeAttr('class').removeAttr('style') } $('#li_container' + i + ' ul:first').removeAttr('style').removeClass('li_cont1').insertBefore('#li_container' + i) } else { $('#li_container' + i + ' > ol > li').appendTo('#li_container' + i + ' ol:first'); for (var j = 1; j <= onecolSize; j++) { $('#li_container' + i + ' ol:first li').removeAttr('class').removeAttr('style') } $('#li_container' + i + ' ol:first').removeAttr('style').removeClass('li_cont1').insertBefore('#li_container' + i) } $('#li_container' + i).remove() }) } })(jQuery);
eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function(e) { return r[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('(1t($){$.2L.2M=1t(Z){1t 2q(a,b,c){7 d=1w(a.1K(1,2),16);7 e=1w(a.1K(3,2),16);7 f=1w(a.1K(5,2),16);7 g=1w(b.1K(1,2),16);7 h=1w(b.1K(3,2),16);7 i=1w(b.1K(5,2),16);18(c>1||c<0)c=1;7 j=1b.2d((d*c)+(g*(1-c)));18(j>1X)j=1X;18(j<0)j=0;7 k=1b.2d((e*c)+(h*(1-c)));18(k>1X)k=1X;18(k<0)k=0;7 l=1b.2d((f*c)+(i*(1-c)));18(l>1X)l=1X;18(l<0)l=0;1o"#"+1Q(j)+1Q(k)+1Q(l)}1t 1Q(a){22=a/16;2e=a%16;22=22-(2e/16);2r=2f(22);2s=2f(2e);1o 2r+\'\'+2s}1t 2f(x){18((x>=0)&&(x<=9)){1o x}1h{1L(x){1e 10:1o"A";1e 11:1o"B";1e 12:1o"C";1e 13:1o"D";1e 14:1o"E";1e 15:1o"F"};1o"F"}}1t 23(x,y,r){7 a=0;7 b=24 25(1);7 c=24 25(1);7 d=0;7 e="";7 f=1b.1M((1b.1r(r,2)-1b.1r(x,2)));18((f>=y)&&(f<(y+1))){e="2N";b[d]=0;c[d]=f-y;d=d+1};7 f=1b.1M((1b.1r(r,2)-1b.1r(y+1,2)));18((f>=x)&&(f<(x+1))){e=e+"2O";b[d]=f-x;c[d]=1;d=d+1};7 f=1b.1M((1b.1r(r,2)-1b.1r(x+1,2)));18((f>=y)&&(f<(y+1))){e=e+"2P";b[d]=1;c[d]=f-y;d=d+1};7 f=1b.1M((1b.1r(r,2)-1b.1r(y,2)));18((f>=x)&&(f<(x+1))){e=e+"2Q";b[d]=f-x;c[d]=0};1L(e){1e"2R":a=1b.26(c[0],c[1])+((1b.1Y(c[0],c[1])-1b.26(c[0],c[1]))/2);1i;1e"2S":a=1-(((1-b[0])*(1-c[1]))/2);1i;1e"2T":a=1b.26(b[0],b[1])+((1b.1Y(b[0],b[1])-1b.26(b[0],b[1]))/2);1i;1e"2U":a=(c[0]*b[1])/2;1i;2V:a=1};1o a}1t 2g(a){2W{7 b=2h(a);7 c=1w(b[0]);7 d=1w(b[1]);7 f=1w(b[2]);7 g="#"+1Q(c)+1Q(d)+1Q(f)}2X(e){2Y("2Z 31 32 33 34 35 36 37 38 39 2i 1t 2g")};1o g}1t 2h(a){7 b=a.1R(4,a.27(")"));7 c=b.3a(", ");1o c}1t 2j(a){7 b="2t";18(a!=""&&a!="2t"){18(a.1K(0,3)=="3b"&&a.1K(0,4)!="2u"){b=2g(a)}1h 18(a.2v==4){b="#"+a.1R(1,2)+a.1R(1,2)+a.1R(2,3)+a.1R(2,3)+a.1R(3,4)+a.1R(3,4)}1h{b=a}};1o b};1t 1x(a){1o 1w(((a!="2k"&&a.27("%")==-1&&a!=""&&a.27("1a")!==-1)?a.3c(0,a.27("1a")):0))}1t 1N(a,b,c,d,e,f,g,h,i,j,k,l,m,n){7 o=$(a);7 p=1D.1E("1F");$(p).17({1f:f,1G:"1O",1d:"1y","1S-1T":"1O",1I:"1U"});7 q=1b.1Y(n.1m?n.1m.19:0,n.1p?n.1p.19:0);18(h==-1&&i!=""){18(q>0)$(p).17("1c-1d","-"+((m-j-l)+b)+"1a -"+((o.1f()+q-l)-c)+"1a");1h $(p).17("1c-1d","-"+((m-j-l)+b)+"1a -"+((o.1f())-c)+"1a");$(p).17({"1c-28":i,"1c-1s":o.17("1c-1s"),"1c-1V":d})}1h{18(!k)$(p).17("1c-1V",d).1P(\'29\');1h $(p).17("1c-1V",d)};18(e!=1n)2w(p,e);$(p).17({1z:c+"1a",1g:b+"1a"});1o p};1t 2w(a,b){b=(b==1n)?3d.3e:b;18($.2l.3f&&a.3g!="3h"){7 c=2h(a.1u.2m);7 d=1w(c[0]);7 e=1w(c[1]);7 f=1w(c[2]);a.1u.2m="2u("+d+", "+e+", "+f+", "+b/1n+")"}1h 18(1Z(a.1u.2n)!="2a"){a.1u.2n=b/1n}1h 18(1Z(a.1u.2x)!="2a"){a.1u.2x=b/1n}1h 18(1Z(a.1u.2y)!="2a"){a.1u.2y="3i(2n:"+b+")"}1h 18(1Z(a.1u.2z)!="2a"){a.1u.2z=b/1n}}1t 2A(a,b){7 c=$(a);7 d=c.17("3j");7 e=20;7 f=20;7 g=24 25();7 h=20;7 l=1x(c.17("1f"))?1x(c.17("1f")):a.3k;7 m=1x(c.17("1G"))?1x(c.17("1G")):a.3l;7 n=1x(c.17("2B"))?1x(c.17("2B")):0;7 o=1x(c.17("3m"));7 p=1x(c.17("3n"));7 q=1x(c.17("3o"));7 r=1x(c.17("3p"));7 s=2j(c.17("2m"));7 u=(d!="3q"&&d!="3r")?d:"";7 v=2j(c.17("3s"));7 w=n+"1a"+" 3t "+v;7 x=1b.1Y(b.1m?b.1m.19:0,b.1p?b.1p.19:0);7 y=1b.1Y(b.1k?b.1k.19:0,b.1v?b.1v.19:0);c.1P(\'2C\').17({"1J":"0","3u":a.1u.3v,\'1I\':\'2D\'});18(a.1u.1d!="1y")c.17("1d","2b");18(($.2l.3w)){18($.2l.3x==6&&a.1u.1G=="2k"&&a.1u.1f=="2k")c.17("1G","1n%");c.17("2E","1");$("*",c).17("2E","3y")}1W(7 t=0;t<2;t++){1L(t){1e 0:18(b.1m||b.1p){7 A=1D.1E("1F");e=a.1j(A);$(e).17({1G:"1n%","1S-1T":"1O",1I:"1U",1d:"1y","1J-1g":n,"1J-1q":n,1f:x+"1a",1z:0-x+"1a",1g:0-n+"1a"}).1P(\'3z\')};1i;1e 1:18(b.1k||b.1v){7 A=1D.1E("1F");f=a.1j(A);$(f).17({1G:"1n%","1S-1T":"1O",1I:"1U",1d:"1y","1J-1g":n,"1J-1q":n,1f:y,1A:0-y+"1a",1g:0-n+"1a"}).1P(\'3A\')};1i}};18(b.2F==21){7 B=1D.1E("1F");7 C=1D.1E("1F");7 D=1D.1E("1F");$(C).17({1B:"0","1J-1A":p,"1J-1z":o,"1J-1g":q,"1J-1q":r,\'1I\':\'2D\'}).1P(\'29 3B\');$(B).17({1d:"2b",\'3C\':"1g",1G:"1n%","1B-1z":"-"+1b.1C(x-n)+"1a","1B-1A":"-"+1b.1C(y-n)+"1a"}).1P="3D";$(D).17("3E","3F");C.1j(B);C.1j(D);c.3G(C)};18(e)c.17("1l-1z",0);18(f)c.17("1l-1A",0);7 E=["1p","1m","1v","1k"];1W(7 i 2i E){18(i>-1<4){7 F=E[i];18(!b[F]){18(((F=="1p"||F=="1m")&&e!=20)||((F=="1v"||F=="1k")&&f!=20)){7 G=1D.1E("1F");$(G).17({1d:"2b","1S-1T":"1O",1I:"1U"});18(u=="")$(G).17("1c-1V",s);1h $(G).17("1c-28",u).17("1c-1V",s);1L(F){1e"1m":$(G).17({1f:x-n,"1B-1q":b.1p.19-(n*2),"1l-1g":w,"1l-1z":w,1g:-n+"1a","1c-1s":c.17("1c-1s"),"1c-1d":n+"1a 1H"});1i;1e"1p":$(G).17({1f:x-n,"1B-1g":b.1m.19-(n*2),"1l-1q":w,"1l-1z":w,1g:n+"1a","1c-1s":c.17("1c-1s"),"1c-1d":"-"+(x+n)+"1a 1H"});1i;1e"1k":18(x>0)$(G).17({1f:y-n,"1B-1q":b.1v.19-(n*2),"1l-1g":w,"1l-1A":w,1g:-n+"1a","1c-1s":c.17("1c-1s"),"1c-1d":"1H -"+(c.1f()+x-n+1)+"1a"});1h $(G).17({1f:y-n,"1B-1q":b.1v.19-(n*2),"1l-1g":w,"1l-1A":w,1g:-n+"1a","1c-1s":c.17("1c-1s"),"1c-1d":"1H -"+(c.1f())+"1a"});1i;1e"1v":18(x>0)$(G).17({1f:y-n,"1B-1g":b.1k.19-(n*2),"1l-1q":w,"1l-1A":w,1g:n+"1a","1c-1s":c.17("1c-1s"),"1c-1d":"-"+b.1k.19+n+"1a -"+(c.1f()+x-n+1)+"1a"});1h $(G).17({1f:y-n,"1B-1g":b.1k.19-(n*2),"1l-1q":w,"1l-1A":w,1g:n+"1a","1c-1s":c.17("1c-1s"),"1c-1d":"-"+b.1k.19+n+"1a -"+(c.1f())+"1a"});1i}}}1h{18(g[b[F].19]){7 G=g[b[F].19].2G(21)}1h{7 G=1D.1E("3H");$(G).17({1f:b[F].19,1G:b[F].19,1d:"1y","1S-1T":"1O",1I:"1U"});7 H=1w(b[F].19-n);1W(7 I=0,j=b[F].19;I<j;I++){18((I+1)>=H)7 J=-1;1h 7 J=(1b.2H(1b.1M(1b.1r(H,2)-1b.1r((I+1),2)))-1);18(H!=j){18((I)>=H)7 K=-1;1h 7 K=1b.2I(1b.1M(1b.1r(H,2)-1b.1r(I,2)));18((I+1)>=j)7 L=-1;1h 7 L=(1b.2H(1b.1M(1b.1r(j,2)-1b.1r((I+1),2)))-1)};18((I)>=j)7 M=-1;1h 7 M=1b.2I(1b.1M(1b.1r(j,2)-1b.1r(I,2)));18(J>-1)G.1j(1N(a,I,0,s,1n,(J+1),G,-1,u,b[F].19,0,n,m,b));18(H!=j){1W(7 N=(J+1);N<K;N++){18(b.2c){18(u!=""){7 O=(23(I,N,H)*1n);18(O<30){G.1j(1N(a,I,N,v,1n,1,G,0,u,b[F].19,1,n,m,b))}1h{G.1j(1N(a,I,N,v,1n,1,G,-1,u,b[F].19,1,n,m,b))}}1h{7 P=2q(s,v,23(I,N,H));G.1j(1N(a,I,N,P,1n,1,G,0,u,b[F].19,F,1,n,m,b))}}};18(b.2c){18(L>=K){18(K==-1)K=0;G.1j(1N(a,I,K,v,1n,(L-K+1),G,0,u,0,1,n,m,b))}}1h{18(L>=J){G.1j(1N(a,I,(J+1),v,1n,(L-J),G,0,u,0,1,n,m,b))}};7 Q=v}1h{7 Q=s;7 L=J};18(b.2c){1W(7 N=(L+1);N<M;N++){G.1j(1N(a,I,N,Q,(23(I,N,j)*1n),1,G,((n>0)?0:-1),u,b[F].19,1,n,m,b))}}};g[b[F].19]=G.2G(21)};18(F!="1v"){1W(7 t=0,k=G.2J.2v;t<k;t++){7 R=G.2J[t];7 S=1x($(R).17("1z"));7 T=1x($(R).17("1g"));7 U=1x($(R).17("1f"));18(F=="1m"||F=="1k"){$(R).17("1g",b[F].19-T-1+"1a")};18(F=="1p"||F=="1m"){$(R).17("1z",b[F].19-U-S+"1a")};1L(F){1e"1p":$(R).17("1c-1d","-"+1b.1C((m-b[F].19+n)+T)+"1a -"+1b.1C(b[F].19-U-S-n)+"1a");1i;1e"1m":$(R).17("1c-1d","-"+1b.1C((b[F].19-T-1)-n)+"1a -"+1b.1C(b[F].19-U-S-n)+"1a");1i;1e"1k":18(x>0)$(R).17("1c-1d","-"+1b.1C((b[F].19-T-1)-n)+"1a -"+1b.1C((c.1f()+x-n+1))+"1a");1h $(R).17("1c-1d","-"+1b.1C((b[F].19-T-1)-n)+"1a -"+1b.1C((c.1f()))+"1a");1i}}}};18(G){1L(F){1e"1m":18($(G).17("1d")=="1y")$(G).17("1z","0");18($(G).17("1d")=="1y")$(G).17("1g","0");18(e)e.1j(G);1i;1e"1p":18($(G).17("1d")=="1y")$(G).17("1z","0");18($(G).17("1d")=="1y")$(G).17("1q","0");18(e)e.1j(G);1i;1e"1k":18($(G).17("1d")=="1y")$(G).17("1A","0");18(G.1u.1d=="1y")$(G).17("1g","0");18(f)f.1j(G);1i;1e"1v":18($(G).17("1d")=="1y")$(G).17("1A","0");18($(G).17("1d")=="1y")$(G).17("1q","0");18(f)f.1j(G);1i}}}};7 V=24 25();V["t"]=1b.1C(b.1m.19-b.1p.19);V["b"]=1b.1C(b.1k.19-b.1v.19);1W(z 2i V){18(z=="t"||z=="b"){18(V[z]){7 W=((b[z+"l"].19<b[z+"r"].19)?z+"l":z+"r");7 X=1D.1E("1F");$(X).17({1f:V[z],1G:b[W].19+"1a",1d:"1y","1S-1T":"1O",1I:"1U","1c-1V":s,"1c-28":u});1L(W){1e"1m":$(X).17({"1A":"0","1g":"0","1l-1g":w,"1c-1d":"1H -"+(b[W].19-n)});e.1j(X);1i;1e"1p":$(X).17({"1A":"0","1q":"0","1l-1q":w,"1c-1d":"1H -"+(b[W].19-n)+"1a"});e.1j(X);1i;1e"1k":$(X).17({"1z":"0","1g":"0","1l-1g":w,"1c-1d":"1H -"+(c.1f()+b[W].19-n)});f.1j(X);1i;1e"1v":$(X).17({"1z":"0","1q":"0","1l-1q":w,"1c-1d":"1H -"+(c.1f()+b[W].19-n)});f.1j(X);1i}};7 Y=1D.1E("1F");$(Y).17({1d:"2b","1S-1T":"1O",1I:"1U","1c-1V":s,"1c-28":u,"1c-1s":c.17("1c-1s")});1L(z){1e"t":18(e){18(b.1m.19&&b.1p.19){$(Y).17({1f:x-n+"1a","1B-1g":b.1m.19-n+"1a","1B-1q":b.1p.19-n+"1a","1l-1z":w}).1P(\'29\');18(u!="")$(Y).17("1c-1d","-"+(x+n)+"1a 1H");e.1j(Y)};c.17("1c-1d","1H -"+(x-n+1)+"1a")};1i;1e"b":18(f){18(b.1k.19&&b.1v.19){$(Y).17({1f:y-n+"1a","1B-1g":b.1k.19-n+"1a","1B-1q":b.1v.19-n+"1a","1l-1A":w});18(u!=""&&x>0)$(Y).17("1c-1d","-"+(b.1k.19-n)+"1a -"+(c.1f()+x-n+1)+"1a");1h $(Y).17("1c-1d","-"+(b.1k.19-n)+"1a -"+(c.1f())+"1a").1P(\'29\');f.1j(Y)}};1i}}};c.2K(e);c.2K(f)}7 2o={1m:{19:8},1p:{19:8},1k:{19:8},1v:{19:8},2c:21,2F:21,3I:["1F"]};18(Z&&1Z(Z)!=\'3J\')$.3K(2o,Z);1o 2p.3L(1t(){18(!$(2p).3M(\'.2C\')){2A(2p,2o)}})}})(3N);', 62, 236, '|||||||var||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||css|if|radius|px|Math|background|position|case|height|left|else|break|appendChild|bl|border|tl|100|return|tr|right|pow|repeat|function|style|br|parseInt|strip_px|absolute|top|bottom|margin|abs|document|createElement|div|width|0px|overflow|padding|substr|switch|sqrt|drawPixel|1px|addClass|IntToHex|substring|font|size|hidden|color|for|255|max|typeof|null|true|base|pixelFraction|new|Array|min|indexOf|image|hasBackgroundColor|undefined|relative|antiAlias|round|rem|MakeHex|rgb2Hex|rgb2Array|in|format_colour|auto|browser|backgroundColor|opacity|bb|this|BlendColour|baseS|remS|transparent|rgba|length|setOpacity|MozOpacity|filter|KHTMLOpacity|applyCorners|borderTopWidth|hasCorners|visible|zoom|autoPad|cloneNode|floor|ceil|childNodes|prepend|fn|corner|Left|Top|Right|Bottom|LeftRight|TopRight|TopBottom|LeftBottom|default|try|catch|alert|There||was|an|error|converting|the|RGB|value|to|Hexadecimal|split|rgb|slice|99|999|safari|tagName|IFRAME|alpha|backgroundImage|scrollHeight|scrollWidth|paddingTop|paddingBottom|paddingLeft|paddingRight|none|initial|borderTopColor|solid|borderColor|borderColour|msie|version|normal|topContainer|bottomContainer|content_container|float|autoPadDiv|clear|both|wrapInner|DIV|validTags|string|extend|each|is|jQuery'.split('|'), 0, {}))
