/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
* Copyright (c) 2008 George McGinley Smith and (c) 2001 Robert Penner
* Open source under the BSD License. (http://www.opensource.org/licenses/bsd-license.php)
*/
jQuery.easing.jswing = jQuery.easing.swing; jQuery.extend(jQuery.easing, { def: "easeOutQuad", swing: function (e, f, a, h, g) { return jQuery.easing[jQuery.easing.def](e, f, a, h, g) }, easeInQuad: function (e, f, a, h, g) { return h * (f /= g) * f + a }, easeOutQuad: function (e, f, a, h, g) { return -h * (f /= g) * (f - 2) + a }, easeInOutQuad: function (e, f, a, h, g) { if ((f /= g / 2) < 1) { return h / 2 * f * f + a } return -h / 2 * ((--f) * (f - 2) - 1) + a }, easeInCubic: function (e, f, a, h, g) { return h * (f /= g) * f * f + a }, easeOutCubic: function (e, f, a, h, g) { return h * ((f = f / g - 1) * f * f + 1) + a }, easeInOutCubic: function (e, f, a, h, g) { if ((f /= g / 2) < 1) { return h / 2 * f * f * f + a } return h / 2 * ((f -= 2) * f * f + 2) + a }, easeInQuart: function (e, f, a, h, g) { return h * (f /= g) * f * f * f + a }, easeOutQuart: function (e, f, a, h, g) { return -h * ((f = f / g - 1) * f * f * f - 1) + a }, easeInOutQuart: function (e, f, a, h, g) { if ((f /= g / 2) < 1) { return h / 2 * f * f * f * f + a } return -h / 2 * ((f -= 2) * f * f * f - 2) + a }, easeInQuint: function (e, f, a, h, g) { return h * (f /= g) * f * f * f * f + a }, easeOutQuint: function (e, f, a, h, g) { return h * ((f = f / g - 1) * f * f * f * f + 1) + a }, easeInOutQuint: function (e, f, a, h, g) { if ((f /= g / 2) < 1) { return h / 2 * f * f * f * f * f + a } return h / 2 * ((f -= 2) * f * f * f * f + 2) + a }, easeInSine: function (e, f, a, h, g) { return -h * Math.cos(f / g * (Math.PI / 2)) + h + a }, easeOutSine: function (e, f, a, h, g) { return h * Math.sin(f / g * (Math.PI / 2)) + a }, easeInOutSine: function (e, f, a, h, g) { return -h / 2 * (Math.cos(Math.PI * f / g) - 1) + a }, easeInExpo: function (e, f, a, h, g) { return (f == 0) ? a : h * Math.pow(2, 10 * (f / g - 1)) + a }, easeOutExpo: function (e, f, a, h, g) { return (f == g) ? a + h : h * (-Math.pow(2, -10 * f / g) + 1) + a }, easeInOutExpo: function (e, f, a, h, g) { if (f == 0) { return a } if (f == g) { return a + h } if ((f /= g / 2) < 1) { return h / 2 * Math.pow(2, 10 * (f - 1)) + a } return h / 2 * (-Math.pow(2, -10 * --f) + 2) + a }, easeInCirc: function (e, f, a, h, g) { return -h * (Math.sqrt(1 - (f /= g) * f) - 1) + a }, easeOutCirc: function (e, f, a, h, g) { return h * Math.sqrt(1 - (f = f / g - 1) * f) + a }, easeInOutCirc: function (e, f, a, h, g) { if ((f /= g / 2) < 1) { return -h / 2 * (Math.sqrt(1 - f * f) - 1) + a } return h / 2 * (Math.sqrt(1 - (f -= 2) * f) + 1) + a }, easeInElastic: function (f, h, e, l, k) { var i = 1.70158; var j = 0; var g = l; if (h == 0) { return e } if ((h /= k) == 1) { return e + l } if (!j) { j = k * 0.3 } if (g < Math.abs(l)) { g = l; var i = j / 4 } else { var i = j / (2 * Math.PI) * Math.asin(l / g) } return -(g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e }, easeOutElastic: function (f, h, e, l, k) { var i = 1.70158; var j = 0; var g = l; if (h == 0) { return e } if ((h /= k) == 1) { return e + l } if (!j) { j = k * 0.3 } if (g < Math.abs(l)) { g = l; var i = j / 4 } else { var i = j / (2 * Math.PI) * Math.asin(l / g) } return g * Math.pow(2, -10 * h) * Math.sin((h * k - i) * (2 * Math.PI) / j) + l + e }, easeInOutElastic: function (f, h, e, l, k) { var i = 1.70158; var j = 0; var g = l; if (h == 0) { return e } if ((h /= k / 2) == 2) { return e + l } if (!j) { j = k * (0.3 * 1.5) } if (g < Math.abs(l)) { g = l; var i = j / 4 } else { var i = j / (2 * Math.PI) * Math.asin(l / g) } if (h < 1) { return -0.5 * (g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e } return g * Math.pow(2, -10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j) * 0.5 + l + e }, easeInBack: function (e, f, a, i, h, g) { if (g == undefined) { g = 1.70158 } return i * (f /= h) * f * ((g + 1) * f - g) + a }, easeOutBack: function (e, f, a, i, h, g) { if (g == undefined) { g = 1.70158 } return i * ((f = f / h - 1) * f * ((g + 1) * f + g) + 1) + a }, easeInOutBack: function (e, f, a, i, h, g) { if (g == undefined) { g = 1.70158 } if ((f /= h / 2) < 1) { return i / 2 * (f * f * (((g *= (1.525)) + 1) * f - g)) + a } return i / 2 * ((f -= 2) * f * (((g *= (1.525)) + 1) * f + g) + 2) + a }, easeInBounce: function (e, f, a, h, g) { return h - jQuery.easing.easeOutBounce(e, g - f, 0, h, g) + a }, easeOutBounce: function (e, f, a, h, g) { if ((f /= g) < (1 / 2.75)) { return h * (7.5625 * f * f) + a } else { if (f < (2 / 2.75)) { return h * (7.5625 * (f -= (1.5 / 2.75)) * f + 0.75) + a } else { if (f < (2.5 / 2.75)) { return h * (7.5625 * (f -= (2.25 / 2.75)) * f + 0.9375) + a } else { return h * (7.5625 * (f -= (2.625 / 2.75)) * f + 0.984375) + a } } } }, easeInOutBounce: function (e, f, a, h, g) { if (f < g / 2) { return jQuery.easing.easeInBounce(e, f * 2, 0, h, g) * 0.5 + a } return jQuery.easing.easeOutBounce(e, f * 2 - g, 0, h, g) * 0.5 + h * 0.5 + a } });

/* Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
*
* Version: 3.0.2
* 
* Requires: 1.2.2+
*/
(function (c) { var a = ["DOMMouseScroll", "mousewheel"]; c.event.special.mousewheel = { setup: function () { if (this.addEventListener) { for (var d = a.length; d; ) { this.addEventListener(a[--d], b, false) } } else { this.onmousewheel = b } }, teardown: function () { if (this.removeEventListener) { for (var d = a.length; d; ) { this.removeEventListener(a[--d], b, false) } } else { this.onmousewheel = null } } }; c.fn.extend({ mousewheel: function (d) { return d ? this.bind("mousewheel", d) : this.trigger("mousewheel") }, unmousewheel: function (d) { return this.unbind("mousewheel", d) } }); function b(f) { var d = [].slice.call(arguments, 1), g = 0, e = true; f = c.event.fix(f || window.event); f.type = "mousewheel"; if (f.wheelDelta) { g = f.wheelDelta / 120 } if (f.detail) { g = -f.detail / 3 } d.unshift(f, g); return c.event.handle.apply(this, d) } })(jQuery);

/* Copyright (c) 2009 Kelvin Luck (kelvin AT kelvinluck DOT com || http://www.kelvinluck.com)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
* 
* See http://kelvinluck.com/assets/jquery/jScrollPane/
* $Id: jScrollPane.js 84 2009-08-06 17:19:48Z kelvin.luck@gmail.com $
*/
(function (a) { a.jScrollPane = { active: [] }; a.fn.jScrollPane = function (c) { c = a.extend({}, a.fn.jScrollPane.defaults, c); var b = function () { return false }; return this.each(function () { var t = a(this); var E = this; var am = 0; var L; var an; var r; var ac = c.topCapHeight; if (a(this).parent().is(".jScrollPaneContainer")) { am = c.maintainPosition ? t.position().top : 0; var q = a(this).parent(); L = q.innerWidth(); an = q.outerHeight(); a(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown, >.jScollCap", q).remove(); t.css({ top: 0 }) } else { t.data("originalStyleTag", t.attr("style")); t.css("overflow", "hidden"); this.originalPadding = t.css("paddingTop") + " " + t.css("paddingRight") + " " + t.css("paddingBottom") + " " + t.css("paddingLeft"); this.originalSidePaddingTotal = (parseInt(t.css("paddingLeft")) || 0) + (parseInt(t.css("paddingRight")) || 0); L = t.innerWidth(); an = t.innerHeight(); var j = a("<div></div>").attr({ className: "jScrollPaneContainer" }).css({ height: an + "px", width: L + "px" }); if (c.enableKeyboardNavigation) { j.attr("tabindex", c.tabIndex) } t.wrap(j); a(document).bind("emchange", function (ao, ap, p) { t.jScrollPane(c) }) } r = an; if (c.reinitialiseOnImageLoad) { var s = a.data(E, "jScrollPaneImagesToLoad") || a("img", t); var i = []; if (s.length) { s.each(function (p, ao) { a(this).bind("load readystatechange", function () { if (a.inArray(p, i) == -1) { i.push(ao); s = a.grep(s, function (ar, aq) { return ar != ao }); a.data(E, "jScrollPaneImagesToLoad", s); var ap = a.extend(c, { reinitialiseOnImageLoad: false }); t.jScrollPane(ap) } }).each(function (ap, aq) { if (this.complete || this.complete === undefined) { this.src = this.src } }) }) } } var X = this.originalSidePaddingTotal; var ai = L - c.scrollbarWidth - c.scrollbarMargin - X; var U = { height: "auto", width: ai + "px" }; if (c.scrollbarOnLeft) { U.paddingLeft = c.scrollbarMargin + c.scrollbarWidth + "px" } else { U.paddingRight = c.scrollbarMargin + "px" } t.css(U); var V = t.outerHeight(); var R = an / V; if (R < 0.99) { var j = t.parent(); j.append(a("<div></div>").addClass("jScrollCap jScrollCapTop").css({ height: c.topCapHeight }), a("<div></div>").attr({ className: "jScrollPaneTrack" }).css({ width: c.scrollbarWidth + "px" }).append(a("<div></div>").attr({ className: "jScrollPaneDrag" }).css({ width: c.scrollbarWidth + "px" }).append(a("<div></div>").attr({ className: "jScrollPaneDragTop" }).css({ width: c.scrollbarWidth + "px" }), a("<div></div>").attr({ className: "jScrollPaneDragBottom" }).css({ width: c.scrollbarWidth + "px" }))), a("<div></div>").addClass("jScrollCap jScrollCapBottom").css({ height: c.bottomCapHeight })); var aj = a(">.jScrollPaneTrack", j); var u = a(">.jScrollPaneTrack .jScrollPaneDrag", j); var al; var g = []; var Z; var S = function () { if (Z > 4 || Z % 4 == 0) { ah(ae + al * I) } Z++ }; if (c.enableKeyboardNavigation) { j.bind("keydown.jscrollpane", function (p) { switch (p.keyCode) { case 38: al = -1; Z = 0; S(); g[g.length] = setInterval(S, 100); return false; case 40: al = 1; Z = 0; S(); g[g.length] = setInterval(S, 100); return false; case 33: case 34: return false; default: } }).bind("keyup.jscrollpane", function (ao) { if (ao.keyCode == 38 || ao.keyCode == 40) { for (var p = 0; p < g.length; p++) { clearInterval(g[p]) } return false } }) } if (c.showArrows) { var P; var y; var o = function (p) { a("html").unbind("mouseup", o); P.removeClass("jScrollActiveArrowButton"); clearInterval(y) }; var H = function () { a("html").bind("mouseup", o); P.addClass("jScrollActiveArrowButton"); Z = 0; S(); y = setInterval(S, 100) }; j.append(a("<a></a>").attr({ href: "javascript:;", className: "jScrollArrowUp", tabindex: -1 }).css({ width: c.scrollbarWidth + "px", top: c.topCapHeight + "px" }).html("Scroll up").bind("mousedown", function () { P = a(this); al = -1; H(); this.blur(); return false }).bind("click", b), a("<a></a>").attr({ href: "javascript:;", className: "jScrollArrowDown", tabindex: -1 }).css({ width: c.scrollbarWidth + "px", bottom: c.bottomCapHeight + "px" }).html("Scroll down").bind("mousedown", function () { P = a(this); al = 1; H(); this.blur(); return false }).bind("click", b)); var v = a(">.jScrollArrowUp", j); var m = a(">.jScrollArrowDown", j) } if (c.arrowSize) { r = an - c.arrowSize - c.arrowSize; ac += c.arrowSize } else { if (v) { var aa = v.height(); c.arrowSize = aa; r = an - aa - m.height(); ac += aa } } r -= c.topCapHeight + c.bottomCapHeight; aj.css({ height: r + "px", top: ac + "px" }); var af = a(this).css({ position: "absolute", overflow: "visible" }); var d; var F; var I; var ae = 0; var C = R * an / 2; var G = function (ao, aq) { var ap = aq == "X" ? "Left" : "Top"; return ao["page" + aq] || (ao["client" + aq] + (document.documentElement["scroll" + ap] || document.body["scroll" + ap])) || 0 }; var O = function () { return false }; var ad = function () { W(); d = u.offset(false); d.top -= ae; F = r - u[0].offsetHeight; I = 2 * c.wheelSpeed * F / V }; var e = function (p) { ad(); C = G(p, "Y") - ae - d.top; a("html").bind("mouseup", z).bind("mousemove", Q); if (a.browser.msie) { a("html").bind("dragstart", O).bind("selectstart", O) } return false }; var z = function () { a("html").unbind("mouseup", z).unbind("mousemove", Q); C = R * an / 2; if (a.browser.msie) { a("html").unbind("dragstart", O).unbind("selectstart", O) } }; var ah = function (ao) { j.scrollTop(0); ao = ao < 0 ? 0 : (ao > F ? F : ao); ae = ao; u.css({ top: ao + "px" }); var ap = ao / F; t.data("jScrollPanePosition", (an - V) * -ap); af.css({ top: ((an - V) * ap) + "px" }); t.trigger("scroll"); if (c.showArrows) { v[ao == 0 ? "addClass" : "removeClass"]("disabled"); m[ao == F ? "addClass" : "removeClass"]("disabled") } }; var Q = function (p) { ah(G(p, "Y") - d.top - C) }; var Y = Math.max(Math.min(R * (an - c.arrowSize * 2), c.dragMaxHeight), c.dragMinHeight); u.css({ height: Y + "px" }).bind("mousedown", e); var T; var w; var l; var ab = function () { if (w > 8 || w % 4 == 0) { ah((ae - ((ae - l) / 2))) } w++ }; var ak = function () { clearInterval(T); a("html").unbind("mouseup", ak).unbind("mousemove", N) }; var N = function (p) { l = G(p, "Y") - d.top - C }; var A = function (p) { ad(); N(p); w = 0; a("html").bind("mouseup", ak).bind("mousemove", N); T = setInterval(ab, 100); ab(); return false }; aj.bind("mousedown", A); j.bind("mousewheel", function (ao, aq) { aq = aq || (ao.wheelDelta ? ao.wheelDelta / 120 : (ao.detail) ? -ao.detail / 3 : 0); ad(); W(); var ap = ae; ah(ae - aq * I); var p = ap != ae; return !p }); var f; var D; function J() { var p = (f - ae) / c.animateStep; if (p > 1 || p < -1) { ah(ae + p) } else { ah(f); W() } } var W = function () { if (D) { clearInterval(D); delete f } }; var ag = function (aq, p) { if (typeof aq == "string") { $e = a(aq, t); if (!$e.length) { return } aq = $e.offset().top - t.offset().top } W(); var ap = V - an; aq = aq > ap ? ap : aq; t.data("jScrollPaneMaxScroll", ap); var ao = aq / ap * F; if (p || !c.animateTo) { ah(ao) } else { j.scrollTop(0); f = ao; D = setInterval(J, c.animateInterval) } }; t[0].scrollTo = ag; t[0].scrollBy = function (ao) { var p = -parseInt(af.css("top")) || 0; ag(p + ao) }; ad(); ag(-am, true); a("*", this).bind("focus", function (ar) { var aq = a(this); var au = 0; while (aq[0] != t[0]) { au += aq.position().top; aq = aq.offsetParent() } var p = -parseInt(af.css("top")) || 0; var at = p + an; var ap = au > p && au < at; if (!ap) { var ao = au - c.scrollbarMargin; if (au > p) { ao += a(this).height() + 15 + c.scrollbarMargin - an } ag(ao) } }); if (location.hash) { setTimeout(function () { ag(location.hash) }, a.browser.safari ? 100 : 0) } a(document).bind("click", function (ao) { $target = a(ao.target); if ($target.is("a")) { var p = $target.attr("href"); if (p && p.substr(0, 1) == "#" && p.length > 1) { setTimeout(function () { ag(p, !c.animateToInternalLinks) }, a.browser.safari ? 100 : 0) } } }); function B(p) { a(document).bind("mousemove.jScrollPaneDragging", x); a(document).bind("mouseup.jScrollPaneDragging", n) } var M; var h; function K() { direction = M < 0 ? -1 : 1; t[0].scrollBy(M / 2) } function k() { if (h) { clearInterval(h); h = undefined } } function x(ap) { var aq = t.parent().offset().top; var p = aq + an; var ao = G(ap, "Y"); M = ao < aq ? ao - aq : (ao > p ? ao - p : 0); if (M == 0) { k() } else { if (!h) { h = setInterval(K, 100) } } } function n(p) { a(document).unbind("mousemove.jScrollPaneDragging").unbind("mouseup.jScrollPaneDragging"); k() } j.bind("mousedown.jScrollPane", B); a.jScrollPane.active.push(t[0]) } else { t.css({ height: an + "px", width: L - this.originalSidePaddingTotal + "px", padding: this.originalPadding }); t[0].scrollTo = t[0].scrollBy = function () { }; t.parent().unbind("mousewheel").unbind("mousedown.jScrollPane").unbind("keydown.jscrollpane").unbind("keyup.jscrollpane") } }) }; a.fn.jScrollPaneRemove = function () { a(this).each(function () { $this = a(this); var b = $this.parent(); if (b.is(".jScrollPaneContainer")) { $this.css({ top: "", height: "", width: "", padding: "", overflow: "", position: "" }); $this.attr("style", $this.data("originalStyleTag")); b.after($this).remove() } }) }; a.fn.jScrollPane.defaults = { scrollbarWidth: 10, scrollbarMargin: 5, wheelSpeed: 18, showArrows: false, arrowSize: 0, animateTo: false, dragMinHeight: 1, dragMaxHeight: 99999, animateInterval: 100, animateStep: 3, maintainPosition: true, scrollbarOnLeft: false, reinitialiseOnImageLoad: false, tabIndex: 0, enableKeyboardNavigation: true, animateToInternalLinks: false, topCapHeight: 0, bottomCapHeight: 0 }; a(window).bind("unload", function () { var c = a.jScrollPane.active; for (var b = 0; b < c.length; b++) { c[b].scrollTo = c[b].scrollBy = null } }) })(jQuery);

/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-06-19 20:25:28 -0500 (Tue, 19 Jun 2007) $
 * $Rev: 2111 $
 *
 * Version 2.1
 */
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&parseInt($.browser.version)<=6){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};if(!$.browser.version)$.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1];})(jQuery);

/* hoverIntent by Brian Cherne */
(function (a) { a.fn.hoverIntent = function (k, j) { var l = { sensitivity: 7, interval: 100, timeout: 0 }; l = a.extend(l, j ? { over: k, out: j} : k); var n, m, h, d; var e = function (f) { n = f.pageX; m = f.pageY }; var c = function (g, f) { f.hoverIntent_t = clearTimeout(f.hoverIntent_t); if ((Math.abs(h - n) + Math.abs(d - m)) < l.sensitivity) { a(f).unbind("mousemove", e); f.hoverIntent_s = 1; return l.over.apply(f, [g]) } else { h = n; d = m; f.hoverIntent_t = setTimeout(function () { c(g, f) }, l.interval) } }; var i = function (g, f) { f.hoverIntent_t = clearTimeout(f.hoverIntent_t); f.hoverIntent_s = 0; return l.out.apply(f, [g]) }; var b = function (q) { var o = (q.type == "mouseover" ? q.fromElement : q.toElement) || q.relatedTarget; while (o && o != this) { try { o = o.parentNode } catch (q) { o = this } } if (o == this) { return false } var g = jQuery.extend({}, q); var f = this; if (f.hoverIntent_t) { f.hoverIntent_t = clearTimeout(f.hoverIntent_t) } if (q.type == "mouseover") { h = g.pageX; d = g.pageY; a(f).bind("mousemove", e); if (f.hoverIntent_s != 1) { f.hoverIntent_t = setTimeout(function () { c(g, f) }, l.interval) } } else { a(f).unbind("mousemove", e); if (f.hoverIntent_s == 1) { f.hoverIntent_t = setTimeout(function () { i(g, f) }, l.timeout) } } }; return this.mouseover(b).mouseout(b) } })(jQuery);

/*
* Superfish v1.4.8 - jQuery menu widget
* Copyright (c) 2008 Joel Birch
*
* Dual licensed under the MIT and GPL licenses:
* 	http://www.opensource.org/licenses/mit-license.php
* 	http://www.gnu.org/licenses/gpl.html
*
* CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
*/
(function(b){b.fn.superfish=function(k){var g=b.fn.superfish,j=g.c,f=b(['<span class="',j.arrowClass,'"> &#187;</span>'].join("")),i=function(){var c=b(this),l=d(c);clearTimeout(l.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl()},e=function(){var c=b(this),m=d(c),l=g.op;clearTimeout(m.sfTimer);m.sfTimer=setTimeout(function(){l.retainPath=(b.inArray(c[0],l.$path)>-1);c.hideSuperfishUl();if(l.$path.length&&c.parents(["li.",l.hoverClass].join("")).length<1){i.call(l.$path)}},l.delay)},d=function(c){var l=c.parents(["ul.",j.menuClass,":first"].join(""))[0];g.op=g.o[l.serial];return l},h=function(c){c.addClass(j.anchorClass).append(f.clone())};return this.each(function(){var c=this.serial=g.o.length;var m=b.extend({},g.defaults,k);m.$path=b("li."+m.pathClass,this).slice(0,m.pathLevels).each(function(){b(this).addClass([m.hoverClass,j.bcClass].join(" ")).filter("li:has(ul)").removeClass(m.pathClass)});g.o[c]=g.op=m;b("li:has(ul)",this)[(b.fn.hoverIntent&&!m.disableHI)?"hoverIntent":"hover"](i,e).each(function(){if(m.autoArrows){h(b(">a:first-child",this))}}).not("."+j.bcClass).hideSuperfishUl();var l=b("a",this);l.each(function(n){var o=l.eq(n).parents("li");l.eq(n).focus(function(){i.call(o)}).blur(function(){e.call(o)})});m.onInit.call(this)}).each(function(){var c=[j.menuClass];if(g.op.dropShadows&&!(b.browser.msie&&b.browser.version<7)){c.push(j.shadowClass)}b(this).addClass(c.join(" "))})};var a=b.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var c=a.op;if(b.browser.msie&&b.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off")}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:100,animation:{opacity:"show"},speed:"normal",autoArrows:false,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};b.fn.extend({hideSuperfishUl:function(){var e=a.op,d=(e.retainPath===true)?e.$path:"";e.retainPath=false;var c=b(["li.",e.hoverClass].join(""),this).add(this).not(d).removeClass(e.hoverClass).find(">ul").hide().css("visibility","hidden");e.onHide.call(c);return this},showSuperfishUl:function(){var e=a.op,d=a.c.shadowClass+"-off",c=this.addClass(e.hoverClass).find(">ul:hidden").css("visibility","visible");a.IE7fix.call(c);e.onBeforeShow.call(c);c.animate(e.animation,e.speed,function(){a.IE7fix.call(c);e.onShow.call(c)});return this}})})(jQuery);

/**
*
* Date picker
* Author: Stefan Petre www.eyecon.ro
* 
* Dual licensed under the MIT and GPL licenses
* 
*/
(function (e) { var a = navigator.userAgent.toLowerCase(); var d = (a.indexOf("nt 5.1") > 0 && a.indexOf("win") > 0); var b = (a.indexOf("nt 5.2") > 0 && a.indexOf("win") > 0); var i = (a.indexOf("nt 5.0") > 0 && a.indexOf("win") > 0); var c = (a.indexOf("nt 6.0") > 0 && a.indexOf("win") > 0); var j = (a.indexOf("nt 6.1") > 0 && a.indexOf("win") > 0); var h = ""; var f = ""; if (d || b) { h = "&#x0203A;"; f = "&#8249;" } else { h = "&#9654;"; f = "&#9664;" } var g = function () { var k = {}, v = { years: "datepickerViewYears", moths: "datepickerViewMonths", days: "datepickerViewDays" }, s = { wrapper: '<div class="datepicker"><div class="datepickerBorderT" /><div class="datepickerBorderB" /><div class="datepickerBorderL" /><div class="datepickerBorderR" /><div class="datepickerBorderTL" /><div class="datepickerBorderTR" /><div class="datepickerBorderBL" /><div class="datepickerBorderBR" /><div class="datepickerContainer"><table cellspacing="0" cellpadding="0"><tbody><tr></tr></tbody></table></div></div>', head: ["<td>", '<table cellspacing="0" cellpadding="0">', "<thead>", "<tr>", '<th colspan="2" class="datepickerGoPrev" style="text-align:right;" ><a href="#"><span><%=prev%></span></a></th>', '<th colspan="3" class="datepickerMonth"><span></span></th>', '<th colspan="2" class="datepickerGoNext" style="text-align:left;"><a href="#"><span><%=next%></span></a></th>', "</tr>", '<tr class="datepickerDoW">', '<th class="first"><span><%=day1%></span></th>', "<th><span><%=day2%></span></th>", "<th><span><%=day3%></span></th>", "<th><span><%=day4%></span></th>", "<th><span><%=day5%></span></th>", "<th><span><%=day6%></span></th>", "<th><span><%=day7%></span></th>", "</tr>", "</thead>", "</table></td>"], space: '<td class="datepickerSpace"><div></div></td>', days: ['<tbody class="datepickerDays">', "<tr>", '<td class="first <%=weeks[0].days[0].classname%>"><a href="#"><span><%=weeks[0].days[0].text%></span></a></td>', '<td class="<%=weeks[0].days[1].classname%>"><a href="#"><span><%=weeks[0].days[1].text%></span></a></td>', '<td class="<%=weeks[0].days[2].classname%>"><a href="#"><span><%=weeks[0].days[2].text%></span></a></td>', '<td class="<%=weeks[0].days[3].classname%>"><a href="#"><span><%=weeks[0].days[3].text%></span></a></td>', '<td class="<%=weeks[0].days[4].classname%>"><a href="#"><span><%=weeks[0].days[4].text%></span></a></td>', '<td class="<%=weeks[0].days[5].classname%>"><a href="#"><span><%=weeks[0].days[5].text%></span></a></td>', '<td class="<%=weeks[0].days[6].classname%>"><a href="#"><span><%=weeks[0].days[6].text%></span></a></td>', "</tr>", "<tr>", '<td class="first <%=weeks[1].days[0].classname%>"><a href="#"><span><%=weeks[1].days[0].text%></span></a></td>', '<td class="<%=weeks[1].days[1].classname%>"><a href="#"><span><%=weeks[1].days[1].text%></span></a></td>', '<td class="<%=weeks[1].days[2].classname%>"><a href="#"><span><%=weeks[1].days[2].text%></span></a></td>', '<td class="<%=weeks[1].days[3].classname%>"><a href="#"><span><%=weeks[1].days[3].text%></span></a></td>', '<td class="<%=weeks[1].days[4].classname%>"><a href="#"><span><%=weeks[1].days[4].text%></span></a></td>', '<td class="<%=weeks[1].days[5].classname%>"><a href="#"><span><%=weeks[1].days[5].text%></span></a></td>', '<td class="<%=weeks[1].days[6].classname%>"><a href="#"><span><%=weeks[1].days[6].text%></span></a></td>', "</tr>", "<tr>", '<td class="first <%=weeks[2].days[0].classname%>"><a href="#"><span><%=weeks[2].days[0].text%></span></a></td>', '<td class="<%=weeks[2].days[1].classname%>"><a href="#"><span><%=weeks[2].days[1].text%></span></a></td>', '<td class="<%=weeks[2].days[2].classname%>"><a href="#"><span><%=weeks[2].days[2].text%></span></a></td>', '<td class="<%=weeks[2].days[3].classname%>"><a href="#"><span><%=weeks[2].days[3].text%></span></a></td>', '<td class="<%=weeks[2].days[4].classname%>"><a href="#"><span><%=weeks[2].days[4].text%></span></a></td>', '<td class="<%=weeks[2].days[5].classname%>"><a href="#"><span><%=weeks[2].days[5].text%></span></a></td>', '<td class="<%=weeks[2].days[6].classname%>"><a href="#"><span><%=weeks[2].days[6].text%></span></a></td>', "</tr>", "<tr>", '<td class="first <%=weeks[3].days[0].classname%>"><a href="#"><span><%=weeks[3].days[0].text%></span></a></td>', '<td class="<%=weeks[3].days[1].classname%>"><a href="#"><span><%=weeks[3].days[1].text%></span></a></td>', '<td class="<%=weeks[3].days[2].classname%>"><a href="#"><span><%=weeks[3].days[2].text%></span></a></td>', '<td class="<%=weeks[3].days[3].classname%>"><a href="#"><span><%=weeks[3].days[3].text%></span></a></td>', '<td class="<%=weeks[3].days[4].classname%>"><a href="#"><span><%=weeks[3].days[4].text%></span></a></td>', '<td class="<%=weeks[3].days[5].classname%>"><a href="#"><span><%=weeks[3].days[5].text%></span></a></td>', '<td class="<%=weeks[3].days[6].classname%>"><a href="#"><span><%=weeks[3].days[6].text%></span></a></td>', "</tr>", "<tr>", '<td class="first <%=weeks[4].days[0].classname%>"><a href="#"><span><%=weeks[4].days[0].text%></span></a></td>', '<td class="<%=weeks[4].days[1].classname%>"><a href="#"><span><%=weeks[4].days[1].text%></span></a></td>', '<td class="<%=weeks[4].days[2].classname%>"><a href="#"><span><%=weeks[4].days[2].text%></span></a></td>', '<td class="<%=weeks[4].days[3].classname%>"><a href="#"><span><%=weeks[4].days[3].text%></span></a></td>', '<td class="<%=weeks[4].days[4].classname%>"><a href="#"><span><%=weeks[4].days[4].text%></span></a></td>', '<td class="<%=weeks[4].days[5].classname%>"><a href="#"><span><%=weeks[4].days[5].text%></span></a></td>', '<td class="<%=weeks[4].days[6].classname%>"><a href="#"><span><%=weeks[4].days[6].text%></span></a></td>', "</tr>", "<tr>", '<td class="first <%=weeks[5].days[0].classname%>"><a href="#"><span><%=weeks[5].days[0].text%></span></a></td>', '<td class="<%=weeks[5].days[1].classname%>"><a href="#"><span><%=weeks[5].days[1].text%></span></a></td>', '<td class="<%=weeks[5].days[2].classname%>"><a href="#"><span><%=weeks[5].days[2].text%></span></a></td>', '<td class="<%=weeks[5].days[3].classname%>"><a href="#"><span><%=weeks[5].days[3].text%></span></a></td>', '<td class="<%=weeks[5].days[4].classname%>"><a href="#"><span><%=weeks[5].days[4].text%></span></a></td>', '<td class="<%=weeks[5].days[5].classname%>"><a href="#"><span><%=weeks[5].days[5].text%></span></a></td>', '<td class="<%=weeks[5].days[6].classname%>"><a href="#"><span><%=weeks[5].days[6].text%></span></a></td>', "</tr>", "</tbody>"], months: ['<tbody class="<%=className%>">', "<tr>", '<td colspan="2"><a href="#"><span><%=data[0]%></span></a></td>', '<td colspan="2"><a href="#"><span><%=data[1]%></span></a></td>', '<td colspan="2"><a href="#"><span><%=data[2]%></span></a></td>', '<td colspan="2"><a href="#"><span><%=data[3]%></span></a></td>', "</tr>", "<tr>", '<td colspan="2"><a href="#"><span><%=data[4]%></span></a></td>', '<td colspan="2"><a href="#"><span><%=data[5]%></span></a></td>', '<td colspan="2"><a href="#"><span><%=data[6]%></span></a></td>', '<td colspan="2"><a href="#"><span><%=data[7]%></span></a></td>', "</tr>", "<tr>", '<td colspan="2"><a href="#"><span><%=data[8]%></span></a></td>', '<td colspan="2"><a href="#"><span><%=data[9]%></span></a></td>', '<td colspan="2"><a href="#"><span><%=data[10]%></span></a></td>', '<td colspan="2"><a href="#"><span><%=data[11]%></span></a></td>', "</tr>", "</tbody>"] }, o = { flat: false, starts: 1, prev: f, next: h, lastSel: false, mode: "single", view: "days", calendars: 1, format: "Y-m-d", position: "bottom", eventName: "click", onRender: function () { return {} }, onChange: function () { return true }, onShow: function () { return true }, onBeforeShow: function () { return true }, onHide: function () { return true }, locale: { days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], weekMin: "wk"} }, x = function (z) { var C = e(z).data("datepicker"); var G = e(z); var A = Math.floor(C.calendars / 2), O, Q, H, P, M = 0, K, D, B, E, F, I; G.find("td>table tbody").remove(); for (var N = 0; N < C.calendars; N++) { O = new Date(C.current); O.addMonths(-A + N); I = G.find("table").eq(N + 1); switch (I[0].className) { case "datepickerViewDays": H = y(O, "B, Y"); break; case "datepickerViewMonths": H = O.getFullYear(); break; case "datepickerViewYears": H = (O.getFullYear() - 6) + " - " + (O.getFullYear() + 5); break } I.find("thead tr:first th:eq(1) span").text(H); H = O.getFullYear() - 6; Q = { data: [], className: "datepickerYears" }; for (var L = 0; L < 12; L++) { Q.data.push(H + L) } F = tmpl(s.months.join(""), Q); O.setDate(1); Q = { weeks: [], test: 10 }; P = O.getMonth(); var H = (O.getDay() - C.starts) % 7; O.addDays(-(H + (H < 0 ? 7 : 0))); K = -1; M = 0; while (M < 42) { B = parseInt(M / 7, 10); E = M % 7; if (!Q.weeks[B]) { K = O.getWeekNumber(); Q.weeks[B] = { week: K, days: []} } Q.weeks[B].days[E] = { text: (O.getDate().toString().length == 1 ? "0" + O.getDate().toString() : O.getDate().toString()), classname: [] }; if (P != O.getMonth()) { Q.weeks[B].days[E].classname.push("datepickerNotInMonth") } if (O.getDay() == 0) { Q.weeks[B].days[E].classname.push("datepickerSunday") } if (O.getDay() == 6) { Q.weeks[B].days[E].classname.push("datepickerSaturday") } var J = C.onRender(O); var R = O.valueOf(); if (J.selected || C.date == R || e.inArray(R, C.date) > -1 || (C.mode == "range" && R >= C.date[0] && R <= C.date[1])) { Q.weeks[B].days[E].classname.push("datepickerSelected") } if (J.disabled) { Q.weeks[B].days[E].classname.push("datepickerDisabled") } if (J.className) { Q.weeks[B].days[E].classname.push(J.className) } Q.weeks[B].days[E].classname = Q.weeks[B].days[E].classname.join(" "); M++; O.addDays(1) } F = tmpl(s.days.join(""), Q) + F; Q = { data: C.locale.monthsShort, className: "datepickerMonths" }; F = tmpl(s.months.join(""), Q) + F; I.append(F) } }, m = function (A, J) { if (A.constructor == Date) { return new Date(A) } var E = A.split(/\W+/); var B = J.split(/\W+/), H, C, I, G, D, z = new Date(); for (var F = 0; F < E.length; F++) { switch (B[F]) { case "d": case "e": H = parseInt(E[F], 10); break; case "m": C = parseInt(E[F], 10) - 1; break; case "Y": case "y": I = parseInt(E[F], 10); I += I > 100 ? 0 : (I < 29 ? 2000 : 1900); break; case "H": case "I": case "k": case "l": G = parseInt(E[F], 10); break; case "P": case "p": if (/pm/i.test(E[F]) && G < 12) { G += 12 } else { if (/am/i.test(E[F]) && G >= 12) { G -= 12 } } break; case "M": D = parseInt(E[F], 10); break } } return new Date(I === undefined ? z.getFullYear() : I, C === undefined ? z.getMonth() : C, H === undefined ? z.getDate() : H, G === undefined ? z.getHours() : G, D === undefined ? z.getMinutes() : D, 0) }, y = function (A, K) { var B = A.getMonth(); var I = A.getDate(); var J = A.getFullYear(); var L = A.getWeekNumber(); var M = A.getDay(); var P = {}; var N = A.getHours(); var C = (N >= 12); var G = (C) ? (N - 12) : N; var O = A.getDayOfYear(); if (G == 0) { G = 12 } var E = A.getMinutes(); var H = A.getSeconds(); K = K.replace(",", ""); var D = K.split(""), z; for (var F = 0; F < D.length; F++) { z = D[F]; switch (D[F]) { case "a": z = A.getDayName(); break; case "A": z = A.getDayName(true); break; case "b": z = A.getMonthName(); break; case "B": z = A.getMonthName(true); break; case "C": z = 1 + Math.floor(J / 100); break; case "d": z = (I < 10) ? ("0" + I) : I; break; case "e": z = I; break; case "H": z = (N < 10) ? ("0" + N) : N; break; case "I": z = (G < 10) ? ("0" + G) : G; break; case "j": z = (O < 100) ? ((O < 10) ? ("00" + O) : ("0" + O)) : O; break; case "k": z = N; break; case "l": z = G; break; case "m": z = (B < 9) ? ("0" + (1 + B)) : (1 + B); break; case "M": z = (E < 10) ? ("0" + E) : E; break; case "p": case "P": z = C ? "PM" : "AM"; break; case "s": z = Math.floor(A.getTime() / 1000); break; case "S": z = (H < 10) ? ("0" + H) : H; break; case "u": z = M + 1; break; case "w": z = M; break; case "y": z = ("" + J).substr(2, 2); break; case "Y": z = J; break } D[F] = z } return D.join("") }, n = function (z) { if (Date.prototype.tempDate) { return } Date.prototype.tempDate = null; Date.prototype.months = z.months; Date.prototype.monthsShort = z.monthsShort; Date.prototype.days = z.days; Date.prototype.daysShort = z.daysShort; Date.prototype.getMonthName = function (A) { return this[A ? "months" : "monthsShort"][this.getMonth()] }; Date.prototype.getDayName = function (A) { return this[A ? "days" : "daysShort"][this.getDay()] }; Date.prototype.addDays = function (A) { this.setDate(this.getDate() + A); this.tempDate = this.getDate() }; Date.prototype.addMonths = function (A) { if (this.tempDate == null) { this.tempDate = this.getDate() } this.setDate(1); this.setMonth(this.getMonth() + A); this.setDate(Math.min(this.tempDate, this.getMaxDays())) }; Date.prototype.addYears = function (A) { if (this.tempDate == null) { this.tempDate = this.getDate() } this.setDate(1); this.setFullYear(this.getFullYear() + A); this.setDate(Math.min(this.tempDate, this.getMaxDays())) }; Date.prototype.getMaxDays = function () { var B = new Date(Date.parse(this)), C = 28, A; A = B.getMonth(); C = 28; while (B.getMonth() == A) { C++; B.setDate(C) } return C - 1 }; Date.prototype.getFirstDay = function () { var A = new Date(Date.parse(this)); A.setDate(1); return A.getDay() }; Date.prototype.getWeekNumber = function () { var A = new Date(this); A.setDate(A.getDate() - (A.getDay() + 6) % 7 + 3); var B = A.valueOf(); A.setMonth(0); A.setDate(4); return Math.round((B - A.valueOf()) / (604800000)) + 1 }; Date.prototype.getDayOfYear = function () { var A = new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0); var C = new Date(this.getFullYear(), 0, 0, 0, 0, 0); var B = A - C; return Math.floor(B / 24 * 60 * 60 * 1000) } }, q = function (D) { var A = e(D).data("datepicker"); var F = e("#" + A.id); if (!A.extraHeight) { var C = e(D).find("div"); A.extraHeight = C.get(0).offsetHeight + C.get(1).offsetHeight; A.extraWidth = C.get(2).offsetWidth + C.get(3).offsetWidth } var E = F.find("table:first").get(0); var B = E.offsetWidth; var z = E.offsetHeight; F.css({ width: B + A.extraWidth + "px", height: z + A.extraHeight + "px" }).find("div.datepickerContainer").css({ width: B + "px", height: z + "px" }) }, w = function (G) { if (e(G.target).is("span")) { G.target = G.target.parentNode } var B = e(G.target); if (B.is("a")) { G.target.blur(); if (B.hasClass("datepickerDisabled")) { return false } var I = e(this).data("datepicker"); var F = B.parent(); var A = F.parent().parent().parent(); var H = e("table", this).index(A.get(0)) - 1; var E = new Date(I.current); var D = false; var z = false; if (F.is("th")) { if (F.hasClass("datepickerWeek") && I.mode == "range" && !F.next().hasClass("datepickerDisabled")) { var C = parseInt(F.next().text(), 10); E.addMonths(H - Math.floor(I.calendars / 2)); if (F.next().hasClass("datepickerNotInMonth")) { E.addMonths(C > 15 ? -1 : 1) } E.setDate(C); I.date[0] = (E.setHours(0, 0, 0, 0)).valueOf(); E.setHours(23, 59, 59, 0); E.addDays(6); I.date[1] = E.valueOf(); z = true; D = true; I.lastSel = false } else { if (F.hasClass("datepickerMonth")) { E.addMonths(H - Math.floor(I.calendars / 2)); switch (A.get(0).className) { case "datepickerViewDays": A.get(0).className = "datepickerViewMonths"; B.find("span").text(E.getFullYear()); break; case "datepickerViewMonths": A.get(0).className = "datepickerViewYears"; B.find("span").text((E.getFullYear() - 6) + " - " + (E.getFullYear() + 5)); break; case "datepickerViewYears": A.get(0).className = "datepickerViewDays"; B.find("span").text(y(E, "B, Y")); break } } else { if (F.parent().parent().is("thead")) { switch (A.get(0).className) { case "datepickerViewDays": I.current.addMonths(F.hasClass("datepickerGoPrev") ? -1 : 1); break; case "datepickerViewMonths": I.current.addYears(F.hasClass("datepickerGoPrev") ? -1 : 1); break; case "datepickerViewYears": I.current.addYears(F.hasClass("datepickerGoPrev") ? -12 : 12); break } z = true } } } } else { if (F.is("td") && !F.hasClass("datepickerDisabled")) { switch (A.get(0).className) { case "datepickerViewMonths": I.current.setMonth(A.find("tbody.datepickerMonths td").index(F)); I.current.setFullYear(parseInt(A.find("thead th.datepickerMonth span").text(), 10)); I.current.addMonths(Math.floor(I.calendars / 2) - H); A.get(0).className = "datepickerViewDays"; break; case "datepickerViewYears": I.current.setFullYear(parseInt(B.text(), 10)); A.get(0).className = "datepickerViewMonths"; break; default: var C = parseInt(B.text(), 10); E.addMonths(H - Math.floor(I.calendars / 2)); if (F.hasClass("datepickerNotInMonth")) { E.addMonths(C > 15 ? -1 : 1) } E.setDate(C); switch (I.mode) { case "multiple": C = (E.setHours(0, 0, 0, 0)).valueOf(); if (e.inArray(C, I.date) > -1) { e.each(I.date, function (J, K) { if (K == C) { I.date.splice(J, 1); return false } }) } else { I.date.push(C) } break; case "range": if (!I.lastSel) { I.date[0] = (E.setHours(0, 0, 0, 0)).valueOf() } C = (E.setHours(23, 59, 59, 0)).valueOf(); if (C < I.date[0]) { I.date[1] = I.date[0] + 86399000; I.date[0] = C - 86399000 } else { I.date[1] = C } I.lastSel = !I.lastSel; break; default: I.date = E.valueOf(); break } break } z = true; D = true } } if (z) { x(this) } if (D) { I.onChange.apply(this, r(I)) } } return false }, r = function (z) { var A; if (z.mode == "single") { A = new Date(z.date); return [y(A, z.format), A, z.el] } else { A = [[], [], z.el]; e.each(z.date, function (C, D) { var B = new Date(D); A[0].push(y(B, z.format)); A[1].push(B) }); return A } }, l = function () { var z = document.compatMode == "CSS1Compat"; return { l: window.pageXOffset || (z ? document.documentElement.scrollLeft : document.body.scrollLeft), t: window.pageYOffset || (z ? document.documentElement.scrollTop : document.body.scrollTop), w: window.innerWidth || (z ? document.documentElement.clientWidth : document.body.clientWidth), h: window.innerHeight || (z ? document.documentElement.clientHeight : document.body.clientHeight)} }, t = function (B, A, z) { if (B == A) { return true } if (B.contains) { return B.contains(A) } if (B.compareDocumentPosition) { return !!(B.compareDocumentPosition(A) & 16) } var C = A.parentNode; while (C && C != z) { if (C == B) { return true } C = C.parentNode } return false }, u = function (E) { var z = e("#" + e(this).data("datepickerId")); if (!z.is(":visible")) { var F = z.get(0); x(F); var H = z.data("datepicker"); H.onBeforeShow.apply(this, [z.get(0)]); var C = e(this).offset(); var G = l(); var D = C.top; var A = C.left; var B = e.curCSS(F, "display"); z.css({ visibility: "hidden", display: "block" }); q(F); switch (H.position) { case "top": D -= F.offsetHeight; break; case "left": A -= F.offsetWidth; break; case "right": A += this.offsetWidth; break; case "bottom": D += this.offsetHeight; break } if (D + F.offsetHeight > G.t + G.h) { D = C.top - F.offsetHeight } if (D < G.t) { D = C.top + this.offsetHeight + F.offsetHeight } if (A + F.offsetWidth > G.l + G.w) { A = C.left - F.offsetWidth } if (A < G.l) { A = C.left + this.offsetWidth } z.css({ visibility: "visible", display: "block", top: D + "px", left: A + "px" }); if (H.onShow.apply(this, [z.get(0)]) != false) { z.show() } e(document).bind("mousedown", { cal: z, trigger: this }, p) } return false }, p = function (z) { if (z.target != z.data.trigger && !t(z.data.cal.get(0), z.target, z.data.cal.get(0))) { if (z.data.cal.data("datepicker").onHide.apply(this, [z.data.cal.get(0)]) != false) { z.data.cal.hide() } e(document).unbind("mousedown", p) } }; return { init: function (z) { z = e.extend({}, o, z || {}); n(z.locale); z.calendars = Math.max(1, parseInt(z.calendars, 10) || 1); z.mode = /single|multiple|range/.test(z.mode) ? z.mode : "single"; return this.each(function () { if (!e(this).data("datepicker")) { z.el = this; if (z.date.constructor == String) { z.date = m(z.date, z.format); z.date.setHours(0, 0, 0, 0) } if (z.mode != "single") { if (z.date.constructor != Array) { z.date = [z.date.valueOf()]; if (z.mode == "range") { z.date.push(((new Date(z.date[0])).setHours(23, 59, 59, 0)).valueOf()) } } else { for (var C = 0; C < z.date.length; C++) { z.date[C] = (m(z.date[C], z.format).setHours(0, 0, 0, 0)).valueOf() } if (z.mode == "range") { z.date[1] = ((new Date(z.date[1])).setHours(23, 59, 59, 0)).valueOf() } } } else { z.date = z.date.valueOf() } if (!z.current) { z.current = new Date() } else { z.current = m(z.current, z.format) } z.current.setDate(1); z.current.setHours(0, 0, 0, 0); var E = "datepicker_" + parseInt(Math.random() * 1000), B; z.id = E; e(this).data("datepickerId", z.id); var D = e(s.wrapper).attr("id", E).bind("click", w).data("datepicker", z); if (z.className) { D.addClass(z.className) } var A = ""; for (var C = 0; C < z.calendars; C++) { B = z.starts; if (C > 0) { A += s.space } A += tmpl(s.head.join(""), { week: z.locale.weekMin, prev: z.prev, next: z.next, day1: z.locale.daysShort[(B++) % 7], day2: z.locale.daysShort[(B++) % 7], day3: z.locale.daysShort[(B++) % 7], day4: z.locale.daysShort[(B++) % 7], day5: z.locale.daysShort[(B++) % 7], day6: z.locale.daysShort[(B++) % 7], day7: z.locale.daysShort[(B++) % 7] }) } D.find("tr:first").append(A).find("table").addClass(v[z.view]); x(D.get(0)); if (z.flat) { D.appendTo(this).show().css("position", "relative"); q(D.get(0)) } else { D.appendTo(document.body); e(this).bind(z.eventName, u) } } }) }, showPicker: function () { return this.each(function () { if (e(this).data("datepickerId")) { u.apply(this) } }) }, hidePicker: function () { return this.each(function () { if (e(this).data("datepickerId")) { e("#" + e(this).data("datepickerId")).hide() } }) }, setDate: function (z, A) { return this.each(function () { if (e(this).data("datepickerId")) { var D = e("#" + e(this).data("datepickerId")); var B = D.data("datepicker"); B.date = z; if (B.date.constructor == String) { B.date = m(B.date, B.format); B.date.setHours(0, 0, 0, 0) } if (B.mode != "single") { if (B.date.constructor != Array) { B.date = [B.date.valueOf()]; if (B.mode == "range") { B.date.push(((new Date(B.date[0])).setHours(23, 59, 59, 0)).valueOf()) } } else { for (var C = 0; C < B.date.length; C++) { B.date[C] = (m(B.date[C], B.format).setHours(0, 0, 0, 0)).valueOf() } if (B.mode == "range") { B.date[1] = ((new Date(B.date[1])).setHours(23, 59, 59, 0)).valueOf() } } } else { B.date = B.date.valueOf() } if (A) { B.current = new Date(B.mode != "single" ? B.date[0] : B.date) } x(D.get(0)) } }) }, getDate: function (z) { if (this.size() > 0) { return r(e("#" + e(this).data("datepickerId")).data("datepicker"))[z ? 0 : 1] } }, clear: function () { return this.each(function () { if (e(this).data("datepickerId")) { var A = e("#" + e(this).data("datepickerId")); var z = A.data("datepicker"); if (z.mode != "single") { z.date = []; x(A.get(0)); z.lastSel = false } } }) }, fixLayout: function () { return this.each(function () { if (e(this).data("datepickerId")) { var A = e("#" + e(this).data("datepickerId")); var z = A.data("datepicker"); if (z.flat) { q(A.get(0)) } } }) } } } (); e.fn.extend({ DatePicker: g.init, DatePickerHide: g.hidePicker, DatePickerShow: g.showPicker, DatePickerSetDate: g.setDate, DatePickerGetDate: g.getDate, DatePickerClear: g.clear, DatePickerLayout: g.fixLayout }) })(jQuery); (function () { var b = {}; this.tmpl = function a(e, d) { var c = !/\W/.test(e) ? b[e] = b[e] || a(document.getElementById(e).innerHTML) : new Function("obj", "var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('" + e.replace(/[\r\t\n]/g, " ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g, "$1\r").replace(/\t=(.*?)%>/g, "',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'") + "');}return p.join('');"); return d ? c(d) : c } })();

/*
* Copyright (c) 2009 Simo Kinnunen.
* Licensed under the MIT license.
*
* @version 1.09i
*/
var Cufon = (function () { var m = function () { return m.replace.apply(null, arguments) }; var x = m.DOM = { ready: (function () { var C = false, E = { loaded: 1, complete: 1 }; var B = [], D = function () { if (C) { return } C = true; for (var F; F = B.shift(); F()) { } }; if (document.addEventListener) { document.addEventListener("DOMContentLoaded", D, false); window.addEventListener("pageshow", D, false) } if (!window.opera && document.readyState) { (function () { E[document.readyState] ? D() : setTimeout(arguments.callee, 10) })() } if (document.readyState && document.createStyleSheet) { (function () { try { document.body.doScroll("left"); D() } catch (F) { setTimeout(arguments.callee, 1) } })() } q(window, "load", D); return function (F) { if (!arguments.length) { D() } else { C ? F() : B.push(F) } } })(), root: function () { return document.documentElement || document.body } }; var n = m.CSS = { Size: function (C, B) { this.value = parseFloat(C); this.unit = String(C).match(/[a-z%]*$/)[0] || "px"; this.convert = function (D) { return D / B * this.value }; this.convertFrom = function (D) { return D / this.value * B }; this.toString = function () { return this.value + this.unit } }, addClass: function (C, B) { var D = C.className; C.className = D + (D && " ") + B; return C }, color: j(function (C) { var B = {}; B.color = C.replace(/^rgba\((.*?),\s*([\d.]+)\)/, function (E, D, F) { B.opacity = parseFloat(F); return "rgb(" + D + ")" }); return B }), fontStretch: j(function (B) { if (typeof B == "number") { return B } if (/%$/.test(B)) { return parseFloat(B) / 100 } return { "ultra-condensed": 0.5, "extra-condensed": 0.625, condensed: 0.75, "semi-condensed": 0.875, "semi-expanded": 1.125, expanded: 1.25, "extra-expanded": 1.5, "ultra-expanded": 2}[B] || 1 }), getStyle: function (C) { var B = document.defaultView; if (B && B.getComputedStyle) { return new a(B.getComputedStyle(C, null)) } if (C.currentStyle) { return new a(C.currentStyle) } return new a(C.style) }, gradient: j(function (F) { var G = { id: F, type: F.match(/^-([a-z]+)-gradient\(/)[1], stops: [] }, C = F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig); for (var E = 0, B = C.length, D; E < B; ++E) { D = C[E].split("=", 2).reverse(); G.stops.push([D[1] || E / (B - 1), D[0]]) } return G }), quotedList: j(function (E) { var D = [], C = /\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g, B; while (B = C.exec(E)) { D.push(B[3] || B[1]) } return D }), recognizesMedia: j(function (G) { var E = document.createElement("style"), D, C, B; E.type = "text/css"; E.media = G; try { E.appendChild(document.createTextNode("/**/")) } catch (F) { } C = g("head")[0]; C.insertBefore(E, C.firstChild); D = (E.sheet || E.styleSheet); B = D && !D.disabled; C.removeChild(E); return B }), removeClass: function (D, C) { var B = RegExp("(?:^|\\s+)" + C + "(?=\\s|$)", "g"); D.className = D.className.replace(B, ""); return D }, supports: function (D, C) { var B = document.createElement("span").style; if (B[D] === undefined) { return false } B[D] = C; return B[D] === C }, textAlign: function (E, D, B, C) { if (D.get("textAlign") == "right") { if (B > 0) { E = " " + E } } else { if (B < C - 1) { E += " " } } return E }, textShadow: j(function (F) { if (F == "none") { return null } var E = [], G = {}, B, C = 0; var D = /(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig; while (B = D.exec(F)) { if (B[0] == ",") { E.push(G); G = {}; C = 0 } else { if (B[1]) { G.color = B[1] } else { G[["offX", "offY", "blur"][C++]] = B[2] } } } E.push(G); return E }), textTransform: (function () { var B = { uppercase: function (C) { return C.toUpperCase() }, lowercase: function (C) { return C.toLowerCase() }, capitalize: function (C) { return C.replace(/\b./g, function (D) { return D.toUpperCase() }) } }; return function (E, D) { var C = B[D.get("textTransform")]; return C ? C(E) : E } })(), whiteSpace: (function () { var D = { inline: 1, "inline-block": 1, "run-in": 1 }; var C = /^\s+/, B = /\s+$/; return function (H, F, G, E) { if (E) { if (E.nodeName.toLowerCase() == "br") { H = H.replace(C, "") } } if (D[F.get("display")]) { return H } if (!G.previousSibling) { H = H.replace(C, "") } if (!G.nextSibling) { H = H.replace(B, "") } return H } })() }; n.ready = (function () { var B = !n.recognizesMedia("all"), E = false; var D = [], H = function () { B = true; for (var K; K = D.shift(); K()) { } }; var I = g("link"), J = g("style"); function C(K) { return K.disabled || G(K.sheet, K.media || "screen") } function G(M, P) { if (!n.recognizesMedia(P || "all")) { return true } if (!M || M.disabled) { return false } try { var Q = M.cssRules, O; if (Q) { search: for (var L = 0, K = Q.length; O = Q[L], L < K; ++L) { switch (O.type) { case 2: break; case 3: if (!G(O.styleSheet, O.media.mediaText)) { return false } break; default: break search } } } } catch (N) { } return true } function F() { if (document.createStyleSheet) { return true } var L, K; for (K = 0; L = I[K]; ++K) { if (L.rel.toLowerCase() == "stylesheet" && !C(L)) { return false } } for (K = 0; L = J[K]; ++K) { if (!C(L)) { return false } } return true } x.ready(function () { if (!E) { E = n.getStyle(document.body).isUsable() } if (B || (E && F())) { H() } else { setTimeout(arguments.callee, 10) } }); return function (K) { if (B) { K() } else { D.push(K) } } })(); function s(D) { var C = this.face = D.face, B = { "\u0020": 1, "\u00a0": 1, "\u3000": 1 }; this.glyphs = D.glyphs; this.w = D.w; this.baseSize = parseInt(C["units-per-em"], 10); this.family = C["font-family"].toLowerCase(); this.weight = C["font-weight"]; this.style = C["font-style"] || "normal"; this.viewBox = (function () { var F = C.bbox.split(/\s+/); var E = { minX: parseInt(F[0], 10), minY: parseInt(F[1], 10), maxX: parseInt(F[2], 10), maxY: parseInt(F[3], 10) }; E.width = E.maxX - E.minX; E.height = E.maxY - E.minY; E.toString = function () { return [this.minX, this.minY, this.width, this.height].join(" ") }; return E })(); this.ascent = -parseInt(C.ascent, 10); this.descent = -parseInt(C.descent, 10); this.height = -this.ascent + this.descent; this.spacing = function (L, N, E) { var O = this.glyphs, M, K, G, P = [], F = 0, J = -1, I = -1, H; while (H = L[++J]) { M = O[H] || this.missingGlyph; if (!M) { continue } if (K) { F -= G = K[H] || 0; P[I] -= G } F += P[++I] = ~ ~(M.w || this.w) + N + (B[H] ? E : 0); K = M.k } P.total = F; return P } } function f() { var C = {}, B = { oblique: "italic", italic: "oblique" }; this.add = function (D) { (C[D.style] || (C[D.style] = {}))[D.weight] = D }; this.get = function (H, I) { var G = C[H] || C[B[H]] || C.normal || C.italic || C.oblique; if (!G) { return null } I = { normal: 400, bold: 700}[I] || parseInt(I, 10); if (G[I]) { return G[I] } var E = { 1: 1, 99: 0}[I % 100], K = [], F, D; if (E === undefined) { E = I > 400 } if (I == 500) { I = 400 } for (var J in G) { if (!k(G, J)) { continue } J = parseInt(J, 10); if (!F || J < F) { F = J } if (!D || J > D) { D = J } K.push(J) } if (I < F) { I = F } if (I > D) { I = D } K.sort(function (M, L) { return (E ? (M >= I && L >= I) ? M < L : M > L : (M <= I && L <= I) ? M > L : M < L) ? -1 : 1 }); return G[K[0]] } } function r() { function D(F, G) { if (F.contains) { return F.contains(G) } return F.compareDocumentPosition(G) & 16 } function B(G) { var F = G.relatedTarget; if (!F || D(this, F)) { return } C(this, G.type == "mouseover") } function E(F) { C(this, F.type == "mouseenter") } function C(F, G) { setTimeout(function () { var H = d.get(F).options; m.replace(F, G ? h(H, H.hover) : H, true) }, 10) } this.attach = function (F) { if (F.onmouseenter === undefined) { q(F, "mouseover", B); q(F, "mouseout", B) } else { q(F, "mouseenter", E); q(F, "mouseleave", E) } } } function u() { var C = [], D = {}; function B(H) { var E = [], G; for (var F = 0; G = H[F]; ++F) { E[F] = C[D[G]] } return E } this.add = function (F, E) { D[F] = C.push(E) - 1 }; this.repeat = function () { var E = arguments.length ? B(arguments) : C, F; for (var G = 0; F = E[G++]; ) { m.replace(F[0], F[1], true) } } } function A() { var D = {}, B = 0; function C(E) { return E.cufid || (E.cufid = ++B) } this.get = function (E) { var F = C(E); return D[F] || (D[F] = {}) } } function a(B) { var D = {}, C = {}; this.extend = function (E) { for (var F in E) { if (k(E, F)) { D[F] = E[F] } } return this }; this.get = function (E) { return D[E] != undefined ? D[E] : B[E] }; this.getSize = function (F, E) { return C[F] || (C[F] = new n.Size(this.get(F), E)) }; this.isUsable = function () { return !!B } } function q(C, B, D) { if (C.addEventListener) { C.addEventListener(B, D, false) } else { if (C.attachEvent) { C.attachEvent("on" + B, function () { return D.call(C, window.event) }) } } } function v(C, B) { var D = d.get(C); if (D.options) { return C } if (B.hover && B.hoverables[C.nodeName.toLowerCase()]) { b.attach(C) } D.options = B; return C } function j(B) { var C = {}; return function (D) { if (!k(C, D)) { C[D] = B.apply(null, arguments) } return C[D] } } function c(F, E) { var B = n.quotedList(E.get("fontFamily").toLowerCase()), D; for (var C = 0; D = B[C]; ++C) { if (i[D]) { return i[D].get(E.get("fontStyle"), E.get("fontWeight")) } } return null } function g(B) { return document.getElementsByTagName(B) } function k(C, B) { return C.hasOwnProperty(B) } function h() { var C = {}, B, F; for (var E = 0, D = arguments.length; B = arguments[E], E < D; ++E) { for (F in B) { if (k(B, F)) { C[F] = B[F] } } } return C } function o(E, M, C, N, F, D) { var K = document.createDocumentFragment(), H; if (M === "") { return K } var L = N.separate; var I = M.split(p[L]), B = (L == "words"); if (B && t) { if (/^\s/.test(M)) { I.unshift("") } if (/\s$/.test(M)) { I.push("") } } for (var J = 0, G = I.length; J < G; ++J) { H = z[N.engine](E, B ? n.textAlign(I[J], C, J, G) : I[J], C, N, F, D, J < G - 1); if (H) { K.appendChild(H) } } return K } function l(D, M) { var C = D.nodeName.toLowerCase(); if (M.ignore[C]) { return } var E = !M.textless[C]; var B = n.getStyle(v(D, M)).extend(M); var F = c(D, B), G, K, I, H, L, J; if (!F) { return } for (G = D.firstChild; G; G = I) { K = G.nodeType; I = G.nextSibling; if (E && K == 3) { if (H) { H.appendData(G.data); D.removeChild(G) } else { H = G } if (I) { continue } } if (H) { D.replaceChild(o(F, n.whiteSpace(H.data, B, H, J), B, M, G, D), H); H = null } if (K == 1) { if (G.firstChild) { if (G.nodeName.toLowerCase() == "cufon") { z[M.engine](F, null, B, M, G, D) } else { arguments.callee(G, M) } } J = G } } } var t = " ".split(/\s+/).length == 0; var d = new A(); var b = new r(); var y = new u(); var e = false; var z = {}, i = {}, w = { autoDetect: false, engine: null, forceHitArea: false, hover: false, hoverables: { a: true }, ignore: { applet: 1, canvas: 1, col: 1, colgroup: 1, head: 1, iframe: 1, map: 1, optgroup: 1, option: 1, script: 1, select: 1, style: 1, textarea: 1, title: 1, pre: 1 }, printable: true, selector: (window.Sizzle || (window.jQuery && function (B) { return jQuery(B) }) || (window.dojo && dojo.query) || (window.Ext && Ext.query) || (window.YAHOO && YAHOO.util && YAHOO.util.Selector && YAHOO.util.Selector.query) || (window.$$ && function (B) { return $$(B) }) || (window.$ && function (B) { return $(B) }) || (document.querySelectorAll && function (B) { return document.querySelectorAll(B) }) || g), separate: "words", textless: { dl: 1, html: 1, ol: 1, table: 1, tbody: 1, thead: 1, tfoot: 1, tr: 1, ul: 1 }, textShadow: "none" }; var p = { words: /\s/.test("\u00a0") ? /[^\S\u00a0]+/ : /\s+/, characters: "", none: /^/ }; m.now = function () { x.ready(); return m }; m.refresh = function () { y.repeat.apply(y, arguments); return m }; m.registerEngine = function (C, B) { if (!B) { return m } z[C] = B; return m.set("engine", C) }; m.registerFont = function (D) { if (!D) { return m } var B = new s(D), C = B.family; if (!i[C]) { i[C] = new f() } i[C].add(B); return m.set("fontFamily", '"' + C + '"') }; m.replace = function (D, C, B) { C = h(w, C); if (!C.engine) { return m } if (!e) { n.addClass(x.root(), "cufon-active cufon-loading"); n.ready(function () { n.addClass(n.removeClass(x.root(), "cufon-loading"), "cufon-ready") }); e = true } if (C.hover) { C.forceHitArea = true } if (C.autoDetect) { delete C.fontFamily } if (typeof C.textShadow == "string") { C.textShadow = n.textShadow(C.textShadow) } if (typeof C.color == "string" && /^-/.test(C.color)) { C.textGradient = n.gradient(C.color) } else { delete C.textGradient } if (!B) { y.add(D, arguments) } if (D.nodeType || typeof D == "string") { D = [D] } n.ready(function () { for (var F = 0, E = D.length; F < E; ++F) { var G = D[F]; if (typeof G == "string") { m.replace(C.selector(G), C, true) } else { l(G, C) } } }); return m }; m.set = function (B, C) { w[B] = C; return m }; return m })(); Cufon.registerEngine("vml", (function () { var e = document.namespaces; if (!e) { return } e.add("cvml", "urn:schemas-microsoft-com:vml"); e = null; var b = document.createElement("cvml:shape"); b.style.behavior = "url(#default#VML)"; if (!b.coordsize) { return } b = null; var h = (document.documentMode || 0) < 8; document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:' + (h ? "middle" : "text-bottom") + ";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g, "!important;")); function c(i, j) { return a(i, /(?:em|ex|%)$|^[a-z-]+$/i.test(j) ? "1em" : j) } function a(l, m) { if (m === "0") { return 0 } if (/px$/i.test(m)) { return parseFloat(m) } var k = l.style.left, j = l.runtimeStyle.left; l.runtimeStyle.left = l.currentStyle.left; l.style.left = m.replace("%", "em"); var i = l.style.pixelLeft; l.style.left = k; l.runtimeStyle.left = j; return i } function f(l, k, j, n) { var i = "computed" + n, m = k[i]; if (isNaN(m)) { m = k.get(n); k[i] = m = (m == "normal") ? 0 : ~ ~j.convertFrom(a(l, m)) } return m } var g = {}; function d(p) { var q = p.id; if (!g[q]) { var n = p.stops, o = document.createElement("cvml:fill"), i = []; o.type = "gradient"; o.angle = 180; o.focus = "0"; o.method = "sigma"; o.color = n[0][1]; for (var m = 1, l = n.length - 1; m < l; ++m) { i.push(n[m][0] * 100 + "% " + n[m][1]) } o.colors = i.join(","); o.color2 = n[l][1]; g[q] = o } return g[q] } return function (ac, G, Y, C, K, ad, W) { var n = (G === null); if (n) { G = K.alt } var I = ac.viewBox; var p = Y.computedFontSize || (Y.computedFontSize = new Cufon.CSS.Size(c(ad, Y.get("fontSize")) + "px", ac.baseSize)); var y, q; if (n) { y = K; q = K.firstChild } else { y = document.createElement("cufon"); y.className = "cufon cufon-vml"; y.alt = G; q = document.createElement("cufoncanvas"); y.appendChild(q); if (C.printable) { var Z = document.createElement("cufontext"); Z.appendChild(document.createTextNode(G)); y.appendChild(Z) } if (!W) { y.appendChild(document.createElement("cvml:shape")) } } var ai = y.style; var R = q.style; var l = p.convert(I.height), af = Math.ceil(l); var V = af / l; var P = V * Cufon.CSS.fontStretch(Y.get("fontStretch")); var U = I.minX, T = I.minY; R.height = af; R.top = Math.round(p.convert(T - ac.ascent)); R.left = Math.round(p.convert(U)); ai.height = p.convert(ac.height) + "px"; var F = Y.get("color"); var ag = Cufon.CSS.textTransform(G, Y).split(""); var L = ac.spacing(ag, f(ad, Y, p, "letterSpacing"), f(ad, Y, p, "wordSpacing")); if (!L.length) { return null } var k = L.total; var x = -U + k + (I.width - L[L.length - 1]); var ah = p.convert(x * P), X = Math.round(ah); var O = x + "," + I.height, m; var J = "r" + O + "ns"; var u = C.textGradient && d(C.textGradient); var o = ac.glyphs, S = 0; var H = C.textShadow; var ab = -1, aa = 0, w; while (w = ag[++ab]) { var D = o[ag[ab]] || ac.missingGlyph, v; if (!D) { continue } if (n) { v = q.childNodes[aa]; while (v.firstChild) { v.removeChild(v.firstChild) } } else { v = document.createElement("cvml:shape"); q.appendChild(v) } v.stroked = "f"; v.coordsize = O; v.coordorigin = m = (U - S) + "," + T; v.path = (D.d ? "m" + D.d + "xe" : "") + "m" + m + J; v.fillcolor = F; if (u) { v.appendChild(u.cloneNode(false)) } var ae = v.style; ae.width = X; ae.height = af; if (H) { var s = H[0], r = H[1]; var B = Cufon.CSS.color(s.color), z; var N = document.createElement("cvml:shadow"); N.on = "t"; N.color = B.color; N.offset = s.offX + "," + s.offY; if (r) { z = Cufon.CSS.color(r.color); N.type = "double"; N.color2 = z.color; N.offset2 = r.offX + "," + r.offY } N.opacity = B.opacity || (z && z.opacity) || 1; v.appendChild(N) } S += L[aa++] } var M = v.nextSibling, t, A; if (C.forceHitArea) { if (!M) { M = document.createElement("cvml:rect"); M.stroked = "f"; M.className = "cufon-vml-cover"; t = document.createElement("cvml:fill"); t.opacity = 0; M.appendChild(t); q.appendChild(M) } A = M.style; A.width = X; A.height = af } else { if (M) { q.removeChild(M) } } ai.width = Math.max(Math.ceil(p.convert(k * P)), 0); if (h) { var Q = Y.computedYAdjust; if (Q === undefined) { var E = Y.get("lineHeight"); if (E == "normal") { E = "1em" } else { if (!isNaN(E)) { E += "em" } } Y.computedYAdjust = Q = 0.5 * (a(ad, E) - parseFloat(ai.height)) } if (Q) { ai.marginTop = Math.ceil(Q) + "px"; ai.marginBottom = Q + "px" } } return y } })()); Cufon.registerEngine("canvas", (function () { var b = document.createElement("canvas"); if (!b || !b.getContext || !b.getContext.apply) { return } b = null; var a = Cufon.CSS.supports("display", "inline-block"); var e = !a && (document.compatMode == "BackCompat" || /frameset|transitional/i.test(document.doctype.publicId)); var f = document.createElement("style"); f.type = "text/css"; f.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;" + (e ? "" : "font-size:1px;line-height:1px;") + "}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}" + (a ? "cufon canvas{position:relative;}" : "cufon canvas{position:absolute;}") + "}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g, "!important;"))); document.getElementsByTagName("head")[0].appendChild(f); function d(p, h) { var n = 0, m = 0; var g = [], o = /([mrvxe])([^a-z]*)/g, k; generate: for (var j = 0; k = o.exec(p); ++j) { var l = k[2].split(","); switch (k[1]) { case "v": g[j] = { m: "bezierCurveTo", a: [n + ~ ~l[0], m + ~ ~l[1], n + ~ ~l[2], m + ~ ~l[3], n += ~ ~l[4], m += ~ ~l[5]] }; break; case "r": g[j] = { m: "lineTo", a: [n += ~ ~l[0], m += ~ ~l[1]] }; break; case "m": g[j] = { m: "moveTo", a: [n = ~ ~l[0], m = ~ ~l[1]] }; break; case "x": g[j] = { m: "closePath" }; break; case "e": break generate } h[g[j].m].apply(h, g[j].a) } return g } function c(m, k) { for (var j = 0, h = m.length; j < h; ++j) { var g = m[j]; k[g.m].apply(k, g.a) } } return function (V, w, P, t, C, W) { var k = (w === null); if (k) { w = C.getAttribute("alt") } var A = V.viewBox; var m = P.getSize("fontSize", V.baseSize); var B = 0, O = 0, N = 0, u = 0; var z = t.textShadow, L = []; if (z) { for (var U = z.length; U--; ) { var F = z[U]; var K = m.convertFrom(parseFloat(F.offX)); var I = m.convertFrom(parseFloat(F.offY)); L[U] = [K, I]; if (I < B) { B = I } if (K > O) { O = K } if (I > N) { N = I } if (K < u) { u = K } } } var Z = Cufon.CSS.textTransform(w, P).split(""); var E = V.spacing(Z, ~ ~m.convertFrom(parseFloat(P.get("letterSpacing")) || 0), ~ ~m.convertFrom(parseFloat(P.get("wordSpacing")) || 0)); if (!E.length) { return null } var h = E.total; O += A.width - E[E.length - 1]; u += A.minX; var s, n; if (k) { s = C; n = C.firstChild } else { s = document.createElement("cufon"); s.className = "cufon cufon-canvas"; s.setAttribute("alt", w); n = document.createElement("canvas"); s.appendChild(n); if (t.printable) { var S = document.createElement("cufontext"); S.appendChild(document.createTextNode(w)); s.appendChild(S) } } var aa = s.style; var H = n.style; var j = m.convert(A.height); var Y = Math.ceil(j); var M = Y / j; var G = M * Cufon.CSS.fontStretch(P.get("fontStretch")); var J = h * G; var Q = Math.ceil(m.convert(J + O - u)); var o = Math.ceil(m.convert(A.height - B + N)); n.width = Q; n.height = o; H.width = Q + "px"; H.height = o + "px"; B += A.minY; H.top = Math.round(m.convert(B - V.ascent)) + "px"; H.left = Math.round(m.convert(u)) + "px"; var r = Math.max(Math.ceil(m.convert(J)), 0) + "px"; if (a) { aa.width = r; aa.height = m.convert(V.height) + "px" } else { aa.paddingLeft = r; aa.paddingBottom = (m.convert(V.height) - 1) + "px" } var X = n.getContext("2d"), D = j / A.height; X.scale(D, D * M); X.translate(-u, -B); X.save(); function T() { var x = V.glyphs, ab, l = -1, g = -1, y; X.scale(G, 1); while (y = Z[++l]) { var ab = x[Z[l]] || V.missingGlyph; if (!ab) { continue } if (ab.d) { X.beginPath(); if (ab.code) { c(ab.code, X) } else { ab.code = d("m" + ab.d, X) } X.fill() } X.translate(E[++g], 0) } X.restore() } if (z) { for (var U = z.length; U--; ) { var F = z[U]; X.save(); X.fillStyle = F.color; X.translate.apply(X, L[U]); T() } } var q = t.textGradient; if (q) { var v = q.stops, p = X.createLinearGradient(0, A.minY, 0, A.maxY); for (var U = 0, R = v.length; U < R; ++U) { p.addColorStop.apply(p, v[U]) } X.fillStyle = p } else { X.fillStyle = P.get("color") } T(); return s } })());

/**
* jQuery.timers - Timer abstractions for jQuery
* Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
* Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
* Date: 2009/02/08
*
* @author Blair Mitchelmore
* @version 1.1.2
*
**/
jQuery.fn.extend({ everyTime: function (b, c, d, e, a) { return this.each(function () { jQuery.timer.add(this, b, c, d, e, a) }) }, oneTime: function (a, b, c) { return this.each(function () { jQuery.timer.add(this, a, b, c, 1) }) }, stopTime: function (a, b) { return this.each(function () { jQuery.timer.remove(this, a, b) }) } }); jQuery.extend({ timer: { guid: 1, global: {}, regex: /^([0-9]+)\s*(.*s)?$/, powers: { ms: 1, cs: 10, ds: 100, s: 1000, das: 10000, hs: 100000, ks: 1000000 }, timeParse: function (c) { if (c == undefined || c == null) { return null } var a = this.regex.exec(jQuery.trim(c.toString())); if (a[2]) { var b = parseInt(a[1], 10); var d = this.powers[a[2]] || 1; return b * d } else { return c } }, add: function (e, c, d, g, h, b) { var a = 0; if (jQuery.isFunction(d)) { if (!h) { h = g } g = d; d = c } c = jQuery.timer.timeParse(c); if (typeof c != "number" || isNaN(c) || c <= 0) { return } if (h && h.constructor != Number) { b = !!h; h = 0 } h = h || 0; b = b || false; if (!e.$timers) { e.$timers = {} } if (!e.$timers[d]) { e.$timers[d] = {} } g.$timerID = g.$timerID || this.guid++; var f = function () { if (b && this.inProgress) { return } this.inProgress = true; if ((++a > h && h !== 0) || g.call(e, a) === false) { jQuery.timer.remove(e, d, g) } this.inProgress = false }; f.$timerID = g.$timerID; if (!e.$timers[d][g.$timerID]) { e.$timers[d][g.$timerID] = window.setInterval(f, c) } if (!this.global[d]) { this.global[d] = [] } this.global[d].push(e) }, remove: function (c, b, d) { var e = c.$timers, a; if (e) { if (!b) { for (b in e) { this.remove(c, b, d) } } else { if (e[b]) { if (d) { if (d.$timerID) { window.clearInterval(e[b][d.$timerID]); delete e[b][d.$timerID] } } else { for (var d in e[b]) { window.clearInterval(e[b][d]); delete e[b][d] } } for (a in e[b]) { break } if (!a) { a = null; delete e[b] } } } for (a in e) { break } if (!a) { c.$timers = null } } } } }); if (jQuery.browser.msie) { jQuery(window).one("unload", function () { var d = jQuery.timer.global; for (var a in d) { var c = d[a], b = c.length; while (--b) { jQuery.timer.remove(c[b], a) } } }) };

/*
* Custom plugin. Lazy load dynamically loads image from src.
*/
(function ($) {
    $.fn.lazyload = function (options) {

        var settings = {
            callback: function () { }
        };
        if (options) {
            $.extend(settings, options);
        }

        return this.each(function () {
            var self = this;
            if (!self.loaded) {
                self.loaded = 1;

                if (self.title) {
                    $('<img />')
						.bind('load', function () {
						    $(self).attr('title', '')
								.attr('src', this.src);
                            settings.callback.call(self);
						})
						.attr('src', self.title);
                }
            }
        });
    }
} (jQuery));
