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
    }
});
(function (a) {
    a.fn.loopedSlider = function (b) {
        var c = {
            container: ".slide-container",
            slides: ".slides",
            pagination: ".pagination",
            containerClick: false,
            autoStart: 0,
            restart: 0,
            slidespeed: 333,
            fadespeed: 133,
            autoHeight: true,
            easing: "easeOutQuart"
        };
        this.each(function () {
            var j = a(this);
            var g = a.extend(c, b);
            var x = a(g.pagination + " li a", j);
            var i = 0;
            var z = 1;
            var A = a(g.slides, j).find("li.slide").size();
            var q = a(g.slides, j).find("li.slide").outerWidth();
            var e = 0;
            var v = false;
            var h = 0;
            var f = 0;
            var y = 0;
            a(g.slides, j).css({
                width: (A * q)
            });
            a(g.slides, j).find("li.slide").each(function () {
                a(this).css({
                    position: "absolute",
                    left: e,
                    display: "block"
                });
                e = e + q
            });
            a(x, j).each(function () {
                h = h + 1;
                a(this).attr("rel", h);
                a(x.eq(0), j).parent().addClass("active")
            });
            a(g.slides, j).find("li.slide:eq(" + (A - 1) + ")").css({
                position: "absolute",
                left: -q
            });
            if (A > 3) {
                a(g.slides, j).find("li.slide:eq(" + (A - 1) + ")").css({
                    position: "absolute",
                    left: -q
                })
            }
            if (g.autoHeight) {
                r(z)
            }
            a(".next", j).click(function () {
                if (v === false) {
                    d("next", true);
                    if (g.autoStart) {
                        if (g.restart) {
                            l()
                        } else {
                            clearInterval(sliderIntervalID)
                        }
                    }
                }
                return false
            });
            a(".previous", j).click(function () {
                if (v === false) {
                    d("prev", true);
                    if (g.autoStart) {
                        if (g.restart) {
                            l()
                        } else {
                            clearInterval(sliderIntervalID)
                        }
                    }
                }
                return false
            });
            if (g.containerClick) {
                a(g.container, j).click(function () {
                    if (v === false) {
                        d("next", true);
                        if (g.autoStart) {
                            if (g.restart) {
                                l()
                            } else {
                                clearInterval(sliderIntervalID)
                            }
                        }
                    }
                    return false
                })
            }
            a(x, j).click(function () {
                if (a(this).parent().hasClass("active")) {
                    return false
                } else {
                    z = a(this).attr("rel");
                    a(x, j).parent().siblings().removeClass("active");
                    a(this).parent().addClass("active");
                    d("fade", z);
                    if (g.autoStart) {
                        if (g.restart) {
                            l()
                        } else {
                            clearInterval(sliderIntervalID)
                        }
                    }
                }
                return false
            });
            if (g.autoStart) {
                sliderIntervalID = setInterval(function () {
                    if (v === false) {
                        d("next", true)
                    }
                },
                g.autoStart);

                function l() {
                    if (g.restart) {
                        clearInterval(sliderIntervalID);
                        clearInterval(f);
                        clearTimeout(y);
                        y = setTimeout(function () {
                            f = setInterval(function () {
                                d("next", true)
                            },
                            g.autoStart)
                        },
                        g.restart)
                    } else {
                        sliderIntervalID = setInterval(function () {
                            if (v === false) {
                                d("next", true)
                            }
                        },
                        g.autoStart)
                    }
                }
            }

            function k(m) {
                if (m === A + 1) {
                    m = 1
                }
                if (m === 0) {
                    m = A
                }
                a(x, j).parent().siblings().removeClass("active");
                a(x + '[rel="' + (m) + '"]', j).parent().addClass("active")
            }

            function r(m) {
                if (m === A + 1) {
                    m = 1
                }
                if (m === 0) {
                    m = A
                }
                var n = a(g.slides, j).find("li.slide:eq(" + (m - 1) + ")", j).outerHeight();
                a(g.container, j).animate({
                    height: n
                },
                g.autoHeight, g.easing)
            }

            function d(m, n) {
                v = true;
                switch (m) {
                case "next":
                    z = z + 1;
                    i = (-(z * q - q));
                    k(z);
                    if (g.autoHeight) {
                        r(z)
                    }
                    if (A < 3) {
                        if (z === 3) {
                            a(g.slides, j).find("li.slide:eq(0)").css({
                                left: (A * q)
                            })
                        }
                        if (z === 2) {
                            a(g.slides, j).find("li.slide:eq(" + (A - 1) + ")").css({
                                position: "absolute",
                                left: (q)
                            })
                        }
                    }
                    a(g.slides, j).animate({
                        left: i
                    },
                    g.slidespeed, g.easing, function () {
                        if (z === A + 1) {
                            z = 1;
                            a(g.slides, j).css({
                                left: 0
                            },
                            function () {
                                a(g.slides, j).animate({
                                    left: i
                                })
                            });
                            a(g.slides, j).find("li.slide:eq(0)").css({
                                left: 0
                            });
                            a(g.slides, j).find("li.slide:eq(" + (A - 1) + ")").css({
                                position: "absolute",
                                left: -q
                            })
                        }
                        if (z === A) {
                            a(g.slides, j).find("li.slide:eq(0)").css({
                                left: (A * q)
                            })
                        }
                        if (z === A - 1) {
                            a(g.slides, j).find("li.slide:eq(" + (A - 1) + ")").css({
                                left: A * q - q
                            })
                        }
                        v = false
                    });
                    break;
                case "prev":
                    z = z - 1;
                    i = (-(z * q - q));
                    k(z);
                    if (g.autoHeight) {
                        r(z)
                    }
                    if (A < 3) {
                        if (z === 0) {
                            a(g.slides, j).find("li.slide:eq(" + (A - 1) + ")").css({
                                position: "absolute",
                                left: (-q)
                            })
                        }
                        if (z === 1) {
                            a(g.slides, j).find("li.slide:eq(0)").css({
                                position: "absolute",
                                left: 0
                            })
                        }
                    }
                    a(g.slides, j).animate({
                        left: i
                    },
                    g.slidespeed, g.easing, function () {
                        if (z === 0) {
                            z = A;
                            a(g.slides, j).find("li.slide:eq(" + (A - 1) + ")").css({
                                position: "absolute",
                                left: (A * q - q)
                            });
                            a(g.slides, j).css({
                                left: -(A * q - q)
                            });
                            a(g.slides, j).find("li.slide:eq(0)").css({
                                left: (A * q)
                            })
                        }
                        if (z === 2) {
                            a(g.slides, j).find("li.slide:eq(0)").css({
                                position: "absolute",
                                left: 0
                            })
                        }
                        if (z === 1) {
                            a(g.slides, j).find("li.slide:eq(" + (A - 1) + ")").css({
                                position: "absolute",
                                left: -q
                            })
                        }
                        v = false
                    });
                    break;
                case "fade":
                    z = [z] * 1;
                    i = (-(z * q - q));
                    k(z);
                    if (g.autoHeight) {
                        r(z)
                    }
                    a(g.slides, j).find("li:slide").fadeOut(g.fadespeed, function () {
                        a(g.slides, j).css({
                            left: i
                        });
                        a(g.slides, j).find("li.slide:eq(" + (A - 1) + ")").css({
                            left: A * q - q
                        });
                        a(g.slides, j).find("li.slide:eq(0)").css({
                            left: 0
                        });
                        if (z === A) {
                            a(g.slides, j).find("li.slide:eq(0)").css({
                                left: (A * q)
                            })
                        }
                        if (z === 1) {
                            a(g.slides, j).find("li.slide:eq(" + (A - 1) + ")").css({
                                position: "absolute",
                                left: -q
                            })
                        }
                        a(g.slides, j).find("li:slide").fadeIn(g.fadespeed);
                        v = false
                    });
                    break;
                default:
                    break
                }
            }
        })
    }
})(jQuery);
(function (a) {
    a.fn.clearField = function (b) {
        b = a.extend({
            blurClass: "clearFieldBlurred",
            activeClass: "clearFieldActive"
        },
        b);
        a(this).each(function () {
            var c = a(this);
            if (c.attr("rel") == undefined) {
                c.attr("rel", c.val()).addClass(b.blurClass)
            }
            c.focus(function () {
                if (c.val() == c.attr("rel")) {
                    var d = "";
                    if (c.attr("name") == "url") {
                        d = "http://"
                    }
                    c.val(d).removeClass(b.blurClass).addClass(b.activeClass)
                }
            });
            c.blur(function () {
                if ((c.val() == ("")) || ((c.attr("name") == "url") && (c.val() == ("http://")))) {
                    c.val(c.attr("rel")).removeClass(b.activeClass).addClass(b.blurClass)
                }
            })
        });
        return a
    }
})(jQuery);

(function (a) {
    a.extend({
        jTwitter: function (e, b) {
            var c = "http://twitter.com/status/user_timeline/" + e + ".json?count=1&callback=?";
            var d = {};
            a.getJSON(c, function (f) {
                if (typeof b == "function") {
                    b.call(this, f[0].user)
                }
            })
        }
    })
})(jQuery);
(function (a) {
    a.fn.getTwitter = function (b) {
        a.fn.getTwitter.defaults = {
            userName: null,
            numTweets: 5,
            loaderText: "Loading tweets..."
        };
        var c = a.extend({},
        a.fn.getTwitter.defaults, b);
        return this.each(function () {
            var g = a(this);
            g.hide().empty().addClass("twitted");
            var e = '<ul id="twitter_update_list"><li></li></ul>';
            g.append(e);
            var d = a("#twitter_update_list");
            d.hide();
            var f = a('<p class="preLoader">' + c.loaderText + "</p>");
            g.append(f);
            g.show();
            a.getScript("http://twitter.com/javascripts/blogger.js");
            a.getScript("http://twitter.com/statuses/user_timeline/" + c.userName + ".json?callback=twitterCallback2&count=" + c.numTweets, function () {
                a(f).remove();
                d.fadeIn(333);
                d.find("li:first").addClass("firstTweet");
                d.find("li:last").addClass("lastTweet");
                d.find("li").children("a").addClass("date");
                d.find("li").wrapInner('<span class="entry"></span>')
            })
        })
    }
})(jQuery);
jQuery.cookie = function (b, j, m) {
    if (typeof j != "undefined") {
        m = m || {};
        if (j === null) {
            j = "";
            m = jQuery.extend({},
            m);
            m.expires = -1
        }
        var e = "";
        if (m.expires && (typeof m.expires == "number" || m.expires.toUTCString)) {
            var f;
            if (typeof m.expires == "number") {
                f = new Date();
                f.setTime(f.getTime() + (m.expires * 24 * 60 * 60 * 1000))
            } else {
                f = m.expires
            }
            e = "; expires=" + f.toUTCString()
        }
        var l = m.path ? "; path=" + (m.path) : "";
        var g = m.domain ? "; domain=" + (m.domain) : "";
        var a = m.secure ? "; secure" : "";
        document.cookie = [b, "=", encodeURIComponent(j), e, l, g, a].join("")
    } else {
        var d = null;
        if (document.cookie && document.cookie != "") {
            var k = document.cookie.split(";");
            for (var h = 0; h < k.length; h++) {
                var c = jQuery.trim(k[h]);
                if (c.substring(0, b.length + 1) == (b + "=")) {
                    d = decodeURIComponent(c.substring(b.length + 1));
                    break
                }
            }
        }
        return d
    }
};

jQuery.fn.fadeTo = function (a, c, b) {
    return this.animate({
        opacity: c
    },
    a, function () {
        if (c == 1 && jQuery.browser.msie) {
            this.style.removeAttribute("filter")
        }
        if (jQuery.isFunction(b)) {
            b()
        }
    })
};
jQuery.fn.nudge = function (a) {
    a = jQuery.extend({
        amount: 20,
        duration: 300,
        property: "padding",
        direction: "left",
        toCallback: function () {},
        fromCallback: function () {}
    },
    a);
    this.each(function () {
        var h = jQuery(this);
        var e = a;
        var d = e.direction;
        var g = e.property + d.substring(0, 1).toUpperCase() + d.substring(1, d.length);
        var c = h.css(g);
        var f = {};
        f[g] = parseInt(e.amount) + parseInt(c);
        var b = {};
        b[g] = c;
        h.hover(function () {
            h.stop().animate(f, e.duration, "", e.toCallback)
        },
        function () {
            h.stop().animate(b, e.duration, "", e.fromCallback)
        })
    });
    return this
};
(function (a) {
    a.fn.bubble = function (b) {
        a.fn.bubble.defaults = {
            timeout: 0,
            offset: 22
        };
        var c = a.extend({},
        a.fn.bubble.defaults, b);
        return this.each(function () {
            var d = function () {
                var g = a(this).find(".bubble").css("display", "block")[0];
                var i = a(g).height();
                var h = g.offsetHeight;
                var f = h + i;
                a(this).find(".bubble").stop().css({
                    opacity: 0,
                    top: 2 - h
                }).animate({
                    opacity: 1,
                    top: c.offset - h
                },
                250)
            };
            var e = function () {
                var g = this;
                var h = a(".bubble", this).css("display", "block")[0];
                var j = a(h).height();
                var i = h.offsetHeight;
                var f = i + j;
                a(this).find(".bubble").stop().animate({
                    opacity: 0,
                    top: 12 - i
                },
                250, "swing", function () {
                    h.hiding = false;
                    a(this).css("display", "none")
                })
            };
            a(this).find(".bubble").hover(function () {
                return false
            },
            function () {
                return true
            });
            a(this).hover(function () {
                var f = this;
                d.apply(this);
                if (c.timeout > 0) {
                    this.tttimeout = setTimeout(function () {
                        e.apply(f)
                    },
                    c.timeout)
                }
            },
            function () {
                clearTimeout(this.tttimeout);
                e.apply(this)
            })
        })
    }
})(jQuery);

function updateCookie(c, b) {
    var a = c.replace(/[#. ]/g, "");
    jQuery.cookie(a, b, {
        path: "/"
    })
}

function fontControl(a, e, d, f) {
    jQuery(a).append('<a href="javascript:void(0);" class="fontSize bubble" title="Increase or decrease text size"></a>');
    var b = "page-font-size";
    var c = jQuery.cookie(b);
    if (c != null) {
        jQuery(e).css("fontSize", parseInt(c))
    }
    jQuery(a + " .fontSize").click(function () {
        curSize = parseInt(jQuery(e).css("fontSize"));
        newSize = curSize + 1;
        if (newSize > f) {
            newSize = d
        }
        if (newSize >= d) {
            jQuery(e).animate({
                fontSize: newSize
            },
            333, "swing")
        }
        updateCookie(b, newSize)
    })
}

function pageWidthControl(a, d, e, g, f) {
    jQuery(a).append('<a href="javascript:void(0);" class="pageWidth bubble" title="switch from fixed to fluid page width"></a>');
    var b = "page-max-width";
    var c = jQuery.cookie(b);
    if (c != null) {
        jQuery(d).css("maxWidth", c)
    }
    jQuery(a + " .pageWidth").click(function () {
        curMaxWidth = jQuery(d).css("maxWidth");
        newMaxWidth = curMaxWidth;
        switch (curMaxWidth) {
        case e:
            newMaxWidth = g;
            break;
        case g:
            newMaxWidth = f;
            break;
        case f:
            newMaxWidth = e;
            break;
        default:
            newMaxWidth = f
        }
        jQuery(d).animate({
            maxWidth: newMaxWidth
        },
        333, "easeOutQuart");
        updateCookie(b, newMaxWidth)
    })
} (function (a) {
    a.fn.dropDown = function (b) {
        a.fn.dropDown.defaults = {
            delay: 0
        };
        var c = a.extend({},
        a.fn.dropDown.defaults, b);
        return this.each(function () {
            a(this).find("ul").css({
                display: "none"
            });
            a(this).find("li").hover(function () {
                a(this).find("ul:first").css({
                    display: "block",
                    opacity: 0,
                    marginLeft: 20
                }).animate({
                    opacity: 1,
                    marginLeft: 0
                },
                150, "swing")
            },
            function () {
                a(this).find("ul:first").animate({
                    opacity: 0,
                    marginLeft: 20
                },
                150, "swing", function () {
                    a(this).css({
                        display: "none"
                    })
                })
            })
        })
    }
})(jQuery);
(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];
            b(this).addClass(c.join(" "))
        })
    };
    var a = b.fn.superfish;
    a.o = [];
    a.op = {};
    a.c = {
        bcClass: "sf-breadcrumb",
        menuClass: "sf-js-enabled",
        anchorClass: "sf-with-ul",
        arrowClass: "arrow"
    };
    a.defaults = {
        hoverClass: "sfHover",
        pathClass: "overideThisToUse",
        pathLevels: 1,
        delay: 333,
        speed: "normal",
        autoArrows: 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").animate({
                opacity: 0,
                marginLeft: 20
            },
            150, "swing", function () {
                b(this).css({
                    display: "none"
                })
            });
            e.onHide.call(c);
            return this
        },
        showSuperfishUl: function () {
            var d = a.op,
                c = this.addClass(d.hoverClass).find(">ul:hidden").css("visibility", "visible");
            d.onBeforeShow.call(c);
            c.css({
                display: "block",
                opacity: 0,
                marginLeft: 20
            }).animate({
                opacity: 1,
                marginLeft: 0
            },
            150, "swing", function () {
                d.onShow.call(c)
            });
            return this
        }
    })
})(jQuery);
(function (a) {
    a.fn.quoteComment = function (b) {
        a.fn.quoteComment.defaults = {
            comment: "li.comment",
            comment_id: ".comment-id",
            author: ".comment-author",
            source: ".comment-body",
            target: "#comment"
        };
        a.fn.appendVal = function (d) {
            return this.each(function () {
                this.value += d
            })
        };
        var c = a.extend({},
        a.fn.quoteComment.defaults, b);
        return this.each(function () {
            a(this).click(function () {
                $c = a(this).parents(c.comment).find(c.source);
                $author = a(this).parents(c.comment).find(c.author);
                $cid = a(this).parents(c.comment).find(c.comment_id).attr("href");
                a(c.target).appendVal('<blockquote>\n<a href="' + $cid + '">\n<strong><em>' + $author.html() + ":</em></strong>\n</a>\n " + $c.html() + "</blockquote>");
                a(c.target).focus();
                return false
            })
        })
    }
})(jQuery);

function webshot(b, a) {
    jQuery(b).each(function (c) {
        jQuery("body").append("<div class='" + a + "' id='" + a + c + "'><p><img src='http://images.websnapr.com/?size=s&amp;url=" + jQuery(this).attr("href") + "' /></p></div>");
        var d = jQuery("#" + a + c);
        jQuery(this).mouseover(function () {
            d.css({
                opacity: 0.8,
                display: "none"
            }).fadeIn(400)
        }).mousemove(function (e) {
            d.css({
                left: e.pageX + 15,
                top: e.pageY + 15
            })
        }).mouseout(function () {
            d.fadeOut(400)
        })
    })
} (function (a) {
    a.fn.minitabs = function (b) {
        a.fn.minitabs.defaults = {
            content: ".sections",
            nav: "ul:first",
            effect: "top",
            speed: 333,
            cookies: true
        };
        var c = a.extend({},
        a.fn.minitabs.defaults, b);
        return this.each(function () {
            var e = a(this);
            var h = e.attr("id");
            var d = a("#" + h + " " + c.nav);
            if (c.cookies) {
                var f = h;
                var j = a.cookie(f)
            }
            e.find(c.content + " >div:gt(0)").hide();
            if (c.cookies && (j != null)) {
                d.find("li." + j).addClass("active");
                var g = d.find("li." + j + " a");
                var i = g.attr("href");
                e.find(c.content + " div" + i).show()
            } else {
                d.find("li:last").addClass("active");
                e.find(c.content + " div:first").show()
            }
            d.find("li>a").click(function () {
                if (!a(this).parent("li").hasClass("active")) {
                    d.find("li").removeClass("active");
                    if (c.cookies) {
                        var m = a(this).parent("li").attr("class");
                        a.cookie(f, m, {
                            path: "/"
                        })
                    }
                    a(this).parent("li").addClass("active");
                    a(this).blur();
                    var k = /([_\-\w]+$)/i;
                    var l = a("#" + h + " #" + k.exec(this.href)[1]);
                    if (c.effect == "slide") {
                        e.find(c.content + " >div").slideUp(c.effect)
                    } else {
                        e.find(c.content + " >div").hide()
                    }
                    switch (c.effect) {
                    case "top":
                        l.css({
                            opacity: 0,
                            top: -300
                        }).show().animate({
                            opacity: 1,
                            top: 0
                        },
                        c.speed, "easeOutQuart");
                        break;
                    case "slide":
                        l.slideDown(c.speed);
                        break;
                    case "height":
                        originalHeight = l.height();
                        l.css({
                            opacity: 0,
                            height: 0
                        }).show().animate({
                            opacity: 1,
                            height: originalHeight
                        },
                        c.speed, "easeOutQuart");
                        break
                    }
                    return false
                }
            })
        })
    }
})(jQuery);
jQuery(document).ready(function () {
    jQuery("#navigation").superfish({
        autoArrows: true
    });
    fontControl("#pageControls", "body", 10, 18);
    pageWidthControl("#pageControls", ".page-content", "95%", "980px", "1200px");
    webshot("a.websnapr", "webshot");
    jQuery(".post-tabs").minitabs({
        content: ".sections",
        nav: ".tabs",
        effect: "top",
        speed: 333,
        cookies: false
    });
    jQuery(".sidebar-tabs").minitabs({
        content: ".sections",
        nav: ".box-tabs",
        effect: "slide",
        speed: 150
    });
    jQuery("ul.menuList .cat-item").bubble({
        timeout: 6000
    });
    jQuery(".shareThis").bubble({
        offset: 16,
        timeout: 0
    });
    jQuery(".comment-head").bubble({
        timeout: 0
    });
    jQuery("#pageControls").bubble({
        offset: 30
    });
    jQuery("ul.menuList li a").nudge({
        property: "padding",
        direction: "left",
        amount: 6,
        duration: 166
    });
    jQuery("a.rss").nudge({
        property: "bottom",
        direction: "",
        amount: 14,
        duration: 166
    });
    jQuery("a#show-author-info").click(function () {
        jQuery("#author-info").slideToggle(333)
    });
    jQuery("a.quote").quoteComment({
        comment: "li.comment",
        comment_id: ".comment-id",
        author: ".comment-author",
        source: ".comment-text",
        target: "#comment"
    });
  
    if (!isIE) {
        jQuery(".fadeThis").append('<span class="hover"></span>').each(function () {
            var a = jQuery("> span.hover", this).css("opacity", 0);
            jQuery(this).hover(function () {
                a.stop().fadeTo(333, 1)
            },
            function () {
                a.stop().fadeTo(333, 0)
            })
        })
    }
    jQuery("#footer-blocks.withSlider").loopedSlider();
    jQuery("#featured-content.withSlider").loopedSlider({
        autoStart: 10000,
        autoHeight: false
    });
    jQuery("a#goTop").click(function () {
        jQuery("html").animate({
            scrollTop: 0
        },
        "slow")
    });
    jQuery(".clearField").clearField({
        blurClass: "clearFieldBlurred",
        activeClass: "clearFieldActive"
    });
    jQuery("#navigation").attr("role", "navigation");
    jQuery("#primary-content").attr("role", "main");
    jQuery("#sidebar").attr("role", "complementary");
    jQuery("#search-form").attr("role", "search")
});