/*! Script for normal/larger/smaller text */
function normalText(a) { document.getElementById(a).style.fontSize = "12px" } function sizeText(a, b) { if (document.getElementById(a).style.fontSize == "") { document.getElementById(a).style.fontSize = "12px" } document.getElementById(a).style.fontSize = parseFloat(document.getElementById(a).style.fontSize) + b * 2 + "px" } function showHide(a) { if (document.getElementById(a)) { if (document.getElementById(a + "-show").style.display != "none") { document.getElementById(a + "-show").style.display = "none"; document.getElementById(a).style.display = "block" } else { document.getElementById(a + "-show").style.display = "inline"; document.getElementById(a).style.display = "none" } } }
/*! jCarousel - http://sorgalla.com/jcarousel/ */
(function (i) { var q = { vertical: false, rtl: false, start: 1, offset: 1, size: null, scroll: 3, 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, itemFallbackDimension: null }, r = false; i(window).bind("load.jcarousel", function () { r = true }); i.jcarousel = function (a, c) { this.options = i.extend({}, q, c || {}); this.autoStopped = this.locked = false; this.buttonPrevState = this.buttonNextState = this.buttonPrev = this.buttonNext = this.list = this.clip = this.container = null; if (!c || c.rtl === undefined) this.options.rtl = (i(a).attr("dir") || i("html").attr("dir") || "").toLowerCase() == "rtl"; this.wh = !this.options.vertical ? "width" : "height"; this.lt = !this.options.vertical ? this.options.rtl ? "right" : "left" : "top"; for (var b = "", d = a.className.split(" "), f = 0; f < d.length; f++) if (d[f].indexOf("jcarousel-skin") != -1) { i(a).removeClass(d[f]); b = d[f]; break } if (a.nodeName.toUpperCase() == "UL" || a.nodeName.toUpperCase() == "OL") { this.list = i(a); this.container = this.list.parent(); if (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 = i(a); this.list = this.container.find("ul,ol").eq(0) } b !== "" && this.container.parent()[0].className.indexOf("jcarousel-skin") == -1 && this.container.wrap('<div class=" ' + b + '"></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 = i(".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 = i(".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, margin: 0, padding: 0 }).css(this.options.rtl ? "right" : "left", 0); this.container.addClass(this.className("jcarousel-container")).css({ position: "relative" }); !this.options.vertical && this.options.rtl && this.container.addClass("jcarousel-direction-rtl").attr("dir", "rtl"); var j = this.options.visible !== null ? Math.ceil(this.clipping() / this.options.visible) : null; b = this.list.children("li"); var e = this; if (b.size() > 0) { var g = 0, k = this.options.offset; b.each(function () { e.format(this, k++); g += e.dimension(this, j) }); this.list.css(this.wh, g + 100 + "px"); if (!c || c.size === undefined) this.options.size = b.size() } this.container.css("display", "block"); this.buttonNext.css("display", "block"); this.buttonPrev.css("display", "block"); this.funcNext = function () { e.next() }; this.funcPrev = function () { e.prev() }; this.funcResize = function () { e.reload() }; this.options.initCallback !== null && this.options.initCallback(this, "init"); if (!r && i.browser.safari) { this.buttons(false, false); i(window).bind("load.jcarousel", function () { e.setup() }) } else this.setup() }; var h = i.jcarousel; h.fn = h.prototype = { jcarousel: "0.2.7" }; h.fn.extend = h.extend = i.extend; h.fn.extend({ setup: function () { this.prevLast = this.prevFirst = this.last = this.first = null; this.animating = false; this.tail = this.timer = null; this.inTail = false; if (!this.locked) { this.list.css(this.lt, this.pos(this.options.offset) + "px"); var a = this.pos(this.options.start, true); this.prevFirst = this.prevLast = null; this.animate(a, false); i(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, h.intval(this.list.css(this.lt)) + this.tail); this.tail = null; this.inTail = false; this.options.reloadCallback !== null && this.options.reloadCallback(this); if (this.options.visible !== null) { var a = this, c = Math.ceil(this.clipping() / this.options.visible), b = 0, d = 0; this.list.children("li").each(function (f) { b += a.dimension(this, c); if (f + 1 < a.first) d = b }); this.list.css(this.wh, b + "px"); this.list.css(this.lt, -d + "px") } this.scroll(this.first, false) }, lock: function () { this.locked = true; this.buttons() }, unlock: function () { this.locked = false; this.buttons() }, size: function (a) { if (a !== undefined) { this.options.size = a; this.locked || this.buttons() } return this.options.size }, has: function (a, c) { if (c === undefined || !c) c = a; if (this.options.size !== null && c > this.options.size) c = this.options.size; for (var b = a; b <= c; b++) { var d = this.get(b); if (!d.length || d.hasClass("jcarousel-item-placeholder")) return false } return true }, get: function (a) { return i(".jcarousel-item-" + a, this.list) }, add: function (a, c) { var b = this.get(a), d = 0, f = i(c); if (b.length === 0) { var j, e = h.intval(a); for (b = this.create(a); ; ) { j = this.get(--e); if (e <= 0 || j.length) { e <= 0 ? this.list.prepend(b) : j.after(b); break } } } else d = this.dimension(b); if (f.get(0).nodeName.toUpperCase() == "LI") { b.replaceWith(f); b = f } else b.empty().append(c); this.format(b.removeClass(this.className("jcarousel-item-placeholder")), a); f = this.options.visible !== null ? Math.ceil(this.clipping() / this.options.visible) : null; d = this.dimension(b, f) - d; a > 0 && a < this.first && this.list.css(this.lt, h.intval(this.list.css(this.lt)) - d + "px"); this.list.css(this.wh, h.intval(this.list.css(this.wh)) + d + "px"); return b }, remove: function (a) { var c = this.get(a); if (!(!c.length || a >= this.first && a <= this.last)) { var b = this.dimension(c); a < this.first && this.list.css(this.lt, h.intval(this.list.css(this.lt)) + b + "px"); c.remove(); this.list.css(this.wh, h.intval(this.list.css(this.wh)) - b + "px") } }, next: function () { this.tail !== null && !this.inTail ? this.scrollTail(false) : 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.tail !== null && this.inTail ? this.scrollTail(true) : 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)) { this.pauseAuto(); var c = h.intval(this.list.css(this.lt)); c = !a ? c - this.tail : c + this.tail; this.inTail = !a; this.prevFirst = this.first; this.prevLast = this.last; this.animate(c) } }, scroll: function (a, c) { if (!(this.locked || this.animating)) { this.pauseAuto(); this.animate(this.pos(a), c) } }, pos: function (a, c) { var b = h.intval(this.list.css(this.lt)); if (this.locked || this.animating) return b; if (this.options.wrap != "circular") a = a < 1 ? 1 : this.options.size && a > this.options.size ? this.options.size : a; for (var d = this.first > a, f = this.options.wrap != "circular" && this.first <= 1 ? 1 : this.first, j = d ? this.get(f) : this.get(this.last), e = d ? f : f - 1, g = null, k = 0, l = false, m = 0; d ? --e >= a : ++e < a; ) { g = this.get(e); l = !g.length; if (g.length === 0) { g = this.create(e).addClass(this.className("jcarousel-item-placeholder")); j[d ? "before" : "after"](g); if (this.first !== null && this.options.wrap == "circular" && this.options.size !== null && (e <= 0 || e > this.options.size)) { j = this.get(this.index(e)); if (j.length) g = this.add(e, j.clone(true)) } } j = g; m = this.dimension(g); if (l) k += m; if (this.first !== null && (this.options.wrap == "circular" || e >= 1 && (this.options.size === null || e <= this.options.size))) b = d ? b + m : b - m } f = this.clipping(); var p = [], o = 0, n = 0; j = this.get(a - 1); for (e = a; ++o; ) { g = this.get(e); l = !g.length; if (g.length === 0) { g = this.create(e).addClass(this.className("jcarousel-item-placeholder")); j.length === 0 ? this.list.prepend(g) : j[d ? "before" : "after"](g); if (this.first !== null && this.options.wrap == "circular" && this.options.size !== null && (e <= 0 || e > this.options.size)) { j = this.get(this.index(e)); if (j.length) g = this.add(e, j.clone(true)) } } j = g; m = this.dimension(g); if (m === 0) throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..."); if (this.options.wrap != "circular" && this.options.size !== null && e > this.options.size) p.push(g); else if (l) k += m; n += m; if (n >= f) break; e++ } for (g = 0; g < p.length; g++) p[g].remove(); if (k > 0) { this.list.css(this.wh, this.dimension(this.list) + k + "px"); if (d) { b -= k; this.list.css(this.lt, h.intval(this.list.css(this.lt)) - k + "px") } } k = a + o - 1; if (this.options.wrap != "circular" && this.options.size && k > this.options.size) k = this.options.size; if (e > k) { o = 0; e = k; for (n = 0; ++o; ) { g = this.get(e--); if (!g.length) break; n += this.dimension(g); if (n >= f) break } } e = k - o + 1; if (this.options.wrap != "circular" && e < 1) e = 1; if (this.inTail && d) { b += this.tail; this.inTail = false } this.tail = null; if (this.options.wrap != "circular" && k == this.options.size && k - o + 1 >= 1) { d = h.margin(this.get(k), !this.options.vertical ? "marginRight" : "marginBottom"); if (n - d > f) this.tail = n - f - d } if (c && a === this.options.size && this.tail) { b -= this.tail; this.inTail = true } for (; a-- > e; ) b += this.dimension(this.get(a)); this.prevFirst = this.first; this.prevLast = this.last; this.first = e; this.last = k; return b }, animate: function (a, c) { if (!(this.locked || this.animating)) { this.animating = true; var b = this, d = function () { b.animating = false; a === 0 && b.list.css(b.lt, 0); if (!b.autoStopped && (b.options.wrap == "circular" || b.options.wrap == "both" || b.options.wrap == "last" || b.options.size === null || b.last < b.options.size || b.last == b.options.size && b.tail !== null && !b.inTail)) b.startAuto(); b.buttons(); b.notify("onAfterAnimation"); if (b.options.wrap == "circular" && b.options.size !== null) for (var f = b.prevFirst; f <= b.prevLast; f++) if (f !== null && !(f >= b.first && f <= b.last) && (f < 1 || f > b.options.size)) b.remove(f) }; this.notify("onBeforeAnimation"); if (!this.options.animation || c === false) { this.list.css(this.lt, a + "px"); d() } else this.list.animate(!this.options.vertical ? this.options.rtl ? { right: a} : { left: a} : { top: a }, this.options.animation, this.options.easing, d) } }, startAuto: function (a) { if (a !== undefined) this.options.auto = a; if (this.options.auto === 0) return this.stopAuto(); if (this.timer === null) { this.autoStopped = false; var c = this; this.timer = window.setTimeout(function () { c.next() }, this.options.auto * 1E3) } }, stopAuto: function () { this.pauseAuto(); this.autoStopped = true }, pauseAuto: function () { if (this.timer !== null) { window.clearTimeout(this.timer); this.timer = null } }, buttons: function (a, c) { if (a == null) { a = !this.locked && this.options.size !== 0 && (this.options.wrap && this.options.wrap != "first" || this.options.size === null || this.last < this.options.size); if (!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 (c == null) { c = !this.locked && this.options.size !== 0 && (this.options.wrap && this.options.wrap != "last" || this.first > 1); if (!this.locked && (!this.options.wrap || this.options.wrap == "last") && this.options.size !== null && this.first == 1) c = this.tail !== null && this.inTail } var b = this; if (this.buttonNext.size() > 0) { this.buttonNext.unbind(this.options.buttonNextEvent + ".jcarousel", this.funcNext); a && this.buttonNext.bind(this.options.buttonNextEvent + ".jcarousel", this.funcNext); this.buttonNext[a ? "removeClass" : "addClass"](this.className("jcarousel-next-disabled")).attr("disabled", a ? false : true); this.options.buttonNextCallback !== null && this.buttonNext.data("jcarouselstate") != a && this.buttonNext.each(function () { b.options.buttonNextCallback(b, this, a) }).data("jcarouselstate", a) } else this.options.buttonNextCallback !== null && this.buttonNextState != a && this.options.buttonNextCallback(b, null, a); if (this.buttonPrev.size() > 0) { this.buttonPrev.unbind(this.options.buttonPrevEvent + ".jcarousel", this.funcPrev); c && this.buttonPrev.bind(this.options.buttonPrevEvent + ".jcarousel", this.funcPrev); this.buttonPrev[c ? "removeClass" : "addClass"](this.className("jcarousel-prev-disabled")).attr("disabled", c ? false : true); this.options.buttonPrevCallback !== null && this.buttonPrev.data("jcarouselstate") != c && this.buttonPrev.each(function () { b.options.buttonPrevCallback(b, this, c) }).data("jcarouselstate", c) } else this.options.buttonPrevCallback !== null && this.buttonPrevState != c && this.options.buttonPrevCallback(b, null, c); this.buttonNextState = a; this.buttonPrevState = c }, notify: function (a) { var c = this.prevFirst === null ? "init" : this.prevFirst < this.first ? "next" : "prev"; this.callback("itemLoadCallback", a, c); if (this.prevFirst !== this.first) { this.callback("itemFirstInCallback", a, c, this.first); this.callback("itemFirstOutCallback", a, c, this.prevFirst) } if (this.prevLast !== this.last) { this.callback("itemLastInCallback", a, c, this.last); this.callback("itemLastOutCallback", a, c, this.prevLast) } this.callback("itemVisibleInCallback", a, c, this.first, this.last, this.prevFirst, this.prevLast); this.callback("itemVisibleOutCallback", a, c, this.prevFirst, this.prevLast, this.first, this.last) }, callback: function (a, c, b, d, f, j, e) { if (!(this.options[a] == null || typeof this.options[a] != "object" && c != "onAfterAnimation")) { var g = typeof this.options[a] == "object" ? this.options[a][c] : this.options[a]; if (i.isFunction(g)) { var k = this; if (d === undefined) g(k, b, c); else if (f === undefined) this.get(d).each(function () { g(k, this, d, b, c) }); else { a = function (m) { k.get(m).each(function () { g(k, this, m, b, c) }) }; for (var l = d; l <= f; l++) l !== null && !(l >= j && l <= e) && a(l) } } } }, create: function (a) { return this.format("<li></li>", a) }, format: function (a, c) { a = i(a); for (var b = a.get(0).className.split(" "), d = 0; d < b.length; d++) b[d].indexOf("jcarousel-") != -1 && a.removeClass(b[d]); a.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-" + c)).css({ "float": this.options.rtl ? "right" : "left", "list-style": "none" }).attr("jcarouselindex", c); return a }, className: function (a) { return a + " " + a + (!this.options.vertical ? "-horizontal" : "-vertical") }, dimension: function (a, c) { var b = a.jquery !== undefined ? a[0] : a, d = !this.options.vertical ? (b.offsetWidth || h.intval(this.options.itemFallbackDimension)) + h.margin(b, "marginLeft") + h.margin(b, "marginRight") : (b.offsetHeight || h.intval(this.options.itemFallbackDimension)) + h.margin(b, "marginTop") + h.margin(b, "marginBottom"); if (c == null || d == c) return d; d = !this.options.vertical ? c - h.margin(b, "marginLeft") - h.margin(b, "marginRight") : c - h.margin(b, "marginTop") - h.margin(b, "marginBottom"); i(b).css(this.wh, d + "px"); return this.dimension(b) }, clipping: function () { return !this.options.vertical ? this.clip[0].offsetWidth - h.intval(this.clip.css("borderLeftWidth")) - h.intval(this.clip.css("borderRightWidth")) : this.clip[0].offsetHeight - h.intval(this.clip.css("borderTopWidth")) - h.intval(this.clip.css("borderBottomWidth")) }, index: function (a, c) { if (c == null) c = this.options.size; return Math.round(((a - 1) / c - Math.floor((a - 1) / c)) * c) + 1 } }); h.extend({ defaults: function (a) { return i.extend(q, a || {}) }, margin: function (a, c) { if (!a) return 0; var b = a.jquery !== undefined ? a[0] : a; if (c == "marginRight" && i.browser.safari) { var d = { display: "block", "float": "none", width: "auto" }, f, j; i.swap(b, d, function () { f = b.offsetWidth }); d.marginRight = 0; i.swap(b, d, function () { j = b.offsetWidth }); return j - f } return h.intval(i.css(b, c)) }, intval: function (a) { a = parseInt(a, 10); return isNaN(a) ? 0 : a } }); i.fn.jcarousel = function (a) { if (typeof a == "string") { var c = i(this).data("jcarousel"), b = Array.prototype.slice.call(arguments, 1); return c[a].apply(c, b) } else return this.each(function () { i(this).data("jcarousel", new h(this, a)) }) } })(jQuery);
/*! jQuery UI 1.8.16 */
(function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.16",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({propAttr:c.fn.prop||c.fn.attr,_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a,"tabindex"),d=isNaN(b);return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&c.ui.isOverAxis(b,e,i)}})}})(jQuery);
;/*! jQuery UI Widget 1.8.16 */
(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)try{b(d).triggerHandler("remove")}catch(e){}k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(d){}});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.charAt(0)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=b.extend(true,{},this.options,this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
;/*! jQuery UI Mouse 1.8.16 Depends:jquery.ui.widget.js */
(function(b){var d=false;b(document).mouseup(function(){d=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(true===b.data(c.target,a.widgetName+".preventClickEvent")){b.removeData(c.target,a.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(a){if(!d){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,f=a.which==1,g=typeof this.options.cancel=="string"&&a.target.nodeName?b(a.target).closest(this.options.cancel).length:false;if(!f||g||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}true===b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return d=true}},_mouseMove:function(a){if(b.browser.msie&&!(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
;/* jQuery UI Accordion 1.8.16 Depends:jquery.ui.core.js,jquery.ui.widget.js */
(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var h=d.closest(".ui-accordion-header");a.active=h.length?h:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion",function(f){return a._keydown(f)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(f){a._clickHandler.call(a,f,this);f.preventDefault()})},_createIcons:function(){var a=this.options;if(a.icons){c("<span></span>").addClass("ui-icon "+a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons();b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,h=this.headers.index(a.target),f=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:f=this.headers[(h+1)%d];break;case b.LEFT:case b.UP:f=this.headers[(h-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target);a.preventDefault()}if(f){c(a.target).attr("tabIndex",-1);c(f).attr("tabIndex",0);f.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options;if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){var h=this.active;j=a.next();g=this.active.next();e={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):j,oldContent:g};var f=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(j,g,e,b,f);h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);a.next().addClass("ui-accordion-content-active")}}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(),e={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:g},j=this.active=c([]);this._toggle(j,g,e)}},_toggle:function(a,b,d,h,f){var g=this,e=g.options;g.toShow=a;g.toHide=b;g.data=d;var j=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&h?{toShow:c([]),toHide:b,complete:j,down:f,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:f,autoHeight:e.autoHeight||e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;h=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!h[k]&&!c.easing[k])k="slide";h[k]||(h[k]=function(l){this.slide(l,{easing:k,duration:i||700})});h[k](d)}else{if(e.collapsible&&h)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.16",animations:{slide:function(a,b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),h=0,f={},g={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){g[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/);f[i]={value:j[1],unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,{step:function(j,i){if(i.prop=="height")h=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=h*f[i.prop].value+f[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery);
;/* jQuery UI Slider 1.8.16 Depends:jquery.ui.core.js,jquery.ui.mouse.js,jquery.ui.widget.js */
(function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var a=this,b=this.options,c=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=b.values&&b.values.length||1,e=[];this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(b.disabled?" ui-slider-disabled ui-disabled":""));this.range=d([]);if(b.range){if(b.range===true){if(!b.values)b.values=[this._valueMin(),this._valueMin()];if(b.values.length&&b.values.length!==2)b.values=[b.values[0],b.values[0]]}this.range=d("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(b.range==="min"||b.range==="max"?" ui-slider-range-"+b.range:""))}for(var j=c.length;j<f;j+=1)e.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");this.handles=c.add(d(e.join("")).appendTo(a.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(g){g.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur();else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(g){d(this).data("index.ui-slider-handle",g)});this.handles.keydown(function(g){var k=true,l=d(this).data("index.ui-slider-handle"),i,h,m;if(!a.options.disabled){switch(g.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:k=false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");i=a._start(g,l);if(i===false)return}break}m=a.options.step;i=a.options.values&&a.options.values.length?(h=a.values(l)):(h=a.value());switch(g.keyCode){case d.ui.keyCode.HOME:h=a._valueMin();break;case d.ui.keyCode.END:h=a._valueMax();break;case d.ui.keyCode.PAGE_UP:h=a._trimAlignValue(i+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:h=a._trimAlignValue(i-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(i===a._valueMax())return;h=a._trimAlignValue(i+m);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(i===a._valueMin())return;h=a._trimAlignValue(i-m);break}a._slide(g,l,h);return k}}).keyup(function(g){var k=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(g,k);a._change(g,k);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(a){var b=this.options,c,f,e,j,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});f=this._valueMax()-this._valueMin()+1;j=this;this.handles.each(function(k){var l=Math.abs(c-j.values(k));if(f>l){f=l;e=d(this);g=k}});if(b.range===true&&this.values(1)===b.min){g+=1;e=d(this.handles[g])}if(this._start(a,g)===false)return false;this._mouseSliding=true;j._handleIndex=g;e.addClass("ui-state-active").focus();b=e.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-e.width()/2,top:a.pageY-b.top-e.height()/2-(parseInt(e.css("borderTopWidth"),10)||0)-(parseInt(e.css("borderBottomWidth"),10)||0)+(parseInt(e.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b=this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b=this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var f;if(this.options.values&&this.options.values.length){f=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>f||b===1&&c<f))c=f;if(c!==this.values(b)){f=this.values();f[b]=c;a=this._trigger("slide",a,{handle:this.handles[b],value:c,values:f});this.values(b?0:1);a!==false&&this.values(b,c,true)}}else if(c!==this.value()){a=this._trigger("slide",a,{handle:this.handles[b],value:c});a!==false&&this.value(c)}},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("change",a,c)}},value:function(a){if(arguments.length){this.options.value=this._trimAlignValue(a);this._refreshValue();this._change(null,0)}else return this._value()},values:function(a,b){var c,f,e;if(arguments.length>1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}else if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;f=arguments[0];for(e=0;e<c.length;e+=1){c[e]=this._trimAlignValue(f[e]);this._change(null,e)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(a):this.value();else return this._values()},_setOption:function(a,b){var c,f=0;if(d.isArray(this.options.values))f=this.options.values.length;d.Widget.prototype._setOption.apply(this,arguments);switch(a){case "disabled":if(b){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.propAttr("disabled",true);this.element.addClass("ui-disabled")}else{this.handles.propAttr("disabled",false);this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(c=0;c<f;c+=1)this._change(null,c);this._animateOff=false;break}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c;if(arguments.length){b=this.options.values[a];return b=this._trimAlignValue(b)}else{b=this.options.values.slice();for(c=0;c<b.length;c+=1)b[c]=this._trimAlignValue(b[c]);return b}},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a=this.options.range,b=this.options,c=this,f=!this._animateOff?b.animate:false,e,j={},g,k,l,i;if(this.options.values&&this.options.values.length)this.handles.each(function(h){e=(c.values(h)-c._valueMin())/(c._valueMax()-c._valueMin())*100;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";d(this).stop(1,1)[f?"animate":"css"](j,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(h===0)c.range.stop(1,1)[f?"animate":"css"]({left:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({width:e-g+"%"},{queue:false,duration:b.animate})}else{if(h===0)c.range.stop(1,1)[f?"animate":"css"]({bottom:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({height:e-g+"%"},{queue:false,duration:b.animate})}g=e});else{k=this.value();l=this._valueMin();i=this._valueMax();e=i!==l?(k-l)/(i-l)*100:0;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[f?"animate":"css"](j,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:e+"%"},b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-e+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:e+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-e+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.16"})})(jQuery);
; /* jquery.geekga.js - jQuery plugin for Google Analytics Version 1.1, Willem van Zyl, willem@geekology.co.za, http://www.geekology.co.za/blog/ */
(function($){var pageTracker;$.geekGaTrackPage=function(account_id){var host=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");var src=host+'google-analytics.com/ga.js';$.ajax({type:'GET',url:src,success:function(){pageTracker=_gat._getTracker(account_id);pageTracker._trackPageview();},error:function(){throw"Unable to load ga.js; _gat has not been defined.";},dataType:'script',cache:true});};
$.geekGaTrackEvent=function(category,action,label,value){if(typeof pageTracker!=undefined){pageTracker._trackEvent(category,action,label,value);}else{throw"Unable to track event; pageTracker has not been defined";}};})(jQuery);
/* ColorBox v1.3.18 (c)2011 Jack Moore - jack@colorpowered.com */
(function (a, b, c) { function Y(c, d, e) { var g = b.createElement(c); return d && (g.id = f + d), e && (g.style.cssText = e), a(g) } function Z(a) { var b = y.length, c = (Q + a) % b; return c < 0 ? b + c : c } function $(a, b) { return Math.round((/%/.test(a) ? (b === "x" ? z.width() : z.height()) / 100 : 1) * parseInt(a, 10)) } function _(a) { return K.photo || /\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(a) } function ba() { var b; K = a.extend({}, a.data(P, e)); for (b in K) a.isFunction(K[b]) && b.slice(0, 2) !== "on" && (K[b] = K[b].call(P)); K.rel = K.rel || P.rel || "nofollow", K.href = K.href || a(P).attr("href"), K.title = K.title || P.title, typeof K.href == "string" && (K.href = a.trim(K.href)) } function bb(b, c) { a.event.trigger(b), c && c.call(P) } function bc() { var a, b = f + "Slideshow_", c = "click." + f, d, e, g; K.slideshow && y[1] ? (d = function () { F.text(K.slideshowStop).unbind(c).bind(j, function () { if (Q < y.length - 1 || K.loop) a = setTimeout(W.next, K.slideshowSpeed) }).bind(i, function () { clearTimeout(a) }).one(c + " " + k, e), r.removeClass(b + "off").addClass(b + "on"), a = setTimeout(W.next, K.slideshowSpeed) }, e = function () { clearTimeout(a), F.text(K.slideshowStart).unbind([j, i, k, c].join(" ")).one(c, function () { W.next(), d() }), r.removeClass(b + "on").addClass(b + "off") }, K.slideshowAuto ? d() : e()) : r.removeClass(b + "off " + b + "on") } function bd(b) { if (!U) { P = b, ba(), y = a(P), Q = 0, K.rel !== "nofollow" && (y = a("." + g).filter(function () { var b = a.data(this, e).rel || this.rel; return b === K.rel }), Q = y.index(P), Q === -1 && (y = y.add(P), Q = y.length - 1)); if (!S) { S = T = !0, r.show(); if (K.returnFocus) try { P.blur(), a(P).one(l, function () { try { this.focus() } catch (a) { } }) } catch (c) { } q.css({ opacity: +K.opacity, cursor: K.overlayClose ? "pointer" : "auto" }).show(), K.w = $(K.initialWidth, "x"), K.h = $(K.initialHeight, "y"), W.position(), o && z.bind("resize." + p + " scroll." + p, function () { q.css({ width: z.width(), height: z.height(), top: z.scrollTop(), left: z.scrollLeft() }) }).trigger("resize." + p), bb(h, K.onOpen), J.add(D).hide(), I.html(K.close).show() } W.load(!0) } } var d = { transition: "elastic", speed: 300, width: !1, initialWidth: "600", innerWidth: !1, maxWidth: !1, height: !1, initialHeight: "450", innerHeight: !1, maxHeight: !1, scalePhotos: !0, scrolling: !0, inline: !1, html: !1, iframe: !1, fastIframe: !0, photo: !1, href: !1, title: !1, rel: !1, opacity: .9, preloading: !0, current: "image {current} of {total}", previous: "previous", next: "next", close: "close", open: !1, returnFocus: !0, loop: !0, slideshow: !1, slideshowAuto: !0, slideshowSpeed: 2500, slideshowStart: "start slideshow", slideshowStop: "stop slideshow", onOpen: !1, onLoad: !1, onComplete: !1, onCleanup: !1, onClosed: !1, overlayClose: !0, escKey: !0, arrowKey: !0, top: !1, bottom: !1, left: !1, right: !1, fixed: !1, data: undefined }, e = "colorbox", f = "cbox", g = f + "Element", h = f + "_open", i = f + "_load", j = f + "_complete", k = f + "_cleanup", l = f + "_closed", m = f + "_purge", n = a.browser.msie && !a.support.opacity, o = n && a.browser.version < 7, p = f + "_IE6", q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X = "div"; W = a.fn[e] = a[e] = function (b, c) { var f = this; b = b || {}, W.init(); if (!f[0]) { if (f.selector) return f; f = a("<a/>"), b.open = !0 } return c && (b.onComplete = c), f.each(function () { a.data(this, e, a.extend({}, a.data(this, e) || d, b)), a(this).addClass(g) }), (a.isFunction(b.open) && b.open.call(f) || b.open) && bd(f[0]), f }, W.init = function () { if (!r) { if (!a("body")[0]) { a(W.init); return } z = a(c), r = Y(X).attr({ id: e, "class": n ? f + (o ? "IE6" : "IE") : "" }), q = Y(X, "Overlay", o ? "position:absolute" : "").hide(), s = Y(X, "Wrapper"), t = Y(X, "Content").append(A = Y(X, "LoadedContent", "width:0; height:0; overflow:hidden"), C = Y(X, "LoadingOverlay").add(Y(X, "LoadingGraphic")), D = Y(X, "Title"), E = Y(X, "Current"), G = Y(X, "Next"), H = Y(X, "Previous"), F = Y(X, "Slideshow").bind(h, bc), I = Y(X, "Close")), s.append(Y(X).append(Y(X, "TopLeft"), u = Y(X, "TopCenter"), Y(X, "TopRight")), Y(X, !1, "clear:left").append(v = Y(X, "MiddleLeft"), t, w = Y(X, "MiddleRight")), Y(X, !1, "clear:left").append(Y(X, "BottomLeft"), x = Y(X, "BottomCenter"), Y(X, "BottomRight"))).find("div div").css({ "float": "left" }), B = Y(X, !1, "position:absolute; width:9999px; visibility:hidden; display:none"), a("body").prepend(q, r.append(s, B)), L = u.height() + x.height() + t.outerHeight(!0) - t.height(), M = v.width() + w.width() + t.outerWidth(!0) - t.width(), N = A.outerHeight(!0), O = A.outerWidth(!0), r.css({ "padding-bottom": L, "padding-right": M }).hide(), G.click(function () { W.next() }), H.click(function () { W.prev() }), I.click(function () { W.close() }), J = G.add(H).add(E).add(F), q.click(function () { K.overlayClose && W.close() }), a(b).bind("keydown." + f, function (a) { var b = a.keyCode; S && K.escKey && b === 27 && (a.preventDefault(), W.close()), S && K.arrowKey && y[1] && (b === 37 ? (a.preventDefault(), H.click()) : b === 39 && (a.preventDefault(), G.click())) }) } }, W.remove = function () { r.add(q).remove(), r = null, a("." + g).removeData(e).removeClass(g) }, W.position = function (a, b) { function g(a) { u[0].style.width = x[0].style.width = t[0].style.width = a.style.width, C[0].style.height = C[1].style.height = t[0].style.height = v[0].style.height = w[0].style.height = a.style.height } var c = 0, d = 0, e = r.offset(); z.unbind("resize." + f), r.css({ top: -99999, left: -99999 }), K.fixed && !o ? r.css({ position: "fixed" }) : (c = z.scrollTop(), d = z.scrollLeft(), r.css({ position: "absolute" })), K.right !== !1 ? d += Math.max(z.width() - K.w - O - M - $(K.right, "x"), 0) : K.left !== !1 ? d += $(K.left, "x") : d += Math.round(Math.max(z.width() - K.w - O - M, 0) / 2), K.bottom !== !1 ? c += Math.max(z.height() - K.h - N - L - $(K.bottom, "y"), 0) : K.top !== !1 ? c += $(K.top, "y") : c += Math.round(Math.max(z.height() - K.h - N - L, 0) / 2), r.css({ top: e.top, left: e.left }), a = r.width() === K.w + O && r.height() === K.h + N ? 0 : a || 0, s[0].style.width = s[0].style.height = "9999px", r.dequeue().animate({ width: K.w + O, height: K.h + N, top: c, left: d }, { duration: a, complete: function () { g(this), T = !1, s[0].style.width = K.w + O + M + "px", s[0].style.height = K.h + N + L + "px", b && b(), setTimeout(function () { z.bind("resize." + f, W.position) }, 1) }, step: function () { g(this) } }) }, W.resize = function (a) { S && (a = a || {}, a.width && (K.w = $(a.width, "x") - O - M), a.innerWidth && (K.w = $(a.innerWidth, "x")), A.css({ width: K.w }), a.height && (K.h = $(a.height, "y") - N - L), a.innerHeight && (K.h = $(a.innerHeight, "y")), !a.innerHeight && !a.height && (A.css({ height: "auto" }), K.h = A.height()), A.css({ height: K.h }), W.position(K.transition === "none" ? 0 : K.speed)) }, W.prep = function (b) { function g() { return K.w = K.w || A.width(), K.w = K.mw && K.mw < K.w ? K.mw : K.w, K.w } function h() { return K.h = K.h || A.height(), K.h = K.mh && K.mh < K.h ? K.mh : K.h, K.h } if (!S) return; var c, d = K.transition === "none" ? 0 : K.speed; A.remove(), A = Y(X, "LoadedContent").append(b), A.hide().appendTo(B.show()).css({ width: g(), overflow: K.scrolling ? "auto" : "hidden" }).css({ height: h() }).prependTo(t), B.hide(), a(R).css({ "float": "none" }), o && a("select").not(r.find("select")).filter(function () { return this.style.visibility !== "hidden" }).css({ visibility: "hidden" }).one(k, function () { this.style.visibility = "inherit" }), c = function () { function q() { n && r[0].style.removeAttribute("filter") } var b, c, g = y.length, h, i = "frameBorder", k = "allowTransparency", l, o, p; if (!S) return; l = function () { clearTimeout(V), C.hide(), bb(j, K.onComplete) }, n && R && A.fadeIn(100), D.html(K.title).add(A).show(); if (g > 1) { typeof K.current == "string" && E.html(K.current.replace("{current}", Q + 1).replace("{total}", g)).show(), G[K.loop || Q < g - 1 ? "show" : "hide"]().html(K.next), H[K.loop || Q ? "show" : "hide"]().html(K.previous), K.slideshow && F.show(); if (K.preloading) { b = [Z(-1), Z(1)]; while (c = y[b.pop()]) o = a.data(c, e).href || c.href, a.isFunction(o) && (o = o.call(c)), _(o) && (p = new Image, p.src = o) } } else J.hide(); K.iframe ? (h = Y("iframe")[0], i in h && (h[i] = 0), k in h && (h[k] = "true"), h.name = f + +(new Date), K.fastIframe ? l() : a(h).one("load", l), h.src = K.href, K.scrolling || (h.scrolling = "no"), a(h).addClass(f + "Iframe").appendTo(A).one(m, function () { h.src = "//about:blank" })) : l(), K.transition === "fade" ? r.fadeTo(d, 1, q) : q() }, K.transition === "fade" ? r.fadeTo(d, 0, function () { W.position(0, c) }) : W.position(d, c) }, W.load = function (b) { var c, d, e = W.prep; T = !0, R = !1, P = y[Q], b || ba(), bb(m), bb(i, K.onLoad), K.h = K.height ? $(K.height, "y") - N - L : K.innerHeight && $(K.innerHeight, "y"), K.w = K.width ? $(K.width, "x") - O - M : K.innerWidth && $(K.innerWidth, "x"), K.mw = K.w, K.mh = K.h, K.maxWidth && (K.mw = $(K.maxWidth, "x") - O - M, K.mw = K.w && K.w < K.mw ? K.w : K.mw), K.maxHeight && (K.mh = $(K.maxHeight, "y") - N - L, K.mh = K.h && K.h < K.mh ? K.h : K.mh), c = K.href, V = setTimeout(function () { C.show() }, 100), K.inline ? (Y(X).hide().insertBefore(a(c)[0]).one(m, function () { a(this).replaceWith(A.children()) }), e(a(c))) : K.iframe ? e(" ") : K.html ? e(K.html) : _(c) ? (a(R = new Image).addClass(f + "Photo").error(function () { K.title = !1, e(Y(X, "Error").text("This image could not be loaded")) }).load(function () { var a; R.onload = null, K.scalePhotos && (d = function () { R.height -= R.height * a, R.width -= R.width * a }, K.mw && R.width > K.mw && (a = (R.width - K.mw) / R.width, d()), K.mh && R.height > K.mh && (a = (R.height - K.mh) / R.height, d())), K.h && (R.style.marginTop = Math.max(K.h - R.height, 0) / 2 + "px"), y[1] && (Q < y.length - 1 || K.loop) && (R.style.cursor = "pointer", R.onclick = function () { W.next() }), n && (R.style.msInterpolationMode = "bicubic"), setTimeout(function () { e(R) }, 1) }), setTimeout(function () { R.src = c }, 1)) : c && B.load(c, K.data, function (b, c, d) { e(c === "error" ? Y(X, "Error").text("Request unsuccessful: " + d.statusText) : a(this).contents()) }) }, W.next = function () { !T && y[1] && (Q < y.length - 1 || K.loop) && (Q = Z(1), W.load()) }, W.prev = function () { !T && y[1] && (Q || K.loop) && (Q = Z(-1), W.load()) }, W.close = function () { S && !U && (U = !0, S = !1, bb(k, K.onCleanup), z.unbind("." + f + " ." + p), q.fadeTo(200, 0), r.stop().fadeTo(300, 0, function () { r.add(q).css({ opacity: 1, cursor: "auto" }).hide(), bb(m), A.remove(), setTimeout(function () { U = !1, bb(l, K.onClosed) }, 1) })) }, W.element = function () { return a(P) }, W.settings = d, a("." + g, b).live("click", function (a) { a.which > 1 || a.shiftKey || a.altKey || a.metaKey || (a.preventDefault(), bd(this)) }), W.init() })(jQuery, document, this);
/* Datepicker v2.1.2 - ID:2010-09-22 08:54:28 (c) 2008 Kelvin Luck (http://www.kelvinluck.com) */
(function ($) { $.fn.extend({ renderCalendar: function (s) { var dc = function (a) { return document.createElement(a) }; s = $.extend({}, $.fn.datePicker.defaults, s); if (s.showHeader != $.dpConst.SHOW_HEADER_NONE) { var headRow = $(dc('tr')); for (var i = Date.firstDayOfWeek; i < Date.firstDayOfWeek + 7; i++) { var weekday = i % 7; var day = Date.dayNames[weekday]; headRow.append(jQuery(dc('th')).attr({ 'scope': 'col', 'abbr': day, 'title': day, 'class': (weekday == 0 || weekday == 6 ? 'weekend' : 'weekday') }).html(s.showHeader == $.dpConst.SHOW_HEADER_SHORT ? day.substr(0, 1) : day)) } }; var calendarTable = $(dc('table')).attr({ 'cellspacing': 2 }).addClass('jCalendar').append((s.showHeader != $.dpConst.SHOW_HEADER_NONE ? $(dc('thead')).append(headRow) : dc('thead'))); var tbody = $(dc('tbody')); var today = (new Date()).zeroTime(); today.setHours(12); var month = s.month == undefined ? today.getMonth() : s.month; var year = s.year || today.getFullYear(); var currentDate = (new Date(year, month, 1, 12, 0, 0)); var firstDayOffset = Date.firstDayOfWeek - currentDate.getDay() + 1; if (firstDayOffset > 1) firstDayOffset -= 7; var weeksToDraw = Math.ceil(((-1 * firstDayOffset + 1) + currentDate.getDaysInMonth()) / 7); currentDate.addDays(firstDayOffset - 1); var doHover = function (firstDayInBounds) { return function () { if (s.hoverClass) { var $this = $(this); if (!s.selectWeek) { $this.addClass(s.hoverClass) } else if (firstDayInBounds && !$this.is('.disabled')) { $this.parent().addClass('activeWeekHover') } } } }; var unHover = function () { if (s.hoverClass) { var $this = $(this); $this.removeClass(s.hoverClass); $this.parent().removeClass('activeWeekHover') } }; var w = 0; while (w++ < weeksToDraw) { var r = jQuery(dc('tr')); var firstDayInBounds = s.dpController ? currentDate > s.dpController.startDate : false; for (var i = 0; i < 7; i++) { var thisMonth = currentDate.getMonth() == month; var d = $(dc('td')).text(currentDate.getDate() + '').addClass((thisMonth ? 'current-month ' : 'other-month ') + (currentDate.isWeekend() ? 'weekend ' : 'weekday ') + (thisMonth && currentDate.getTime() == today.getTime() ? 'today ' : '')).data('datePickerDate', currentDate.asString()).hover(doHover(firstDayInBounds), unHover); r.append(d); if (s.renderCallback) { s.renderCallback(d, currentDate, month, year) } currentDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDate() + 1, 12, 0, 0) } tbody.append(r) } calendarTable.append(tbody); return this.each(function () { $(this).empty().append(calendarTable) }) }, datePicker: function (s) { if (!$.event._dpCache) $.event._dpCache = []; s = $.extend({}, $.fn.datePicker.defaults, s); return this.each(function () { var $this = $(this); var alreadyExists = true; if (!this._dpId) { this._dpId = $.event.guid++; $.event._dpCache[this._dpId] = new DatePicker(this); alreadyExists = false } if (s.inline) { s.createButton = false; s.displayClose = false; s.closeOnSelect = false; $this.empty() } var controller = $.event._dpCache[this._dpId]; controller.init(s); if (!alreadyExists && s.createButton) { controller.button = $('<a href="#" class="dp-choose-date" title="' + $.dpText.TEXT_CHOOSE_DATE + '">' + $.dpText.TEXT_CHOOSE_DATE + '</a>').bind('click', function () { $this.dpDisplay(this); this.blur(); return false }); $this.after(controller.button) } if (!alreadyExists && $this.is(':text')) { $this.bind('dateSelected', function (e, selectedDate, $td) { this.value = selectedDate.asString() }).bind('change', function () { if (this.value == '') { controller.clearSelected() } else { var d = Date.fromString(this.value); if (d) { controller.setSelected(d, true, true) } } }); if (s.clickInput) { $this.bind('click', function () { $this.trigger('change'); $this.dpDisplay() }) } var d = Date.fromString(this.value); if (this.value != '' && d) { controller.setSelected(d, true, true) } } $this.addClass('dp-applied') }) }, dpSetDisabled: function (s) { return _w.call(this, 'setDisabled', s) }, dpSetStartDate: function (d) { return _w.call(this, 'setStartDate', d) }, dpSetEndDate: function (d) { return _w.call(this, 'setEndDate', d) }, dpGetSelected: function () { var c = _getController(this[0]); if (c) { return c.getSelected() } return null }, dpSetSelected: function (d, v, m, e) { if (v == undefined) v = true; if (m == undefined) m = true; if (e == undefined) e = true; return _w.call(this, 'setSelected', Date.fromString(d), v, m, e) }, dpSetDisplayedMonth: function (m, y) { return _w.call(this, 'setDisplayedMonth', Number(m), Number(y), true) }, dpDisplay: function (e) { return _w.call(this, 'display', e) }, dpSetRenderCallback: function (a) { return _w.call(this, 'setRenderCallback', a) }, dpSetPosition: function (v, h) { return _w.call(this, 'setPosition', v, h) }, dpSetOffset: function (v, h) { return _w.call(this, 'setOffset', v, h) }, dpClose: function () { return _w.call(this, '_closeCalendar', false, this[0]) }, dpRerenderCalendar: function () { return _w.call(this, '_rerenderCalendar') }, _dpDestroy: function () { } }); var _w = function (f, a1, a2, a3, a4) { return this.each(function () { var c = _getController(this); if (c) { c[f](a1, a2, a3, a4) } }) }; function DatePicker(ele) { this.ele = ele; this.displayedMonth = null; this.displayedYear = null; this.startDate = null; this.endDate = null; this.showYearNavigation = null; this.closeOnSelect = null; this.displayClose = null; this.rememberViewedMonth = null; this.selectMultiple = null; this.numSelectable = null; this.numSelected = null; this.verticalPosition = null; this.horizontalPosition = null; this.verticalOffset = null; this.horizontalOffset = null; this.button = null; this.renderCallback = []; this.selectedDates = {}; this.inline = null; this.context = '#dp-popup'; this.settings = {} }; $.extend(DatePicker.prototype, { init: function (s) { this.setStartDate(s.startDate); this.setEndDate(s.endDate); this.setDisplayedMonth(Number(s.month), Number(s.year)); this.setRenderCallback(s.renderCallback); this.showYearNavigation = s.showYearNavigation; this.closeOnSelect = s.closeOnSelect; this.displayClose = s.displayClose; this.rememberViewedMonth = s.rememberViewedMonth; this.selectMultiple = s.selectMultiple; this.numSelectable = s.selectMultiple ? s.numSelectable : 1; this.numSelected = 0; this.verticalPosition = s.verticalPosition; this.horizontalPosition = s.horizontalPosition; this.hoverClass = s.hoverClass; this.setOffset(s.verticalOffset, s.horizontalOffset); this.inline = s.inline; this.settings = s; if (this.inline) { this.context = this.ele; this.display() } }, setStartDate: function (d) { if (d) { if (d instanceof Date) { this.startDate = d } else { this.startDate = Date.fromString(d) } } if (!this.startDate) { this.startDate = (new Date()).zeroTime() } this.setDisplayedMonth(this.displayedMonth, this.displayedYear) }, setEndDate: function (d) { if (d) { if (d instanceof Date) { this.endDate = d } else { this.endDate = Date.fromString(d) } } if (!this.endDate) { this.endDate = (new Date('12/31/2999')) } if (this.endDate.getTime() < this.startDate.getTime()) { this.endDate = this.startDate } this.setDisplayedMonth(this.displayedMonth, this.displayedYear) }, setPosition: function (v, h) { this.verticalPosition = v; this.horizontalPosition = h }, setOffset: function (v, h) { this.verticalOffset = parseInt(v) || 0; this.horizontalOffset = parseInt(h) || 0 }, setDisabled: function (s) { $e = $(this.ele); $e[s ? 'addClass' : 'removeClass']('dp-disabled'); if (this.button) { $but = $(this.button); $but[s ? 'addClass' : 'removeClass']('dp-disabled'); $but.attr('title', s ? '' : $.dpText.TEXT_CHOOSE_DATE) } if ($e.is(':text')) { $e.attr('disabled', s ? 'disabled' : '') } }, setDisplayedMonth: function (m, y, rerender) { if (this.startDate == undefined || this.endDate == undefined) { return } var s = new Date(this.startDate.getTime()); s.setDate(1); var e = new Date(this.endDate.getTime()); e.setDate(1); var t; if ((!m && !y) || (isNaN(m) && isNaN(y))) { t = new Date().zeroTime(); t.setDate(1) } else if (isNaN(m)) { t = new Date(y, this.displayedMonth, 1) } else if (isNaN(y)) { t = new Date(this.displayedYear, m, 1) } else { t = new Date(y, m, 1) } if (t.getTime() < s.getTime()) { t = s } else if (t.getTime() > e.getTime()) { t = e } var oldMonth = this.displayedMonth; var oldYear = this.displayedYear; this.displayedMonth = t.getMonth(); this.displayedYear = t.getFullYear(); if (rerender && (this.displayedMonth != oldMonth || this.displayedYear != oldYear)) { this._rerenderCalendar(); $(this.ele).trigger('dpMonthChanged', [this.displayedMonth, this.displayedYear]) } }, setSelected: function (d, v, moveToMonth, dispatchEvents) { if (d < this.startDate || d.zeroTime() > this.endDate.zeroTime()) { return } var s = this.settings; if (s.selectWeek) { d = d.addDays(-(d.getDay() - Date.firstDayOfWeek + 7) % 7); if (d < this.startDate) { return } } if (v == this.isSelected(d)) { return } if (this.selectMultiple == false) { this.clearSelected() } else if (v && this.numSelected == this.numSelectable) { return } if (moveToMonth && (this.displayedMonth != d.getMonth() || this.displayedYear != d.getFullYear())) { this.setDisplayedMonth(d.getMonth(), d.getFullYear(), true) } this.selectedDates[d.asString()] = v; this.numSelected += v ? 1 : -1; var selectorString = 'td.' + (d.getMonth() == this.displayedMonth ? 'current-month' : 'other-month'); var $td; $(selectorString, this.context).each(function () { if ($(this).data('datePickerDate') == d.asString()) { $td = $(this); if (s.selectWeek) { $td.parent()[v ? 'addClass' : 'removeClass']('selectedWeek') } $td[v ? 'addClass' : 'removeClass']('selected') } }); $('td', this.context).not('.selected')[this.selectMultiple && this.numSelected == this.numSelectable ? 'addClass' : 'removeClass']('unselectable'); if (dispatchEvents) { var s = this.isSelected(d); $e = $(this.ele); var dClone = Date.fromString(d.asString()); $e.trigger('dateSelected', [dClone, $td, s]); $e.trigger('change') } }, isSelected: function (d) { return this.selectedDates[d.asString()] }, getSelected: function () { var r = []; for (var s in this.selectedDates) { if (this.selectedDates[s] == true) { r.push(Date.fromString(s)) } } return r }, clearSelected: function () { this.selectedDates = {}; this.numSelected = 0; $('td.selected', this.context).removeClass('selected').parent().removeClass('selectedWeek') }, display: function (eleAlignTo) { if ($(this.ele).is('.dp-disabled')) return; eleAlignTo = eleAlignTo || this.ele; var c = this; var $ele = $(eleAlignTo); var eleOffset = $ele.offset(); var $createIn; var attrs; var attrsCalendarHolder; var cssRules; if (c.inline) { $createIn = $(this.ele); attrs = { 'id': 'calendar-' + this.ele._dpId, 'class': 'dp-popup dp-popup-inline' }; $('.dp-popup', $createIn).remove(); cssRules = {} } else { $createIn = $('body'); attrs = { 'id': 'dp-popup', 'class': 'dp-popup' }; cssRules = { 'top': eleOffset.top + c.verticalOffset, 'left': eleOffset.left + c.horizontalOffset }; var _checkMouse = function (e) { var el = e.target; var cal = $('#dp-popup')[0]; while (true) { if (el == cal) { return true } else if (el == document) { c._closeCalendar(); return false } else { el = $(el).parent()[0] } } }; this._checkMouse = _checkMouse; c._closeCalendar(true); $(document).bind('keydown.datepicker', function (event) { if (event.keyCode == 27) { c._closeCalendar() } }) } if (!c.rememberViewedMonth) { var selectedDate = this.getSelected()[0]; if (selectedDate) { selectedDate = new Date(selectedDate); this.setDisplayedMonth(selectedDate.getMonth(), selectedDate.getFullYear(), false) } } $createIn.append($('<div></div>').attr(attrs).css(cssRules).append($('<h2></h2>'), $('<div class="dp-nav-prev"></div>').append($('<a class="dp-nav-prev-year" href="#" title="' + $.dpText.TEXT_PREV_YEAR + '">&lt;&lt;</a>').bind('click', function () { return c._displayNewMonth.call(c, this, 0, -1) }), $('<a class="dp-nav-prev-month" href="#" title="' + $.dpText.TEXT_PREV_MONTH + '">&lt;</a>').bind('click', function () { return c._displayNewMonth.call(c, this, -1, 0) })), $('<div class="dp-nav-next"></div>').append($('<a class="dp-nav-next-year" href="#" title="' + $.dpText.TEXT_NEXT_YEAR + '">&gt;&gt;</a>').bind('click', function () { return c._displayNewMonth.call(c, this, 0, 1) }), $('<a class="dp-nav-next-month" href="#" title="' + $.dpText.TEXT_NEXT_MONTH + '">&gt;</a>').bind('click', function () { return c._displayNewMonth.call(c, this, 1, 0) })), $('<div class="dp-calendar"></div>')).bgIframe()); var $pop = this.inline ? $('.dp-popup', this.context) : $('#dp-popup'); if (this.showYearNavigation == false) { $('.dp-nav-prev-year, .dp-nav-next-year', c.context).css('display', 'none') } if (this.displayClose) { $pop.append($('<a href="#" id="dp-close">' + $.dpText.TEXT_CLOSE + '</a>').bind('click', function () { c._closeCalendar(); return false })) } c._renderCalendar(); $(this.ele).trigger('dpDisplayed', $pop); if (!c.inline) { if (this.verticalPosition == $.dpConst.POS_BOTTOM) { $pop.css('top', eleOffset.top + $ele.height() - $pop.height() + c.verticalOffset) } if (this.horizontalPosition == $.dpConst.POS_RIGHT) { $pop.css('left', eleOffset.left + $ele.width() - $pop.width() + c.horizontalOffset) } $(document).bind('mousedown.datepicker', this._checkMouse) } }, setRenderCallback: function (a) { if (a == null) return; if (a && typeof (a) == 'function') { a = [a] } this.renderCallback = this.renderCallback.concat(a) }, cellRender: function ($td, thisDate, month, year) { var c = this.dpController; var d = new Date(thisDate.getTime()); $td.bind('click', function () { var $this = $(this); if (!$this.is('.disabled')) { c.setSelected(d, !$this.is('.selected') || !c.selectMultiple, false, true); if (c.closeOnSelect) { if (c.settings.autoFocusNextInput) { var ele = c.ele; var found = false; $(':input', ele.form).each(function () { if (found) { $(this).focus(); return false } if (this == ele) { found = true } }) } else { c.ele.focus() } c._closeCalendar() } } }); if (c.isSelected(d)) { $td.addClass('selected'); if (c.settings.selectWeek) { $td.parent().addClass('selectedWeek') } } else if (c.selectMultiple && c.numSelected == c.numSelectable) { $td.addClass('unselectable') } }, _applyRenderCallbacks: function () { var c = this; $('td', this.context).each(function () { for (var i = 0; i < c.renderCallback.length; i++) { $td = $(this); c.renderCallback[i].apply(this, [$td, Date.fromString($td.data('datePickerDate')), c.displayedMonth, c.displayedYear]) } }); return }, _displayNewMonth: function (ele, m, y) { if (!$(ele).is('.disabled')) { this.setDisplayedMonth(this.displayedMonth + m, this.displayedYear + y, true) } ele.blur(); return false }, _rerenderCalendar: function () { this._clearCalendar(); this._renderCalendar() }, _renderCalendar: function () { $('h2', this.context).html((new Date(this.displayedYear, this.displayedMonth, 1)).asString($.dpText.HEADER_FORMAT)); $('.dp-calendar', this.context).renderCalendar($.extend({}, this.settings, { month: this.displayedMonth, year: this.displayedYear, renderCallback: this.cellRender, dpController: this, hoverClass: this.hoverClass })); if (this.displayedYear == this.startDate.getFullYear() && this.displayedMonth == this.startDate.getMonth()) { $('.dp-nav-prev-year', this.context).addClass('disabled'); $('.dp-nav-prev-month', this.context).addClass('disabled'); $('.dp-calendar td.other-month', this.context).each(function () { var $this = $(this); if (Number($this.text()) > 20) { $this.addClass('disabled') } }); var d = this.startDate.getDate(); $('.dp-calendar td.current-month', this.context).each(function () { var $this = $(this); if (Number($this.text()) < d) { $this.addClass('disabled') } }) } else { $('.dp-nav-prev-year', this.context).removeClass('disabled'); $('.dp-nav-prev-month', this.context).removeClass('disabled'); var d = this.startDate.getDate(); if (d > 20) { var st = this.startDate.getTime(); var sd = new Date(st); sd.addMonths(1); if (this.displayedYear == sd.getFullYear() && this.displayedMonth == sd.getMonth()) { $('.dp-calendar td.other-month', this.context).each(function () { var $this = $(this); if (Date.fromString($this.data('datePickerDate')).getTime() < st) { $this.addClass('disabled') } }) } } } if (this.displayedYear == this.endDate.getFullYear() && this.displayedMonth == this.endDate.getMonth()) { $('.dp-nav-next-year', this.context).addClass('disabled'); $('.dp-nav-next-month', this.context).addClass('disabled'); $('.dp-calendar td.other-month', this.context).each(function () { var $this = $(this); if (Number($this.text()) < 14) { $this.addClass('disabled') } }); var d = this.endDate.getDate(); $('.dp-calendar td.current-month', this.context).each(function () { var $this = $(this); if (Number($this.text()) > d) { $this.addClass('disabled') } }) } else { $('.dp-nav-next-year', this.context).removeClass('disabled'); $('.dp-nav-next-month', this.context).removeClass('disabled'); var d = this.endDate.getDate(); if (d < 13) { var ed = new Date(this.endDate.getTime()); ed.addMonths(-1); if (this.displayedYear == ed.getFullYear() && this.displayedMonth == ed.getMonth()) { $('.dp-calendar td.other-month', this.context).each(function () { var $this = $(this); var cellDay = Number($this.text()); if (cellDay < 13 && cellDay > d) { $this.addClass('disabled') } }) } } } this._applyRenderCallbacks() }, _closeCalendar: function (programatic, ele) { if (!ele || ele == this.ele) { $(document).unbind('mousedown.datepicker'); $(document).unbind('keydown.datepicker'); this._clearCalendar(); $('#dp-popup a').unbind(); $('#dp-popup').empty().remove(); if (!programatic) { $(this.ele).trigger('dpClosed', [this.getSelected()]) } } }, _clearCalendar: function () { $('.dp-calendar td', this.context).unbind(); $('.dp-calendar', this.context).empty() } }); $.dpConst = { SHOW_HEADER_NONE: 0, SHOW_HEADER_SHORT: 1, SHOW_HEADER_LONG: 2, POS_TOP: 0, POS_BOTTOM: 1, POS_LEFT: 0, POS_RIGHT: 1, DP_INTERNAL_FOCUS: 'dpInternalFocusTrigger' }; $.dpText = { TEXT_PREV_YEAR: 'Previous year', TEXT_PREV_MONTH: 'Previous month', TEXT_NEXT_YEAR: 'Next year', TEXT_NEXT_MONTH: 'Next month', TEXT_CLOSE: 'Close', TEXT_CHOOSE_DATE: 'Choose date', HEADER_FORMAT: 'mmmm yyyy' }; $.dpVersion = '$Id: jquery.datePicker.js 103 2010-09-22 08:54:28Z kelvin.luck $'; $.fn.datePicker.defaults = { month: undefined, year: undefined, showHeader: $.dpConst.SHOW_HEADER_SHORT, startDate: undefined, endDate: undefined, inline: false, renderCallback: null, createButton: true, showYearNavigation: true, closeOnSelect: true, displayClose: false, selectMultiple: false, numSelectable: Number.MAX_VALUE, clickInput: false, rememberViewedMonth: true, selectWeek: false, verticalPosition: $.dpConst.POS_TOP, horizontalPosition: $.dpConst.POS_LEFT, verticalOffset: 0, horizontalOffset: 0, hoverClass: 'dp-hover', autoFocusNextInput: false }; function _getController(ele) { if (ele._dpId) return $.event._dpCache[ele._dpId]; return false }; if ($.fn.bgIframe == undefined) { $.fn.bgIframe = function () { return this } }; $(window).bind('unload', function () { var els = $.event._dpCache || []; for (var i in els) { $(els[i].ele)._dpDestroy() } }) })(jQuery);
/* Date - (c) 2006 Jörn Zaefferer and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net) */
Date.dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; Date.abbrDayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; Date.monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; Date.abbrMonthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; Date.firstDayOfWeek = 1; Date.format = 'dd/mm/yyyy'; Date.fullYearStart = '20'; (function () { function add(name, method) { if (!Date.prototype[name]) { Date.prototype[name] = method } }; add("isLeapYear", function () { var y = this.getFullYear(); return (y % 4 == 0 && y % 100 != 0) || y % 400 == 0 }); add("isWeekend", function () { return this.getDay() == 0 || this.getDay() == 6 }); add("isWeekDay", function () { return !this.isWeekend() }); add("getDaysInMonth", function () { return [31, (this.isLeapYear() ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][this.getMonth()] }); add("getDayName", function (abbreviated) { return abbreviated ? Date.abbrDayNames[this.getDay()] : Date.dayNames[this.getDay()] }); add("getMonthName", function (abbreviated) { return abbreviated ? Date.abbrMonthNames[this.getMonth()] : Date.monthNames[this.getMonth()] }); add("getDayOfYear", function () { var tmpdtm = new Date("1/1/" + this.getFullYear()); return Math.floor((this.getTime() - tmpdtm.getTime()) / 86400000) }); add("getWeekOfYear", function () { return Math.ceil(this.getDayOfYear() / 7) }); add("setDayOfYear", function (day) { this.setMonth(0); this.setDate(day); return this }); add("addYears", function (num) { this.setFullYear(this.getFullYear() + num); return this }); add("addMonths", function (num) { var tmpdtm = this.getDate(); this.setMonth(this.getMonth() + num); if (tmpdtm > this.getDate()) this.addDays(-this.getDate()); return this }); add("addDays", function (num) { this.setTime(this.getTime() + (num * 86400000)); return this }); add("addHours", function (num) { this.setHours(this.getHours() + num); return this }); add("addMinutes", function (num) { this.setMinutes(this.getMinutes() + num); return this }); add("addSeconds", function (num) { this.setSeconds(this.getSeconds() + num); return this }); add("zeroTime", function () { this.setMilliseconds(0); this.setSeconds(0); this.setMinutes(0); this.setHours(0); return this }); add("asString", function (format) { var r = format || Date.format; return r.split('yyyy').join(this.getFullYear()).split('yy').join((this.getFullYear() + '').substring(2)).split('mmmm').join(this.getMonthName(false)).split('mmm').join(this.getMonthName(true)).split('mm').join(_zeroPad(this.getMonth() + 1)).split('dd').join(_zeroPad(this.getDate())) }); Date.fromString = function (s) { var f = Date.format; var d = new Date('01/01/1977'); var mLength = 0; var iM = f.indexOf('mmmm'); if (iM > -1) { for (var i = 0; i < Date.monthNames.length; i++) { var mStr = s.substr(iM, Date.monthNames[i].length); if (Date.monthNames[i] == mStr) { mLength = Date.monthNames[i].length - 4; break } } d.setMonth(i) } else { iM = f.indexOf('mmm'); if (iM > -1) { var mStr = s.substr(iM, 3); for (var i = 0; i < Date.abbrMonthNames.length; i++) { if (Date.abbrMonthNames[i] == mStr) break } d.setMonth(i) } else { d.setMonth(Number(s.substr(f.indexOf('mm'), 2)) - 1) } } var iY = f.indexOf('yyyy'); if (iY > -1) { if (iM < iY) { iY += mLength } d.setFullYear(Number(s.substr(iY, 4))) } else { if (iM < iY) { iY += mLength } d.setFullYear(Number(Date.fullYearStart + s.substr(f.indexOf('yy'), 2))) } var iD = f.indexOf('dd'); if (iM < iD) { iD += mLength } d.setDate(Number(s.substr(iD, 2))); if (isNaN(d.getTime())) { return false } return d }; var _zeroPad = function (num) { var s = '0' + num; return s.substring(s.length - 2) } })();
/* Tipsy */
(function ($) { $.fn.tipsy = function (opts) { opts = $.extend({ fade: false, gravity: 'n' }, opts || {}); var tip = null, cancelHide = false; this.hover(function () { $.data(this, 'cancel.tipsy', true); var tip = $.data(this, 'active.tipsy'); if (!tip) { tip = $('<div class="tipsy"><div class="tipsy-inner">' + $(this).attr('title') + '</div></div>'); tip.css({ position: 'absolute', zIndex: 100000 }); $(this).attr('title', ''); $.data(this, 'active.tipsy', tip) } var pos = $.extend({}, $(this).offset(), { width: this.offsetWidth, height: this.offsetHeight }); tip.remove().css({ top: 0, left: 0, visibility: 'hidden', display: 'block' }).appendTo(document.body); var actualWidth = tip[0].offsetWidth, actualHeight = tip[0].offsetHeight; switch (opts.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: 1 }) } 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) }) } })(jQuery);
/* Simple jQuery Slideshow Script, Released by Jon Raasch (jonraasch.com), FreeBSD license. */
function slideSwitch() { var $active = $('#slideshow div.active, #slideshownyhet div.active'); if ($active.length == 0) $active = $('#slideshow div:last, #slideshownyhet div:last'); var $next = $active.next().length ? $active.next() : $('#slideshow div:first, #slideshownyhet div:first'); var $sibs = $active.siblings(); var rndNum = Math.floor(Math.random() * $sibs.length); var $next = $($sibs[rndNum]); $active.addClass('last-active'); $next.css({ opacity: 0.0 }).addClass('active').animate({ opacity: 1.0 }, 1000, function () { $active.removeClass('active last-active') }) }
$(function () { setInterval("slideSwitch()", 7000) });
/* jCountdown 1.3.3 - (c) 2011 Tom Ellis */
(function (g) { g.fn.countdown = function (j) { var s = { date: new Date, updateTime: 1E3, htmlTemplate: "%{d} <span class='cd-time'>dagar</span> %{h}:%{m}:%{s}", minus: false, onChange: null, onComplete: null, onResume: null, onPause: null, leadingZero: false, offset: null, servertime: null, hoursOnly: false, direction: "down" }, t = [].slice, k = Math.floor, u = /(%\{d\}|%\{h\}|%\{m\}|%\{s\})/g, n = /%\{d\}/, o = /%\{h\}/, p = /%\{m\}/, q = /%\{s\}/, r = function (c, a) { var b, d = new Date; if (c === null) b = d.getTime() - a; else { b = c * 36E5; curHrs = d.getTime() - -d.getTimezoneOffset() / 60 * 36E5 + b; b = d.setTime(curHrs) } return new Date(b) }, l = function () { var c, a, b, d, f, h, i; c = ""; var e = this.data("jcdData"); if (!e) return false; c = e.htmlTemplate; a = e.offset === null && e.servertime === null ? new Date : e.offset !== null ? r(e.offset) : r(null, e.difference); b = new Date(e.date); d = (e.direction === "down" ? b.getTime() - a.getTime() : a.getTime() - b.getTime()) / 864E5; f = k(d); h = (d - f) * 24; d = k(h); i = k((h - d) * 60); h = Math.round(((h - d) * 60 - i) * 60); if (e.hoursOnly) { d += f * 24; f = 0 } e.daysLeft = f; e.hrsLeft = d; e.minsLeft = i; e.secLeft = h; if (h == 60) h = 0; if (e.leadingZero) { if (f < 10 && !e.hoursOnly) f = "0" + f; if (d < 10) d = "0" + d; if (i < 10) i = "0" + i; if (h < 10) h = "0" + h } if (e.direction === "down" && (a <= b || e.minus)) c = c.replace(n, f).replace(o, d).replace(p, i).replace(q, h); else if (e.direction === "up" && (b <= a || e.minus)) c = c.replace(n, f).replace(o, d).replace(p, i).replace(q, h); else { c = c.replace(u, "00"); e.hasCompleted = true } this.html(c).trigger("change.jcdevt", [e]); if (e.hasCompleted) { this.trigger("complete.jcdevt"); clearInterval(e.timer) } }, m = { init: function (c) { var a = g.extend({}, s, c); return this.each(function () { var b = g(this), d = {}, f; if (b.data("jcdData")) { b.countdown("changeSettings", c); return true } a.onChange && b.bind("change.jcdevt", a.onChange); a.onComplete && b.bind("complete.jcdevt", a.onComplete); a.onPause && b.bind("pause.jcdevt", a.onPause); a.onResume && b.bind("resume.jcdevt", a.onResume); d = { originalContent: b.html(), date: a.date, hoursOnly: a.hoursOnly, leadingZero: a.leadingZero, updateTime: a.updateTime, direction: a.direction, template: a.htmlTemplate, htmlTemplate: a.htmlTemplate, minus: a.minus, offset: a.offset, servertime: a.servertime, difference: null, onChange: a.onChange, onComplete: a.onComplete, onResume: a.onResume, onPause: a.onPause, hasCompleted: false, timer: 0 }; if (a.servertime !== null) { f = (new Date).getTime() - d.servertime; f = Number(f); d.difference = f } f = g.proxy(l, b); d.timer = setInterval(f, d.updateTime); b.data("jcdData", d); f() }) }, changeSettings: function (c) { return this.each(function () { var a = g(this), b, d = g.proxy(l, a); if (!a.data("jcdData")) return true; b = g.extend({}, a.data("jcdData"), c); a.unbind(".jcdevt"); clearInterval(b.timer); b.onChange && a.bind("change.jcdevt", b.onChange); b.onComplete && a.bind("complete.jcdevt", b.onComplete); b.onPause && a.bind("pause.jcdevt", b.onPause); b.onResume && a.bind("resume.jcdevt", b.onResume); b.timer = setInterval(d, b.updateTime); a.data("jcdData", b); d() }) }, resume: function () { return this.each(function () { var c = g(this), a = c.data("jcdData"), b = g.proxy(l, c); if (!a) return true; a.timer = setInterval(b, a.updateTime); c.data("jcdData", a).trigger("resume.jcdevt"); b() }) }, pause: function () { return this.each(function () { var c = g(this), a = c.data("jcdData"); if (!a) return true; clearInterval(a.timer); c.data("jcdData", a).trigger("pause.jcdevt") }) }, complete: function () { return this.each(function () { var c = g(this), a = c.data("jcdData"); if (!a) return true; clearInterval(a.timer); a.hasCompleted = true; c.data("jcdData", a).trigger("complete.jcdevt").unbind(".jcdevt") }) }, destroy: function () { return this.each(function () { var c = g(this), a = c.data("jcdData"); if (!a) return true; clearInterval(a.timer); c.unbind(".jcdevt").removeData("jcdData").html(a.originalContent) }) }, getSettings: function (c) { var a = g(this).data("jcdData"); if (a) if (c) { if (a.hasOwnProperty(c)) return a[c] } else return a } }; if (m[j]) return m[j].apply(this, t.call(arguments, 1)); else if (typeof j === "object" || !j) return m.init.apply(this, arguments); else g.error("Method " + j + " does not exist in the jCountdown Plugin") } })(jQuery);
$(document).ready(function () {
    $("a[rel='internationellt_euprojekt'], a[rel='internationellt_sida'], a[rel='julbasar2011'], a[rel='evenemang_teater'], a[rel='evenemang_konserter'], a[rel='evenemang_eljas'], a[rel='evenemang_framling'], a[rel='tanzania2010'], a[rel='evenemang_temadag20100318'], a[rel='evenemang_tomas'], a[rel='afasi_livatiholken'], a[rel='sla_mig_gul_o_bla'], a[rel='evenemang_teatersportfinal'], a[rel='tspshow'], a[rel='virrigt'], a[rel='frotte2010'], a[rel='hemlosashus'], a[rel='teatercafe2010'], a[rel='teatersport20101006'], a[rel='eu_hippoterapi'], a[rel='lunchkonsert20101123'], a[rel='mingel2010'], a[rel='julbasar2010'], a[rel='24drommar'], a[rel='konstverk'], a[rel='sjonsuger'], a[rel='valborg2011'], a[rel='teatersport2011'], a[rel='solsidan2011'], a[rel='wadenius2011'], a[rel='charitywalk2011'], a[rel='jazzsondag2011']").colorbox({ slideshow: true, slideshowSpeed: 5000 });
    $(".youtube1, .youtube2").colorbox({ iframe: true, width: 665, height: 460 });
    $("#teater1, #teater2, #teater3, #teater4, #musik1, #musik2, #musik3, #musik4, #ansokan1, #konferens1, #konferens2, #afasi1").tipsy({ gravity: 'e' });
    $('#accordion-a, #accordion-e').accordion({ event: "mouseover", autoHeight: false });
    $("#mycarousel").jcarousel({ vertical: true, animation: "fast", scroll: 25 });
    $(".date-pick").datePicker({ clickInput: true });
    $.geekGaTrackPage('UA-11136694-1');
    $("ul.dropdown li").dropdown();
    $(".tab_content").hide(); //Hide all content
    $("ul.tabs li:first").addClass("active").show(); //Activate first tab
    $(".tab_content:first").show(); //Show first tab content
    // $("#time").countdown({ date: "December 3, 2011 13:00", hoursOnly: false, onChange: function (event, timer) { }, onComplete: function (event) { $(this).html("P&aring;g&aring;r"); }, leadingZero: true, direction: "down" });
    //On Click Event
    $("ul.tabs li").click(function () { $("ul.tabs li").removeClass("active"); $(this).addClass("active"); $(".tab_content").hide(); var activeTab = $(this).find("a").attr("href"); $(activeTab).fadeIn(); return false });
});
$.fn.dropdown = function () { $(this).hover(function () { $(this).addClass("hover"); $('> .dir', this).addClass("open"); $('ul:first', this).css('visibility', 'visible') }, function () { $(this).removeClass("hover"); $('.open', this).removeClass("open"); $('ul:first', this).css('visibility', 'hidden') }) }
