/**
 * jQuery bxSlider v3.0
 * http://bxslider.com
 *
 * Copyright 2010, Steven Wanderski
 * http://bxcreative.com
 *
 * Free to use and abuse under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * 
 */
(function (a) { a.fn.bxSlider = function (b) { function Z(b, c, d, e) { var f = []; var g = d; var h = false; if (e == "backward") { b = a.makeArray(b); b.reverse() } while (g > 0) { a.each(b, function (b, d) { if (g > 0) { if (!h) { if (b == c) { h = true; f.push(a(this).clone()); g-- } } else { f.push(a(this).clone()); g-- } } else { return false } }) } return f } function Y() { var a = i.outerHeight() * b.displaySlideQty; return a } function X() { var a = i.outerWidth() * b.displaySlideQty; return a } function W(b, c) { if (c == "left") { var d = a(".pager", h).eq(b).position().left } else if (c == "top") { var d = a(".pager", h).eq(b).position().top } return d } function V() { if (!b.infiniteLoop && b.hideControlOnEnd) { if (x == F) { a(".bx-prev", h).hide() } else { a(".bx-prev", h).show() } if (x == G) { a(".bx-next", h).hide() } else { a(".bx-next", h).show() } } } function U(c, e, f, g) { p = a('<a href="" class="bx-start"></a>'); if (c == "text") { r = e } else { r = '<img src="' + e + '" />' } if (f == "text") { s = g } else { s = '<img src="' + g + '" />' } if (b.autoControlsSelector) { a(b.autoControlsSelector).append(p) } else { h.append('<div class="bx-auto"></div>'); a(".bx-auto", h).html(p) } p.click(function () { if (b.ticker) { if (a(this).hasClass("stop")) { d.stopTicker() } else if (a(this).hasClass("start")) { d.startTicker() } } else { if (a(this).hasClass("stop")) { d.stopShow(true) } else if (a(this).hasClass("start")) { d.startShow(true) } } return false }) } function T() { var c = a("img", g.eq(x)).attr("title"); if (c != "") { if (b.captionsSelector) { a(b.captionsSelector).html(c) } else { a(".bx-captions", h).html(c) } } else { if (b.captionsSelector) { a(b.captionsSelector).html(" ") } else { a(".bx-captions", h).html(" ") } } } function S(c) { var e = g.length; if (b.moveSlideQty > 1) { if (g.length % b.moveSlideQty != 0) { e = Math.ceil(g.length / b.moveSlideQty) } else { e = g.length / b.moveSlideQty } } var f = ""; if (b.buildPager) { for (var i = 0; i < e; i++) { f += b.buildPager(i, g.eq(i * b.moveSlideQty)) } } else if (c == "full") { for (var i = 1; i <= e; i++) { f += '<a href="" class="pager-link pager-' + i + '">' + i + "</a>" } } else if (c == "short") { f = '<span class="bx-pager-current">' + (b.startingSlide + 1) + "</span> " + b.pagerShortSeparator + ' <span class="bx-pager-total">' + g.length + "<span>" } if (b.pagerSelector) { a(b.pagerSelector).append(f); n = a(b.pagerSelector) } else { var j = a('<div class="bx-pager"></div>'); j.append(f); if (b.pagerLocation == "top") { h.prepend(j) } else if (b.pagerLocation == "bottom") { h.append(j) } n = a(".bx-pager", h) } n.children().click(function () { if (b.pagerType == "full") { var a = n.children().index(this); if (b.moveSlideQty > 1) { a *= b.moveSlideQty } d.goToSlide(a) } return false }) } function R(c, e, f, g) { var i = a('<a href="" class="bx-next"></a>'); var j = a('<a href="" class="bx-prev"></a>'); if (c == "text") { i.html(e) } else { i.html('<img src="' + e + '" />') } if (f == "text") { j.html(g) } else { j.html('<img src="' + g + '" />') } if (b.prevSelector) { a(b.prevSelector).append(j) } else { h.append(j) } if (b.nextSelector) { a(b.nextSelector).append(i) } else { h.append(i) } i.click(function () { d.goToNextSlide(); return false }); j.click(function () { d.goToPreviousSlide(); return false }) } function Q(c) { if (b.pagerType == "full" && b.pager) { a("a", n).removeClass(b.pagerActiveClass); a("a", n).eq(c).addClass(b.pagerActiveClass) } else if (b.pagerType == "short" && b.pager) { a(".bx-pager-current", n).html(x + 1) } } function P() { g.not(":eq(" + x + ")").fadeTo(b.speed, 0).css("zIndex", 98); g.eq(x).css("zIndex", 99).fadeTo(b.speed, 1, function () { E = false; if (jQuery.browser.msie) { g.eq(x).get(0).style.removeAttribute("filter") } b.onAfterSlide(x, g.length, g.eq(x)) }) } function O() { e.hover(function () { if (t) { d.stopTicker(false) } }, function () { if (t) { d.startTicker(false) } }) } function N() { h.find(".bx-window").hover(function () { if (t) { d.stopShow(false) } }, function () { if (t) { d.startShow(false) } }) } function M() { if (b.startImage != "") { startContent = b.startImage; startType = "image" } else { startContent = b.startText; startType = "text" } if (b.stopImage != "") { stopContent = b.stopImage; stopType = "image" } else { stopContent = b.stopText; stopType = "text" } U(startType, startContent, stopType, stopContent) } function L(a, c, d) { if (b.mode == "horizontal") { if (b.tickerDirection == "next") { e.animate({ left: "-=" + c + "px" }, d, "linear", function () { e.css("left", a); L(a, A, b.tickerSpeed) }) } else if (b.tickerDirection == "prev") { e.animate({ left: "+=" + c + "px" }, d, "linear", function () { e.css("left", a); L(a, A, b.tickerSpeed) }) } } else if (b.mode == "vertical") { if (b.tickerDirection == "next") { e.animate({ top: "-=" + c + "px" }, d, "linear", function () { e.css("top", a); L(a, B, b.tickerSpeed) }) } else if (b.tickerDirection == "prev") { e.animate({ top: "+=" + c + "px" }, d, "linear", function () { e.css("top", a); L(a, B, b.tickerSpeed) }) } } } function K() { if (b.auto) { if (!b.infiniteLoop) { if (b.autoDirection == "next") { o = setInterval(function () { x += b.moveSlideQty; if (x > G) { x = x % g.length } d.goToSlide(x, false) }, b.pause) } else if (b.autoDirection == "prev") { o = setInterval(function () { x -= b.moveSlideQty; if (x < 0) { negativeOffset = x % g.length; if (negativeOffset == 0) { x = 0 } else { x = g.length + negativeOffset } } d.goToSlide(x, false) }, b.pause) } } else { if (b.autoDirection == "next") { o = setInterval(function () { d.goToNextSlide(false) }, b.pause) } else if (b.autoDirection == "prev") { o = setInterval(function () { d.goToPreviousSlide(false) }, b.pause) } } } else if (b.ticker) { b.tickerSpeed *= 10; a(".pager", h).each(function (b) { A += a(this).width(); B += a(this).height() }); if (b.tickerDirection == "prev" && b.mode == "horizontal") { e.css("left", "-" + (A + y) + "px") } else if (b.tickerDirection == "prev" && b.mode == "vertical") { e.css("top", "-" + (B + z) + "px") } if (b.mode == "horizontal") { C = parseInt(e.css("left")); L(C, A, b.tickerSpeed) } else if (b.mode == "vertical") { D = parseInt(e.css("top")); L(D, B, b.tickerSpeed) } if (b.tickerHover) { O() } } } function J() { if (b.nextImage != "") { nextContent = b.nextImage; nextType = "image" } else { nextContent = b.nextText; nextType = "text" } if (b.prevImage != "") { prevContent = b.prevImage; prevType = "image" } else { prevContent = b.prevText; prevType = "text" } R(nextType, nextContent, prevType, prevContent) } function I() { if (b.mode == "horizontal" || b.mode == "vertical") { var c = Z(g, 0, b.moveSlideQty, "backward"); a.each(c, function (b) { e.prepend(a(this)) }); var d = g.length + b.moveSlideQty - 1; var f = g.length - b.displaySlideQty; var h = d - f; var i = Z(g, 0, h, "forward"); if (b.infiniteLoop) { a.each(i, function (b) { e.append(a(this)) }) } } } function H() { I(b.startingSlide); if (b.mode == "horizontal") { e.wrap('<div class="' + b.wrapperClass + '" style="width:' + l + 'px; position:relative;"></div>').wrap('<div class="bx-window" style="position:relative; overflow:hidden; width:' + l + 'px;"></div>').css({ width: "999999px", position: "relative", left: "-" + y + "px" }); e.children().css({ width: j, "float": "left", listStyle: "none" }); h = e.parent().parent(); g.addClass("pager") } else if (b.mode == "vertical") { e.wrap('<div class="' + b.wrapperClass + '" style="width:' + v + 'px; position:relative;"></div>').wrap('<div class="bx-window" style="width:' + v + "px; height:" + m + 'px; position:relative; overflow:hidden;"></div>').css({ height: "999999px", position: "relative", top: "-" + z + "px" }); e.children().css({ listStyle: "none", height: w }); h = e.parent().parent(); g.addClass("pager") } else if (b.mode == "fade") { e.wrap('<div class="' + b.wrapperClass + '" style="width:' + v + 'px; position:relative;"></div>').wrap('<div class="bx-window" style="height:' + w + "px; width:" + v + 'px; position:relative; overflow:hidden;"></div>'); e.children().css({ listStyle: "none", position: "absolute", top: 0, left: 0, zIndex: 98 }); h = e.parent().parent(); g.not(":eq(" + x + ")").fadeTo(0, 0); g.eq(x).css("zIndex", 99) } if (b.captions && b.captionsSelector == null) { h.append('<div class="bx-captions"></div>') } } var c = { mode: "horizontal", infiniteLoop: true, hideControlOnEnd: false, controls: true, speed: 500, easing: "swing", pager: false, pagerSelector: null, pagerType: "full", pagerLocation: "bottom", pagerShortSeparator: "/", pagerActiveClass: "pager-active", nextText: "next", nextImage: "", nextSelector: null, prevText: "prev", prevImage: "", prevSelector: null, captions: false, captionsSelector: null, auto: false, autoDirection: "next", autoControls: false, autoControlsSelector: null, autoStart: true, autoHover: false, autoDelay: 0, pause: 3e3, startText: "start", startImage: "", stopText: "stop", stopImage: "", ticker: false, tickerSpeed: 5e3, tickerDirection: "next", tickerHover: false, wrapperClass: "bx-wrapper", startingSlide: 0, displaySlideQty: 1, moveSlideQty: 1, randomStart: false, onBeforeSlide: function () { }, onAfterSlide: function () { }, onLastSlide: function () { }, onFirstSlide: function () { }, onNextSlide: function () { }, onPrevSlide: function () { }, buildPager: null }; var b = a.extend(c, b); var d = this; var e = ""; var f = ""; var g = ""; var h = ""; var i = ""; var j = ""; var k = ""; var l = ""; var m = ""; var n = ""; var o = ""; var p = ""; var q = ""; var r = ""; var s = ""; var t = true; var u = false; var v = 0; var w = 0; var x = 0; var y = 0; var z = 0; var A = 0; var B = 0; var C = 0; var D = 0; var E = false; var F = 0; var G = g.length - 1; this.goToSlide = function (a, c) { if (!E) { E = true; x = a; b.onBeforeSlide(x, g.length, g.eq(x)); if (typeof c == "undefined") { var c = true } if (c) { if (b.auto) { d.stopShow(true) } } slide = a; if (slide == F) { b.onFirstSlide(x, g.length, g.eq(x)) } if (slide == G) { b.onLastSlide(x, g.length, g.eq(x)) } if (b.mode == "horizontal") { e.animate({ left: "-" + W(slide, "left") + "px" }, b.speed, b.easing, function () { E = false; b.onAfterSlide(x, g.length, g.eq(x)) }) } else if (b.mode == "vertical") { e.animate({ top: "-" + W(slide, "top") + "px" }, b.speed, b.easing, function () { E = false; b.onAfterSlide(x, g.length, g.eq(x)) }) } else if (b.mode == "fade") { P() } V(); if (b.moveSlideQty > 1) { a = Math.floor(a / b.moveSlideQty) } Q(a); T() } }; this.goToNextSlide = function (a) { if (typeof a == "undefined") { var a = true } if (a) { if (b.auto) { d.stopShow(true) } } if (!b.infiniteLoop) { if (!E) { var c = false; x = x + b.moveSlideQty; if (x <= G) { V(); b.onNextSlide(x, g.length, g.eq(x)); d.goToSlide(x) } else { x -= b.moveSlideQty } } } else { if (!E) { E = true; var c = false; x = x + b.moveSlideQty; if (x > G) { x = x % g.length; c = true } b.onNextSlide(x, g.length, g.eq(x)); b.onBeforeSlide(x, g.length, g.eq(x)); if (b.mode == "horizontal") { var f = b.moveSlideQty * k; e.animate({ left: "-=" + f + "px" }, b.speed, b.easing, function () { E = false; if (c) { e.css("left", "-" + W(x, "left") + "px") } b.onAfterSlide(x, g.length, g.eq(x)) }) } else if (b.mode == "vertical") { var h = b.moveSlideQty * w; e.animate({ top: "-=" + h + "px" }, b.speed, b.easing, function () { E = false; if (c) { e.css("top", "-" + W(x, "top") + "px") } b.onAfterSlide(x, g.length, g.eq(x)) }) } else if (b.mode == "fade") { P() } if (b.moveSlideQty > 1) { Q(Math.ceil(x / b.moveSlideQty)) } else { Q(x) } T() } } }; this.goToPreviousSlide = function (c) { if (typeof c == "undefined") { var c = true } if (c) { if (b.auto) { d.stopShow(true) } } if (!b.infiniteLoop) { if (!E) { var f = false; x = x - b.moveSlideQty; if (x < 0) { x = 0; if (b.hideControlOnEnd) { a(".bx-prev", h).hide() } } V(); b.onPrevSlide(x, g.length, g.eq(x)); d.goToSlide(x) } } else { if (!E) { E = true; var f = false; x = x - b.moveSlideQty; if (x < 0) { negativeOffset = x % g.length; if (negativeOffset == 0) { x = 0 } else { x = g.length + negativeOffset } f = true } b.onPrevSlide(x, g.length, g.eq(x)); b.onBeforeSlide(x, g.length, g.eq(x)); if (b.mode == "horizontal") { var i = b.moveSlideQty * k; e.animate({ left: "+=" + i + "px" }, b.speed, b.easing, function () { E = false; if (f) { e.css("left", "-" + W(x, "left") + "px") } b.onAfterSlide(x, g.length, g.eq(x)) }) } else if (b.mode == "vertical") { var j = b.moveSlideQty * w; e.animate({ top: "+=" + j + "px" }, b.speed, b.easing, function () { E = false; if (f) { e.css("top", "-" + W(x, "top") + "px") } b.onAfterSlide(x, g.length, g.eq(x)) }) } else if (b.mode == "fade") { P() } if (b.moveSlideQty > 1) { Q(Math.ceil(x / b.moveSlideQty)) } else { Q(x) } T() } } }; this.goToFirstSlide = function (a) { if (typeof a == "undefined") { var a = true } d.goToSlide(F, a) }; this.goToLastSlide = function () { if (typeof a == "undefined") { var a = true } d.goToSlide(G, a) }; this.getCurrentSlide = function () { return x }; this.getSlideCount = function () { return g.length }; this.stopShow = function (a) { clearInterval(o); if (typeof a == "undefined") { var a = true } if (a && b.autoControls) { p.html(r).removeClass("stop").addClass("start"); t = false } }; this.startShow = function (a) { if (typeof a == "undefined") { var a = true } K(); if (a && b.autoControls) { p.html(s).removeClass("start").addClass("stop"); t = true } }; this.stopTicker = function (a) { e.stop(); if (typeof a == "undefined") { var a = true } if (a && b.ticker) { p.html(r).removeClass("stop").addClass("start"); t = false } }; this.startTicker = function (a) { if (b.mode == "horizontal") { if (b.tickerDirection == "next") { var c = parseInt(e.css("left")); var d = A + c + g.eq(0).width() } else if (b.tickerDirection == "prev") { var c = -parseInt(e.css("left")); var d = c - g.eq(0).width() } var f = d * b.tickerSpeed / A; L(C, d, f) } else if (b.mode == "vertical") { if (b.tickerDirection == "next") { var h = parseInt(e.css("top")); var d = B + h + g.eq(0).height() } else if (b.tickerDirection == "prev") { var h = -parseInt(e.css("top")); var d = h - g.eq(0).height() } var f = d * b.tickerSpeed / B; L(D, d, f); if (typeof a == "undefined") { var a = true } if (a && b.ticker) { p.html(s).removeClass("start").addClass("stop"); t = true } } }; this.initShow = function () { e = a(this); f = e.clone(); g = e.children(); h = ""; i = e.children(":first"); j = i.width(); v = 0; k = i.outerWidth(); w = 0; l = X(); m = Y(); E = false; n = ""; x = 0; y = 0; z = 0; o = ""; p = ""; q = ""; r = ""; s = ""; t = true; u = false; A = 0; B = 0; C = 0; D = 0; F = 0; G = g.length - 1; g.each(function (b) { if (a(this).outerHeight() > w) { w = a(this).outerHeight() } if (a(this).outerWidth() > v) { v = a(this).outerWidth() } }); if (b.randomStart) { var c = Math.floor(Math.random() * g.length); x = c; y = k * (b.moveSlideQty + c); z = w * (b.moveSlideQty + c) } else { x = b.startingSlide; y = k * (b.moveSlideQty + b.startingSlide); z = w * (b.moveSlideQty + b.startingSlide) } H(); if (b.pager && !b.ticker) { if (b.pagerType == "full") { S("full") } else if (b.pagerType == "short") { S("short") } } if (b.controls && !b.ticker) { J() } if (b.auto || b.ticker) { if (b.autoControls) { M() } if (b.autoStart) { setTimeout(function () { d.startShow(true) }, b.autoDelay) } else { d.stopShow(true) } if (b.autoHover && !b.ticker) { N() } } if (b.moveSlideQty > 1) { Q(Math.ceil(x / b.moveSlideQty)) } else { Q(x) } V(); if (b.captions) { T() } b.onAfterSlide(x, g.length, g.eq(x)) }; this.destroyShow = function () { clearInterval(o); a(".bx-next, .bx-prev, .bx-pager, .bx-auto", h).remove(); e.unwrap().unwrap().removeAttr("style"); e.children().removeAttr("style").not(".pager").remove(); g.removeClass("pager") }; this.reloadShow = function () { d.destroyShow(); d.initShow() }; this.each(function () { if (a(this).children().length > 0) { d.initShow() } }); return this }; jQuery.fx.prototype.cur = function () { if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) { return this.elem[this.prop] } var a = parseFloat(jQuery.css(this.elem, this.prop)); return a } })(jQuery);

/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
* 
* Open source under the BSD License. 
* 
* Copyright © 2008 George McGinley Smith
* All rights reserved.
* 
* Redistribution and use in source and binary forms, with or without modification, 
* are permitted provided that the following conditions are met:
* 
* Redistributions of source code must retain the above copyright notice, this list of 
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list 
* of conditions and the following disclaimer in the documentation and/or other materials 
* provided with the distribution.
* 
* Neither the name of the author nor the names of contributors may be used to endorse 
* or promote products derived from this software without specific prior written permission.
* 
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
*  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
*  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
*  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
*  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
* OF THE POSSIBILITY OF SUCH DAMAGE. 
*
*/

// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend(jQuery.easing,
{
    def: 'easeOutQuad',
    swing: function (x, t, b, c, d) {
        //alert(jQuery.easing.default);
        return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
    },
    easeInQuad: function (x, t, b, c, d) {
        return c * (t /= d) * t + b;
    },
    easeOutQuad: function (x, t, b, c, d) {
        return -c * (t /= d) * (t - 2) + b;
    },
    easeInOutQuad: function (x, t, b, c, d) {
        if ((t /= d / 2) < 1) return c / 2 * t * t + b;
        return -c / 2 * ((--t) * (t - 2) - 1) + b;
    },
    easeInCubic: function (x, t, b, c, d) {
        return c * (t /= d) * t * t + b;
    },
    easeOutCubic: function (x, t, b, c, d) {
        return c * ((t = t / d - 1) * t * t + 1) + b;
    },
    easeInOutCubic: function (x, t, b, c, d) {
        if ((t /= d / 2) < 1) return c / 2 * t * t * t + b;
        return c / 2 * ((t -= 2) * t * t + 2) + b;
    },
    easeInQuart: function (x, t, b, c, d) {
        return c * (t /= d) * t * t * t + b;
    },
    easeOutQuart: function (x, t, b, c, d) {
        return -c * ((t = t / d - 1) * t * t * t - 1) + b;
    },
    easeInOutQuart: function (x, t, b, c, d) {
        if ((t /= d / 2) < 1) return c / 2 * t * t * t * t + b;
        return -c / 2 * ((t -= 2) * t * t * t - 2) + b;
    },
    easeInQuint: function (x, t, b, c, d) {
        return c * (t /= d) * t * t * t * t + b;
    },
    easeOutQuint: function (x, t, b, c, d) {
        return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
    },
    easeInOutQuint: function (x, t, b, c, d) {
        if ((t /= d / 2) < 1) return c / 2 * t * t * t * t * t + b;
        return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;
    },
    easeInSine: function (x, t, b, c, d) {
        return -c * Math.cos(t / d * (Math.PI / 2)) + c + b;
    },
    easeOutSine: function (x, t, b, c, d) {
        return c * Math.sin(t / d * (Math.PI / 2)) + b;
    },
    easeInOutSine: function (x, t, b, c, d) {
        return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;
    },
    easeInExpo: function (x, t, b, c, d) {
        return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b;
    },
    easeOutExpo: function (x, t, b, c, d) {
        return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b;
    },
    easeInOutExpo: function (x, t, b, c, d) {
        if (t == 0) return b;
        if (t == d) return b + c;
        if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
        return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b;
    },
    easeInCirc: function (x, t, b, c, d) {
        return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b;
    },
    easeOutCirc: function (x, t, b, c, d) {
        return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;
    },
    easeInOutCirc: function (x, t, b, c, d) {
        if ((t /= d / 2) < 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;
        return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b;
    },
    easeInElastic: function (x, t, b, c, d) {
        var s = 1.70158; var p = 0; var a = c;
        if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3;
        if (a < Math.abs(c)) { a = c; var s = p / 4; }
        else var s = p / (2 * Math.PI) * Math.asin(c / a);
        return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
    },
    easeOutElastic: function (x, t, b, c, d) {
        var s = 1.70158; var p = 0; var a = c;
        if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3;
        if (a < Math.abs(c)) { a = c; var s = p / 4; }
        else var s = p / (2 * Math.PI) * Math.asin(c / a);
        return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b;
    },
    easeInOutElastic: function (x, t, b, c, d) {
        var s = 1.70158; var p = 0; var a = c;
        if (t == 0) return b; if ((t /= d / 2) == 2) return b + c; if (!p) p = d * (.3 * 1.5);
        if (a < Math.abs(c)) { a = c; var s = p / 4; }
        else var s = p / (2 * Math.PI) * Math.asin(c / a);
        if (t < 1) return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
        return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b;
    },
    easeInBack: function (x, t, b, c, d, s) {
        if (s == undefined) s = 1.70158;
        return c * (t /= d) * t * ((s + 1) * t - s) + b;
    },
    easeOutBack: function (x, t, b, c, d, s) {
        if (s == undefined) s = 1.70158;
        return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
    },
    easeInOutBack: function (x, t, b, c, d, s) {
        if (s == undefined) s = 1.70158;
        if ((t /= d / 2) < 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b;
        return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b;
    },
    easeInBounce: function (x, t, b, c, d) {
        return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b;
    },
    easeOutBounce: function (x, t, b, c, d) {
        if ((t /= d) < (1 / 2.75)) {
            return c * (7.5625 * t * t) + b;
        } else if (t < (2 / 2.75)) {
            return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b;
        } else if (t < (2.5 / 2.75)) {
            return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b;
        } else {
            return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b;
        }
    },
    easeInOutBounce: function (x, t, b, c, d) {
        if (t < d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * .5 + b;
        return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * .5 + c * .5 + b;
    }
});

/*
*
* TERMS OF USE - EASING EQUATIONS
* 
* Open source under the BSD License. 
* 
* Copyright © 2001 Robert Penner
* All rights reserved.
* 
* Redistribution and use in source and binary forms, with or without modification, 
* are permitted provided that the following conditions are met:
* 
* Redistributions of source code must retain the above copyright notice, this list of 
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list 
* of conditions and the following disclaimer in the documentation and/or other materials 
* provided with the distribution.
* 
* Neither the name of the author nor the names of contributors may be used to endorse 
* or promote products derived from this software without specific prior written permission.
* 
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
*  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
*  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
*  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
*  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
* OF THE POSSIBILITY OF SUCH DAMAGE. 
*
*/

/*
* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
* 
* Copyright (c) 2008 - 2010 Janis Skarnelis
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
* 
* Version: 1.3.4 (11/11/2010)
* Requires: jQuery v1.3+
*
* Dual licensed under the MIT and GPL licenses:
*   http://www.opensource.org/licenses/mit-license.php
*   http://www.gnu.org/licenses/gpl.html
*/

; (function (b) {
    var m, t, u, f, D, j, E, n, z, A, q = 0, e = {}, o = [], p = 0, d = {}, l = [], G = null, v = new Image, J = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i, W = /[^\.]\.(swf)\s*$/i, K, L = 1, y = 0, s = "", r, i, h = false, B = b.extend(b("<div/>")[0], { prop: 0 }), M = b.browser.msie && b.browser.version < 7 && !window.XMLHttpRequest, N = function () { t.hide(); v.onerror = v.onload = null; G && G.abort(); m.empty() }, O = function () {
        if (false === e.onError(o, q, e)) { t.hide(); h = false } else {
            e.titleShow = false; e.width = "auto"; e.height = "auto"; m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
            F()
        } 
    }, I = function () {
        var a = o[q], c, g, k, C, P, w; N(); e = b.extend({}, b.fn.fancybox.defaults, typeof b(a).data("fancybox") == "undefined" ? e : b(a).data("fancybox")); w = e.onStart(o, q, e); if (w === false) h = false; else {
            if (typeof w == "object") e = b.extend(e, w); k = e.title || (a.nodeName ? b(a).attr("title") : a.title) || ""; if (a.nodeName && !e.orig) e.orig = b(a).children("img:first").length ? b(a).children("img:first") : b(a); if (k === "" && e.orig && e.titleFromAlt) k = e.orig.attr("alt"); c = e.href || (a.nodeName ? b(a).attr("href") : a.href) || null; if (/^(?:javascript)/i.test(c) ||
c == "#") c = null; if (e.type) { g = e.type; if (!c) c = e.content } else if (e.content) g = "html"; else if (c) g = c.match(J) ? "image" : c.match(W) ? "swf" : b(a).hasClass("iframe") ? "iframe" : c.indexOf("#") === 0 ? "inline" : "ajax"; if (g) {
                if (g == "inline") { a = c.substr(c.indexOf("#")); g = b(a).length > 0 ? "inline" : "ajax" } e.type = g; e.href = c; e.title = k; if (e.autoDimensions) if (e.type == "html" || e.type == "inline" || e.type == "ajax") { e.width = "auto"; e.height = "auto" } else e.autoDimensions = false; if (e.modal) {
                    e.overlayShow = true; e.hideOnOverlayClick = false; e.hideOnContentClick =
false; e.enableEscapeButton = false; e.showCloseButton = false
                } e.padding = parseInt(e.padding, 10); e.margin = parseInt(e.margin, 10); m.css("padding", e.padding + e.margin); b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change", function () { b(this).replaceWith(j.children()) }); switch (g) {
                    case "html": m.html(e.content); F(); break; case "inline": if (b(a).parent().is("#fancybox-content") === true) { h = false; break } b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup", function () { b(this).replaceWith(j.children()) }).bind("fancybox-cancel",
function () { b(this).replaceWith(m.children()) }); b(a).appendTo(m); F(); break; case "image": h = false; b.fancybox.showActivity(); v = new Image; v.onerror = function () { O() }; v.onload = function () { h = true; v.onerror = v.onload = null; e.width = v.width; e.height = v.height; b("<img />").attr({ id: "fancybox-img", src: v.src, alt: e.title }).appendTo(m); Q() }; v.src = c; break; case "swf": e.scrolling = "no"; C = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + e.width + '" height="' + e.height + '"><param name="movie" value="' + c +
'"></param>'; P = ""; b.each(e.swf, function (x, H) { C += '<param name="' + x + '" value="' + H + '"></param>'; P += " " + x + '="' + H + '"' }); C += '<embed src="' + c + '" type="application/x-shockwave-flash" width="' + e.width + '" height="' + e.height + '"' + P + "></embed></object>"; m.html(C); F(); break; case "ajax": h = false; b.fancybox.showActivity(); e.ajax.win = e.ajax.success; G = b.ajax(b.extend({}, e.ajax, { url: c, data: e.ajax.data || {}, error: function (x) { x.status > 0 && O() }, success: function (x, H, R) {
    if ((typeof R == "object" ? R : G).status == 200) {
        if (typeof e.ajax.win ==
"function") { w = e.ajax.win(c, x, H, R); if (w === false) { t.hide(); return } else if (typeof w == "string" || typeof w == "object") x = w } m.html(x); F()
    } 
} 
})); break; case "iframe": Q()
                } 
            } else O()
        } 
    }, F = function () {
        var a = e.width, c = e.height; a = a.toString().indexOf("%") > -1 ? parseInt((b(window).width() - e.margin * 2) * parseFloat(a) / 100, 10) + "px" : a == "auto" ? "auto" : a + "px"; c = c.toString().indexOf("%") > -1 ? parseInt((b(window).height() - e.margin * 2) * parseFloat(c) / 100, 10) + "px" : c == "auto" ? "auto" : c + "px"; m.wrapInner('<div style="width:' + a + ";height:" + c +
";overflow: " + (e.scrolling == "auto" ? "auto" : e.scrolling == "yes" ? "scroll" : "hidden") + ';position:relative;"></div>'); e.width = m.width(); e.height = m.height(); Q()
    }, Q = function () {
        var a, c; t.hide(); if (f.is(":visible") && false === d.onCleanup(l, p, d)) { b.event.trigger("fancybox-cancel"); h = false } else {
            h = true; b(j.add(u)).unbind(); b(window).unbind("resize.fb scroll.fb"); b(document).unbind("keydown.fb"); f.is(":visible") && d.titlePosition !== "outside" && f.css("height", f.height()); l = o; p = q; d = e; if (d.overlayShow) {
                u.css({ "background-color": d.overlayColor,
                    opacity: d.overlayOpacity, cursor: d.hideOnOverlayClick ? "pointer" : "auto", height: b(document).height()
                }); if (!u.is(":visible")) { M && b("select:not(#fancybox-tmp select)").filter(function () { return this.style.visibility !== "hidden" }).css({ visibility: "hidden" }).one("fancybox-cleanup", function () { this.style.visibility = "inherit" }); u.show() } 
            } else u.hide(); i = X(); s = d.title || ""; y = 0; n.empty().removeAttr("style").removeClass(); if (d.titleShow !== false) {
                if (b.isFunction(d.titleFormat)) a = d.titleFormat(s, l, p, d); else a = s && s.length ?
d.titlePosition == "float" ? '<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">' + s + '</td><td id="fancybox-title-float-right"></td></tr></table>' : '<div id="fancybox-title-' + d.titlePosition + '">' + s + "</div>" : false; s = a; if (!(!s || s === "")) {
                    n.addClass("fancybox-title-" + d.titlePosition).html(s).appendTo("body").show(); switch (d.titlePosition) {
                        case "inside": n.css({ width: i.width - d.padding * 2, marginLeft: d.padding, marginRight: d.padding });
                            y = n.outerHeight(true); n.appendTo(D); i.height += y; break; case "over": n.css({ marginLeft: d.padding, width: i.width - d.padding * 2, bottom: d.padding }).appendTo(D); break; case "float": n.css("left", parseInt((n.width() - i.width - 40) / 2, 10) * -1).appendTo(f); break; default: n.css({ width: i.width - d.padding * 2, paddingLeft: d.padding, paddingRight: d.padding }).appendTo(f)
                    } 
                } 
            } n.hide(); if (f.is(":visible")) {
                b(E.add(z).add(A)).hide(); a = f.position(); r = { top: a.top, left: a.left, width: f.width(), height: f.height() }; c = r.width == i.width && r.height ==
i.height; j.fadeTo(d.changeFade, 0.3, function () { var g = function () { j.html(m.contents()).fadeTo(d.changeFade, 1, S) }; b.event.trigger("fancybox-change"); j.empty().removeAttr("filter").css({ "border-width": d.padding, width: i.width - d.padding * 2, height: e.autoDimensions ? "auto" : i.height - y - d.padding * 2 }); if (c) g(); else { B.prop = 0; b(B).animate({ prop: 1 }, { duration: d.changeSpeed, easing: d.easingChange, step: T, complete: g }) } })
            } else {
                f.removeAttr("style"); j.css("border-width", d.padding); if (d.transitionIn == "elastic") {
                    r = V(); j.html(m.contents());
                    f.show(); if (d.opacity) i.opacity = 0; B.prop = 0; b(B).animate({ prop: 1 }, { duration: d.speedIn, easing: d.easingIn, step: T, complete: S })
                } else { d.titlePosition == "inside" && y > 0 && n.show(); j.css({ width: i.width - d.padding * 2, height: e.autoDimensions ? "auto" : i.height - y - d.padding * 2 }).html(m.contents()); f.css(i).fadeIn(d.transitionIn == "none" ? 0 : d.speedIn, S) } 
            } 
        } 
    }, Y = function () {
        if (d.enableEscapeButton || d.enableKeyboardNav) b(document).bind("keydown.fb", function (a) {
            if (a.keyCode == 27 && d.enableEscapeButton) { a.preventDefault(); b.fancybox.close() } else if ((a.keyCode ==
37 || a.keyCode == 39) && d.enableKeyboardNav && a.target.tagName !== "INPUT" && a.target.tagName !== "TEXTAREA" && a.target.tagName !== "SELECT") { a.preventDefault(); b.fancybox[a.keyCode == 37 ? "prev" : "next"]() } 
        }); if (d.showNavArrows) { if (d.cyclic && l.length > 1 || p !== 0) z.show(); if (d.cyclic && l.length > 1 || p != l.length - 1) A.show() } else { z.hide(); A.hide() } 
    }, S = function () {
        if (!b.support.opacity) { j.get(0).style.removeAttribute("filter"); f.get(0).style.removeAttribute("filter") } e.autoDimensions && j.css("height", "auto"); f.css("height", "auto");
        s && s.length && n.show(); d.showCloseButton && E.show(); Y(); d.hideOnContentClick && j.bind("click", b.fancybox.close); d.hideOnOverlayClick && u.bind("click", b.fancybox.close); b(window).bind("resize.fb", b.fancybox.resize); d.centerOnScroll && b(window).bind("scroll.fb", b.fancybox.center); if (d.type == "iframe") b('<iframe id="fancybox-frame" name="fancybox-frame' + (new Date).getTime() + '" frameborder="0" hspace="0" ' + (b.browser.msie ? 'allowtransparency="true""' : "") + ' scrolling="' + e.scrolling + '" src="' + d.href + '"></iframe>').appendTo(j);
        f.show(); h = false; b.fancybox.center(); d.onComplete(l, p, d); var a, c; if (l.length - 1 > p) { a = l[p + 1].href; if (typeof a !== "undefined" && a.match(J)) { c = new Image; c.src = a } } if (p > 0) { a = l[p - 1].href; if (typeof a !== "undefined" && a.match(J)) { c = new Image; c.src = a } } 
    }, T = function (a) {
        var c = { width: parseInt(r.width + (i.width - r.width) * a, 10), height: parseInt(r.height + (i.height - r.height) * a, 10), top: parseInt(r.top + (i.top - r.top) * a, 10), left: parseInt(r.left + (i.left - r.left) * a, 10) }; if (typeof i.opacity !== "undefined") c.opacity = a < 0.5 ? 0.5 : a; f.css(c);
        j.css({ width: c.width - d.padding * 2, height: c.height - y * a - d.padding * 2 })
    }, U = function () { return [b(window).width() - d.margin * 2, b(window).height() - d.margin * 2, b(document).scrollLeft() + d.margin, b(document).scrollTop() + d.margin] }, X = function () {
        var a = U(), c = {}, g = d.autoScale, k = d.padding * 2; c.width = d.width.toString().indexOf("%") > -1 ? parseInt(a[0] * parseFloat(d.width) / 100, 10) : d.width + k; c.height = d.height.toString().indexOf("%") > -1 ? parseInt(a[1] * parseFloat(d.height) / 100, 10) : d.height + k; if (g && (c.width > a[0] || c.height > a[1])) if (e.type ==
"image" || e.type == "swf") { g = d.width / d.height; if (c.width > a[0]) { c.width = a[0]; c.height = parseInt((c.width - k) / g + k, 10) } if (c.height > a[1]) { c.height = a[1]; c.width = parseInt((c.height - k) * g + k, 10) } } else { c.width = Math.min(c.width, a[0]); c.height = Math.min(c.height, a[1]) } c.top = parseInt(Math.max(a[3] - 20, a[3] + (a[1] - c.height - 40) * 0.5), 10); c.left = parseInt(Math.max(a[2] - 20, a[2] + (a[0] - c.width - 40) * 0.5), 10); return c
    }, V = function () {
        var a = e.orig ? b(e.orig) : false, c = {}; if (a && a.length) {
            c = a.offset(); c.top += parseInt(a.css("paddingTop"),
10) || 0; c.left += parseInt(a.css("paddingLeft"), 10) || 0; c.top += parseInt(a.css("border-top-width"), 10) || 0; c.left += parseInt(a.css("border-left-width"), 10) || 0; c.width = a.width(); c.height = a.height(); c = { width: c.width + d.padding * 2, height: c.height + d.padding * 2, top: c.top - d.padding - 20, left: c.left - d.padding - 20}
        } else { a = U(); c = { width: d.padding * 2, height: d.padding * 2, top: parseInt(a[3] + a[1] * 0.5, 10), left: parseInt(a[2] + a[0] * 0.5, 10)} } return c
    }, Z = function () { if (t.is(":visible")) { b("div", t).css("top", L * -40 + "px"); L = (L + 1) % 12 } else clearInterval(K) };
    b.fn.fancybox = function (a) { if (!b(this).length) return this; b(this).data("fancybox", b.extend({}, a, b.metadata ? b(this).metadata() : {})).unbind("click.fb").bind("click.fb", function (c) { c.preventDefault(); if (!h) { h = true; b(this).blur(); o = []; q = 0; c = b(this).attr("rel") || ""; if (!c || c == "" || c === "nofollow") o.push(this); else { o = b("a[rel=" + c + "], area[rel=" + c + "]"); q = o.index(this) } I() } }); return this }; b.fancybox = function (a, c) {
        var g; if (!h) {
            h = true; g = typeof c !== "undefined" ? c : {}; o = []; q = parseInt(g.index, 10) || 0; if (b.isArray(a)) {
                for (var k =
0, C = a.length; k < C; k++) if (typeof a[k] == "object") b(a[k]).data("fancybox", b.extend({}, g, a[k])); else a[k] = b({}).data("fancybox", b.extend({ content: a[k] }, g)); o = jQuery.merge(o, a)
            } else { if (typeof a == "object") b(a).data("fancybox", b.extend({}, g, a)); else a = b({}).data("fancybox", b.extend({ content: a }, g)); o.push(a) } if (q > o.length || q < 0) q = 0; I()
        } 
    }; b.fancybox.showActivity = function () { clearInterval(K); t.show(); K = setInterval(Z, 66) }; b.fancybox.hideActivity = function () { t.hide() }; b.fancybox.next = function () {
        return b.fancybox.pos(p +
1)
    }; b.fancybox.prev = function () { return b.fancybox.pos(p - 1) }; b.fancybox.pos = function (a) { if (!h) { a = parseInt(a); o = l; if (a > -1 && a < l.length) { q = a; I() } else if (d.cyclic && l.length > 1) { q = a >= l.length ? 0 : l.length - 1; I() } } }; b.fancybox.cancel = function () { if (!h) { h = true; b.event.trigger("fancybox-cancel"); N(); e.onCancel(o, q, e); h = false } }; b.fancybox.close = function () {
        function a() { u.fadeOut("fast"); n.empty().hide(); f.hide(); b.event.trigger("fancybox-cleanup"); j.empty(); d.onClosed(l, p, d); l = e = []; p = q = 0; d = e = {}; h = false } if (!(h || f.is(":hidden"))) {
            h =
true; if (d && false === d.onCleanup(l, p, d)) h = false; else {
                N(); b(E.add(z).add(A)).hide(); b(j.add(u)).unbind(); b(window).unbind("resize.fb scroll.fb"); b(document).unbind("keydown.fb"); j.find("iframe").attr("src", M && /^https/i.test(window.location.href || "") ? "javascript:void(false)" : "about:blank"); d.titlePosition !== "inside" && n.empty(); f.stop(); if (d.transitionOut == "elastic") {
                    r = V(); var c = f.position(); i = { top: c.top, left: c.left, width: f.width(), height: f.height() }; if (d.opacity) i.opacity = 1; n.empty().hide(); B.prop = 1;
                    b(B).animate({ prop: 0 }, { duration: d.speedOut, easing: d.easingOut, step: T, complete: a })
                } else f.fadeOut(d.transitionOut == "none" ? 0 : d.speedOut, a)
            } 
        } 
    }; b.fancybox.resize = function () { u.is(":visible") && u.css("height", b(document).height()); b.fancybox.center(true) }; b.fancybox.center = function (a) {
        var c, g; if (!h) {
            g = a === true ? 1 : 0; c = U(); !g && (f.width() > c[0] || f.height() > c[1]) || f.stop().animate({ top: parseInt(Math.max(c[3] - 20, c[3] + (c[1] - j.height() - 40) * 0.5 - d.padding)), left: parseInt(Math.max(c[2] - 20, c[2] + (c[0] - j.width() - 40) * 0.5 -
d.padding))
            }, typeof a == "number" ? a : 200)
        } 
    }; b.fancybox.init = function () {
        if (!b("#fancybox-wrap").length) {
            b("body").append(m = b('<div id="fancybox-tmp"></div>'), t = b('<div id="fancybox-loading"><div></div></div>'), u = b('<div id="fancybox-overlay"></div>'), f = b('<div id="fancybox-wrap"></div>')); D = b('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(f);
            D.append(j = b('<div id="fancybox-content"></div>'), E = b('<a id="fancybox-close"></a>'), n = b('<div id="fancybox-title"></div>'), z = b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'), A = b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')); E.click(b.fancybox.close); t.click(b.fancybox.cancel); z.click(function (a) { a.preventDefault(); b.fancybox.prev() }); A.click(function (a) { a.preventDefault(); b.fancybox.next() });
            b.fn.mousewheel && f.bind("mousewheel.fb", function (a, c) { if (h) a.preventDefault(); else if (b(a.target).get(0).clientHeight == 0 || b(a.target).get(0).scrollHeight === b(a.target).get(0).clientHeight) { a.preventDefault(); b.fancybox[c > 0 ? "prev" : "next"]() } }); b.support.opacity || f.addClass("fancybox-ie"); if (M) { t.addClass("fancybox-ie6"); f.addClass("fancybox-ie6"); b('<iframe id="fancybox-hide-sel-frame" src="' + (/^https/i.test(window.location.href || "") ? "javascript:void(false)" : "about:blank") + '" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(D) } 
        } 
    };
    b.fn.fancybox.defaults = { padding: 10, margin: 40, opacity: false, modal: false, cyclic: false, scrolling: "auto", width: 560, height: 340, autoScale: true, autoDimensions: true, centerOnScroll: false, ajax: {}, swf: { wmode: "transparent" }, hideOnOverlayClick: true, hideOnContentClick: false, overlayShow: true, overlayOpacity: 0.7, overlayColor: "#777", titleShow: true, titlePosition: "float", titleFormat: null, titleFromAlt: false, transitionIn: "fade", transitionOut: "fade", speedIn: 300, speedOut: 300, changeSpeed: 300, changeFade: "fast", easingIn: "swing",
        easingOut: "swing", showCloseButton: true, showNavArrows: true, enableEscapeButton: true, enableKeyboardNav: true, onStart: function () { }, onCancel: function () { }, onComplete: function () { }, onCleanup: function () { }, onClosed: function () { }, onError: function () { } 
    }; b(document).ready(function () { b.fancybox.init() })
})(jQuery);
