/* Modernizr 2.0.6 (Custom Build) | MIT & BSD
* Build: http://www.modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-touch-iepp-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load
*/
; window.Modernizr = function (a, b, c) { function D(a, b) { var c = a.charAt(0).toUpperCase() + a.substr(1), d = (a + " " + p.join(c + " ") + c).split(" "); return C(d, b) } function C(a, b) { for (var d in a) if (k[a[d]] !== c) return b == "pfx" ? a[d] : !0; return !1 } function B(a, b) { return !! ~("" + a).indexOf(b) } function A(a, b) { return typeof a === b } function z(a, b) { return y(o.join(a + ";") + (b || "")) } function y(a) { k.cssText = a } var d = "2.0.6", e = {}, f = !0, g = b.documentElement, h = b.head || b.getElementsByTagName("head")[0], i = "modernizr", j = b.createElement(i), k = j.style, l, m = ":)", n = Object.prototype.toString, o = " -webkit- -moz- -o- -ms- -khtml- ".split(" "), p = "Webkit Moz O ms Khtml".split(" "), q = {}, r = {}, s = {}, t = [], u = function (a, c, d, e) { var f, h, j, k = b.createElement("div"); if (parseInt(d, 10)) while (d--) j = b.createElement("div"), j.id = e ? e[d] : i + (d + 1), k.appendChild(j); f = ["&shy;", "<style>", a, "</style>"].join(""), k.id = i, k.innerHTML += f, g.appendChild(k), h = c(k, a), k.parentNode.removeChild(k); return !!h }, v, w = {}.hasOwnProperty, x; !A(w, c) && !A(w.call, c) ? x = function (a, b) { return w.call(a, b) } : x = function (a, b) { return b in a && A(a.constructor.prototype[b], c) }; var E = function (c, d) { var f = c.join(""), g = d.length; u(f, function (c, d) { var f = b.styleSheets[b.styleSheets.length - 1], h = f.cssRules && f.cssRules[0] ? f.cssRules[0].cssText : f.cssText || "", i = c.childNodes, j = {}; while (g--) j[i[g].id] = i[g]; e.touch = "ontouchstart" in a || j.touch.offsetTop === 9, e.csstransforms3d = j.csstransforms3d.offsetLeft === 9, e.generatedcontent = j.generatedcontent.offsetHeight >= 1, e.fontface = /src/i.test(h) && h.indexOf(d.split(" ")[0]) === 0 }, g, d) } (['@font-face {font-family:"font";src:url("https://")}', ["@media (", o.join("touch-enabled),("), i, ")", "{#touch{top:9px;position:absolute}}"].join(""), ["@media (", o.join("transform-3d),("), i, ")", "{#csstransforms3d{left:9px;position:absolute}}"].join(""), ['#generatedcontent:after{content:"', m, '";visibility:hidden}'].join("")], ["fontface", "touch", "csstransforms3d", "generatedcontent"]); q.flexbox = function () { function c(a, b, c, d) { a.style.cssText = o.join(b + ":" + c + ";") + (d || "") } function a(a, b, c, d) { b += ":", a.style.cssText = (b + o.join(c + ";" + b)).slice(0, -b.length) + (d || "") } var d = b.createElement("div"), e = b.createElement("div"); a(d, "display", "box", "width:42px;padding:0;"), c(e, "box-flex", "1", "width:10px;"), d.appendChild(e), g.appendChild(d); var f = e.offsetWidth === 42; d.removeChild(e), g.removeChild(d); return f }, q.touch = function () { return e.touch }, q.rgba = function () { y("background-color:rgba(150,255,150,.5)"); return B(k.backgroundColor, "rgba") }, q.hsla = function () { y("background-color:hsla(120,40%,100%,.5)"); return B(k.backgroundColor, "rgba") || B(k.backgroundColor, "hsla") }, q.multiplebgs = function () { y("background:url(https://),url(https://),red url(https://)"); return /(url\s*\(.*?){3}/.test(k.background) }, q.backgroundsize = function () { return D("backgroundSize") }, q.borderimage = function () { return D("borderImage") }, q.borderradius = function () { return D("borderRadius") }, q.boxshadow = function () { return D("boxShadow") }, q.textshadow = function () { return b.createElement("div").style.textShadow === "" }, q.opacity = function () { z("opacity:.55"); return /^0.55$/.test(k.opacity) }, q.cssanimations = function () { return D("animationName") }, q.csscolumns = function () { return D("columnCount") }, q.cssgradients = function () { var a = "background-image:", b = "gradient(linear,left top,right bottom,from(#9f9),to(white));", c = "linear-gradient(left top,#9f9, white);"; y((a + o.join(b + a) + o.join(c + a)).slice(0, -a.length)); return B(k.backgroundImage, "gradient") }, q.cssreflections = function () { return D("boxReflect") }, q.csstransforms = function () { return !!C(["transformProperty", "WebkitTransform", "MozTransform", "OTransform", "msTransform"]) }, q.csstransforms3d = function () { var a = !!C(["perspectiveProperty", "WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"]); a && "webkitPerspective" in g.style && (a = e.csstransforms3d); return a }, q.csstransitions = function () { return D("transitionProperty") }, q.fontface = function () { return e.fontface }, q.generatedcontent = function () { return e.generatedcontent }; for (var F in q) x(q, F) && (v = F.toLowerCase(), e[v] = q[F](), t.push((e[v] ? "" : "no-") + v)); y(""), j = l = null, a.attachEvent && function () { var a = b.createElement("div"); a.innerHTML = "<elem></elem>"; return a.childNodes.length !== 1 } () && function (a, b) { function s(a) { var b = -1; while (++b < g) a.createElement(f[b]) } a.iepp = a.iepp || {}; var d = a.iepp, e = d.html5elements || "abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", f = e.split("|"), g = f.length, h = new RegExp("(^|\\s)(" + e + ")", "gi"), i = new RegExp("<(/*)(" + e + ")", "gi"), j = /^\s*[\{\}]\s*$/, k = new RegExp("(^|[^\\n]*?\\s)(" + e + ")([^\\n]*)({[\\n\\w\\W]*?})", "gi"), l = b.createDocumentFragment(), m = b.documentElement, n = m.firstChild, o = b.createElement("body"), p = b.createElement("style"), q = /print|all/, r; d.getCSS = function (a, b) { if (a + "" === c) return ""; var e = -1, f = a.length, g, h = []; while (++e < f) { g = a[e]; if (g.disabled) continue; b = g.media || b, q.test(b) && h.push(d.getCSS(g.imports, b), g.cssText), b = "all" } return h.join("") }, d.parseCSS = function (a) { var b = [], c; while ((c = k.exec(a)) != null) b.push(((j.exec(c[1]) ? "\n" : c[1]) + c[2] + c[3]).replace(h, "$1.iepp_$2") + c[4]); return b.join("\n") }, d.writeHTML = function () { var a = -1; r = r || b.body; while (++a < g) { var c = b.getElementsByTagName(f[a]), d = c.length, e = -1; while (++e < d) c[e].className.indexOf("iepp_") < 0 && (c[e].className += " iepp_" + f[a]) } l.appendChild(r), m.appendChild(o), o.className = r.className, o.id = r.id, o.innerHTML = r.innerHTML.replace(i, "<$1font") }, d._beforePrint = function () { p.styleSheet.cssText = d.parseCSS(d.getCSS(b.styleSheets, "all")), d.writeHTML() }, d.restoreHTML = function () { o.innerHTML = "", m.removeChild(o), m.appendChild(r) }, d._afterPrint = function () { d.restoreHTML(), p.styleSheet.cssText = "" }, s(b), s(l); d.disablePP || (n.insertBefore(p, n.firstChild), p.media = "print", p.className = "iepp-printshim", a.attachEvent("onbeforeprint", d._beforePrint), a.attachEvent("onafterprint", d._afterPrint)) } (a, b), e._version = d, e._prefixes = o, e._domPrefixes = p, e.testProp = function (a) { return C([a]) }, e.testAllProps = D, e.testStyles = u, g.className = g.className.replace(/\bno-js\b/, "") + (f ? " js " + t.join(" ") : ""); return e } (this, this.document), function (a, b, c) { function k(a) { return !a || a == "loaded" || a == "complete" } function j() { var a = 1, b = -1; while (p.length - ++b) if (p[b].s && !(a = p[b].r)) break; a && g() } function i(a) { var c = b.createElement("script"), d; c.src = a.s, c.onreadystatechange = c.onload = function () { !d && k(c.readyState) && (d = 1, j(), c.onload = c.onreadystatechange = null) }, m(function () { d || (d = 1, j()) }, H.errorTimeout), a.e ? c.onload() : n.parentNode.insertBefore(c, n) } function h(a) { var c = b.createElement("link"), d; c.href = a.s, c.rel = "stylesheet", c.type = "text/css"; if (!a.e && (w || r)) { var e = function (a) { m(function () { if (!d) try { a.sheet.cssRules.length ? (d = 1, j()) : e(a) } catch (b) { b.code == 1e3 || b.message == "security" || b.message == "denied" ? (d = 1, m(function () { j() }, 0)) : e(a) } }, 0) }; e(c) } else c.onload = function () { d || (d = 1, m(function () { j() }, 0)) }, a.e && c.onload(); m(function () { d || (d = 1, j()) }, H.errorTimeout), !a.e && n.parentNode.insertBefore(c, n) } function g() { var a = p.shift(); q = 1, a ? a.t ? m(function () { a.t == "c" ? h(a) : i(a) }, 0) : (a(), j()) : q = 0 } function f(a, c, d, e, f, h) { function i() { !o && k(l.readyState) && (r.r = o = 1, !q && j(), l.onload = l.onreadystatechange = null, m(function () { u.removeChild(l) }, 0)) } var l = b.createElement(a), o = 0, r = { t: d, s: c, e: h }; l.src = l.data = c, !s && (l.style.display = "none"), l.width = l.height = "0", a != "object" && (l.type = d), l.onload = l.onreadystatechange = i, a == "img" ? l.onerror = i : a == "script" && (l.onerror = function () { r.e = r.r = 1, g() }), p.splice(e, 0, r), u.insertBefore(l, s ? null : n), m(function () { o || (u.removeChild(l), r.r = r.e = o = 1, j()) }, H.errorTimeout) } function e(a, b, c) { var d = b == "c" ? z : y; q = 0, b = b || "j", C(a) ? f(d, a, b, this.i++, l, c) : (p.splice(this.i++, 0, a), p.length == 1 && g()); return this } function d() { var a = H; a.loader = { load: e, i: 0 }; return a } var l = b.documentElement, m = a.setTimeout, n = b.getElementsByTagName("script")[0], o = {}.toString, p = [], q = 0, r = "MozAppearance" in l.style, s = r && !!b.createRange().compareNode, t = r && !s, u = s ? l : n.parentNode, v = a.opera && o.call(a.opera) == "[object Opera]", w = "webkitAppearance" in l.style, x = w && "async" in b.createElement("script"), y = r ? "object" : v || x ? "img" : "script", z = w ? "img" : y, A = Array.isArray || function (a) { return o.call(a) == "[object Array]" }, B = function (a) { return Object(a) === a }, C = function (a) { return typeof a == "string" }, D = function (a) { return o.call(a) == "[object Function]" }, E = [], F = {}, G, H; H = function (a) { function f(a) { var b = a.split("!"), c = E.length, d = b.pop(), e = b.length, f = { url: d, origUrl: d, prefixes: b }, g, h; for (h = 0; h < e; h++) g = F[b[h]], g && (f = g(f)); for (h = 0; h < c; h++) f = E[h](f); return f } function e(a, b, e, g, h) { var i = f(a), j = i.autoCallback; if (!i.bypass) { b && (b = D(b) ? b : b[a] || b[g] || b[a.split("/").pop().split("?")[0]]); if (i.instead) return i.instead(a, b, e, g, h); e.load(i.url, i.forceCSS || !i.forceJS && /css$/.test(i.url) ? "c" : c, i.noexec), (D(b) || D(j)) && e.load(function () { d(), b && b(i.origUrl, h, g), j && j(i.origUrl, h, g) }) } } function b(a, b) { function c(a) { if (C(a)) e(a, h, b, 0, d); else if (B(a)) for (i in a) a.hasOwnProperty(i) && e(a[i], h, b, i, d) } var d = !!a.test, f = d ? a.yep : a.nope, g = a.load || a.both, h = a.callback, i; c(f), c(g), a.complete && b.load(a.complete) } var g, h, i = this.yepnope.loader; if (C(a)) e(a, 0, i, 0); else if (A(a)) for (g = 0; g < a.length; g++) h = a[g], C(h) ? e(h, 0, i, 0) : A(h) ? H(h) : B(h) && b(h, i); else B(a) && b(a, i) }, H.addPrefix = function (a, b) { F[a] = b }, H.addFilter = function (a) { E.push(a) }, H.errorTimeout = 1e4, b.readyState == null && b.addEventListener && (b.readyState = "loading", b.addEventListener("DOMContentLoaded", G = function () { b.removeEventListener("DOMContentLoaded", G, 0), b.readyState = "complete" }, 0)), a.yepnope = d() } (this, this.document), Modernizr.load = function () { yepnope.apply(window, [].slice.call(arguments, 0)) };

jQuery.noConflict();
jQuery.easing.def = "easeOutExpo";

function stop(e) {
    if (!e) e = window.event;
    (e.stopPropagation) ? e.stopPropagation() : e.cancelBubble = true;
    (e.preventDefault) ? e.preventDefault() : e.returnValue = false;
    return false;
}

function prevDef(e) {
    if (!e) e = window.event;
    (e.preventDefault) ? e.preventDefault() : e.returnValue = false;
    return false;
}

function log(message) {
    if (typeof console != 'undefined' && typeof console.log != 'undefined') {
        console.log(message);
    }
};

jQuery(document).ready(function() {
    //jQuery("body").addClass("activeJs").removeClass("noJs");
    jQuery(".contentHolder a").not("#breadcrumbs a").not("#print").wrapInner("<span class='linkHugger'></span>");

    if (jQuery('.innerlabel', '#masthead').length) { jQuery('.innerlabel', '#masthead').inputLabel(); }
    if (jQuery(".home #wrapper").length) { initContent(); }
    if (jQuery(".commonBackground").length) { initBackground(); }
    if (jQuery(".home #carrousel").length) { initCarrousel(); }

    jQuery('#print').bind("click", function() { window.print(); return false; });

    Cufon.replace('.contentHolder h1')

    Cufon.replace('.contentHolder h2', {
        fontSize: "24px",
        letterSpacing: "0px"
    });

    Cufon.replace('.contentHolder h3', {
        letterSpacing: "0px"
    });

    Cufon.replace('.contentHolder h4', {
        fontSize: "11px",
        letterSpacing: "0px"
    });

    Cufon.replace('.doubleColumn h4', {
        letterSpacing: "0px",
        color: "#03885B"
    });

    Cufon.replace('#footer a', {
        fontSize: "9px",
        letterSpacing: "0px",
        hover: {
            color: '#fff'
        }
    });

    Cufon.replace('#header-wrapper a.active', {
        fontSize: "11px",
        letterSpacing: "0px"
    });

    Cufon.replace('#header-wrapper a', {
        fontSize: "11px",
        letterSpacing: "0px",
        hover: {
            color: '#fff'
        }
    });

    Cufon.replace('.slides h2');

    Cufon.replace('#banner-0');
    Cufon.replace('#banner-1');
    Cufon.replace('#banner-2');

    Cufon.replace('.loginList strong');

    Cufon.replace('.bentonGreen13', {
        fontSize: "13px",
        letterSpacing: "0px",
        color: "#03885B"
    });

    Cufon.replace('.bentonGreen14', {
        fontSize: "14px",
        letterSpacing: "0px",
        color: "#03885B"
    });

    Cufon.replace('.bentonGreen15', {
        fontSize: "15px",
        letterSpacing: "0px",
        color: "#03885B"
    });

    Cufon.replace('.bentonGreen16', {
        fontSize: "16px",
        letterSpacing: "0px",
        color: "#03885B"
    });

    Cufon.replace('.bentonGreen17', {
        fontSize: "17px",
        letterSpacing: "0px",
        color: "#03885B"
    });

    Cufon.replace('.bentonGreen18', {
        fontSize: "18px",
        letterSpacing: "0px",
        color: "#03885B"
    });

    Cufon.replace('.bentonBlack13', {
        fontSize: "13px",
        letterSpacing: "0px",
        color: "#333"
    });

    Cufon.replace('.bentonBlack14', {
        fontSize: "14px",
        letterSpacing: "0px",
        color: "#333"
    });

    Cufon.replace('.bentonBlack15', {
        fontSize: "15px",
        letterSpacing: "0px",
        color: "#333"
    });

    Cufon.replace('.bentonBlack16', {
        fontSize: "16px",
        letterSpacing: "0px",
        color: "#333"
    });

    Cufon.replace('.bentonBlack17', {
        fontSize: "17px",
        letterSpacing: "0px",
        color: "#333"
    });

    Cufon.replace('.bentonBlack18', {
        fontSize: "18px",
        letterSpacing: "0px",
        color: "#333"
    });

    Cufon.now();

    jQuery("#masthead .search").hover(
        function() { jQuery("#header-wrapper").addClass("searchactive") },
        function() { jQuery("#header-wrapper").removeClass("searchactive") }
    )

    jQuery(".navigation li").hover(
        function() {
            var theId = jQuery(this).attr("id").split("-")[1];
            jQuery("#nav-bg-" + theId).addClass("over");
        },
        function() {
            var theId = jQuery(this).attr("id").split("-")[1];
            jQuery("#nav-bg-" + theId).removeClass("over");
        }
    );

    jQuery(".navigation li").bind("click", function() {
        var theId = jQuery(this).attr("id").split("-")[1];
        jQuery(".navigation-background .active").removeClass("active");
        jQuery("#nav-bg-" + theId).removeClass("over").addClass("active");
    });
});

function initContent() {
    jQuery("#header-wrapper", "#wrapper").css({ "top": "-100px" });
    jQuery(".current-item", "#carrousel").css({ "top": "-90px" });

    jQuery("#nav-bg-0", "#carrousel .navigation-background").css({ "top": -90 });
    jQuery("#nav-bg-1", "#carrousel .navigation-background").css({ "top": -180 });
    jQuery("#nav-bg-2", "#carrousel .navigation-background").css({ "top": -270 });

    jQuery("#footer").css({ "bottom": "-100px" });
    jQuery("#banner").css({ "bottom": "-25px" });
};

function initBackground() {

    if (!jQuery.cookie("IdB-Visit")) {
        jQuery.cookie("IdB-Visit", "true");
        jQuery(".commonBackground").fadeIn(1500, function() {
            if (jQuery(".home").length) { showContent(); }
        });
    } else {
        showContentNow();
    }
};

function showContentNow() {
    jQuery("#header-wrapper", "#wrapper").css({ "top": 0 });
    jQuery(".current-item", "#carrousel").css({ "top": 0 });
    jQuery("#footer").css({ "bottom": 0 });

    jQuery("#nav-bg-0").css({ top: 0 });
    jQuery("#nav-bg-1").css({ top: 0 });
    jQuery("#nav-bg-2").css({ top: 0 });

    jQuery(".slides").show();
    jQuery("#slide-0").show();


    jQuery(".current-item", "#carrousel").show();

    jQuery("#nav-0").show();
    jQuery("#nav-1").show();
    jQuery("#nav-2").show();

    jQuery("#nav-bg-0").show();
    jQuery("#nav-bg-1").show();
    jQuery("#nav-bg-2").show();


    if (jQuery("body").hasClass("ie8")) {
        jQuery("#fader", "#wrapper").fadeTo(0, .4);
    } else if (jQuery("body").hasClass("ie7")) {
        jQuery("#fader", "#wrapper").fadeTo(0, .4);
    } else {
        jQuery("#fader", "#wrapper").fadeTo(0, 1);
    }

    jQuery("#banner", "#wrapper").show().animate({ bottom: 0 }, 0);
}

function showContent() {
        jQuery("#header-wrapper", "#wrapper").animate({ "top": "+=100px" }, 700);
        jQuery("#footer").animate({ "bottom": "+=100px" }, 500)

        jQuery(".slides").fadeIn(1600);
        jQuery("#slide-0").fadeIn(2400);


        jQuery(".current-item", "#carrousel").show().fadeTo(0, 0).animate({ top: 0, opacity: 1 }, 1250);

        jQuery("#nav-0").slideDown(1200);
        jQuery("#nav-bg-0").show().fadeTo(0, 0).animate({ top: 0, opacity: 1 }, 1200, function() {
        });

        jQuery("#nav-1").slideDown(1600);
        jQuery("#nav-bg-1").show().fadeTo(0, 0).animate({ top: 0, opacity: 1 }, 1800);

        jQuery("#nav-2").slideDown(2000);
        jQuery("#nav-bg-2").show().fadeTo(0, 0).animate({ top: 0, opacity: 1 }, 2400);


        jQuery("#banner", "#wrapper").animate({ bottom: -50 }, 1200, function() {
            jQuery("#fader", "#wrapper").fadeTo(0, 0);
            jQuery("#banner", "#wrapper").show()

            if (jQuery("body").hasClass("ie8")) {
                jQuery("#fader", "#wrapper").fadeTo(1500, .4);
            } else if (jQuery("body").hasClass("ie7")) {
                jQuery("#fader", "#wrapper").fadeTo(1500, .4);
            } else {
                jQuery("#fader", "#wrapper").fadeTo(1500, 1);
            }

            jQuery("#banner", "#wrapper").show().animate({ bottom: 0 }, 1500);
        });
};

function initCarrousel() {
    jQuery("#banner-1").css({ "display": "none" });
    jQuery("#banner-2").css({ "display": "none" });

    //hide invisible slides first
    //jQuery("#slide-1").hide();
    //jQuery("#slide-2").hide();
    jQuery(".navigation li:eq(0)").addClass("over").find("a").animate({ "color": "#ffffff" }, 1000);

    var slideShow = jQuery("#carrousel");
    var totalslides = 2;
    var slideSpeed = 1;
    var WaitTime = 10;
    var timeUnit = 600; //timeUnit = seconds
    var speed = slideSpeed * timeUnit;
    var slideTimer = null;
    var activeSlide = 0; //which slide is active
    var currentItemPosition = 0;

    jQuery(".navigation a").bind("click", function(e) {
        prevDef(e);
        var position = jQuery(".navigation a").index(jQuery(this));
        slide(position);
    })

    slideShow.bind("mouseenter", function() {
        clearInterval(slideTimer)
    });

    slideShow.bind("mouseleave", function() {
        jQuery(".navigation-background .active").removeClass("active");
        clearInterval(slideTimer);
        autoplay();
    });

    function autoplay() {
        slideTimer = setInterval(function() { slideNext() }, WaitTime * timeUnit)
    }

    function slideNext() {
        if (activeSlide < totalslides) { slide(activeSlide + 1) }
        else {
            { slide(0) }
        }
    }

    function slide(pos) {
        currentItemPosition = pos * 94;

        jQuery(".navigation-background li:eq(" + activeSlide + ")").fadeIn(200); //fade active background in		

        jQuery(".current-item").animate({ "top": currentItemPosition }, 700); //set current item nav indicator

        jQuery(".navigation li:eq(" + activeSlide + ") a").animate({ "color": "#000000" }, 1000); //set class to fix font color
        jQuery(".navigation li:eq(" + pos + ") a").animate({ "color": "#ffffff" }, 1000); 		//set class to fix font color

        jQuery(".navigation a").unbind(); 									//remove click from nav
        jQuery(".navigation a").css({ "cursor": "default" }); 					//set cursor to default
        jQuery(".slides li:eq(" + activeSlide + ")").fadeOut(450, function() {		//current slide fade out


            jQuery(".navigation-background li:eq(" + pos + ")").fadeIn(200); //fade old background out

            jQuery(".slides li:eq(" + pos + ")").fadeIn(250, function() {			//next slide fade in
                jQuery(".navigation a").bind("click", function(e) {				//add click to nav when fade finished
                    prevDef(e);
                    var position = jQuery(".navigation a").index(jQuery(this));
                    slide(position);
                })
                jQuery(".navigation a").css({ "cursor": "pointer" }); 			//set cursor to pointer when fade finished
            });
            activeSlide = pos;
        })

        jQuery("#banner li").not("eq(" + pos + ")").fadeOut(500)
        jQuery("#banner li:eq(" + pos + ")").fadeIn(500); 					
    }

    //start the show
    autoplay();

    if (!jQuery("body").hasClass("ie8") && !jQuery("body").hasClass("ie7")) {
        jQuery("#fader").css({"background-image":"none","background-color":"#000","opacity":".4","-moz-border-radius":"5px"});
    }

    function fadeUp() {
        jQuery("#fader").stop().animate({"opacity":.6},1000);
    }

    function fadeDown() {
        jQuery("#fader").stop().animate({"opacity":.4},1000);
    }

    jQuery("#banner").hover(
        function() { fadeUp(); },
        function() { fadeDown(); }
    );

};


