/*
Supersized - Fullscreen Background jQuery Plugin
Version 3.1.3 Core
www.buildinternet.com/project/supersized	
By Sam Dunn / One Mighty Roar (www.onemightyroar.com)
Released under MIT License / GPL License
*/
(function (a) { a(document).ready(function () { a("body").prepend('<div id="supersized-loader"></div>').append('<div id="supersized"></div>') }); a.supersized = function (b) { var d = { start_slide: 1, vertical_center: 1, horizontal_center: 1, min_width: 0, min_height: 0, fit_portrait: 0, fit_landscape: 0, image_protect: 1 }; var c = a("#supersized"); if (b) { var b = a.extend(d, b) } else { var b = a.extend(d) } if (b.start_slide) { var f = b.start_slide - 1 } else { var f = Math.floor(Math.random() * b.slides.length) } a("<img/>").attr("src", b.slides[f].image).appendTo(c); c.hide(); a(document).ready(function () { e() }); a(window).load(function () { a("#supersized-loader").hide(); c.fadeIn("fast"); e() }); a(window).resize(function () { e() }); function e() { return c.each(function () { var g = a("img", c); a(g).each(function () { var i = (a(this).height() / a(this).width()).toFixed(2); thisSlide = a(this); var h = a(window).width(); var k = a(window).height(); var l; if ((k <= b.min_height) && (h <= b.min_width)) { if ((k / h) > i) { b.fit_landscape && i <= 1 ? j(true) : m(true) } else { b.fit_portrait && i > 1 ? m(true) : j(true) } } else { if (h <= b.min_width) { if ((k / h) > i) { b.fit_landscape && i <= 1 ? j(true) : m() } else { b.fit_portrait && i > 1 ? m() : j(true) } } else { if (k <= b.min_height) { if ((k / h) > i) { b.fit_landscape && i <= 1 ? j() : m(true) } else { b.fit_portrait && i > 1 ? m(true) : j() } } else { if ((k / h) > i) { b.fit_landscape && i <= 1 ? j() : m() } else { b.fit_portrait && i > 1 ? m() : j() } } } } function j(n) { if (n) { if (thisSlide.width() < h || thisSlide.width() < b.min_width) { if (thisSlide.width() * i >= b.min_height) { thisSlide.width(b.min_width); thisSlide.height(thisSlide.width() * i) } else { m() } } } else { if (b.min_height >= k && !b.fit_landscape) { if (h * i >= b.min_height || (h * i >= b.min_height && i <= 1)) { thisSlide.width(h); thisSlide.height(h * i) } else { if (i > 1) { thisSlide.height(b.min_height); thisSlide.width(thisSlide.height() / i) } else { if (thisSlide.width() < h) { thisSlide.width(h); thisSlide.height(thisSlide.width() * i) } } } } else { thisSlide.width(h); thisSlide.height(h * i) } } } function m(n) { if (n) { if (thisSlide.height() < k) { if (thisSlide.height() / i >= b.min_width) { thisSlide.height(b.min_height); thisSlide.width(thisSlide.height() / i) } else { j(true) } } } else { if (b.min_width >= h) { if (k / i >= b.min_width || i > 1) { thisSlide.height(k); thisSlide.width(k / i) } else { if (i <= 1) { thisSlide.width(b.min_width); thisSlide.height(thisSlide.width() * i) } } } else { thisSlide.height(k); thisSlide.width(k / i) } } } if (b.horizontal_center) { a(this).css("left", (h - a(this).width()) / 2) } if (b.vertical_center) { a(this).css("top", (k - a(this).height()) / 2) } }); if (b.image_protect) { a("img", c).bind("contextmenu", function () { return false }); a("img", c).bind("mousedown", function () { return false }) } return false }) } } })(jQuery);

/*
 * jQuery Cycle Lite Plugin
 * http://malsup.com/jquery/cycle/lite/
 * Copyright (c) 2008-2011 M. Alsup
 * Version: 1.3 (01-JUN-2011)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires: jQuery v1.3.2 or later
 */
(function (a) { function d(a, b, d) { var e = a[0].parentNode, f = e.cycleTimeout; if (f) { clearTimeout(f); e.cycleTimeout = 0 } b.nextSlide = b.currSlide + d; if (b.nextSlide < 0) { b.nextSlide = a.length - 1 } else if (b.nextSlide >= a.length) { b.nextSlide = 0 } c(a, b, 1, d >= 0); return false } function c(b, d, e, f) { if (d.busy) return; var g = b[0].parentNode, h = b[d.currSlide], i = b[d.nextSlide]; if (g.cycleTimeout === 0 && !e) return; if (e || !g.cyclePause) { if (d.before.length) a.each(d.before, function (a, b) { b.apply(i, [h, i, d, f]) }); var j = function () { if (a.browser.msie) this.style.removeAttribute("filter"); a.each(d.after, function (a, b) { b.apply(i, [h, i, d, f]) }) }; if (d.nextSlide != d.currSlide) { d.busy = 1; a.fn.cycle.custom(h, i, d, j) } var k = d.nextSlide + 1 == b.length; d.nextSlide = k ? 0 : d.nextSlide + 1; d.currSlide = k ? b.length - 1 : d.nextSlide - 1 } if (d.timeout) g.cycleTimeout = setTimeout(function () { c(b, d, 0, !d.rev) }, d.timeout) } var b = "Lite-1.3"; a.fn.cycle = function (b) { return this.each(function () { b = b || {}; if (this.cycleTimeout) clearTimeout(this.cycleTimeout); this.cycleTimeout = 0; this.cyclePause = 0; var e = a(this); var f = b.slideExpr ? a(b.slideExpr, this) : e.children(); var g = f.get(); if (g.length < 2) { window.console && console.log("terminating; too few slides: " + g.length); return } var h = a.extend({}, a.fn.cycle.defaults, b || {}, a.metadata ? e.metadata() : a.meta ? e.data() : {}); var i = a.isFunction(e.data) ? e.data(h.metaAttr) : null; if (i) h = a.extend(h, i); h.before = h.before ? [h.before] : []; h.after = h.after ? [h.after] : []; h.after.unshift(function () { h.busy = 0 }); var j = this.className; h.width = parseInt((j.match(/w:(\d+)/) || [])[1]) || h.width; h.height = parseInt((j.match(/h:(\d+)/) || [])[1]) || h.height; h.timeout = parseInt((j.match(/t:(\d+)/) || [])[1]) || h.timeout; if (e.css("position") == "static") e.css("position", "relative"); if (h.width) e.width(h.width); if (h.height && h.height != "auto") e.height(h.height); var k = 0; f.css({ position: "absolute", top: 0, left: 0 }).each(function (b) { a(this).css("z-index", g.length - b) }); a(g[k]).css("opacity", 1).show(); if (a.browser.msie) g[k].style.removeAttribute("filter"); if (h.fit && h.width) f.width(h.width); if (h.fit && h.height && h.height != "auto") f.height(h.height); if (h.pause) e.hover(function () { this.cyclePause = 1 }, function () { this.cyclePause = 0 }); var l = a.fn.cycle.transitions[h.fx]; l && l(e, f, h); f.each(function () { var b = a(this); this.cycleH = h.fit && h.height ? h.height : b.height(); this.cycleW = h.fit && h.width ? h.width : b.width() }); if (h.cssFirst) a(f[k]).css(h.cssFirst); if (h.timeout) { if (h.speed.constructor == String) h.speed = { slow: 600, fast: 200}[h.speed] || 400; if (!h.sync) h.speed = h.speed / 2; while (h.timeout - h.speed < 250) h.timeout += h.speed } h.speedIn = h.speed; h.speedOut = h.speed; h.slideCount = g.length; h.currSlide = k; h.nextSlide = 1; var m = f[k]; if (h.before.length) h.before[0].apply(m, [m, m, h, true]); if (h.after.length > 1) h.after[1].apply(m, [m, m, h, true]); if (h.click && !h.next) h.next = h.click; if (h.next) a(h.next).bind("click", function () { return d(g, h, h.rev ? -1 : 1) }); if (h.prev) a(h.prev).bind("click", function () { return d(g, h, h.rev ? 1 : -1) }); if (h.timeout) this.cycleTimeout = setTimeout(function () { c(g, h, 0, !h.rev) }, h.timeout + (h.delay || 0)) }) }; a.fn.cycle.custom = function (b, c, d, e) { var f = a(b), g = a(c); g.css(d.cssBefore); var h = function () { g.animate(d.animIn, d.speedIn, d.easeIn, e) }; f.animate(d.animOut, d.speedOut, d.easeOut, function () { f.css(d.cssAfter); if (!d.sync) h() }); if (d.sync) h() }; a.fn.cycle.transitions = { fade: function (a, b, c) { b.not(":eq(0)").hide(); c.cssBefore = { opacity: 0, display: "block" }; c.cssAfter = { display: "none" }; c.animOut = { opacity: 0 }; c.animIn = { opacity: 1} }, fadeout: function (b, c, d) { d.before.push(function (b, c, d, e) { a(b).css("zIndex", d.slideCount + (e === true ? 1 : 0)); a(c).css("zIndex", d.slideCount + (e === true ? 0 : 1)) }); c.not(":eq(0)").hide(); d.cssBefore = { opacity: 1, display: "block", zIndex: 1 }; d.cssAfter = { display: "none", zIndex: 0 }; d.animOut = { opacity: 0} } }; a.fn.cycle.ver = function () { return b }; a.fn.cycle.defaults = { animIn: {}, animOut: {}, fx: "fade", after: null, before: null, cssBefore: {}, cssAfter: {}, delay: 4000, fit: 0, height: "auto", metaAttr: "cycle", next: null, pause: 0, prev: null, speed: 1500, slideExpr: null, sync: 1, timeout: 4000} })(jQuery);

/**
* hoverIntent r6 // 2011.02.26 // jQuery 1.5.1+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
* 
* @param  f  onMouseOver function || An object with configuration options
* @param  g  onMouseOut function  || Nothing (use configuration options object)
* @author    Brian Cherne brian(at)cherne(dot)net
*/
(function ($) { $.fn.hoverIntent = function (f, g) { var cfg = { sensitivity: 7, interval: 100, timeout: 0 }; cfg = $.extend(cfg, g ? { over: f, out: g} : f); var cX, cY, pX, pY; var track = function (ev) { cX = ev.pageX; cY = ev.pageY }; var compare = function (ev, ob) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); if ((Math.abs(pX - cX) + Math.abs(pY - cY)) < cfg.sensitivity) { $(ob).unbind("mousemove", track); ob.hoverIntent_s = 1; return cfg.over.apply(ob, [ev]) } else { pX = cX; pY = cY; ob.hoverIntent_t = setTimeout(function () { compare(ev, ob) }, cfg.interval) } }; var delay = function (ev, ob) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); ob.hoverIntent_s = 0; return cfg.out.apply(ob, [ev]) }; var handleHover = function (e) { var ev = jQuery.extend({}, e); var ob = this; if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t) } if (e.type == "mouseenter") { pX = ev.pageX; pY = ev.pageY; $(ob).bind("mousemove", track); if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout(function () { compare(ev, ob) }, cfg.interval) } } else { $(ob).unbind("mousemove", track); if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout(function () { delay(ev, ob) }, cfg.timeout) } } }; return this.bind('mouseenter', handleHover).bind('mouseleave', handleHover) } })(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
*/
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } (';(3($){$.h.v=3(9){5 2=$.h.v,c=2.c,$K=$([\'<L 1h="\',c.M,\'"> &#1i;</L>\'].f(\'\')),l=3(){5 $$=$(4),b=w($$);N(b.x);$$.O().1j().m()},y=3(){5 $$=$(4),b=w($$),o=2.9;N(b.x);b.x=1k(3(){o.z=($.1l($$[0],o.$j)>-1);$$.m();n(o.$j.A&&$$.B([\'d.\',o.g].f(\'\')).A<1){l.e(o.$j)}},o.P)},w=3($b){5 b=$b.B([\'8.\',c.C,\':Q\'].f(\'\'))[0];2.9=2.o[b.R];p b},S=3($a){$a.q(c.T).1m($K.1n())};p 4.k(3(){5 s=4.R=2.o.A;5 o=$.U({},2.V,9);o.$j=$(\'d.\'+o.D,4).1o(0,o.W).k(3(){$(4).q([o.g,c.E].f(\' \')).1p(\'d:X(8)\').Y(o.D)});2.o[s]=2.9=o;$(\'d:X(8)\',4)[($.h.Z&&!o.10)?\'Z\':\'1q\'](l,y).k(3(){n(o.11)S($(\'>a:Q-1r\',4))}).r(\'.\'+c.E).m();5 $a=$(\'a\',4);$a.k(3(i){5 $d=$a.12(i).B(\'d\');$a.12(i).1s(3(){l.e($d)}).1t(3(){y.e($d)})});o.13.e(4)}).k(3(){5 F=[c.C];n(2.9.G&&!($.t.14&&$.t.15<7))F.1u(c.u);$(4).q(F.f(\' \'))})};5 2=$.h.v;2.o=[];2.9={};2.H=3(){5 o=2.9;n($.t.14&&$.t.15>6&&o.G&&o.I.16!=1v)4.1w(2.c.u+\'-17\')};2.c={E:\'2-1x\',C:\'2-1y-1z\',T:\'2-1A-8\',M:\'2-1B-1C\',u:\'2-1D\'};2.V={g:\'1E\',D:\'1F\',W:1,P:1G,I:{16:\'1H\'},18:\'1I\',11:J,G:J,10:19,13:3(){},1a:3(){},1b:3(){},1c:3(){}};$.h.U({m:3(){5 o=2.9,r=(o.z===J)?o.$j:\'\';o.z=19;5 $8=$([\'d.\',o.g].f(\'\'),4).1J(4).r(r).Y(o.g).1d(\'>8\').1K().1e(\'1f\',\'1g\');o.1c.e($8);p 4},O:3(){5 o=2.9,1L=2.c.u+\'-17\',$8=4.q(o.g).1d(\'>8:1g\').1e(\'1f\',\'1M\');2.H.e($8);o.1a.e($8);$8.1N(o.I,o.18,3(){2.H.e($8);o.1b.e($8)});p 4}})})(1O);', 62, 113, '||sf|function|this|var|||ul|op||menu||li|call|join|hoverClass|fn||path|each|over|hideSuperfishUl|if||return|addClass|not||browser|shadowClass|superfish|getMenu|sfTimer|out|retainPath|length|parents|menuClass|pathClass|bcClass|menuClasses|dropShadows|IE7fix|animation|true|arrow|span|arrowClass|clearTimeout|showSuperfishUl|delay|first|serial|addArrow|anchorClass|extend|defaults|pathLevels|has|removeClass|hoverIntent|disableHI|autoArrows|eq|onInit|msie|version|opacity|off|speed|false|onBeforeShow|onShow|onHide|find|css|visibility|hidden|class|187|siblings|setTimeout|inArray|append|clone|slice|filter|hover|child|focus|blur|push|undefined|toggleClass|breadcrumb|js|enabled|with|sub|indicator|shadow|sfHover|overideThisToUse|800|show|normal|add|hide|sh|visible|animate|jQuery'.split('|'), 0, {}));

