﻿/**
* reflection.js v2.0
* http://cow.neondragon.net/stuff/reflection/
* Freely distributable under MIT-style license.
*/

/* From prototype.js */
if (!document.myGetElementsByClassName) {
    document.myGetElementsByClassName = function (className) {
        var children = document.getElementsByTagName('*') || document.all;
        var elements = new Array();

        for (var i = 0; i < children.length; i++) {
            var child = children[i];
            var classNames = child.className.split(' ');
            for (var j = 0; j < classNames.length; j++) {
                if (classNames[j] == className) {
                    elements.push(child);
                    break;
                }
            }
        }
        return elements;
    }
}

var Reflection = {
    defaultHeight: 0.5,
    defaultOpacity: 0.5,

    add: function (image, options) {
        Reflection.remove(image);

        doptions = { "height": Reflection.defaultHeight, "opacity": Reflection.defaultOpacity }
        if (options) {
            for (var i in doptions) {
                if (!options[i]) {
                    options[i] = doptions[i];
                }
            }
        } else {
            options = doptions;
        }

        try {
            var d = document.createElement('div');
            var p = image;

            var classes = p.className.split(' ');
            var newClasses = '';
            for (j = 0; j < classes.length; j++) {
                if (classes[j] != "reflect") {
                    if (newClasses) {
                        newClasses += ' '
                    }

                    newClasses += classes[j];
                }
            }

            var reflectionHeight = Math.floor(p.height * options['height']);
            var divHeight = Math.floor(p.height * (1 + options['height']));

            var reflectionWidth = p.width;

            if (document.all && !window.opera) {
                /* Fix hyperlinks */
                if (p.parentElement.tagName == 'A') {
                    var d = document.createElement('a');
                    d.href = p.parentElement.href;
                }

                /* Copy original image's classes & styles to div */
                d.className = newClasses;
                p.className = 'reflected';

                d.style.cssText = p.style.cssText;
                p.style.cssText = 'vertical-align: bottom';

                var reflection = document.createElement('img');
                reflection.src = p.src;
                reflection.style.width = reflectionWidth + 'px';
                reflection.style.display = 'block';
                reflection.style.height = p.height + "px";

                reflection.style.marginBottom = "-" + (p.height - reflectionHeight) + 'px';
                reflection.style.filter = 'flipv progid:DXImageTransform.Microsoft.Alpha(opacity=' + (options['opacity'] * 100) + ', style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy=' + (options['height'] * 100) + ')';

                d.style.width = reflectionWidth + 'px';
                d.style.height = divHeight + 'px';
                p.parentNode.replaceChild(d, p);

                d.appendChild(p);
                d.appendChild(reflection);
            } else {
                var canvas = document.createElement('canvas');
                if (canvas.getContext) {
                    /* Copy original image's classes & styles to div */
                    d.className = newClasses;
                    p.className = 'reflected';

                    d.style.cssText = p.style.cssText;
                    p.style.cssText = 'vertical-align: bottom';

                    var context = canvas.getContext("2d");

                    canvas.style.height = reflectionHeight + 'px';
                    canvas.style.width = reflectionWidth + 'px';
                    canvas.height = reflectionHeight;
                    canvas.width = reflectionWidth;

                    d.style.width = reflectionWidth + 'px';
                    d.style.height = divHeight + 'px';
                    p.parentNode.replaceChild(d, p);

                    d.appendChild(p);
                    d.appendChild(canvas);

                    context.save();

                    context.translate(0, image.height - 1);
                    context.scale(1, -1);

                    context.drawImage(image, 0, 0, reflectionWidth, image.height);

                    context.restore();

                    context.globalCompositeOperation = "destination-out";
                    var gradient = context.createLinearGradient(0, 0, 0, reflectionHeight);

                    gradient.addColorStop(1, "rgba(255, 255, 255, 1.0)");
                    gradient.addColorStop(0, "rgba(255, 255, 255, " + (1 - options['opacity']) + ")");

                    context.fillStyle = gradient;
                    context.rect(0, 0, reflectionWidth, reflectionHeight * 2);
                    context.fill();
                }
            }
        } catch (e) {
        }
    },

    remove: function (image) {
        if (image.className == "reflected") {
            image.className = image.parentNode.className;
            image.parentNode.parentNode.replaceChild(image, image.parentNode);
        }
    }
}

function addReflections() {
    var rimages = document.myGetElementsByClassName('reflect');
    for (i = 0; i < rimages.length; i++) {
        var rheight = null;
        var ropacity = null;

        var classes = rimages[i].className.split(' ');
        for (j = 0; j < classes.length; j++) {
            if (classes[j].indexOf("rheight") == 0) {
                var rheight = classes[j].substring(7) / 100;
            } else if (classes[j].indexOf("ropacity") == 0) {
                var ropacity = classes[j].substring(8) / 100;
            }
        }

        Reflection.add(rimages[i], { height: rheight, opacity: ropacity });
    }
}

var previousOnload = window.onload;
window.onload = function () { if (previousOnload) previousOnload(); addReflections(); }

var jQuery=window.jQuery=window.$=$telerik.$;

/**
* Liquid Canvas jQuery Plugin 
* 
* Version 0.3
*
* Steffen Rusitschka  http://www.ruzee.com  MIT licensed
*/
(function ($) {
    var canvasElements = [];
    var pollCounter = 0;
    var plugins = {};

    function Area(canvas) {
        var stack = [];

        $.extend(this, {
            width: canvas.width, height: canvas.height, ctx: canvas.getContext("2d"),

            save: function () {
                this.ctx.save();
                stack.push({ width: this.width, height: this.height });
            },

            restore: function () {
                this.ctx.restore();
                $.extend(this, stack.pop());
            },

            del: function () {
                this.ctx.del();

            }
        });
    }

    var Plugin = (function () {
        var shrink = function (area, steps) {
            area.ctx.translate(steps, steps);
            area.width -= 2 * steps;
            area.height -= 2 * steps;
        };
        return {
            action: { paint: function () { } },  // provide a NOP "plugin"
            shrink: shrink,
            defaultShrink: shrink,
            setAction: function (action) { this.action = action; }
        };
    })();

    function newPlugin(hash, opts) {
        return $.extend({}, Plugin, hash, { opts: opts, savedOpts: opts });
    }

    function pluginFromPlugins(plugins) {
        return newPlugin({
            paint: function (area) {
                area.save();
                this.action.opts = $.extend(true, this.action.savedOpts);
                $.each(plugins, function () { this.paint(area); });
                area.restore();
            },

            setAction: function (action) {
                this.action = action; // should call super if it existed ...
                $.each(plugins, function () { this.action = action; });
            }
        });
    }
    var pluginFromApplications = pluginFromPlugins; // it just does the same ...

    function pluginFromName(name, opts) {
        var plugin = plugins[name];
        if (!plugin) throw "Unknown plugin: " + name;
        opts = $.extend({}, plugin.defaultOpts || {}, opts);
        return newPlugin(plugin, opts);
    }

    function parse(s) {
        s += " ";
        var index = 0;

        function err(m) { msg = m + " at " + index + ": ..." + s.substring(index) + "\nin " + s; alert(msg); throw msg; }
        function cur() { return s.charAt(index); }
        function next() { if (index > s.length) throw ("Unexpected end"); return s.charAt(index + 1) }
        function eat() { return s.charAt(index++); }
        function skipWhite() { while (/\s/.exec(cur())) eat(); }
        function check(c) {
            skipWhite();
            for (var i = 0; i < c.length; ++i) {
                if (cur() != c.charAt(i)) err("Expected '" + c.charAt(i) + "' found '" + cur() + "'");
                eat();
            }
        }

        //var parseApplications; // forward reference

        function parseWord() {
            skipWhite();
            for (var word = []; /\w/.exec(cur()); word.push(eat()));
            return word.join("");
        }

        function parseNumber() {
            skipWhite();
            for (var n = []; /\d/.exec(cur()); n.push(eat()));
            return parseInt(n.join(""));
        }

        function parseString() {
            skipWhite();
            var s = [], start = cur();
            if (/[^\'\"]/.exec(start)) { err("String expected") }
            eat();
            while (cur() != start) { if (cur() == "\\") s.eat(); s.push(eat()); }
            check(start);
            return s.join("");
        }

        // Yeah, strange thing - this does the CSS value like parsing
        function parseValue() {
            skipWhite();
            for (var s = []; /[^;}]/.exec(cur()); s.push(eat()));
            return s.join("");
        }

        function parseLiteral() {
            skipWhite();
            if (/\d/.exec(cur())) return parseNumber();
            if (/['"]/.exec(cur())) return parseString();
            return parseValue();
        }

        function parseOpts() {
            check("{");
            skipWhite();
            var opts = {};
            while (cur() != "}") {
                var key = parseWord();
                check(":");
                opts[key] = parseLiteral();
                skipWhite();
                if (cur() == "}") break;
                check(";");
            }
            check("}");
            return opts;
        }

        function parsePlugin() {
            var name = parseWord();
            skipWhite();
            opts = cur() == "{" ? parseOpts() : {};
            return pluginFromName(name, opts);
        }

        function parsePlugins() {
            check("[");
            skipWhite();
            var plugins = [];
            while (cur() != "]") {
                plugins.push(parsePlugin());
                skipWhite();
            }
            check("]");
            return pluginFromPlugins(plugins);
        }

        function parseActors() {
            skipWhite();
            return cur() == "[" ? parsePlugins() : parsePlugin();
        }

        function parseAction() {
            var action;
            skipWhite();
            if (cur() == "(") {
                eat();
                action = parseApplications();
                check(")");
            } else {
                action = parsePlugin();
            }
            return action;
        }

        function parseApplication() {
            var actors = parseActors();
            check("=>");
            var action = parseAction();
            actors.setAction(action);
            return actors;
        }

        function parseApplications() {
            var applications = [];
            while (true) {
                applications.push(parseApplication());
                skipWhite();
                if (cur() != ",") break;
                check(",");
            }
            return pluginFromApplications(applications);
        }

        return parseApplications();
    }

    function checkResize(container, force) {
        var $container = $(container);
        var data = $container.data('liquid-canvas');
        if (!data) return;
        var canvas = data.canvas;
        var $canvas = $(canvas);
        var w = $container.outerWidth();
        var h = $container.outerHeight();

        if (force ||
        canvas.width != w || canvas.height != h ||
        canvas.offsetTop != container.offsetTop || canvas.offsetLeft != container.offsetLeft) {
            pollCounter = 100;
            $canvas.css({ left: container.offsetLeft + "px", top: container.offsetTop + "px" });
            canvas.width = w;
            canvas.height = h;
            var area = new Area(canvas);
            area.save();
            data.paint(area);
            area.restore();
        }
    }

    function checkAllResize(force) {
        $.each(canvasElements, function () { checkResize(this, force); });
    }

    function poll() {
        checkAllResize();
        pollCounter--;
        if (pollCounter < 0) {
            pollCounter = 0;
            setTimeout(poll, 1000);
        } else {
            setTimeout(poll, 1000 / 60);
        }
    }

    jQuery.fn.extend({
        liquidCanvas: function (func) {
            this.each(function () {
                var canvas;
                if (window.G_vmlCanvasManager) {
                    $(this).before('<div width="0" height="0" style="position:absolute; top:0px; left:0px;"></div>');
                    canvas = G_vmlCanvasManager.initElement($(this).prev("div").get(0));
                } else {
                    $(this).before('<canvas width="0" height="0" style="position:absolute; top:0px; left:0px;"></canvas>');
                    canvas = $(this).prev("canvas").get(0);
                }

                var paint;
                if ($.isFunction(func)) {
                    paint = func;
                } else {
                    var plugin = parse(func)
                    paint = function (area) { plugin.paint(area); };
                }

                $(this).data("liquid-canvas", {
                    "canvas": canvas,
                    "paint": paint
                });
                $(this).css({ background: "transparent" });
                if ($(this).css("position") != "absolute") $(this).css({ position: "relative" });

                canvasElements.push(this);
                checkResize(this, true);
            });
        }
    });

    jQuery.extend({
        registerLiquidCanvasPlugin: function (plugin) {
            plugins[plugin.name] = $.extend({}, Plugin, plugin);
        }
    });

    $(document).ready(checkAllResize);
    poll();
})(jQuery);

(function ($) {

    $.registerLiquidCanvasPlugin({
        name: "rect",
        paint: function (area) {
            area.ctx.beginPath();
            area.ctx.rect(0, 0, area.width, area.height);
            area.ctx.closePath();
            if (this.action) this.action.paint(area);  // for chaining
        }
    });

    $.registerLiquidCanvasPlugin({
        name: "top_roundedRect",
        defaultOpts: { radius: 20 },
        paint: function (area) {
            var ctx = area.ctx;
            var opts = this.opts;
            ctx.beginPath();
            ctx.moveTo(0, opts.radius);

            ctx.quadraticCurveTo(0, 0, opts.radius, 0);
            ctx.lineTo(area.width - opts.radius, 0);
            ctx.quadraticCurveTo(area.width, 0, area.width, opts.radius);
            ctx.lineTo(area.width, area.height);
            ctx.moveTo(0, area.height); //if you want to have a line across the bottom, change this to ctx.lineTo(0, area.height);
            ctx.lineTo(0, opts.radius);

            ctx.closePath();
            if (this.action) this.action.paint(area); // for chaining
        },
        shrink: function (area, steps) {
            this.defaultShrink(area, steps);
            this.opts.radius -= steps;
        }
    });

    $.registerLiquidCanvasPlugin({
        name: "ecken",
        defaultOpts: { tl: 5, tr: 20, bl: 10, br: 15 },
        paint: function (area) {
            var ctx = area.ctx;
            var opts = this.opts;
            ctx.beginPath();
            ctx.moveTo(0, opts.tl);
            ctx.lineTo(0, area.height - opts.bl);
            ctx.quadraticCurveTo(0, area.height, opts.bl, area.height);
            ctx.lineTo(area.width - opts.br, area.height);
            ctx.quadraticCurveTo(area.width, area.height, area.width, area.height - opts.br);
            ctx.lineTo(area.width, opts.tr);
            ctx.quadraticCurveTo(area.width, 0, area.width - opts.tr, 0);
            ctx.lineTo(opts.tl, 0);
            ctx.quadraticCurveTo(0, 0, 0, opts.tl);
            ctx.closePath();
            if (this.action) this.action.paint(area);  // for chaining
        },
        shrink: function (area, steps) {
            this.defaultShrink(area, steps);
            this.opts.radius -= steps;
        }
    });
    $.registerLiquidCanvasPlugin({
        name: "roundedRect",
        defaultOpts: { radius: 20 },
        paint: function (area) {
            var ctx = area.ctx;
            var opts = this.opts;
            ctx.beginPath();
            ctx.moveTo(0, opts.radius);
            ctx.lineTo(0, area.height - opts.radius);
            ctx.quadraticCurveTo(0, area.height, opts.radius, area.height);
            ctx.lineTo(area.width - opts.radius, area.height);
            ctx.quadraticCurveTo(area.width, area.height, area.width, area.height - opts.radius);
            ctx.lineTo(area.width, opts.radius);
            ctx.quadraticCurveTo(area.width, 0, area.width - opts.radius, 0);
            ctx.lineTo(opts.radius, 0);
            ctx.quadraticCurveTo(0, 0, 0, opts.radius);
            ctx.closePath();
            if (this.action) this.action.paint(area);  // for chaining
        },
        shrink: function (area, steps) {
            this.defaultShrink(area, steps);
            this.opts.radius -= steps;
        }
    });

    // This is a Liquid Canvas Plugin
    $.registerLiquidCanvasPlugin({
        name: "fill",
        defaultOpts: { color: "#aaa" },
        paint: function (area) {
            area.ctx.fillStyle = this.opts.color;
            this.action.paint(area);
            area.ctx.fill();
        }
    });

    $.registerLiquidCanvasPlugin({  // hmmmmmmm, no rotation? no width??? ah patterns!
        name: "image",
        defaultOpts: { url: "http://www.ruzee.com/files/liquid-canvas-image.png" },
        paint: function (area) {
            var image = new Image();
            image.src = this.opts.url;
            image.onload = function () {
                area.ctx.drawImage(this, 0, 0);
            };
        }
    });

    // This is a Liquid Canvas Plugin
    $.registerLiquidCanvasPlugin({
        name: "gradient",
        defaultOpts: { from: "#fff", to: "#666" },
        paint: function (area) {
            var grad = area.ctx.createLinearGradient(0, 0, 0, area.height);
            grad.addColorStop(0, this.opts.from);
            grad.addColorStop(1, this.opts.to);
            area.ctx.fillStyle = grad;
            this.action.paint(area);
            area.ctx.fill();
        }
    });
    // End of Liquid Canvas Plugin

    $.registerLiquidCanvasPlugin({
        name: "shadow",
        defaultOpts: { width: 3, color: '#000', shift: 2 },
        paint: function (area) {
            var sw = this.opts.width;

            area.ctx.fillStyle = this.opts.color;
            area.ctx.globalAlpha = 1.0 / sw;
            for (var s = 0; s < sw; ++s) {
                this.action.paint(area);
                area.ctx.fill();
                this.action.shrink(area, 1);
            }
            area.ctx.globalAlpha = 1;
            area.ctx.translate(0, -this.opts.shift);
        }
    });

    $.registerLiquidCanvasPlugin({
        name: "border",
        defaultOpts: { color: '#a1c1e6', width: 2 },
        paint: function (area) {
            var bw = this.opts.width;
            area.ctx.strokeStyle = this.opts.color;
            area.ctx.lineWidth = bw;
            this.action.shrink(area, bw / 2);
            this.action.paint(area);
            area.ctx.stroke();
            this.action.shrink(area, bw / 2);
        }
    });

})(jQuery);


(function ($) {
    $.fn.jMyCarousel = function (o) {
        o = $.extend({ btnPrev: null, btnNext: null, mouseWheel: true, auto: false, speed: 500, easing: 'linear', vertical: false, circular: true, visible: '4', start: 0, scroll: 1, step: 50, eltByElt: false, evtStart: 'mouseover', evtStop: 'mouseout', beforeStart: null, afterEnd: null }, o || {}); return this.each(function () {
            var running = false, animCss = o.vertical ? "top" : "left", sizeCss = o.vertical ? "height" : "width"; var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl = tLi.size(), v = o.visible; var mousewheelN = 0; var defaultBtn = (o.btnNext === null && o.btnPrev === null) ? true : false; var cssU = (v.toString().indexOf("%") != -1 ? '%' : (v.toString().indexOf("px") != -1) ? 'px' : 'el'); var direction = null; if (o.circular) { var imgSet = tLi.clone(); ul.prepend(imgSet).append(imgSet.clone()); }
            var li = $("li", ul); div.css("visibility", "visible"); li.css("overflow", "hidden").css("float", o.vertical ? "none" : "left").children().css("overflow", "hidden"); if (!o.vertical) { li.css("display", "inline"); }
            if (li.children().get(0).tagName.toLowerCase() == 'a' && !o.vertical) { li.children().css('float', 'left'); }
            if (o.vertical && jQuery.browser.msie) { li.css('line-height', '4px').children().css('margin-bottom', '-4px'); }
            ul.css("margin", "0").css("padding", "0").css("position", "relative").css("list-style-type", "none").css("z-index", "1"); div.css("overflow", "hidden").css("position", "relative").css("z-index", "2").css("left", "0px"); var liSize = o.vertical ? height(li) : width(li); var liSizeV = o.vertical ? elHeight(li) : height(li); var curr = o.start; var nbAllElts = li.size(); var ulSize = liSize * nbAllElts; var nbElts = tl; var eltsSize = nbElts * liSize; var allEltsSize = nbAllElts * liSize; var step = o.step == 'default' ? liSize : o.step; o.btnPrev = defaultBtn ? $('<input type="button" class="' + (o.vertical ? 'up' : 'prev') + '" />') : $(o.btnPrev); o.btnNext = defaultBtn ? $('<input type="button" class="' + (o.vertical ? 'down' : 'next') + '" />') : $(o.btnNext); var prev = o.btnPrev; var next = o.btnNext; if (defaultBtn && o.auto !== true) { prev.css({ 'opacity': '0.6' }); next.css({ 'opacity': '0.6' }); div.prepend(prev); div.prepend(next); o.btnPrev = prev; o.btnNext = next; }
            if (o.eltByElt) { step = liSize; if (o.start % liSize !== 0) { var imgStart = parseInt(o.start / liSize); curr = o.start = (imgStart * liSize); } }
            if (o.circular) { o.start += (liSize * tl); curr += (liSize * tl); }
            var divSize, cssSize, cssUnity; if (cssU == '%') { divSize = 0; cssSize = parseInt(v); cssUnity = "%"; }
            else if (cssU == 'px') { divSize = parseInt(v); cssSize = parseInt(v); cssUnity = "px"; }
            else { divSize = liSize * parseInt(v); cssSize = liSize * parseInt(v); cssUnity = "px"; }
            ul.css(sizeCss, ulSize + "px").css(animCss, -(o.start)); div.css(sizeCss, cssSize + cssUnity); if (o.vertical && cssUnity == '%') { var pxsize = ((liSize * nbElts) * (parseInt(v) / 100)); div.css(sizeCss, pxsize + 'px'); }
            if (divSize === 0) { divSize = div.width(); }
            if (o.vertical) { div.css("width", liSizeV + 'px'); ul.css("width", liSizeV + 'px'); li.css('margin-bottom', (parseInt(li.css('margin-bottom')) * 2) + 'px'); li.eq(li.size() - 1).css('margin-bottom', li.css('margin-top')); } else { div.css('height', liSizeV + 'px'); ul.css('height', liSizeV + 'px'); }
            if (cssU == '%') {
                v = divSize / li.width(); if (v % 1 !== 0) { v += 1; }
                v = parseInt(v);
            }
            var divVSize = div.height(); if (defaultBtn) {
                next.css({ 'z-index': 200, 'position': 'absolute' }); prev.css({ 'z-index': 200, 'position': 'absolute' }); if (o.vertical) { prev.css({ 'width': prev.width(), 'height': prev.height(), 'top': '0px', 'left': parseInt(liSizeV / 2) - parseInt(prev.width() / 2) + 'px' }); next.css({ 'width': prev.width(), 'height': prev.height(), 'top': (divVSize - prev.height()) + 'px', 'left': parseInt(liSizeV / 2) - parseInt(prev.width() / 2) + 'px' }); }
                else { prev.css({ 'left': '0px', 'top': parseInt(liSizeV / 2) - parseInt(prev.height() / 2) + 'px' }); next.css({ 'right': '0px', 'top': parseInt(liSizeV / 2) - parseInt(prev.height() / 2) + 'px' }); }
            }
            if (o.btnPrev) {
                $(o.btnPrev).bind(o.evtStart, function () {
                    if (defaultBtn) { o.btnPrev.css('opacity', 0.9); }
                    running = true; direction = 'backward'; return backward();
                }); $(o.btnPrev).bind(o.evtStop, function () {
                    if (defaultBtn) { o.btnPrev.css('opacity', 0.6); }
                    running = false; direction = null; return stop();
                });
            }
            if (o.btnNext) {
                $(o.btnNext).bind(o.evtStart, function () {
                    if (defaultBtn) { o.btnNext.css('opacity', 0.9); }
                    running = true; direction = 'forward'; return forward();
                }); $(o.btnNext).bind(o.evtStop, function () {
                    if (defaultBtn) { o.btnNext.css('opacity', 0.6); }
                    running = false; direction = null; return stop();
                });
            }
            if (o.auto === true) { running = true; forward(); }
            if (o.mouseWheel && div.mousewheel) {
                div.mousewheel(function (e, d) {
                    if (!o.circular && (d > 0 ? (curr + divSize < ulSize) : (curr > 0)) || o.circular) {
                        mousewheelN += 1; if (running === false) {
                            if (d > 0) { forward(step, true); }
                            else { backward(step, true); }
                            running = true;
                        }
                    }
                });
            }
            function forward(stepsize, once) {
                var s = (stepsize ? stepsize : step); if (running === true && direction === "backward") { return; }
                if (!o.circular) { if (curr + s + (o.vertical ? divVSize : divSize) > eltsSize) { s = eltsSize - (curr + (o.vertical ? divVSize : divSize)); } }
                ul.animate(animCss == "left" ? { left: -(curr + s)} : { top: -(curr + s) }, o.speed, o.easing, function () {
                    curr += s; if (o.circular) { if (curr + (o.vertical ? divVSize : divSize) + liSize >= allEltsSize) { ul.css(o.vertical ? 'top' : 'left', -curr + eltsSize); curr -= eltsSize; } }
                    if (!once && running) { forward(); }
                    else if (once) {
                        if (--mousewheelN > 0) { this.forward(step, true); }
                        else { running = false; direction = null; }
                    }
                });
            }
            function backward(stepsize, once) {
                var s = (stepsize ? stepsize : step); if (running === true && direction === "forward") { return; }
                if (!o.circular) { if (curr - s < 0) { s = curr - 0; } }
                ul.animate(animCss == "left" ? { left: -(curr - s)} : { top: -(curr - s) }, o.speed, o.easing, function () {
                    curr -= s; if (o.circular) { if (curr <= liSize) { ul.css(o.vertical ? 'top' : 'left', -(curr + eltsSize)); curr += eltsSize; } }
                    if (!once && running) { backward(); }
                    else if (once) {
                        if (--mousewheelN > 0) { backward(step, true); }
                        else { running = false; direction = null; }
                    }
                });
            }
            function stop() {
                if (!o.eltByElt) { ul.stop(); curr = 0 - parseInt(ul.css(animCss)); }
                running = false; direction = null;
            }
            function imgSize(el, dimension) {
                if (dimension == 'width') { return el.find('img').width(); }
                else { return el.find('img').height(); }
            }
            function elHeight(el) {
                var elImg = el.find('img'); if (o.vertical) { return parseInt(el.css('margin-left')) + parseInt(el.css('margin-right')) + parseInt(elImg.width()) + parseInt(el.css('border-left-width')) + parseInt(el.css('border-right-width')) + parseInt(el.css('padding-right')) + parseInt(el.css('padding-left')); }
                else { return parseInt(el.css('margin-top')) + parseInt(el.css('margin-bottom')) + parseInt(elImg.width()) + parseInt(el.css('border-top-height')) + parseInt(el.css('border-bottom-height')) + parseInt(el.css('padding-top')) + parseInt(el.css('padding-bottom')); }
            }
            function debug(html) { $('#debug').html($('#debug').html() + html + "<br/>"); }
        });
    }; function css(el, prop) { return parseInt($.css(el[0], prop)) || 0; }
    function width(el) { return el[0].offsetWidth + css(el, 'marginLeft') + css(el, 'marginRight'); }
    function height(el) { return el[0].offsetHeight + css(el, 'marginTop') + css(el, 'marginBottom'); }
})(jQuery);
/*
* jQuery Cycle Plugin (with Transition Definitions)
* Examples and documentation at: http://jquery.malsup.com/cycle/
* Copyright (c) 2007-2010 M. Alsup
* Version: 2.80 (05-MAR-2010)
* 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.2.6 or later
*/
(function ($) { var ver = "2.80"; if ($.support == undefined) { $.support = { opacity: !($.browser.msie) }; } function debug(s) { if ($.fn.cycle.debug) { log(s); } } function log() { if (window.console && window.console.log) { window.console.log("[cycle] " + Array.prototype.join.call(arguments, " ")); } } $.fn.cycle = function (options, arg2) { var o = { s: this.selector, c: this.context }; if (this.length === 0 && options != "stop") { if (!$.isReady && o.s) { log("DOM not ready, queuing slideshow"); $(function () { $(o.s, o.c).cycle(options, arg2); }); return this; } log("terminating; zero elements found by selector" + ($.isReady ? "" : " (DOM not ready)")); return this; } return this.each(function () { var opts = handleArguments(this, options, arg2); if (opts === false) { return; } opts.updateActivePagerLink = opts.updateActivePagerLink || $.fn.cycle.updateActivePagerLink; if (this.cycleTimeout) { clearTimeout(this.cycleTimeout); } this.cycleTimeout = this.cyclePause = 0; var $cont = $(this); var $slides = opts.slideExpr ? $(opts.slideExpr, this) : $cont.children(); var els = $slides.get(); if (els.length < 2) { log("terminating; too few slides: " + els.length); return; } var opts2 = buildOptions($cont, $slides, els, opts, o); if (opts2 === false) { return; } var startTime = opts2.continuous ? 10 : getTimeout(opts2.currSlide, opts2.nextSlide, opts2, !opts2.rev); if (startTime) { startTime += (opts2.delay || 0); if (startTime < 10) { startTime = 10; } debug("first timeout: " + startTime); this.cycleTimeout = setTimeout(function () { go(els, opts2, 0, !opts2.rev); }, startTime); } }); }; function handleArguments(cont, options, arg2) { if (cont.cycleStop == undefined) { cont.cycleStop = 0; } if (options === undefined || options === null) { options = {}; } if (options.constructor == String) { switch (options) { case "destroy": case "stop": var opts = $(cont).data("cycle.opts"); if (!opts) { return false; } cont.cycleStop++; if (cont.cycleTimeout) { clearTimeout(cont.cycleTimeout); } cont.cycleTimeout = 0; $(cont).removeData("cycle.opts"); if (options == "destroy") { destroy(opts); } return false; case "toggle": cont.cyclePause = (cont.cyclePause === 1) ? 0 : 1; return false; case "pause": cont.cyclePause = 1; return false; case "resume": cont.cyclePause = 0; if (arg2 === true) { options = $(cont).data("cycle.opts"); if (!options) { log("options not found, can not resume"); return false; } if (cont.cycleTimeout) { clearTimeout(cont.cycleTimeout); cont.cycleTimeout = 0; } go(options.elements, options, 1, 1); } return false; case "prev": case "next": var opts = $(cont).data("cycle.opts"); if (!opts) { log('options not found, "prev/next" ignored'); return false; } $.fn.cycle[options](opts); return false; default: options = { fx: options }; } return options; } else { if (options.constructor == Number) { var num = options; options = $(cont).data("cycle.opts"); if (!options) { log("options not found, can not advance slide"); return false; } if (num < 0 || num >= options.elements.length) { log("invalid slide index: " + num); return false; } options.nextSlide = num; if (cont.cycleTimeout) { clearTimeout(cont.cycleTimeout); cont.cycleTimeout = 0; } if (typeof arg2 == "string") { options.oneTimeFx = arg2; } go(options.elements, options, 1, num >= options.currSlide); return false; } } return options; } function removeFilter(el, opts) { if (!$.support.opacity && opts.cleartype && el.style.filter) { try { el.style.removeAttribute("filter"); } catch (smother) { } } } function destroy(opts) { if (opts.next) { $(opts.next).unbind(opts.prevNextEvent); } if (opts.prev) { $(opts.prev).unbind(opts.prevNextEvent); } if (opts.pager || opts.pagerAnchorBuilder) { $.each(opts.pagerAnchors || [], function () { this.unbind().remove(); }); } opts.pagerAnchors = null; if (opts.destroy) { opts.destroy(opts); } } function buildOptions($cont, $slides, els, options, o) { var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {}); if (opts.autostop) { opts.countdown = opts.autostopCount || els.length; } var cont = $cont[0]; $cont.data("cycle.opts", opts); opts.$cont = $cont; opts.stopCount = cont.cycleStop; opts.elements = els; opts.before = opts.before ? [opts.before] : []; opts.after = opts.after ? [opts.after] : []; opts.after.unshift(function () { opts.busy = 0; }); if (!$.support.opacity && opts.cleartype) { opts.after.push(function () { removeFilter(this, opts); }); } if (opts.continuous) { opts.after.push(function () { go(els, opts, 0, !opts.rev); }); } saveOriginalOpts(opts); if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg) { clearTypeFix($slides); } if ($cont.css("position") == "static") { $cont.css("position", "relative"); } if (opts.width) { $cont.width(opts.width); } if (opts.height && opts.height != "auto") { $cont.height(opts.height); } if (opts.startingSlide) { opts.startingSlide = parseInt(opts.startingSlide); } if (opts.random) { opts.randomMap = []; for (var i = 0; i < els.length; i++) { opts.randomMap.push(i); } opts.randomMap.sort(function (a, b) { return Math.random() - 0.5; }); opts.randomIndex = 1; opts.startingSlide = opts.randomMap[1]; } else { if (opts.startingSlide >= els.length) { opts.startingSlide = 0; } } opts.currSlide = opts.startingSlide || 0; var first = opts.startingSlide; $slides.css({ position: "absolute", top: 0, left: 0 }).hide().each(function (i) { var z = first ? i >= first ? els.length - (i - first) : first - i : els.length - i; $(this).css("z-index", z); }); $(els[first]).css("opacity", 1).show(); removeFilter(els[first], opts); if (opts.fit && opts.width) { $slides.width(opts.width); } if (opts.fit && opts.height && opts.height != "auto") { $slides.height(opts.height); } var reshape = opts.containerResize && !$cont.innerHeight(); if (reshape) { var maxw = 0, maxh = 0; for (var j = 0; j < els.length; j++) { var $e = $(els[j]), e = $e[0], w = $e.outerWidth(), h = $e.outerHeight(); if (!w) { w = e.offsetWidth || e.width || $e.attr("width"); } if (!h) { h = e.offsetHeight || e.height || $e.attr("height"); } maxw = w > maxw ? w : maxw; maxh = h > maxh ? h : maxh; } if (maxw > 0 && maxh > 0) { $cont.css({ width: maxw + "px", height: maxh + "px" }); } } if (opts.pause) { $cont.hover(function () { this.cyclePause++; }, function () { this.cyclePause--; }); } if (supportMultiTransitions(opts) === false) { return false; } var requeue = false; options.requeueAttempts = options.requeueAttempts || 0; $slides.each(function () { var $el = $(this); this.cycleH = (opts.fit && opts.height) ? opts.height : ($el.height() || this.offsetHeight || this.height || $el.attr("height") || 0); this.cycleW = (opts.fit && opts.width) ? opts.width : ($el.width() || this.offsetWidth || this.width || $el.attr("width") || 0); if ($el.is("img")) { var loadingIE = ($.browser.msie && this.cycleW == 28 && this.cycleH == 30 && !this.complete); var loadingFF = ($.browser.mozilla && this.cycleW == 34 && this.cycleH == 19 && !this.complete); var loadingOp = ($.browser.opera && ((this.cycleW == 42 && this.cycleH == 19) || (this.cycleW == 37 && this.cycleH == 17)) && !this.complete); var loadingOther = (this.cycleH == 0 && this.cycleW == 0 && !this.complete); if (loadingIE || loadingFF || loadingOp || loadingOther) { if (o.s && opts.requeueOnImageNotLoaded && ++options.requeueAttempts < 100) { log(options.requeueAttempts, " - img slide not loaded, requeuing slideshow: ", this.src, this.cycleW, this.cycleH); setTimeout(function () { $(o.s, o.c).cycle(options); }, opts.requeueTimeout); requeue = true; return false; } else { log("could not determine size of image: " + this.src, this.cycleW, this.cycleH); } } } return true; }); if (requeue) { return false; } opts.cssBefore = opts.cssBefore || {}; opts.animIn = opts.animIn || {}; opts.animOut = opts.animOut || {}; $slides.not(":eq(" + first + ")").css(opts.cssBefore); if (opts.cssFirst) { $($slides[first]).css(opts.cssFirst); } if (opts.timeout) { opts.timeout = parseInt(opts.timeout); if (opts.speed.constructor == String) { opts.speed = $.fx.speeds[opts.speed] || parseInt(opts.speed); } if (!opts.sync) { opts.speed = opts.speed / 2; } while ((opts.timeout - opts.speed) < 250) { opts.timeout += opts.speed; } } if (opts.easing) { opts.easeIn = opts.easeOut = opts.easing; } if (!opts.speedIn) { opts.speedIn = opts.speed; } if (!opts.speedOut) { opts.speedOut = opts.speed; } opts.slideCount = els.length; opts.currSlide = opts.lastSlide = first; if (opts.random) { if (++opts.randomIndex == els.length) { opts.randomIndex = 0; } opts.nextSlide = opts.randomMap[opts.randomIndex]; } else { opts.nextSlide = opts.startingSlide >= (els.length - 1) ? 0 : opts.startingSlide + 1; } if (!opts.multiFx) { var init = $.fn.cycle.transitions[opts.fx]; if ($.isFunction(init)) { init($cont, $slides, opts); } else { if (opts.fx != "custom" && !opts.multiFx) { log("unknown transition: " + opts.fx, "; slideshow terminating"); return false; } } } var e0 = $slides[first]; if (opts.before.length) { opts.before[0].apply(e0, [e0, e0, opts, true]); } if (opts.after.length > 1) { opts.after[1].apply(e0, [e0, e0, opts, true]); } if (opts.next) { $(opts.next).bind(opts.prevNextEvent, function () { return advance(opts, opts.rev ? -1 : 1); }); } if (opts.prev) { $(opts.prev).bind(opts.prevNextEvent, function () { return advance(opts, opts.rev ? 1 : -1); }); } if (opts.pager || opts.pagerAnchorBuilder) { buildPager(els, opts); } exposeAddSlide(opts, els); return opts; } function saveOriginalOpts(opts) { opts.original = { before: [], after: [] }; opts.original.cssBefore = $.extend({}, opts.cssBefore); opts.original.cssAfter = $.extend({}, opts.cssAfter); opts.original.animIn = $.extend({}, opts.animIn); opts.original.animOut = $.extend({}, opts.animOut); $.each(opts.before, function () { opts.original.before.push(this); }); $.each(opts.after, function () { opts.original.after.push(this); }); } function supportMultiTransitions(opts) { var i, tx, txs = $.fn.cycle.transitions; if (opts.fx.indexOf(",") > 0) { opts.multiFx = true; opts.fxs = opts.fx.replace(/\s*/g, "").split(","); for (i = 0; i < opts.fxs.length; i++) { var fx = opts.fxs[i]; tx = txs[fx]; if (!tx || !txs.hasOwnProperty(fx) || !$.isFunction(tx)) { log("discarding unknown transition: ", fx); opts.fxs.splice(i, 1); i--; } } if (!opts.fxs.length) { log("No valid transitions named; slideshow terminating."); return false; } } else { if (opts.fx == "all") { opts.multiFx = true; opts.fxs = []; for (p in txs) { tx = txs[p]; if (txs.hasOwnProperty(p) && $.isFunction(tx)) { opts.fxs.push(p); } } } } if (opts.multiFx && opts.randomizeEffects) { var r1 = Math.floor(Math.random() * 20) + 30; for (i = 0; i < r1; i++) { var r2 = Math.floor(Math.random() * opts.fxs.length); opts.fxs.push(opts.fxs.splice(r2, 1)[0]); } debug("randomized fx sequence: ", opts.fxs); } return true; } function exposeAddSlide(opts, els) { opts.addSlide = function (newSlide, prepend) { var $s = $(newSlide), s = $s[0]; if (!opts.autostopCount) { opts.countdown++; } els[prepend ? "unshift" : "push"](s); if (opts.els) { opts.els[prepend ? "unshift" : "push"](s); } opts.slideCount = els.length; $s.css("position", "absolute"); $s[prepend ? "prependTo" : "appendTo"](opts.$cont); if (prepend) { opts.currSlide++; opts.nextSlide++; } if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg) { clearTypeFix($s); } if (opts.fit && opts.width) { $s.width(opts.width); } if (opts.fit && opts.height && opts.height != "auto") { $slides.height(opts.height); } s.cycleH = (opts.fit && opts.height) ? opts.height : $s.height(); s.cycleW = (opts.fit && opts.width) ? opts.width : $s.width(); $s.css(opts.cssBefore); if (opts.pager || opts.pagerAnchorBuilder) { $.fn.cycle.createPagerAnchor(els.length - 1, s, $(opts.pager), els, opts); } if ($.isFunction(opts.onAddSlide)) { opts.onAddSlide($s); } else { $s.hide(); } }; } $.fn.cycle.resetState = function (opts, fx) { fx = fx || opts.fx; opts.before = []; opts.after = []; opts.cssBefore = $.extend({}, opts.original.cssBefore); opts.cssAfter = $.extend({}, opts.original.cssAfter); opts.animIn = $.extend({}, opts.original.animIn); opts.animOut = $.extend({}, opts.original.animOut); opts.fxFn = null; $.each(opts.original.before, function () { opts.before.push(this); }); $.each(opts.original.after, function () { opts.after.push(this); }); var init = $.fn.cycle.transitions[fx]; if ($.isFunction(init)) { init(opts.$cont, $(opts.elements), opts); } }; function go(els, opts, manual, fwd) { if (manual && opts.busy && opts.manualTrump) { $(els).stop(true, true); opts.busy = false; } if (opts.busy) { return; } var p = opts.$cont[0], curr = els[opts.currSlide], next = els[opts.nextSlide]; if (p.cycleStop != opts.stopCount || p.cycleTimeout === 0 && !manual) { return; } if (!manual && !p.cyclePause && ((opts.autostop && (--opts.countdown <= 0)) || (opts.nowrap && !opts.random && opts.nextSlide < opts.currSlide))) { if (opts.end) { opts.end(opts); } return; } if ((manual || !p.cyclePause) && (opts.nextSlide != opts.currSlide)) { var fx = opts.fx; curr.cycleH = curr.cycleH || $(curr).height(); curr.cycleW = curr.cycleW || $(curr).width(); next.cycleH = next.cycleH || $(next).height(); next.cycleW = next.cycleW || $(next).width(); if (opts.multiFx) { if (opts.lastFx == undefined || ++opts.lastFx >= opts.fxs.length) { opts.lastFx = 0; } fx = opts.fxs[opts.lastFx]; opts.currFx = fx; } if (opts.oneTimeFx) { fx = opts.oneTimeFx; opts.oneTimeFx = null; } $.fn.cycle.resetState(opts, fx); if (opts.before.length) { $.each(opts.before, function (i, o) { if (p.cycleStop != opts.stopCount) { return; } o.apply(next, [curr, next, opts, fwd]); }); } var after = function () { $.each(opts.after, function (i, o) { if (p.cycleStop != opts.stopCount) { return; } o.apply(next, [curr, next, opts, fwd]); }); }; opts.busy = 1; if (opts.fxFn) { opts.fxFn(curr, next, opts, after, fwd); } else { if ($.isFunction($.fn.cycle[opts.fx])) { $.fn.cycle[opts.fx](curr, next, opts, after); } else { $.fn.cycle.custom(curr, next, opts, after, manual && opts.fastOnEvent); } } opts.lastSlide = opts.currSlide; if (opts.random) { opts.currSlide = opts.nextSlide; if (++opts.randomIndex == els.length) { opts.randomIndex = 0; } opts.nextSlide = opts.randomMap[opts.randomIndex]; } else { var roll = (opts.nextSlide + 1) == els.length; opts.nextSlide = roll ? 0 : opts.nextSlide + 1; opts.currSlide = roll ? els.length - 1 : opts.nextSlide - 1; } if (opts.pager) { opts.updateActivePagerLink(opts.pager, opts.currSlide, opts.activePagerClass); } } var ms = 0; if (opts.timeout && !opts.continuous) { ms = getTimeout(curr, next, opts, fwd); } else { if (opts.continuous && p.cyclePause) { ms = 10; } } if (ms > 0) { p.cycleTimeout = setTimeout(function () { go(els, opts, 0, !opts.rev); }, ms); } } $.fn.cycle.updateActivePagerLink = function (pager, currSlide, clsName) { $(pager).each(function () { $(this).find("a").removeClass(clsName).filter("a:eq(" + currSlide + ")").addClass(clsName); }); }; function getTimeout(curr, next, opts, fwd) { if (opts.timeoutFn) { var t = opts.timeoutFn(curr, next, opts, fwd); while ((t - opts.speed) < 250) { t += opts.speed; } debug("calculated timeout: " + t + "; speed: " + opts.speed); if (t !== false) { return t; } } return opts.timeout; } $.fn.cycle.next = function (opts) { advance(opts, opts.rev ? -1 : 1); }; $.fn.cycle.prev = function (opts) { advance(opts, opts.rev ? 1 : -1); }; function advance(opts, val) { var els = opts.elements; var p = opts.$cont[0], timeout = p.cycleTimeout; if (timeout) { clearTimeout(timeout); p.cycleTimeout = 0; } if (opts.random && val < 0) { opts.randomIndex--; if (--opts.randomIndex == -2) { opts.randomIndex = els.length - 2; } else { if (opts.randomIndex == -1) { opts.randomIndex = els.length - 1; } } opts.nextSlide = opts.randomMap[opts.randomIndex]; } else { if (opts.random) { opts.nextSlide = opts.randomMap[opts.randomIndex]; } else { opts.nextSlide = opts.currSlide + val; if (opts.nextSlide < 0) { if (opts.nowrap) { return false; } opts.nextSlide = els.length - 1; } else { if (opts.nextSlide >= els.length) { if (opts.nowrap) { return false; } opts.nextSlide = 0; } } } } if ($.isFunction(opts.prevNextClick)) { opts.prevNextClick(val > 0, opts.nextSlide, els[opts.nextSlide]); } go(els, opts, 1, val >= 0); return false; } function buildPager(els, opts) { var $p = $(opts.pager); $.each(els, function (i, o) { $.fn.cycle.createPagerAnchor(i, o, $p, els, opts); }); opts.updateActivePagerLink(opts.pager, opts.startingSlide, opts.activePagerClass); } $.fn.cycle.createPagerAnchor = function (i, el, $p, els, opts) { var a; if ($.isFunction(opts.pagerAnchorBuilder)) { a = opts.pagerAnchorBuilder(i, el); } else { a = '<a href="#">' + (i + 1) + "</a>"; } if (!a) { return; } var $a = $(a); if ($a.parents("body").length === 0) { var arr = []; if ($p.length > 1) { $p.each(function () { var $clone = $a.clone(true); $(this).append($clone); arr.push($clone[0]); }); $a = $(arr); } else { $a.appendTo($p); } } opts.pagerAnchors = opts.pagerAnchors || []; opts.pagerAnchors.push($a); $a.bind(opts.pagerEvent, function (e) { e.preventDefault(); opts.nextSlide = i; var p = opts.$cont[0], timeout = p.cycleTimeout; if (timeout) { clearTimeout(timeout); p.cycleTimeout = 0; } if ($.isFunction(opts.pagerClick)) { opts.pagerClick(opts.nextSlide, els[opts.nextSlide]); } go(els, opts, 1, opts.currSlide < i); }); if (!/^click/.test(opts.pagerEvent) && !opts.allowPagerClickBubble) { $a.bind("click.cycle", function () { return false; }); } if (opts.pauseOnPagerHover) { $a.hover(function () { opts.$cont[0].cyclePause++; }, function () { opts.$cont[0].cyclePause--; }); } }; $.fn.cycle.hopsFromLast = function (opts, fwd) { var hops, l = opts.lastSlide, c = opts.currSlide; if (fwd) { hops = c > l ? c - l : opts.slideCount - l; } else { hops = c < l ? l - c : l + opts.slideCount - c; } return hops; }; function clearTypeFix($slides) { function hex(s) { s = parseInt(s).toString(16); return s.length < 2 ? "0" + s : s; } function getBg(e) { for (; e && e.nodeName.toLowerCase() != "html"; e = e.parentNode) { var v = $.css(e, "background-color"); if (v.indexOf("rgb") >= 0) { var rgb = v.match(/\d+/g); return "#" + hex(rgb[0]) + hex(rgb[1]) + hex(rgb[2]); } if (v && v != "transparent") { return v; } } return "#ffffff"; } $slides.each(function () { $(this).css("background-color", getBg(this)); }); } $.fn.cycle.commonReset = function (curr, next, opts, w, h, rev) { $(opts.elements).not(curr).hide(); opts.cssBefore.opacity = 1; opts.cssBefore.display = "block"; if (w !== false && next.cycleW > 0) { opts.cssBefore.width = next.cycleW; } if (h !== false && next.cycleH > 0) { opts.cssBefore.height = next.cycleH; } opts.cssAfter = opts.cssAfter || {}; opts.cssAfter.display = "none"; $(curr).css("zIndex", opts.slideCount + (rev === true ? 1 : 0)); $(next).css("zIndex", opts.slideCount + (rev === true ? 0 : 1)); }; $.fn.cycle.custom = function (curr, next, opts, cb, speedOverride) { var $l = $(curr), $n = $(next); var speedIn = opts.speedIn, speedOut = opts.speedOut, easeIn = opts.easeIn, easeOut = opts.easeOut; $n.css(opts.cssBefore); if (speedOverride) { if (typeof speedOverride == "number") { speedIn = speedOut = speedOverride; } else { speedIn = speedOut = 1; } easeIn = easeOut = null; } var fn = function () { $n.animate(opts.animIn, speedIn, easeIn, cb); }; $l.animate(opts.animOut, speedOut, easeOut, function () { if (opts.cssAfter) { $l.css(opts.cssAfter); } if (!opts.sync) { fn(); } }); if (opts.sync) { fn(); } }; $.fn.cycle.transitions = { fade: function ($cont, $slides, opts) { $slides.not(":eq(" + opts.currSlide + ")").css("opacity", 0); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts); opts.cssBefore.opacity = 0; }); opts.animIn = { opacity: 1 }; opts.animOut = { opacity: 0 }; opts.cssBefore = { top: 0, left: 0 }; } }; $.fn.cycle.ver = function () { return ver; }; $.fn.cycle.defaults = { fx: "fade", timeout: 4000, timeoutFn: null, continuous: 0, speed: 1000, speedIn: null, speedOut: null, next: null, prev: null, prevNextClick: null, prevNextEvent: "click.cycle", pager: null, pagerClick: null, pagerEvent: "click.cycle", allowPagerClickBubble: false, pagerAnchorBuilder: null, before: null, after: null, end: null, easing: null, easeIn: null, easeOut: null, shuffle: null, animIn: null, animOut: null, cssBefore: null, cssAfter: null, fxFn: null, height: "auto", startingSlide: 0, sync: 1, random: 0, fit: 0, containerResize: 1, pause: 0, pauseOnPagerHover: 0, autostop: 0, autostopCount: 0, delay: 0, slideExpr: null, cleartype: !$.support.opacity, cleartypeNoBg: false, nowrap: 0, fastOnEvent: 0, randomizeEffects: 1, rev: 0, manualTrump: true, requeueOnImageNotLoaded: true, requeueTimeout: 250, activePagerClass: "activeSlide", updateActivePagerLink: null }; })(jQuery);
/*
* jQuery Cycle Plugin Transition Definitions
* This script is a plugin for the jQuery Cycle Plugin
* Examples and documentation at: http://malsup.com/jquery/cycle/
* Copyright (c) 2007-2008 M. Alsup
* Version:	 2.72
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
(function ($) { $.fn.cycle.transitions.none = function ($cont, $slides, opts) { opts.fxFn = function (curr, next, opts, after) { $(next).show(); $(curr).hide(); after(); }; }; $.fn.cycle.transitions.scrollUp = function ($cont, $slides, opts) { $cont.css("overflow", "hidden"); opts.before.push($.fn.cycle.commonReset); var h = $cont.height(); opts.cssBefore = { top: h, left: 0 }; opts.cssFirst = { top: 0 }; opts.animIn = { top: 0 }; opts.animOut = { top: -h }; }; $.fn.cycle.transitions.scrollDown = function ($cont, $slides, opts) { $cont.css("overflow", "hidden"); opts.before.push($.fn.cycle.commonReset); var h = $cont.height(); opts.cssFirst = { top: 0 }; opts.cssBefore = { top: -h, left: 0 }; opts.animIn = { top: 0 }; opts.animOut = { top: h }; }; $.fn.cycle.transitions.scrollLeft = function ($cont, $slides, opts) { $cont.css("overflow", "hidden"); opts.before.push($.fn.cycle.commonReset); var w = $cont.width(); opts.cssFirst = { left: 0 }; opts.cssBefore = { left: w, top: 0 }; opts.animIn = { left: 0 }; opts.animOut = { left: 0 - w }; }; $.fn.cycle.transitions.scrollRight = function ($cont, $slides, opts) { $cont.css("overflow", "hidden"); opts.before.push($.fn.cycle.commonReset); var w = $cont.width(); opts.cssFirst = { left: 0 }; opts.cssBefore = { left: -w, top: 0 }; opts.animIn = { left: 0 }; opts.animOut = { left: w }; }; $.fn.cycle.transitions.scrollHorz = function ($cont, $slides, opts) { $cont.css("overflow", "hidden").width(); opts.before.push(function (curr, next, opts, fwd) { $.fn.cycle.commonReset(curr, next, opts); opts.cssBefore.left = fwd ? (next.cycleW - 1) : (1 - next.cycleW); opts.animOut.left = fwd ? -curr.cycleW : curr.cycleW; }); opts.cssFirst = { left: 0 }; opts.cssBefore = { top: 0 }; opts.animIn = { left: 0 }; opts.animOut = { top: 0 }; }; $.fn.cycle.transitions.scrollVert = function ($cont, $slides, opts) { $cont.css("overflow", "hidden"); opts.before.push(function (curr, next, opts, fwd) { $.fn.cycle.commonReset(curr, next, opts); opts.cssBefore.top = fwd ? (1 - next.cycleH) : (next.cycleH - 1); opts.animOut.top = fwd ? curr.cycleH : -curr.cycleH; }); opts.cssFirst = { top: 0 }; opts.cssBefore = { left: 0 }; opts.animIn = { top: 0 }; opts.animOut = { left: 0 }; }; $.fn.cycle.transitions.slideX = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $(opts.elements).not(curr).hide(); $.fn.cycle.commonReset(curr, next, opts, false, true); opts.animIn.width = next.cycleW; }); opts.cssBefore = { left: 0, top: 0, width: 0 }; opts.animIn = { width: "show" }; opts.animOut = { width: 0 }; }; $.fn.cycle.transitions.slideY = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $(opts.elements).not(curr).hide(); $.fn.cycle.commonReset(curr, next, opts, true, false); opts.animIn.height = next.cycleH; }); opts.cssBefore = { left: 0, top: 0, height: 0 }; opts.animIn = { height: "show" }; opts.animOut = { height: 0 }; }; $.fn.cycle.transitions.shuffle = function ($cont, $slides, opts) { var i, w = $cont.css("overflow", "visible").width(); $slides.css({ left: 0, top: 0 }); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, true, true); }); if (!opts.speedAdjusted) { opts.speed = opts.speed / 2; opts.speedAdjusted = true; } opts.random = 0; opts.shuffle = opts.shuffle || { left: -w, top: 15 }; opts.els = []; for (i = 0; i < $slides.length; i++) { opts.els.push($slides[i]); } for (i = 0; i < opts.currSlide; i++) { opts.els.push(opts.els.shift()); } opts.fxFn = function (curr, next, opts, cb, fwd) { var $el = fwd ? $(curr) : $(next); $(next).css(opts.cssBefore); var count = opts.slideCount; $el.animate(opts.shuffle, opts.speedIn, opts.easeIn, function () { var hops = $.fn.cycle.hopsFromLast(opts, fwd); for (var k = 0; k < hops; k++) { fwd ? opts.els.push(opts.els.shift()) : opts.els.unshift(opts.els.pop()); } if (fwd) { for (var i = 0, len = opts.els.length; i < len; i++) { $(opts.els[i]).css("z-index", len - i + count); } } else { var z = $(curr).css("z-index"); $el.css("z-index", parseInt(z) + 1 + count); } $el.animate({ left: 0, top: 0 }, opts.speedOut, opts.easeOut, function () { $(fwd ? this : curr).hide(); if (cb) { cb(); } }); }); }; opts.cssBefore = { display: "block", opacity: 1, top: 0, left: 0 }; }; $.fn.cycle.transitions.turnUp = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, false); opts.cssBefore.top = next.cycleH; opts.animIn.height = next.cycleH; }); opts.cssFirst = { top: 0 }; opts.cssBefore = { left: 0, height: 0 }; opts.animIn = { top: 0 }; opts.animOut = { height: 0 }; }; $.fn.cycle.transitions.turnDown = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, false); opts.animIn.height = next.cycleH; opts.animOut.top = curr.cycleH; }); opts.cssFirst = { top: 0 }; opts.cssBefore = { left: 0, top: 0, height: 0 }; opts.animOut = { height: 0 }; }; $.fn.cycle.transitions.turnLeft = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, false, true); opts.cssBefore.left = next.cycleW; opts.animIn.width = next.cycleW; }); opts.cssBefore = { top: 0, width: 0 }; opts.animIn = { left: 0 }; opts.animOut = { width: 0 }; }; $.fn.cycle.transitions.turnRight = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, false, true); opts.animIn.width = next.cycleW; opts.animOut.left = curr.cycleW; }); opts.cssBefore = { top: 0, left: 0, width: 0 }; opts.animIn = { left: 0 }; opts.animOut = { width: 0 }; }; $.fn.cycle.transitions.zoom = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, false, false, true); opts.cssBefore.top = next.cycleH / 2; opts.cssBefore.left = next.cycleW / 2; opts.animIn = { top: 0, left: 0, width: next.cycleW, height: next.cycleH }; opts.animOut = { width: 0, height: 0, top: curr.cycleH / 2, left: curr.cycleW / 2 }; }); opts.cssFirst = { top: 0, left: 0 }; opts.cssBefore = { width: 0, height: 0 }; }; $.fn.cycle.transitions.fadeZoom = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, false, false); opts.cssBefore.left = next.cycleW / 2; opts.cssBefore.top = next.cycleH / 2; opts.animIn = { top: 0, left: 0, width: next.cycleW, height: next.cycleH }; }); opts.cssBefore = { width: 0, height: 0 }; opts.animOut = { opacity: 0 }; }; $.fn.cycle.transitions.blindX = function ($cont, $slides, opts) { var w = $cont.css("overflow", "hidden").width(); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts); opts.animIn.width = next.cycleW; opts.animOut.left = curr.cycleW; }); opts.cssBefore = { left: w, top: 0 }; opts.animIn = { left: 0 }; opts.animOut = { left: w }; }; $.fn.cycle.transitions.blindY = function ($cont, $slides, opts) { var h = $cont.css("overflow", "hidden").height(); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts); opts.animIn.height = next.cycleH; opts.animOut.top = curr.cycleH; }); opts.cssBefore = { top: h, left: 0 }; opts.animIn = { top: 0 }; opts.animOut = { top: h }; }; $.fn.cycle.transitions.blindZ = function ($cont, $slides, opts) { var h = $cont.css("overflow", "hidden").height(); var w = $cont.width(); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts); opts.animIn.height = next.cycleH; opts.animOut.top = curr.cycleH; }); opts.cssBefore = { top: h, left: w }; opts.animIn = { top: 0, left: 0 }; opts.animOut = { top: h, left: w }; }; $.fn.cycle.transitions.growX = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, false, true); opts.cssBefore.left = this.cycleW / 2; opts.animIn = { left: 0, width: this.cycleW }; opts.animOut = { left: 0 }; }); opts.cssBefore = { width: 0, top: 0 }; }; $.fn.cycle.transitions.growY = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, false); opts.cssBefore.top = this.cycleH / 2; opts.animIn = { top: 0, height: this.cycleH }; opts.animOut = { top: 0 }; }); opts.cssBefore = { height: 0, left: 0 }; }; $.fn.cycle.transitions.curtainX = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, false, true, true); opts.cssBefore.left = next.cycleW / 2; opts.animIn = { left: 0, width: this.cycleW }; opts.animOut = { left: curr.cycleW / 2, width: 0 }; }); opts.cssBefore = { top: 0, width: 0 }; }; $.fn.cycle.transitions.curtainY = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, false, true); opts.cssBefore.top = next.cycleH / 2; opts.animIn = { top: 0, height: next.cycleH }; opts.animOut = { top: curr.cycleH / 2, height: 0 }; }); opts.cssBefore = { left: 0, height: 0 }; }; $.fn.cycle.transitions.cover = function ($cont, $slides, opts) { var d = opts.direction || "left"; var w = $cont.css("overflow", "hidden").width(); var h = $cont.height(); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts); if (d == "right") { opts.cssBefore.left = -w; } else { if (d == "up") { opts.cssBefore.top = h; } else { if (d == "down") { opts.cssBefore.top = -h; } else { opts.cssBefore.left = w; } } } }); opts.animIn = { left: 0, top: 0 }; opts.animOut = { opacity: 1 }; opts.cssBefore = { top: 0, left: 0 }; }; $.fn.cycle.transitions.uncover = function ($cont, $slides, opts) { var d = opts.direction || "left"; var w = $cont.css("overflow", "hidden").width(); var h = $cont.height(); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, true, true); if (d == "right") { opts.animOut.left = w; } else { if (d == "up") { opts.animOut.top = -h; } else { if (d == "down") { opts.animOut.top = h; } else { opts.animOut.left = -w; } } } }); opts.animIn = { left: 0, top: 0 }; opts.animOut = { opacity: 1 }; opts.cssBefore = { top: 0, left: 0 }; }; $.fn.cycle.transitions.toss = function ($cont, $slides, opts) { var w = $cont.css("overflow", "visible").width(); var h = $cont.height(); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, true, true); if (!opts.animOut.left && !opts.animOut.top) { opts.animOut = { left: w * 2, top: -h / 2, opacity: 0 }; } else { opts.animOut.opacity = 0; } }); opts.cssBefore = { left: 0, top: 0 }; opts.animIn = { left: 0 }; }; $.fn.cycle.transitions.wipe = function ($cont, $slides, opts) { var w = $cont.css("overflow", "hidden").width(); var h = $cont.height(); opts.cssBefore = opts.cssBefore || {}; var clip; if (opts.clip) { if (/l2r/.test(opts.clip)) { clip = "rect(0px 0px " + h + "px 0px)"; } else { if (/r2l/.test(opts.clip)) { clip = "rect(0px " + w + "px " + h + "px " + w + "px)"; } else { if (/t2b/.test(opts.clip)) { clip = "rect(0px " + w + "px 0px 0px)"; } else { if (/b2t/.test(opts.clip)) { clip = "rect(" + h + "px " + w + "px " + h + "px 0px)"; } else { if (/zoom/.test(opts.clip)) { var top = parseInt(h / 2); var left = parseInt(w / 2); clip = "rect(" + top + "px " + left + "px " + top + "px " + left + "px)"; } } } } } } opts.cssBefore.clip = opts.cssBefore.clip || clip || "rect(0px 0px 0px 0px)"; var d = opts.cssBefore.clip.match(/(\d+)/g); var t = parseInt(d[0]), r = parseInt(d[1]), b = parseInt(d[2]), l = parseInt(d[3]); opts.before.push(function (curr, next, opts) { if (curr == next) { return; } var $curr = $(curr), $next = $(next); $.fn.cycle.commonReset(curr, next, opts, true, true, false); opts.cssAfter.display = "block"; var step = 1, count = parseInt((opts.speedIn / 13)) - 1; (function f() { var tt = t ? t - parseInt(step * (t / count)) : 0; var ll = l ? l - parseInt(step * (l / count)) : 0; var bb = b < h ? b + parseInt(step * ((h - b) / count || 1)) : h; var rr = r < w ? r + parseInt(step * ((w - r) / count || 1)) : w; $next.css({ clip: "rect(" + tt + "px " + rr + "px " + bb + "px " + ll + "px)" }); (step++ <= count) ? setTimeout(f, 13) : $curr.css("display", "none"); })(); }); opts.cssBefore = { display: "block", opacity: 1, top: 0, left: 0 }; opts.animIn = { left: 0 }; opts.animOut = { left: 0 }; }; })(jQuery);
$(window).load(function () {
    $(".hover_img").fadeTo("fast", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
    $(".hover_img").hover(function () {
        $(this).fadeTo("fast", 0.7); // This should set the opacity to 100% on hover

    }, function () {
        $(this).fadeTo("fast", 1.0);

    });



    $(".divTop").liquidCanvas("gradient{from:rgba(189, 232, 242, 70); to:rgba(255, 255, 255,70);} => ecken{tl:20; bl:0; br:0; tr:20}");
    $(".divMainMenu").liquidCanvas("gradient{from:rgba(189,232,242,100); to:rgba(36,99,168,100);} => rect{}");
    $(".canvas_sachversicherung").liquidCanvas("border{color:'#a1c1e6'; width:2;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_vorsorge").liquidCanvas("border{color:'#f5da4e'; width:2;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_gesundheit").liquidCanvas("border{color:'#a0d946'; width:2;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_rente").liquidCanvas("border{color:'#5eb8f2'; width:2;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_gewerblich").liquidCanvas("border{color:'#cfc3be'; width:2;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_konto").liquidCanvas("border{color:'#a6a6c7'; width:2;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_zusaetzliche").liquidCanvas("border{color:'#bcc7d1'; width:2;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".sgradient").liquidCanvas("gradient{from:rgba(255, 255, 255,1 ); to:rgba(255, 255, 255,1);} => ecken{tl:5; bl:5; br:5; tr:5}");
    $(".canvas_weis").liquidCanvas("fill{color:rgba(255,255,255,0.85)} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_sachversicherung_gradient").liquidCanvas("gradient{from:#a1c1e6 ; to:#4e97cc;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_vorsorge_gradient").liquidCanvas("gradient{from:#f5da4e ; to:#f0a818;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_gesundheit_gradient").liquidCanvas("gradient{from:#a0d946 ; to:#7bbd64;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_rente_gradient").liquidCanvas("gradient{from:#5eb8f2 ; to:#298ecc;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_gewerblich_gradient").liquidCanvas("gradient{from:#cfc3be ; to:#948c88;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_konto_gradient").liquidCanvas("gradient{from:#a6a6c7 ; to:#75758c;} => ecken{tl:10; bl:10; br:10; tr:10}");
    $(".canvas_zusaetzliche_gradient").liquidCanvas("gradient{from:#bcc7d1 ; to:#979fa8;} => ecken{tl:10; bl:10; br:10; tr:10}");

    $(".divTopNav").liquidCanvas("fill{color:rgba(255,255,255,0.70)} => ecken{tl:0; bl:10; br:0; tr:0}");
    $(".divTopContact").liquidCanvas("gradient{from:rgba(255,250,194,100); to:rgba(255,245,168,100);} => rect");
    $(".divTopContact1").liquidCanvas("gradient{from:rgba(255,250,194,100); to:rgba(255,245,168,100);} => ecken{tl:20; bl:0; br:0; tr:0}");
});


// Copyright 2006 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
document.createElement("canvas").getContext || (function () {
    var s = Math, j = s.round, F = s.sin, G = s.cos, V = s.abs, W = s.sqrt, k = 10, v = k / 2; function X() { return this.context_ || (this.context_ = new H(this)) } var L = Array.prototype.slice; function Y(b, a) { var c = L.call(arguments, 2); return function () { return b.apply(a, c.concat(L.call(arguments))) } } var M = { init: function (b) { if (/MSIE/.test(navigator.userAgent) && !window.opera) { var a = b || document; a.createElement("canvas"); a.attachEvent("onreadystatechange", Y(this.init_, this, a)) } }, init_: function (b) {
        b.namespaces.g_vml_ ||
b.namespaces.add("g_vml_", "urn:schemas-microsoft-com:vml", "#default#VML"); b.namespaces.g_o_ || b.namespaces.add("g_o_", "urn:schemas-microsoft-com:office:office", "#default#VML"); if (!b.styleSheets.ex_canvas_) { var a = b.createStyleSheet(); a.owningElement.id = "ex_canvas_"; a.cssText = "canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}g_vml_\\:*{behavior:url(#default#VML)}g_o_\\:*{behavior:url(#default#VML)}" } var c = b.getElementsByTagName("canvas"), d = 0; for (; d < c.length; d++) this.initElement(c[d])
    },
        initElement: function (b) { if (!b.getContext) { b.getContext = X; b.innerHTML = ""; b.attachEvent("onpropertychange", Z); b.attachEvent("onresize", $); var a = b.attributes; if (a.width && a.width.specified) b.style.width = a.width.nodeValue + "px"; else b.width = b.clientWidth; if (a.height && a.height.specified) b.style.height = a.height.nodeValue + "px"; else b.height = b.clientHeight } return b }
    }; function Z(b) {
        var a = b.srcElement; switch (b.propertyName) {
            case "width": a.style.width = a.attributes.width.nodeValue + "px"; a.getContext().clearRect();
                break; case "height": a.style.height = a.attributes.height.nodeValue + "px"; a.getContext().clearRect(); break
        }
    } function $(b) { var a = b.srcElement; if (a.firstChild) { a.firstChild.style.width = a.clientWidth + "px"; a.firstChild.style.height = a.clientHeight + "px" } } M.init(); var N = [], B = 0; for (; B < 16; B++) { var C = 0; for (; C < 16; C++) N[B * 16 + C] = B.toString(16) + C.toString(16) } function I() { return [[1, 0, 0], [0, 1, 0], [0, 0, 1]] } function y(b, a) {
        var c = I(), d = 0; for (; d < 3; d++) {
            var f = 0; for (; f < 3; f++) {
                var h = 0, g = 0; for (; g < 3; g++) h += b[d][g] * a[g][f]; c[d][f] =
h
            }
        } return c
    } function O(b, a) { a.fillStyle = b.fillStyle; a.lineCap = b.lineCap; a.lineJoin = b.lineJoin; a.lineWidth = b.lineWidth; a.miterLimit = b.miterLimit; a.shadowBlur = b.shadowBlur; a.shadowColor = b.shadowColor; a.shadowOffsetX = b.shadowOffsetX; a.shadowOffsetY = b.shadowOffsetY; a.strokeStyle = b.strokeStyle; a.globalAlpha = b.globalAlpha; a.arcScaleX_ = b.arcScaleX_; a.arcScaleY_ = b.arcScaleY_; a.lineScale_ = b.lineScale_ } function P(b) {
        var a, c = 1; b = String(b); if (b.substring(0, 3) == "rgb") {
            var d = b.indexOf("(", 3), f = b.indexOf(")", d +
1), h = b.substring(d + 1, f).split(","); a = "#"; var g = 0; for (; g < 3; g++) a += N[Number(h[g])]; if (h.length == 4 && b.substr(3, 1) == "a") c = h[3]
        } else a = b; return { color: a, alpha: c }
    } function aa(b) { switch (b) { case "butt": return "flat"; case "round": return "round"; case "square": default: return "square" } } function H(b) {
        this.m_ = I(); this.mStack_ = []; this.aStack_ = []; this.currentPath_ = []; this.fillStyle = this.strokeStyle = "#000"; this.lineWidth = 1; this.lineJoin = "miter"; this.lineCap = "butt"; this.miterLimit = k * 1; this.globalAlpha = 1; this.canvas = b;
        var a = b.ownerDocument.createElement("div"); a.style.width = b.clientWidth + "px"; a.style.height = b.clientHeight + "px"; a.style.overflow = "hidden"; a.style.position = "absolute"; b.appendChild(a); this.element_ = a; this.lineScale_ = this.arcScaleY_ = this.arcScaleX_ = 1
    } var i = H.prototype; i.clearRect = function () { this.element_.innerHTML = "" }; i.beginPath = function () { this.currentPath_ = [] }; i.moveTo = function (b, a) { var c = this.getCoords_(b, a); this.currentPath_.push({ type: "moveTo", x: c.x, y: c.y }); this.currentX_ = c.x; this.currentY_ = c.y };
    i.lineTo = function (b, a) { var c = this.getCoords_(b, a); this.currentPath_.push({ type: "lineTo", x: c.x, y: c.y }); this.currentX_ = c.x; this.currentY_ = c.y }; i.bezierCurveTo = function (b, a, c, d, f, h) { var g = this.getCoords_(f, h), l = this.getCoords_(b, a), e = this.getCoords_(c, d); Q(this, l, e, g) }; function Q(b, a, c, d) { b.currentPath_.push({ type: "bezierCurveTo", cp1x: a.x, cp1y: a.y, cp2x: c.x, cp2y: c.y, x: d.x, y: d.y }); b.currentX_ = d.x; b.currentY_ = d.y } i.quadraticCurveTo = function (b, a, c, d) {
        var f = this.getCoords_(b, a), h = this.getCoords_(c, d), g = { x: this.currentX_ +
0.6666666666666666 * (f.x - this.currentX_), y: this.currentY_ + 0.6666666666666666 * (f.y - this.currentY_)
        }; Q(this, g, { x: g.x + (h.x - this.currentX_) / 3, y: g.y + (h.y - this.currentY_) / 3 }, h)
    }; i.arc = function (b, a, c, d, f, h) { c *= k; var g = h ? "at" : "wa", l = b + G(d) * c - v, e = a + F(d) * c - v, m = b + G(f) * c - v, r = a + F(f) * c - v; if (l == m && !h) l += 0.125; var n = this.getCoords_(b, a), o = this.getCoords_(l, e), q = this.getCoords_(m, r); this.currentPath_.push({ type: g, x: n.x, y: n.y, radius: c, xStart: o.x, yStart: o.y, xEnd: q.x, yEnd: q.y }) }; i.rect = function (b, a, c, d) {
        this.moveTo(b,
a); this.lineTo(b + c, a); this.lineTo(b + c, a + d); this.lineTo(b, a + d); this.closePath()
    }; i.strokeRect = function (b, a, c, d) { var f = this.currentPath_; this.beginPath(); this.moveTo(b, a); this.lineTo(b + c, a); this.lineTo(b + c, a + d); this.lineTo(b, a + d); this.closePath(); this.stroke(); this.currentPath_ = f }; i.fillRect = function (b, a, c, d) { var f = this.currentPath_; this.beginPath(); this.moveTo(b, a); this.lineTo(b + c, a); this.lineTo(b + c, a + d); this.lineTo(b, a + d); this.closePath(); this.fill(); this.currentPath_ = f }; i.createLinearGradient = function (b,
a, c, d) { var f = new D("gradient"); f.x0_ = b; f.y0_ = a; f.x1_ = c; f.y1_ = d; return f }; i.createRadialGradient = function (b, a, c, d, f, h) { var g = new D("gradientradial"); g.x0_ = b; g.y0_ = a; g.r0_ = c; g.x1_ = d; g.y1_ = f; g.r1_ = h; return g }; i.drawImage = function (b) {
    var a, c, d, f, h, g, l, e, m = b.runtimeStyle.width, r = b.runtimeStyle.height; b.runtimeStyle.width = "auto"; b.runtimeStyle.height = "auto"; var n = b.width, o = b.height; b.runtimeStyle.width = m; b.runtimeStyle.height = r; if (arguments.length == 3) { a = arguments[1]; c = arguments[2]; h = g = 0; l = d = n; e = f = o } else if (arguments.length ==
5) { a = arguments[1]; c = arguments[2]; d = arguments[3]; f = arguments[4]; h = g = 0; l = n; e = o } else if (arguments.length == 9) { h = arguments[1]; g = arguments[2]; l = arguments[3]; e = arguments[4]; a = arguments[5]; c = arguments[6]; d = arguments[7]; f = arguments[8] } else throw Error("Invalid number of arguments"); var q = this.getCoords_(a, c), t = []; t.push(" <g_vml_:group", ' coordsize="', k * 10, ",", k * 10, '"', ' coordorigin="0,0"', ' style="width:', 10, "px;height:", 10, "px;position:absolute;"); if (this.m_[0][0] != 1 || this.m_[0][1]) {
        var E = []; E.push("M11=",
this.m_[0][0], ",", "M12=", this.m_[1][0], ",", "M21=", this.m_[0][1], ",", "M22=", this.m_[1][1], ",", "Dx=", j(q.x / k), ",", "Dy=", j(q.y / k), ""); var p = q, z = this.getCoords_(a + d, c), w = this.getCoords_(a, c + f), x = this.getCoords_(a + d, c + f); p.x = s.max(p.x, z.x, w.x, x.x); p.y = s.max(p.y, z.y, w.y, x.y); t.push("padding:0 ", j(p.x / k), "px ", j(p.y / k), "px 0;filter:progid:DXImageTransform.Microsoft.Matrix(", E.join(""), ", sizingmethod='clip');")
    } else t.push("top:", j(q.y / k), "px;left:", j(q.x / k), "px;"); t.push(' ">', '<g_vml_:image src="', b.src,
'"', ' style="width:', k * d, "px;", " height:", k * f, 'px;"', ' cropleft="', h / n, '"', ' croptop="', g / o, '"', ' cropright="', (n - h - l) / n, '"', ' cropbottom="', (o - g - e) / o, '"', " />", "</g_vml_:group>"); this.element_.insertAdjacentHTML("BeforeEnd", t.join(""))
}; i.stroke = function (b) {
    var a = [], c = P(b ? this.fillStyle : this.strokeStyle), d = c.color, f = c.alpha * this.globalAlpha; a.push("<g_vml_:shape", ' filled="', !!b, '"', ' style="position:absolute;width:', 10, "px;height:", 10, 'px;"', ' coordorigin="0 0" coordsize="', k * 10, " ", k * 10, '"', ' stroked="',
!b, '"', ' path="'); var h = { x: null, y: null }, g = { x: null, y: null }, l = 0; for (; l < this.currentPath_.length; l++) {
        var e = this.currentPath_[l]; switch (e.type) {
            case "moveTo": a.push(" m ", j(e.x), ",", j(e.y)); break; case "lineTo": a.push(" l ", j(e.x), ",", j(e.y)); break; case "close": a.push(" x "); e = null; break; case "bezierCurveTo": a.push(" c ", j(e.cp1x), ",", j(e.cp1y), ",", j(e.cp2x), ",", j(e.cp2y), ",", j(e.x), ",", j(e.y)); break; case "at": case "wa": a.push(" ", e.type, " ", j(e.x - this.arcScaleX_ * e.radius), ",", j(e.y - this.arcScaleY_ * e.radius),
" ", j(e.x + this.arcScaleX_ * e.radius), ",", j(e.y + this.arcScaleY_ * e.radius), " ", j(e.xStart), ",", j(e.yStart), " ", j(e.xEnd), ",", j(e.yEnd)); break
        } if (e) { if (h.x == null || e.x < h.x) h.x = e.x; if (g.x == null || e.x > g.x) g.x = e.x; if (h.y == null || e.y < h.y) h.y = e.y; if (g.y == null || e.y > g.y) g.y = e.y }
    } a.push(' ">'); if (b) if (typeof this.fillStyle == "object") {
        var m = this.fillStyle, r = 0, n = { x: 0, y: 0 }, o = 0, q = 1; if (m.type_ == "gradient") {
            var t = m.x1_ / this.arcScaleX_, E = m.y1_ / this.arcScaleY_, p = this.getCoords_(m.x0_ / this.arcScaleX_, m.y0_ / this.arcScaleY_),
z = this.getCoords_(t, E); r = Math.atan2(z.x - p.x, z.y - p.y) * 180 / Math.PI; if (r < 0) r += 360; if (r < 1.0E-6) r = 0
        } else { var p = this.getCoords_(m.x0_, m.y0_), w = g.x - h.x, x = g.y - h.y; n = { x: (p.x - h.x) / w, y: (p.y - h.y) / x }; w /= this.arcScaleX_ * k; x /= this.arcScaleY_ * k; var R = s.max(w, x); o = 2 * m.r0_ / R; q = 2 * m.r1_ / R - o } var u = m.colors_; u.sort(function (ba, ca) { return ba.offset - ca.offset }); var J = u.length, da = u[0].color, ea = u[J - 1].color, fa = u[0].alpha * this.globalAlpha, ga = u[J - 1].alpha * this.globalAlpha, S = [], l = 0; for (; l < J; l++) {
            var T = u[l]; S.push(T.offset * q +
o + " " + T.color)
        } a.push('<g_vml_:fill type="', m.type_, '"', ' method="none" focus="100%"', ' color="', da, '"', ' color2="', ea, '"', ' colors="', S.join(","), '"', ' opacity="', ga, '"', ' g_o_:opacity2="', fa, '"', ' angle="', r, '"', ' focusposition="', n.x, ",", n.y, '" />')
    } else a.push('<g_vml_:fill color="', d, '" opacity="', f, '" />'); else {
        var K = this.lineScale_ * this.lineWidth; if (K < 1) f *= K; a.push("<g_vml_:stroke", ' opacity="', f, '"', ' joinstyle="', this.lineJoin, '"', ' miterlimit="', this.miterLimit, '"', ' endcap="', aa(this.lineCap),
'"', ' weight="', K, 'px"', ' color="', d, '" />')
    } a.push("</g_vml_:shape>"); this.element_.insertAdjacentHTML("beforeEnd", a.join(""))
}; i.fill = function () { this.stroke(true) }; i.closePath = function () { this.currentPath_.push({ type: "close" }) }; i.getCoords_ = function (b, a) { var c = this.m_; return { x: k * (b * c[0][0] + a * c[1][0] + c[2][0]) - v, y: k * (b * c[0][1] + a * c[1][1] + c[2][1]) - v} }; i.save = function () { var b = {}; O(this, b); this.aStack_.push(b); this.mStack_.push(this.m_); this.m_ = y(I(), this.m_) }; i.restore = function () {
    O(this.aStack_.pop(),
this); this.m_ = this.mStack_.pop()
}; function ha(b) { var a = 0; for (; a < 3; a++) { var c = 0; for (; c < 2; c++) if (!isFinite(b[a][c]) || isNaN(b[a][c])) return false } return true } function A(b, a, c) { if (!!ha(a)) { b.m_ = a; if (c) b.lineScale_ = W(V(a[0][0] * a[1][1] - a[0][1] * a[1][0])) } } i.translate = function (b, a) { A(this, y([[1, 0, 0], [0, 1, 0], [b, a, 1]], this.m_), false) }; i.rotate = function (b) { var a = G(b), c = F(b); A(this, y([[a, c, 0], [-c, a, 0], [0, 0, 1]], this.m_), false) }; i.scale = function (b, a) {
    this.arcScaleX_ *= b; this.arcScaleY_ *= a; A(this, y([[b, 0, 0], [0, a,
0], [0, 0, 1]], this.m_), true)
}; i.transform = function (b, a, c, d, f, h) { A(this, y([[b, a, 0], [c, d, 0], [f, h, 1]], this.m_), true) }; i.setTransform = function (b, a, c, d, f, h) { A(this, [[b, a, 0], [c, d, 0], [f, h, 1]], true) }; i.clip = function () { }; i.arcTo = function () { }; i.createPattern = function () { return new U }; function D(b) { this.type_ = b; this.r1_ = this.y1_ = this.x1_ = this.r0_ = this.y0_ = this.x0_ = 0; this.colors_ = [] } D.prototype.addColorStop = function (b, a) { a = P(a); this.colors_.push({ offset: b, color: a.color, alpha: a.alpha }) }; function U() { } G_vmlCanvasManager =
M; CanvasRenderingContext2D = H; CanvasGradient = D; CanvasPattern = U
})();

(function () {
    var aa = "_gat", ba = "_gaq", r = true, v = false, w = undefined, ca = "4.6.5", x = "length", y = "cookie", A = "location", B = "&", C = "=", D = "__utma=", E = "__utmb=", G = "__utmc=", da = "__utmk=", H = "__utmv=", J = "__utmz=", K = "__utmx=", L = "GASO="; var N = function (i) { return w == i || "-" == i || "" == i }, ea = function (i) { return i[x] > 0 && " \n\r\t".indexOf(i) > -1 }, P = function (i, l, g) { var t = "-", k; if (!N(i) && !N(l) && !N(g)) { k = i.indexOf(l); if (k > -1) { g = i.indexOf(g, k); if (g < 0) g = i[x]; t = O(i, k + l.indexOf(C) + 1, g) } } return t }, Q = function (i) { var l = v, g = 0, t, k; if (!N(i)) { l = r; for (t = 0; t < i[x]; t++) { k = i.charAt(t); g += "." == k ? 1 : 0; l = l && g <= 1 && (0 == t && "-" == k || ".0123456789".indexOf(k) > -1) } } return l }, S = function (i, l) { var g = encodeURIComponent; return g instanceof Function ? l ? encodeURI(i) : g(i) : escape(i) },
T = function (i, l) { var g = decodeURIComponent, t; i = i.split("+").join(" "); if (g instanceof Function) try { t = l ? decodeURI(i) : g(i) } catch (k) { t = unescape(i) } else t = unescape(i); return t }, U = function (i, l) { return i.indexOf(l) > -1 }, V = function (i, l) { i[i[x]] = l }, W = function (i) { return i.toLowerCase() }, X = function (i, l) { return i.split(l) }, fa = function (i, l) { return i.indexOf(l) }, O = function (i, l, g) { g = w == g ? i[x] : g; return i.substring(l, g) }, ga = function (i, l) { return i.join(l) }, ia = function (i) {
    var l = 1, g = 0, t; if (!N(i)) {
        l = 0; for (t = i[x] - 1; t >= 0; t--) {
            g =
i.charCodeAt(t); l = (l << 6 & 268435455) + g + (g << 14); g = l & 266338304; l = g != 0 ? l ^ g >> 21 : l
        }
    } return l
}, ja = function () { var i = window, l = w; if (i && i.gaGlobal && i.gaGlobal.hid) l = i.gaGlobal.hid; else { l = Y(); i.gaGlobal = i.gaGlobal ? i.gaGlobal : {}; i.gaGlobal.hid = l } return l }, Y = function () { return Math.round(Math.random() * 2147483647) }, Z = { Ha: function (i, l) { this.bb = i; this.nb = l }, ib: v, _gasoDomain: w, _gasoCPath: w }; Z.Gb = function () {
    function i(k) { return new t(k[0], k[1]) } function l(k) { var p = []; k = k.split(","); var f; for (f = 0; f < k.length; ++f) p.push(i(k[f].split(":"))); return p } var g = this, t = Z.Ha; g.Ia = "utm_campaign"; g.Ja = "utm_content"; g.Ka = "utm_id"; g.La = "utm_medium"; g.Ma = "utm_nooverride"; g.Na = "utm_source"; g.Oa = "utm_term"; g.Pa = "gclid"; g.ba = 0; g.z = 0; g.Ta = 15768E6; g.sb = 18E5; g.v = 63072E6; g.ta = []; g.va = []; g.nc = "cse"; g.oc = "q"; g.ob = 5; g.T = l("daum:q,eniro:search_word,naver:query,images.google:q,google:q,yahoo:p,msn:q,bing:q,aol:query,aol:encquery,lycos:query,ask:q,altavista:q,netscape:query,cnn:query,about:terms,mamma:query,alltheweb:q,voila:rdata,virgilio:qs,live:q,baidu:wd,alice:qs,yandex:text,najdi:q,aol:q,mama:query,seznam:q,search:q,wp:szukaj,onet:qt,szukacz:q,yam:k,pchome:q,kvasir:q,sesam:q,ozu:q,terra:query,mynet:q,ekolay:q,rambler:words");
    g.t = w; g.lb = v; g.h = "/"; g.U = 100; g.oa = "/__utm.gif"; g.ga = 1; g.ha = 1; g.u = "|"; g.fa = 1; g.da = 1; g.Ra = 1; g.b = "auto"; g.I = 1; g.ra = 1E3; g.Jc = 10; g.Pb = 10; g.Kc = 0.2; g.o = w; g.a = document; g.e = window
}; Z.Hb = function (i) {
    function l(d, a, j, c) { var n = "", s = 0; n = P(d, "2" + a, ";"); if (!N(n)) { d = n.indexOf("^" + j + "."); if (d < 0) return ["", 0]; n = O(n, d + j[x] + 2); if (n.indexOf("^") > 0) n = n.split("^")[0]; j = n.split(":"); n = j[1]; s = parseInt(j[0], 10); if (!c && s < p.r) n = "" } if (N(n)) n = ""; return [n, s] } function g(d, a) { return "^" + ga([[a, d[1]].join("."), d[0]], ":") } function t(d, a) { f.a[y] = d + "; path=" + f.h + "; " + a + p.fb() } function k(d) { var a = new Date; d = new Date(a.getTime() + d); return "expires=" + d.toGMTString() + "; " } var p = this, f = i; p.r = (new Date).getTime();
    var h = [D, E, G, J, H, K, L]; p.k = function () { var d = f.a[y]; return f.o ? p.Wb(d, f.o) : d }; p.Wb = function (d, a) { var j = [], c, n; for (c = 0; c < h[x]; c++) { n = l(d, h[c], a)[0]; N(n) || (j[j[x]] = h[c] + n + ";") } return j.join("") }; p.l = function (d, a, j) { var c = j > 0 ? k(j) : ""; if (f.o) { a = p.kc(f.a[y], d, f.o, a, j); d = "2" + d; c = j > 0 ? k(f.v) : "" } t(d + a, c) }; p.kc = function (d, a, j, c, n) { var s = ""; n = n || f.v; c = g([c, p.r + n * 1], j); s = P(d, "2" + a, ";"); if (!N(s)) { d = g(l(d, a, j, r), j); s = ga(s.split(d), ""); return s = c + s } return c }; p.fb = function () { return N(f.b) ? "" : "domain=" + f.b + ";" }
}; Z.$ = function (i) {
    function l(b) { b = b instanceof Array ? b.join(".") : ""; return N(b) ? "-" : b } function g(b, e) { var o = []; if (!N(b)) { o = b.split("."); if (e) for (b = 0; b < o[x]; b++) Q(o[b]) || (o[b] = "-") } return o } function t(b, e, o) { var m = c.M, q, u; for (q = 0; q < m[x]; q++) { u = m[q][0]; u += N(e) ? e : e + m[q][4]; m[q][2](P(b, u, o)) } } var k, p, f, h, d, a, j, c = this, n, s = i; c.j = new Z.Hb(i); c.kb = function () { return w == n || n == c.P() }; c.k = function () { return c.j.k() }; c.ma = function () { return d ? d : "-" }; c.vb = function (b) { d = b }; c.za = function (b) { n = Q(b) ? b * 1 : "-" }; c.la = function () { return l(a) };
    c.Aa = function (b) { a = g(b) }; c.Vb = function () { c.j.l(H, "", -1) }; c.lc = function () { return n ? n : "-" }; c.fb = function () { return N(s.b) ? "" : "domain=" + s.b + ";" }; c.ja = function () { return l(k) }; c.tb = function (b) { k = g(b, 1) }; c.C = function () { return l(p) }; c.ya = function (b) { p = g(b, 1) }; c.ka = function () { return l(f) }; c.ub = function (b) { f = g(b, 1) }; c.na = function () { return l(h) }; c.wb = function (b) { h = g(b); for (b = 0; b < h[x]; b++) if (b < 4 && !Q(h[b])) h[b] = "-" }; c.fc = function () { return j }; c.Dc = function (b) { j = b }; c.Sb = function () {
        k = []; p = []; f = []; h = []; d = w; a = []; n =
w
    }; c.P = function () { var b = "", e; for (e = 0; e < c.M[x]; e++) b += c.M[e][1](); return ia(b) }; c.ua = function (b) { var e = c.k(), o = v; if (e) { t(e, b, ";"); c.za(c.P()); o = r } return o }; c.zc = function (b) { t(b, "", B); c.za(P(b, da, B)) }; c.Hc = function () { var b = c.M, e = [], o; for (o = 0; o < b[x]; o++) V(e, b[o][0] + b[o][1]()); V(e, da + c.P()); return e.join(B) }; c.Nc = function (b, e) { var o = c.M, m = s.h; c.ua(b); s.h = e; for (b = 0; b < o[x]; b++) N(o[b][1]()) || o[b][3](); s.h = m }; c.Cb = function () { c.j.l(D, c.ja(), s.v) }; c.Ea = function () { c.j.l(E, c.C(), s.sb) }; c.Db = function () {
        c.j.l(G,
c.ka(), 0)
    }; c.Ga = function () { c.j.l(J, c.na(), s.Ta) }; c.Eb = function () { c.j.l(K, c.ma(), s.v) }; c.Fa = function () { c.j.l(H, c.la(), s.v) }; c.Oc = function () { c.j.l(L, c.fc(), 0) }; c.M = [[D, c.ja, c.tb, c.Cb, "."], [E, c.C, c.ya, c.Ea, ""], [G, c.ka, c.ub, c.Db, ""], [K, c.ma, c.vb, c.Eb, ""], [J, c.na, c.wb, c.Ga, "."], [H, c.la, c.Aa, c.Fa, "."]]
}; Z.Kb = function (i) {
    var l = this, g = i, t = new Z.$(g), k = function () { }, p = function (f) { var h = (new Date).getTime(), d; d = (h - f[3]) * (g.Kc / 1E3); if (d >= 1) { f[2] = Math.min(Math.floor(f[2] * 1 + d), g.Pb); f[3] = h } return f }; l.H = function (f, h, d, a, j, c) {
        var n, s = g.I, b = g.a[A]; t.ua(d); n = X(t.C(), "."); if (n[1] < 500 || a) {
            if (j) n = p(n); if (a || !j || n[2] >= 1) {
                if (!a && j) n[2] = n[2] * 1 - 1; n[1] = n[1] * 1 + 1; f = "?utmwv=" + ca + "&utmn=" + Y() + (N(b.hostname) ? "" : "&utmhn=" + S(b.hostname)) + (g.U == 100 ? "" : "&utmsp=" + S(g.U)) + f; if (0 == s || 2 == s) { a = 2 == s ? k : c || k; l.$a(g.oa + f, a) } if (1 == s ||
2 == s) { f = ("https:" == b.protocol ? "https://ssl.google-analytics.com/__utm.gif" : "http://www.google-analytics.com/__utm.gif") + f + "&utmac=" + h + "&utmcc=" + l.ac(d); if (ka) f += "&gaq=1"; l.$a(f, c) }
            }
        } t.ya(n.join(".")); t.Ea()
    }; l.$a = function (f, h) { var d = new Image(1, 1); d.src = f; d.onload = function () { d.onload = null; (h || k)() } }; l.ac = function (f) { var h = [], d = [D, J, H, K], a, j = t.k(), c; for (a = 0; a < d[x]; a++) { c = P(j, d[a] + f, ";"); if (!N(c)) { if (d[a] == H) { c = X(c.split(f + ".")[1], "|")[0]; if (N(c)) continue; c = f + "." + c } V(h, d[a] + c + ";") } } return S(h.join("+")) }
}; Z.n = function () { var i = this; i.Y = []; i.hb = function (l) { var g, t = i.Y, k; for (k = 0; k < t.length; k++) g = l == t[k].q ? t[k] : g; return g }; i.Ob = function (l, g, t, k, p, f, h, d) { var a = i.hb(l); if (w == a) { a = new Z.n.Mb(l, g, t, k, p, f, h, d); V(i.Y, a) } else { a.Qa = g; a.Ab = t; a.zb = k; a.xb = p; a.Xa = f; a.yb = h; a.Za = d } return a } }; Z.n.Lb = function (i, l, g, t, k, p) { var f = this; f.Bb = i; f.Ba = l; f.D = g; f.Va = t; f.pb = k; f.qb = p; f.Ca = function () { return "&" + ["utmt=item", "tid=" + S(f.Bb), "ipc=" + S(f.Ba), "ipn=" + S(f.D), "iva=" + S(f.Va), "ipr=" + S(f.pb), "iqt=" + S(f.qb)].join("&utm") } };
    Z.n.Mb = function (i, l, g, t, k, p, f, h) { var d = this; d.q = i; d.Qa = l; d.Ab = g; d.zb = t; d.xb = k; d.Xa = p; d.yb = f; d.Za = h; d.R = []; d.Nb = function (a, j, c, n, s) { var b = d.gc(a), e = d.q; if (w == b) V(d.R, new Z.n.Lb(e, a, j, c, n, s)); else { b.Bb = e; b.Ba = a; b.D = j; b.Va = c; b.pb = n; b.qb = s } }; d.gc = function (a) { var j, c = d.R, n; for (n = 0; n < c.length; n++) j = a == c[n].Ba ? c[n] : j; return j }; d.Ca = function () { return "&" + ["utmt=tran", "id=" + S(d.q), "st=" + S(d.Qa), "to=" + S(d.Ab), "tx=" + S(d.zb), "sp=" + S(d.xb), "ci=" + S(d.Xa), "rg=" + S(d.yb), "co=" + S(d.Za)].join("&utmt") } }; Z.Fb = function (i) {
        function l() {
            var f, h, d; h = "ShockwaveFlash"; var a = "$version", j = k.d ? k.d.plugins : w; if (j && j[x] > 0) for (f = 0; f < j[x] && !d; f++) { h = j[f]; if (U(h.name, "Shockwave Flash")) d = h.description.split("Shockwave Flash ")[1] } else {
                h = h + "." + h; try { f = new ActiveXObject(h + ".7"); d = f.GetVariable(a) } catch (c) { } if (!d) try { f = new ActiveXObject(h + ".6"); d = "WIN 6,0,21,0"; f.AllowScriptAccess = "always"; d = f.GetVariable(a) } catch (n) { } if (!d) try { f = new ActiveXObject(h); d = f.GetVariable(a) } catch (s) { } if (d) {
                    d = X(d.split(" ")[1], ","); d = d[0] +
"." + d[1] + " r" + d[2]
                }
            } return d ? d : p
        } var g = i, t = g.e, k = this, p = "-"; k.V = t.screen; k.Sa = !k.V && t.java ? java.awt.Toolkit.getDefaultToolkit() : w; k.d = t.navigator; k.W = p; k.xa = p; k.Wa = p; k.qa = p; k.pa = 1; k.eb = p; k.bc = function () {
            var f; if (t.screen) { k.W = k.V.width + "x" + k.V.height; k.xa = k.V.colorDepth + "-bit" } else if (k.Sa) try { f = k.Sa.getScreenSize(); k.W = f.width + "x" + f.height } catch (h) { } k.qa = W(k.d && k.d.language ? k.d.language : k.d && k.d.browserLanguage ? k.d.browserLanguage : p); k.pa = k.d && k.d.javaEnabled() ? 1 : 0; k.eb = g.ha ? l() : p; k.Wa = S(g.a.characterSet ?
g.a.characterSet : g.a.charset ? g.a.charset : p)
        }; k.Ic = function () { return B + "utm" + ["cs=" + S(k.Wa), "sr=" + k.W, "sc=" + k.xa, "ul=" + k.qa, "je=" + k.pa, "fl=" + S(k.eb)].join("&utm") }; k.$b = function () { var f = g.a, h = t.history[x]; f = k.d.appName + k.d.version + k.qa + k.d.platform + k.d.userAgent + k.pa + k.W + k.xa + (f[y] ? f[y] : "") + (f.referrer ? f.referrer : ""); for (var d = f[x]; h > 0; ) f += h-- ^ d++; return ia(f) }
    }; Z.m = function (i, l, g, t) {
        function k(d) { var a = ""; d = W(d.split("://")[1]); if (U(d, "/")) { d = d.split("/")[1]; if (U(d, "?")) a = d.split("?")[0] } return a } function p(d) { var a = ""; a = W(d.split("://")[1]); if (U(a, "/")) a = a.split("/")[0]; return a } var f = t, h = this; h.c = i; h.rb = l; h.r = g; h.ic = function (d) { var a = h.gb(); return new Z.m.w(P(d, f.Ka + C, B), P(d, f.Na + C, B), P(d, f.Pa + C, B), h.Q(d, f.Ia, "(not set)"), h.Q(d, f.La, "(not set)"), h.Q(d, f.Oa, a && !N(a.K) ? T(a.K) : w), h.Q(d, f.Ja, w)) }; h.jb = function (d) {
            var a = p(d), j = k(d); if (U(a, "google")) {
                d = d.split("?").join(B);
                if (U(d, B + f.oc + C)) if (j == f.nc) return r
            } return v
        }; h.gb = function () { var d, a = h.rb, j, c, n = f.T; if (!(N(a) || "0" == a || !U(a, "://") || h.jb(a))) { d = p(a); for (j = 0; j < n[x]; j++) { c = n[j]; if (U(d, W(c.bb))) { a = a.split("?").join(B); if (U(a, B + c.nb + C)) { d = a.split(B + c.nb + C)[1]; if (U(d, B)) d = d.split(B)[0]; return new Z.m.w(w, c.bb, w, "(organic)", "organic", d, w) } } } } }; h.Q = function (d, a, j) { d = P(d, a + C, B); return j = !N(d) ? T(d) : !N(j) ? j : "-" }; h.uc = function (d) { var a = f.ta, j = v, c; if (d && "organic" == d.S) { d = W(T(d.K)); for (c = 0; c < a[x]; c++) j = j || W(a[c]) == d } return j };
        h.hc = function () { var d = "", a = ""; d = h.rb; if (!(N(d) || "0" == d || !U(d, "://") || h.jb(d))) { d = d.split("://")[1]; if (U(d, "/")) { a = O(d, d.indexOf("/")); a = a.split("?")[0]; d = W(d.split("/")[0]) } if (0 == d.indexOf("www.")) d = O(d, 4); return new Z.m.w(w, d, w, "(referral)", "referral", w, a) } }; h.Xb = function (d) { var a = ""; if (f.ba) { a = d && d.hash ? d.href.substring(d.href.indexOf("#")) : ""; a = "" != a ? a + B : a } a += d.search; return a }; h.dc = function () { return new Z.m.w(w, "(direct)", w, "(direct)", "(none)", w, w) }; h.vc = function (d) {
            var a = v, j, c = f.va; if (d && "referral" ==
d.S) { d = W(S(d.X)); for (j = 0; j < c[x]; j++) a = a || U(d, W(c[j])) } return a
        }; h.L = function (d) { return w != d && d.mb() }; h.cc = function (d, a) {
            var j = "", c = "-", n, s = 0, b, e, o = h.c; if (!d) return ""; e = d.k(); j = h.Xb(f.a[A]); if (f.z && d.kb()) { c = d.na(); if (!N(c) && !U(c, ";")) { d.Ga(); return "" } } c = P(e, J + o + ".", ";"); n = h.ic(j); if (h.L(n)) { j = P(j, f.Ma + C, B); if ("1" == j && !N(c)) return "" } if (!h.L(n)) { n = h.gb(); if (!N(c) && h.uc(n)) return "" } if (!h.L(n) && a) { n = h.hc(); if (!N(c) && h.vc(n)) return "" } if (!h.L(n)) if (N(c) && a) n = h.dc(); if (!h.L(n)) return ""; if (!N(c)) {
                s = c.split(".");
                b = new Z.m.w; b.Zb(s.slice(4).join(".")); b = W(b.Da()) == W(n.Da()); s = s[3] * 1
            } if (!b || a) { a = P(e, D + o + ".", ";"); e = a.lastIndexOf("."); a = e > 9 ? O(a, e + 1) * 1 : 0; s++; a = 0 == a ? 1 : a; d.wb([o, h.r, a, s, n.Da()].join(".")); d.Ga(); return B + "utmcn=1" } else return B + "utmcr=1"
        }
    };
    Z.m.w = function (i, l, g, t, k, p, f) {
        var h = this; h.q = i; h.X = l; h.ea = g; h.D = t; h.S = k; h.K = p; h.Ya = f; h.Da = function () { var d = [], a = [["cid", h.q], ["csr", h.X], ["gclid", h.ea], ["ccn", h.D], ["cmd", h.S], ["ctr", h.K], ["cct", h.Ya]], j, c; if (h.mb()) for (j = 0; j < a[x]; j++) if (!N(a[j][1])) { c = a[j][1].split("+").join("%20"); c = c.split(" ").join("%20"); V(d, "utm" + a[j][0] + C + c) } return d.join("|") }; h.mb = function () { return !(N(h.q) && N(h.X) && N(h.ea)) }; h.Zb = function (d) {
            var a = function (j) { return T(P(d, "utm" + j + C, "|")) }; h.q = a("cid"); h.X = a("csr"); h.ea = a("gclid");
            h.D = a("ccn"); h.S = a("cmd"); h.K = a("ctr"); h.Ya = a("cct")
        }
    }; Z.Ib = function (i, l, g, t) {
        function k(j, c, n) { var s; if (!N(n)) { n = n.split(","); for (var b = 0; b < n[x]; b++) { s = n[b]; if (!N(s)) { s = s.split(h); if (s[x] == 4) c[s[0]] = [s[1], s[2], j] } } } } var p = this, f = l, h = C, d = i, a = t; p.O = g; p.sa = ""; p.p = {}; p.tc = function () { var j; j = X(P(p.O.k(), H + f + ".", ";"), f + ".")[1]; if (!N(j)) { j = j.split("|"); k(1, p.p, j[1]); p.sa = j[0]; p.Z() } }; p.Z = function () { p.Qb(); var j = p.sa, c, n, s = ""; for (c in p.p) if ((n = p.p[c]) && 1 === n[2]) s += c + h + n[0] + h + n[1] + h + 1 + ","; N(s) || (j += "|" + s); if (N(j)) p.O.Vb(); else { p.O.Aa(f + "." + j); p.O.Fa() } }; p.Ec =
function (j) { p.sa = j; p.Z() }; p.Cc = function (j, c, n, s) { if (1 != s && 2 != s && 3 != s) s = 3; var b = v; if (c && n && j > 0 && j <= d.ob) { c = S(c); n = S(n); if (c[x] + n[x] <= 64) { p.p[j] = [c, n, s]; p.Z(); b = r } } return b }; p.mc = function (j) { if ((j = p.p[j]) && 1 === j[2]) return j[1] }; p.Ub = function (j) { var c = p.p; if (c[j]) { delete c[j]; p.Z() } }; p.Qb = function () { a._clearKey(8); a._clearKey(9); a._clearKey(11); var j = p.p, c, n; for (n in j) if (c = j[n]) { a._setKey(8, n, c[0]); a._setKey(9, n, c[1]); (c = c[2]) && 3 != c && a._setKey(11, n, "" + c) } }
    }; Z.N = function () {
        function i(m, q, u, z) { if (w == f[m]) f[m] = {}; if (w == f[m][q]) f[m][q] = []; f[m][q][u] = z } function l(m, q) { if (w != f[m] && w != f[m][q]) { f[m][q] = w; q = r; var u; for (u = 0; u < a[x]; u++) if (w != f[m][a[u]]) { q = v; break } if (q) f[m] = w } } function g(m) { var q = "", u = v, z, M; for (z = 0; z < a[x]; z++) { M = m[a[z]]; if (w != M) { if (u) q += a[z]; q += t(M); u = v } else u = r } return q } function t(m) { var q = [], u, z; for (z = 0; z < m[x]; z++) if (w != m[z]) { u = ""; if (z != o && w == m[z - 1]) u += z.toString() + s; u += k(m[z]); V(q, u) } return j + q.join(n) + c } function k(m) {
            var q = "", u, z, M; for (u = 0; u <
m[x]; u++) { z = m.charAt(u); M = e[z]; q += w != M ? M : z } return q
        } var p = this, f = {}, h = "k", d = "v", a = [h, d], j = "(", c = ")", n = "*", s = "!", b = "'", e = {}; e[b] = "'0"; e[c] = "'1"; e[n] = "'2"; e[s] = "'3"; var o = 1; p.qc = function (m) { return w != f[m] }; p.G = function () { var m = "", q; for (q in f) if (w != f[q]) m += q.toString() + g(f[q]); return m }; p.Ac = function (m) { if (m == w) return p.G(); var q = m.G(), u; for (u in f) if (w != f[u] && !m.qc(u)) q += u.toString() + g(f[u]); return q }; p._setKey = function (m, q, u) { if (typeof u != "string") return v; i(m, h, q, u); return r }; p._setValue = function (m,
q, u) { if (typeof u != "number" && (w == Number || !(u instanceof Number)) || Math.round(u) != u || u == NaN || u == Infinity) return v; i(m, d, q, u.toString()); return r }; p._getKey = function (m, q) { return w != f[m] && w != f[m][h] ? f[m][h][q] : w }; p._getValue = function (m, q) { return w != f[m] && w != f[m][d] ? f[m][d][q] : w }; p._clearKey = function (m) { l(m, h) }; p._clearValue = function (m) { l(m, d) }
    }; Z.Jb = function (i, l) { var g = this; g.Qc = l; g.xc = i; g._trackEvent = function (t, k, p) { return l._trackEvent(g.xc, t, k, p) } }; Z.aa = function (i, l) {
        function g() { if ("auto" == c.b) { var b = c.a.domain; if ("www." == O(b, 0, 4)) b = O(b, 4); c.b = b } c.b = W(c.b) } function t() { var b = c.b, e = b.indexOf("www.google.") * b.indexOf(".google.") * b.indexOf("google."); return e || "/" != c.h || b.indexOf("google.org") > -1 } function k(b, e, o) { if (N(b) || N(e) || N(o)) return "-"; b = P(b, D + a.c + ".", e); if (!N(b)) { b = b.split("."); b[5] = b[5] ? b[5] * 1 + 1 : 1; b[3] = b[4]; b[4] = o; b = b.join(".") } return b } function p() { return "file:" != c.a[A].protocol && t() } function f(b) {
            if (!b || "" == b) return ""; for (; ea(b.charAt(0)); ) b =
O(b, 1); for (; ea(b.charAt(b[x] - 1)); ) b = O(b, 0, b[x] - 1); return b
        } function h(b, e, o, m) { if (!N(b())) { e(m ? T(b()) : b()); U(b(), ";") || o() } } function d(b) { var e, o = "" != b && c.a[A].host != b; if (o) for (e = 0; e < c.t[x]; e++) o = o && fa(W(b), W(c.t[e])) == -1; return o } var a = this, j = w, c = new Z.Gb, n = v, s = w; a.e = window; a.r = Math.round((new Date).getTime() / 1E3); a.s = i || "UA-XXXXX-X"; a.ab = c.a.referrer; a.ia = w; a.f = w; a.B = w; a.F = v; a.A = w; a.Ua = ""; a.g = w; a.cb = w; a.c = w; a.i = w; c.o = l ? S(l) : w; a.wc = function () {
            var b = v; if (a.B) b = a.B.match(/^[0-9a-z-_.]{10,1200}$/i);
            return b
        }; a.jc = function () { return Y() ^ a.A.$b() & 2147483647 }; a.ec = function () { if (!c.b || "" == c.b || "none" == c.b) { c.b = ""; return 1 } g(); return c.Ra ? ia(c.b) : 1 }; a.Yb = function (b, e) { if (N(b)) b = "-"; else { e += c.h && "/" != c.h ? c.h : ""; e = b.indexOf(e); b = e >= 0 && e <= 8 ? "0" : "[" == b.charAt(0) && "]" == b.charAt(b[x] - 1) ? "-" : b } return b }; a.wa = function (b) { var e = "", o = c.a; e += c.fa ? a.A.Ic() : ""; e += c.da ? a.Ua : ""; e += c.ga && !N(o.title) ? "&utmdt=" + S(o.title) : ""; e += "&utmhid=" + ja() + "&utmr=" + S(a.ia) + "&utmp=" + S(a.Bc(b)); return e }; a.Bc = function (b) {
            var e = c.a[A];
            return b = w != b && "" != b ? S(b, r) : S(e.pathname + e.search, r)
        }; a.Lc = function (b) { if (a.J()) { var e = ""; if (a.g != w && a.g.G()[x] > 0) e += "&utme=" + S(a.g.G()); e += a.wa(b); j.H(e, a.s, a.c) } }; a.Tb = function () { var b = new Z.$(c); return b.ua(a.c) ? b.Hc() : w }; a._getLinkerUrl = function (b, e) { var o = b.split("#"), m = b, q = a.Tb(); if (q) if (e && 1 >= o[x]) m += "#" + q; else if (!e || 1 >= o[x]) if (1 >= o[x]) m += (U(b, "?") ? B : "?") + q; else m = o[0] + (U(b, "?") ? B : "?") + q + "#" + o[1]; return m }; a.Fc = function () {
            var b; if (a.wc()) {
                a.i.Dc(a.B); a.i.Oc(); Z._gasoDomain = c.b; Z._gasoCPath =
c.h; b = c.a.createElement("script"); b.type = "text/javascript"; b.id = "_gasojs"; b.src = "https://www.google.com/analytics/reporting/overlay_js?gaso=" + a.B + B + Y(); c.a.getElementsByTagName("head")[0].appendChild(b)
            }
        }; a.pc = function () {
            var b = a.r, e = a.i, o = e.k(), m = a.c + "", q = c.e, u = q ? q.gaGlobal : w, z, M = U(o, D + m + "."), la = U(o, E + m), ma = U(o, G + m), F, I = [], R = "", ha = v; o = N(o) ? "" : o; if (c.z) {
                z = c.a[A] && c.a[A].hash ? c.a[A].href.substring(c.a[A].href.indexOf("#")) : ""; if (c.ba && !N(z)) R = z + B; R += c.a[A].search; if (!N(R) && U(R, D)) {
                    e.zc(R); e.kb() || e.Sb();
                    F = e.ja()
                } h(e.ma, e.vb, e.Eb, true); h(e.la, e.Aa, e.Fa)
            } if (N(F)) if (M) if (!la || !ma) { F = k(o, ";", b); a.F = r } else { F = P(o, D + m + ".", ";"); I = X(P(o, E + m, ";"), ".") } else { F = ga([m, a.jc(), b, b, b, 1], "."); ha = a.F = r } else if (N(e.C()) || N(e.ka())) { F = k(R, B, b); a.F = r } else { I = X(e.C(), "."); m = I[0] } F = F.split("."); if (q && u && u.dh == m && !c.o) { F[4] = u.sid ? u.sid : F[4]; if (ha) { F[3] = u.sid ? u.sid : F[4]; if (u.vid) { b = u.vid.split("."); F[1] = b[0]; F[2] = b[1] } } } e.tb(F.join(".")); I[0] = m; I[1] = I[1] ? I[1] : 0; I[2] = w != I[2] ? I[2] : c.Jc; I[3] = I[3] ? I[3] : F[4]; e.ya(I.join("."));
            e.ub(m); N(e.lc()) || e.za(e.P()); e.Cb(); e.Ea(); e.Db()
        }; a.rc = function () { j = new Z.Kb(c) }; a._initData = function () { var b; if (!n) { if (!a.A) { a.A = new Z.Fb(c); a.A.bc() } a.c = a.ec(); a.i = new Z.$(c); a.g = new Z.N; s = new Z.Ib(c, a.c, a.i, a.g); a.rc() } if (p()) { a.pc(); s.tc() } if (!n) { if (p()) { a.ia = a.Yb(a.ab, c.a.domain); if (c.da) { b = new Z.m(a.c, a.ia, a.r, c); a.Ua = b.cc(a.i, a.F) } } a.cb = new Z.N; n = r } Z.ib || a.sc() }; a._visitCode = function () { a._initData(); var b = P(a.i.k(), D + a.c + ".", ";"); b = b.split("."); return b[x] < 4 ? "" : b[1] }; a._cookiePathCopy = function (b) {
            a._initData();
            a.i && a.i.Nc(a.c, b)
        }; a.sc = function () { var b = c.a[A].hash; if (b && 1 == b.indexOf("gaso=")) b = P(b, "gaso=", B); else b = (b = c.e.name) && 0 <= b.indexOf("gaso=") ? P(b, "gaso=", B) : P(a.i.k(), L, ";"); if (b[x] >= 10) { a.B = b; a.Fc() } Z.ib = r }; a.J = function () { return a._visitCode() % 1E4 < c.U * 100 }; a.Gc = function () {
            var b, e, o = c.a.links; if (!c.lb) { b = c.a.domain; if ("www." == O(b, 0, 4)) b = O(b, 4); c.t.push("." + b) } for (b = 0; b < o[x] && (c.ra == -1 || b < c.ra); b++) {
                e = o[b]; if (d(e.host)) if (!e.gatcOnclick) {
                    e.gatcOnclick = e.onclick ? e.onclick : a.yc; e.onclick = function (m) {
                        var q =
!this.target || this.target == "_self" || this.target == "_top" || this.target == "_parent"; q = q && !a.Rb(m); a.Mc(m, this, q); return q ? v : this.gatcOnclick ? this.gatcOnclick(m) : r
                    }
                }
            }
        }; a.yc = function () { }; a._trackPageview = function (b) { if (p()) { a._initData(); c.t && a.Gc(); a.Lc(b); a.F = v } }; a._trackTrans = function () { var b = a.c, e = [], o, m, q; a._initData(); if (a.f && a.J()) { for (o = 0; o < a.f.Y[x]; o++) { m = a.f.Y[o]; V(e, m.Ca()); for (q = 0; q < m.R[x]; q++) V(e, m.R[q].Ca()) } for (o = 0; o < e[x]; o++) j.H(e[o], a.s, b, r) } }; a._setTrans = function () {
            var b = c.a, e, o, m; b = b.getElementById ?
b.getElementById("utmtrans") : b.utmform && b.utmform.utmtrans ? b.utmform.utmtrans : w; a._initData(); if (b && b.value) { a.f = new Z.n; m = b.value.split("UTM:"); c.u = !c.u || "" == c.u ? "|" : c.u; for (b = 0; b < m[x]; b++) { m[b] = f(m[b]); e = m[b].split(c.u); for (o = 0; o < e[x]; o++) e[o] = f(e[o]); if ("T" == e[0]) a._addTrans(e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8]); else "I" == e[0] && a._addItem(e[1], e[2], e[3], e[4], e[5], e[6]) } }
        }; a._addTrans = function (b, e, o, m, q, u, z, M) { a.f = a.f ? a.f : new Z.n; return a.f.Ob(b, e, o, m, q, u, z, M) }; a._addItem = function (b, e, o, m, q, u) {
            var z;
            a.f = a.f ? a.f : new Z.n; (z = a.f.hb(b)) || (z = a._addTrans(b, "", "", "", "", "", "", "")); z.Nb(e, o, m, q, u)
        }; a._setVar = function (b) { if (b && "" != b && t()) { a._initData(); s.Ec(S(b)); a.J() && j.H("&utmt=var", a.s, a.c) } }; a._setCustomVar = function (b, e, o, m) { a._initData(); return s.Cc(b, e, o, m) }; a._deleteCustomVar = function (b) { a._initData(); s.Ub(b) }; a._getVisitorCustomVar = function (b) { a._initData(); return s.mc(b) }; a._setMaxCustomVariables = function (b) { c.ob = b }; a._link = function (b, e) {
            if (c.z && b) {
                a._initData(); c.a[A].href = a._getLinkerUrl(b,
e)
            }
        }; a._linkByPost = function (b, e) { if (c.z && b && b.action) { a._initData(); b.action = a._getLinkerUrl(b.action, e) } }; a._setXKey = function (b, e, o) { a.g._setKey(b, e, o) }; a._setXValue = function (b, e, o) { a.g._setValue(b, e, o) }; a._getXKey = function (b, e) { return a.g._getKey(b, e) }; a._getXValue = function (b, e) { return a.g.getValue(b, e) }; a._clearXKey = function (b) { a.g._clearKey(b) }; a._clearXValue = function (b) { a.g._clearValue(b) }; a._createXObj = function () { a._initData(); return new Z.N }; a._sendXEvent = function (b) {
            var e = ""; a._initData();
            if (a.J()) { e += "&utmt=event&utme=" + S(a.g.Ac(b)) + a.wa(); j.H(e, a.s, a.c, v, r) }
        }; a._createEventTracker = function (b) { a._initData(); return new Z.Jb(b, a) }; a._trackEvent = function (b, e, o, m) { var q = a.cb; if (w != b && w != e && "" != b && "" != e) { q._clearKey(5); q._clearValue(5); (b = q._setKey(5, 1, b) && q._setKey(5, 2, e) && (w == o || q._setKey(5, 3, o)) && (w == m || q._setValue(5, 1, m))) && a._sendXEvent(q) } else b = v; return b }; a.Mc = function (b, e, o) {
            a._initData(); if (a.J()) {
                var m = new Z.N; m._setKey(6, 1, e.href); var q = o ? function () { a.db(b, e) } : w; j.H("&utmt=event&utme=" +
S(m.G()) + a.wa(), a.s, a.c, v, r, q); if (o) { var u = this; c.e.setTimeout(function () { u.db(b, e) }, 500) }
            }
        }; a.db = function (b, e) { if (!b) b = c.e.event; var o = r; if (e.gatcOnclick) o = e.gatcOnclick(b); if (o || typeof o == "undefined") if (!e.target || e.target == "_self") c.e[A] = e.href; else if (e.target == "_top") c.e.top.document[A] = e.href; else if (e.target == "_parent") c.e.parent.document[A] = e.href }; a.Rb = function (b) {
            if (!b) b = c.e.event; var e = b.shiftKey || b.ctrlKey || b.altKey; if (!e) if (b.modifiers && c.e.Event) e = b.modifiers & c.e.Event.CONTROL_MASK ||
b.modifiers & c.e.Event.SHIFT_MASK || b.modifiers & c.e.Event.ALT_MASK; return e
        }; a.Pc = function () { return c }; a._setDomainName = function (b) { c.b = b }; a._addOrganic = function (b, e, o) { c.T.splice(o ? 0 : c.T.length, 0, new Z.Ha(b, e)) }; a._clearOrganic = function () { c.T = [] }; a._addIgnoredOrganic = function (b) { V(c.ta, b) }; a._clearIgnoredOrganic = function () { c.ta = [] }; a._addIgnoredRef = function (b) { V(c.va, b) }; a._clearIgnoredRef = function () { c.va = [] }; a._setAllowHash = function (b) { c.Ra = b ? 1 : 0 }; a._setCampaignTrack = function (b) { c.da = b ? 1 : 0 }; a._setClientInfo =
function (b) { c.fa = b ? 1 : 0 }; a._getClientInfo = function () { return c.fa }; a._setCookiePath = function (b) { c.h = b }; a._setTransactionDelim = function (b) { c.u = b }; a._setCookieTimeout = function (b) { a._setCampaignCookieTimeout(b * 1E3) }; a._setCampaignCookieTimeout = function (b) { c.Ta = b }; a._setDetectFlash = function (b) { c.ha = b ? 1 : 0 }; a._getDetectFlash = function () { return c.ha }; a._setDetectTitle = function (b) { c.ga = b ? 1 : 0 }; a._getDetectTitle = function () { return c.ga }; a._setLocalGifPath = function (b) { c.oa = b }; a._getLocalGifPath = function () { return c.oa };
        a._setLocalServerMode = function () { c.I = 0 }; a._setRemoteServerMode = function () { c.I = 1 }; a._setLocalRemoteServerMode = function () { c.I = 2 }; a._getServiceMode = function () { return c.I }; a._setSampleRate = function (b) { c.U = b }; a._setSessionTimeout = function (b) { a._setSessionCookieTimeout(b * 1E3) }; a._setSessionCookieTimeout = function (b) { c.sb = b }; a._setAllowLinker = function (b) { c.z = b ? 1 : 0 }; a._setAllowAnchor = function (b) { c.ba = b ? 1 : 0 }; a._setCampNameKey = function (b) { c.Ia = b }; a._setCampContentKey = function (b) { c.Ja = b }; a._setCampIdKey = function (b) {
            c.Ka =
b
        }; a._setCampMediumKey = function (b) { c.La = b }; a._setCampNOKey = function (b) { c.Ma = b }; a._setCampSourceKey = function (b) { c.Na = b }; a._setCampTermKey = function (b) { c.Oa = b }; a._setCampCIdKey = function (b) { c.Pa = b }; a._getAccount = function () { return a.s }; a._setAccount = function (b) { a.s = b }; a._setNamespace = function (b) { c.o = b ? S(b) : w }; a._getVersion = function () { return ca }; a._setAutoTrackOutbound = function (b) { c.t = []; if (b) c.t = b }; a._setTrackOutboundSubdomains = function (b) { c.lb = b }; a._setHrefExamineLimit = function (b) { c.ra = b }; a._setReferrerOverride =
function (b) { a.ab = b }; a._setCookiePersistence = function (b) { a._setVisitorCookieTimeout(b) }; a._setVisitorCookieTimeout = function (b) { c.v = b }
    }; Z._getTracker = function (i, l) { return new Z.aa(i, l) }; var ka = v, $ = { ca: {}, _createAsyncTracker: function (i, l) { l = l || ""; i = new Z.aa(i); $.ca[l] = i; ka = r; return i }, _getAsyncTracker: function (i) { i = i || ""; var l = $.ca[i]; if (!l) { l = new Z.aa; $.ca[i] = l; ka = r } return l }, push: function () { for (var i = arguments, l = 0, g = 0; g < i[x]; g++) try { if (typeof i[g] === "function") i[g](); else { var t = "", k = i[g][0], p = k.lastIndexOf("."); if (p > 0) { t = O(k, 0, p); k = O(k, p + 1) } var f = $._getAsyncTracker(t); f[k].apply(f, i[g].slice(1)) } } catch (h) { l++ } return l } }; window[aa] = Z; function na() { var i = window[ba], l = v; if (i && typeof i.push == "function") { l = i.constructor == Array; if (!l) return } window[ba] = $; l && $.push.apply($, i) } na();
})()

if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();