/*!
* CSS Browser Selector v0.4.0 (Nov 02, 2010)
* http://rafael.adm.br/css_browser_selector
*/
function css_browser_selector(u) { var ua = u.toLowerCase(), is = function(t) { return ua.indexOf(t) > -1 }, g = 'gecko', w = 'webkit', s = 'safari', o = 'opera', m = 'mobile', h = document.documentElement, b = [(!(/opera|webtv/i.test(ua)) && /msie\s(\d)/.test(ua)) ? ('ie ie' + RegExp.$1) : is('firefox/2') ? g + ' ff2' : is('firefox/3.5') ? g + ' ff3 ff3_5' : is('firefox/3.6') ? g + ' ff3 ff3_6' : is('firefox/3') ? g + ' ff3' : is('gecko/') ? g : is('opera') ? o + (/version\/(\d+)/.test(ua) ? ' ' + o + RegExp.$1 : (/opera(\s|\/)(\d+)/.test(ua) ? ' ' + o + RegExp.$2 : '')) : is('konqueror') ? 'konqueror' : is('blackberry') ? m + ' blackberry' : is('android') ? m + ' android' : is('chrome') ? w + ' chrome' : is('iron') ? w + ' iron' : is('applewebkit/') ? w + ' ' + s + (/version\/(\d+)/.test(ua) ? ' ' + s + RegExp.$1 : '') : is('mozilla/') ? g : '', is('j2me') ? m + ' j2me' : is('iphone') ? m + ' iphone' : is('ipod') ? m + ' ipod' : is('ipad') ? m + ' ipad' : is('mac') ? 'mac' : is('darwin') ? 'mac' : is('webtv') ? 'webtv' : is('win') ? 'win' + (is('windows nt 6.0') ? ' vista' : '') : is('freebsd') ? 'freebsd' : (is('x11') || is('linux')) ? 'linux' : '', 'js']; c = b.join(' '); h.className += ' ' + c; return c; }; css_browser_selector(navigator.userAgent);
/*!
* hrefID jQuery extention
* returns a valid #hash string from link href attribute in Internet Explorer
*/
(function($) { $.fn.extend({ hrefId: function() { return $(this).attr('href').substr($(this).attr('href').indexOf('#')); } }); })(jQuery);
/*!
* (v) Equal Height plugin v. 1.11
*/
(function($) { $.fn.equalHeights = function() { $(window).resize($.proxy(function() { var tallest = 0; $(this).css('min-height', 0); $(this).each(function() { if ($(this).outerHeight() > tallest) { tallest = $(this).outerHeight(); } }); $(this).each(function() { var padding = $(this).outerHeight() - $(this).height(); var height = tallest - padding; $(this).css({ 'min-height': height }); if ($.browser.msie && parseInt($.browser.version, 10) == 6) $(this).height(height); }); }, this)).triggerHandler('resize'); return this; }; })(jQuery);
/*
* jQuery Tools 1.2.5 - The missing UI library for the Web
* 
* [tooltip, tooltip.slide, tooltip.dynamic]
* 
* NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
* 
* http://flowplayer.org/tools/
* 
* File generated: Tue Nov 09 12:14:29 GMT 2010
*/
(function(f) {
    function p(a, b, c) { var h = c.relative ? a.position().top : a.offset().top, d = c.relative ? a.position().left : a.offset().left, i = c.position[0]; h -= b.outerHeight() - c.offset[0]; d += a.outerWidth() + c.offset[1]; if (/iPad/i.test(navigator.userAgent)) h -= f(window).scrollTop(); var j = b.outerHeight() + a.outerHeight(); if (i == "center") h += j / 2; if (i == "bottom") h += j; i = c.position[1]; a = b.outerWidth() + a.outerWidth(); if (i == "center") d -= a / 2; if (i == "left") d -= a; return { top: h, left: d} } function u(a, b) {
        var c = this, h = a.add(c), d, i = 0, j =
0, m = a.attr("title"), q = a.attr("data-tooltip"), r = o[b.effect], l, s = a.is(":input"), v = s && a.is(":checkbox, :radio, select, :button, :submit"), t = a.attr("type"), k = b.events[t] || b.events[s ? v ? "widget" : "input" : "def"]; if (!r) throw 'Nonexistent effect "' + b.effect + '"'; k = k.split(/,\s*/); if (k.length != 2) throw "Tooltip: bad events configuration for " + t; a.bind(k[0], function(e) { clearTimeout(i); if (b.predelay) j = setTimeout(function() { c.show(e) }, b.predelay); else c.show(e) }).bind(k[1], function(e) {
    clearTimeout(j); if (b.delay) i =
setTimeout(function() { c.hide(e) }, b.delay); else c.hide(e)
}); if (m && b.cancelDefault) { a.removeAttr("title"); a.data("title", m) } f.extend(c, { show: function(e) {
    if (!d) { if (q) d = f(q); else if (b.tip) d = f(b.tip).eq(0); else if (m) d = f(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(m); else { d = a.next(); d.length || (d = a.parent().next()) } if (!d.length) throw "Cannot find tooltip for " + a; } if (c.isShown()) return c; d.stop(true, true); var g = p(a, d, b); b.tip && d.html(a.data("title")); e = e || f.Event(); e.type = "onBeforeShow";
    h.trigger(e, [g]); if (e.isDefaultPrevented()) return c; g = p(a, d, b); d.css({ position: "absolute", top: g.top, left: g.left }); l = true; r[0].call(c, function() { e.type = "onShow"; l = "full"; h.trigger(e) }); g = b.events.tooltip.split(/,\s*/); if (!d.data("__set")) { d.bind(g[0], function() { clearTimeout(i); clearTimeout(j) }); g[1] && !a.is("input:not(:checkbox, :radio), textarea") && d.bind(g[1], function(n) { n.relatedTarget != a[0] && a.trigger(k[1].split(" ")[0]) }); d.data("__set", true) } return c
}, hide: function(e) {
    if (!d || !c.isShown()) return c;
    e = e || f.Event(); e.type = "onBeforeHide"; h.trigger(e); if (!e.isDefaultPrevented()) { l = false; o[b.effect][1].call(c, function() { e.type = "onHide"; h.trigger(e) }); return c } 
}, isShown: function(e) { return e ? l == "full" : l }, getConf: function() { return b }, getTip: function() { return d }, getTrigger: function() { return a } 
}); f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","), function(e, g) { f.isFunction(b[g]) && f(c).bind(g, b[g]); c[g] = function(n) { n && f(c).bind(g, n); return c } })
    } f.tools = f.tools || { version: "1.2.5" }; f.tools.tooltip =
{ conf: { effect: "toggle", fadeOutSpeed: "fast", predelay: 0, delay: 30, opacity: 1, tip: 0, position: ["top", "center"], offset: [0, 0], relative: false, cancelDefault: true, events: { def: "mouseenter,mouseleave", input: "focus,blur", widget: "focus mouseenter,blur mouseleave", tooltip: "mouseenter,mouseleave" }, layout: "<div/>", tipClass: "tooltip" }, addEffect: function(a, b, c) { o[a] = [b, c] } }; var o = { toggle: [function(a) { var b = this.getConf(), c = this.getTip(); b = b.opacity; b < 1 && c.css({ opacity: b }); c.show(); a.call() }, function(a) {
    this.getTip().hide();
    a.call()
} ], fade: [function(a) { var b = this.getConf(); this.getTip().fadeTo(b.fadeInSpeed, b.opacity, a) }, function(a) { this.getTip().fadeOut(this.getConf().fadeOutSpeed, a) } ]
}; f.fn.tooltip = function(a) { var b = this.data("tooltip"); if (b) return b; a = f.extend(true, {}, f.tools.tooltip.conf, a); if (typeof a.position == "string") a.position = a.position.split(/,?\s/); this.each(function() { b = new u(f(this), a); f(this).data("tooltip", b) }); return a.api ? b : this } 
})(jQuery);
(function(d) {
    var i = d.tools.tooltip; d.extend(i.conf, { direction: "up", bounce: false, slideOffset: 10, slideInSpeed: 200, slideOutSpeed: 200, slideFade: !d.browser.msie }); var e = { up: ["-", "top"], down: ["+", "top"], left: ["-", "left"], right: ["+", "left"] }; i.addEffect("slide", function(g) { var a = this.getConf(), f = this.getTip(), b = a.slideFade ? { opacity: a.opacity} : {}, c = e[a.direction] || e.up; b[c[1]] = c[0] + "=" + a.slideOffset; a.slideFade && f.css({ opacity: 0 }); f.show().animate(b, a.slideInSpeed, g) }, function(g) {
        var a = this.getConf(), f = a.slideOffset,
b = a.slideFade ? { opacity: 0} : {}, c = e[a.direction] || e.up, h = "" + c[0]; if (a.bounce) h = h == "+" ? "-" : "+"; b[c[1]] = h + "=" + f; this.getTip().animate(b, a.slideOutSpeed, function() { d(this).hide(); g.call() })
    })
})(jQuery);
(function(g) {
    function j(a) { var c = g(window), d = c.width() + c.scrollLeft(), h = c.height() + c.scrollTop(); return [a.offset().top <= c.scrollTop(), d <= a.offset().left + a.width(), h <= a.offset().top + a.height(), c.scrollLeft() >= a.offset().left] } function k(a) { for (var c = a.length; c--; ) if (a[c]) return false; return true } var i = g.tools.tooltip; i.dynamic = { conf: { classNames: "top right bottom left"} }; g.fn.dynamic = function(a) {
        if (typeof a == "number") a = { speed: a }; a = g.extend({}, i.dynamic.conf, a); var c = a.classNames.split(/\s/), d; this.each(function() {
            var h =
g(this).tooltip().onBeforeShow(function(e, f) {
    e = this.getTip(); var b = this.getConf(); d || (d = [b.position[0], b.position[1], b.offset[0], b.offset[1], g.extend({}, b)]); g.extend(b, d[4]); b.position = [d[0], d[1]]; b.offset = [d[2], d[3]]; e.css({ visibility: "hidden", position: "absolute", top: f.top, left: f.left }).show(); f = j(e); if (!k(f)) {
        if (f[2]) { g.extend(b, a.top); b.position[0] = "top"; e.addClass(c[0]) } if (f[3]) { g.extend(b, a.right); b.position[1] = "right"; e.addClass(c[1]) } if (f[0]) { g.extend(b, a.bottom); b.position[0] = "bottom"; e.addClass(c[2]) } if (f[1]) {
            g.extend(b,
a.left); b.position[1] = "left"; e.addClass(c[3])
        } if (f[0] || f[2]) b.offset[0] *= -1; if (f[1] || f[3]) b.offset[1] *= -1
    } e.css({ visibility: "visible" }).hide()
}); h.onBeforeShow(function() { var e = this.getConf(); this.getTip(); setTimeout(function() { e.position = [d[0], d[1]]; e.offset = [d[2], d[3]] }, 0) }); h.onHide(function() { var e = this.getTip(); e.removeClass(a.classNames) }); ret = h
        }); return a.api ? ret : this
    } 
})(jQuery);
/* 
* No Spam
* Copyright (c) 2008 Mike Branski (www.leftrightdesigns.com) - GPL
*/
jQuery.fn.nospam = function(a) { a = jQuery.extend({ replaceText: false, filterLevel: 'normal' }, a); return this.each(function() { e = null; if (a.filterLevel == 'low') { if ($(this).is('a[rel]')) { e = $(this).attr('rel').replace('//', '@').replace(/\//g, '.') } else { e = $(this).text().replace('//', '@').replace(/\//g, '.') } } else { if ($(this).is('a[rel]')) { e = $(this).attr('rel').split('').reverse().join('').replace('//', '@').replace(/\//g, '.') } else { e = $(this).text().split('').reverse().join('').replace('//', '@').replace(/\//g, '.') } } if (e) { if ($(this).is('a[rel]')) { $(this).attr('href', 'mailto:' + e); if (a.replaceText) { $(this).text(e) } } else { $(this).text(e) } } }) };
/*!
* jQuery Tools v1.2.5 - tabs
*/
(function(a) { a.tools = a.tools || { version: "v1.2.5" }, a.tools.tabs = { conf: { tabs: "a", current: "current", onBeforeClick: null, onClick: null, effect: "default", initialIndex: 0, event: "click", rotate: !1, history: !1 }, addEffect: function(a, c) { b[a] = c } }; var b = { "default": function(a, b) { this.getPanes().hide().eq(a).show(), b.call() }, fade: function(a, b) { var c = this.getConf(), d = c.fadeOutSpeed, e = this.getPanes(); d ? e.fadeOut(d) : e.hide(), e.eq(a).fadeIn(c.fadeInSpeed, b) }, slide: function(a, b) { this.getPanes().slideUp(200), this.getPanes().eq(a).slideDown(400, b) }, ajax: function(a, b) { this.getPanes().eq(0).load(this.getTabs().eq(a).attr("href"), b) } }, c; a.tools.tabs.addEffect("horizontal", function(b, d) { c || (c = this.getPanes().eq(0).width()), this.getCurrentPane().animate({ width: 0 }, function() { a(this).hide() }), this.getPanes().eq(b).animate({ width: c }, function() { a(this).show(), d.call() }) }); function d(c, d, e) { var f = this, g = c.add(this), h = c.find(e.tabs), i = d.jquery ? d : c.children(d), j; h.length || (h = c.children()), i.length || (i = c.parent().find(d)), i.length || (i = a(d)), a.extend(this, { click: function(c, d) { var i = h.eq(c); typeof c == "string" && c.replace("#", "") && (i = h.filter("[href*=" + c.replace("#", "") + "]"), c = Math.max(h.index(i), 0)); if (e.rotate) { var k = h.length - 1; if (c < 0) return f.click(k, d); if (c > k) return f.click(0, d) } if (!i.length) { if (j >= 0) return f; c = e.initialIndex, i = h.eq(c) } if (c === j) return f; d = d || a.Event(), d.type = "onBeforeClick", g.trigger(d, [c]); if (!d.isDefaultPrevented()) { b[e.effect].call(f, c, function() { d.type = "onClick", g.trigger(d, [c]) }), j = c, h.removeClass(e.current), i.addClass(e.current); return f } }, getConf: function() { return e }, getTabs: function() { return h }, getPanes: function() { return i }, getCurrentPane: function() { return i.eq(j) }, getCurrentTab: function() { return h.eq(j) }, getIndex: function() { return j }, next: function() { return f.click(j + 1) }, prev: function() { return f.click(j - 1) }, destroy: function() { h.unbind(e.event).removeClass(e.current), i.find("a[href^=#]").unbind("click.T"); return f } }), a.each("onBeforeClick,onClick".split(","), function(b, c) { a.isFunction(e[c]) && a(f).bind(c, e[c]), f[c] = function(b) { b && a(f).bind(c, b); return f } }), e.history && a.fn.history && (a.tools.history.init(h), e.event = "history"), h.each(function(b) { a(this).bind(e.event, function(a) { f.click(b, a); return a.preventDefault() }) }), i.find("a[href^=#]").bind("click.T", function(b) { f.click(a(this).attr("href"), b) }), location.hash && e.tabs == "a" && c.find("[href=" + location.hash + "]").length ? f.click(location.hash) : (e.initialIndex === 0 || e.initialIndex > 0) && f.click(e.initialIndex) } a.fn.tabs = function(b, c) { var e = this.data("tabs"); e && (e.destroy(), this.removeData("tabs")), a.isFunction(c) && (c = { onBeforeClick: c }), c = a.extend({}, a.tools.tabs.conf, c), this.each(function() { e = new d(a(this), b, c), a(this).data("tabs", e) }); return c.api ? e : this } })(jQuery);
/*
* FancyBox
* Dual licensed under the MIT and GPL licenses:
*/
eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function(e) { return r[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } (';(11(b){1i m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=1S,v=26 2f,J=/\\.(4m|4n|4o|4p|4q)(.*)?$/i,W=/[^\\.]\\.(1T)\\s*$/i,K,L=1,y=0,s="",r,i,h=14,B=b.1w(b("<13/>")[0],{1K:0}),M=b.2F.3m&&b.2F.4r<7&&!1n.4s,N=11(){t.1e();v.2G=v.2H=1S;G&&G.4t();m.1L()},O=11(){6(14===e.3n(o,q,e)){t.1e();h=14}17{e.2I=14;e.8="1f";e.9="1f";m.1o(\'<p 16="4-3o">4u 4v 1E 4w 4x 4y.<4z />4A 4B 4C 4D.</p>\');F()}},I=11(){1i a=o[q],c,g,k,C,P,w;N();e=b.1w({},b.2g.4.3p,1j b(a).1x("4")=="28"?e:b(a).1x("4"));w=e.3q(o,q,e);6(w===14)h=14;17{6(1j w=="1M")e=b.1w(e,w);k=e.1k||(a.2J?b(a).1U("1k"):a.1k)||"";6(a.2J&&!e.1V)e.1V=b(a).29("2h:3r").1c?b(a).29("2h:3r"):b(a);6(k===""&&e.1V&&e.3s)k=e.1V.1U("3t");c=e.1p||(a.2J?b(a).1U("1p"):a.1p)||1S;6(/^(?:2a)/i.2K(c)||c=="#")c=1S;6(e.1r){g=e.1r;6(!c)c=e.1E}17 6(e.1E)g="1o";17 6(c)g=c.2i(J)?"2L":c.2i(W)?"1T":b(a).4E("1y")?"1y":c.1W("#")===0?"1N":"1l";6(g){6(g=="1N"){a=c.4F(c.1W("#"));g=b(a).1c>0?"1N":"1l"}e.1r=g;e.1p=c;e.1k=k;6(e.1X)6(e.1r=="1o"||e.1r=="1N"||e.1r=="1l"){e.8="1f";e.9="1f"}17 e.1X=14;6(e.3u){e.2M=1a;e.2j=14;e.2N=14;e.2k=14;e.2O=14}e.15=18(e.15,10);e.1s=18(e.1s,10);m.19("15",e.15+e.1s);b(".4-1N-2l").1F("4-1Y").1t("4-3v",11(){b(1h).2P(j.29())});3w(g){1z"1o":m.1o(e.1E);F();1A;1z"1N":6(b(a).4G().1G("#4-1E")===1a){h=14;1A}b(\'<13 1q="4-1N-2l" />\').1e().4H(b(a)).1t("4-2Q",11(){b(1h).2P(j.29())}).1t("4-1Y",11(){b(1h).2P(m.29())});b(a).1B(m);F();1A;1z"2L":h=14;b.4.2R();v=26 2f;v.2G=11(){O()};v.2H=11(){h=1a;v.2G=v.2H=1S;e.8=v.8;e.9=v.9;b("<2h />").1U({16:"4-2h",1C:v.1C,3t:e.1k}).1B(m);Q()};v.1C=c;1A;1z"1T":e.1O="3x";C=\'<1M 4I="4J:4K-4L-4M-4N-4O" 8="\'+e.8+\'" 9="\'+e.9+\'"><2m 2S="4P" 3y="\'+c+\'"></2m>\';P="";b.4Q(e.1T,11(x,H){C+=\'<2m 2S="\'+x+\'" 3y="\'+H+\'"></2m>\';P+=" "+x+\'="\'+H+\'"\'});C+=\'<3z 1C="\'+c+\'" 1r="4R/x-4S-4T" 8="\'+e.8+\'" 9="\'+e.9+\'"\'+P+"></3z></1M>";m.1o(C);F();1A;1z"1l":h=14;b.4.2R();e.1l.2T=e.1l.3A;G=b.1l(b.1w({},e.1l,{4U:c,1x:e.1l.1x||{},3o:11(x){x.3B>0&&O()},3A:11(x,H,R){6((1j R=="1M"?R:G).3B==3C){6(1j e.1l.2T=="11"){w=e.1l.2T(c,x,H,R);6(w===14){t.1e();1D}17 6(1j w=="4V"||1j w=="1M")x=w}m.1o(x);F()}}}));1A;1z"1y":Q()}}17 O()}},F=11(){1i a=e.8,c=e.9;a=a.2n().1W("%")>-1?18((b(1n).8()-e.1s*2)*2o(a)/2p,10)+"2b":a=="1f"?"1f":a+"2b";c=c.2n().1W("%")>-1?18((b(1n).9()-e.1s*2)*2o(c)/2p,10)+"2b":c=="1f"?"1f":c+"2b";m.4W(\'<13 1P="8:\'+a+";9:"+c+";4X: "+(e.1O=="1f"?"1f":e.1O=="4Y"?"2q":"2r")+\';2U:4Z;"></13>\');e.8=m.8();e.9=m.9();Q()},Q=11(){1i a,c;t.1e();6(f.1G(":1Z")&&14===d.2V(l,p,d)){b.2s.2t("4-1Y");h=14}17{h=1a;b(j.21(u)).1F();b(1n).1F("2c.1m 2q.1m");b(1H).1F("2W.1m");f.1G(":1Z")&&d.1I!=="50"&&f.19("9",f.9());l=o;p=q;d=e;6(d.2M){u.19({"51-52":d.3D,1u:d.3E,53:d.2j?"54":"1f",9:b(1H).9()});6(!u.1G(":1Z")){M&&b("3F:55(#4-2l 3F)").2u(11(){1D 1h.1P.2X!=="2r"}).19({2X:"2r"}).56("4-2Q",11(){1h.1P.2X="57"});u.1v()}}17 u.1e();i=X();s=d.1k||"";y=0;n.1L().2Y("1P").58();6(d.2I!==14){6(b.59(d.2Z))a=d.2Z(s,l,p,d);17 a=s&&s.1c?d.1I=="1Q"?\'<3G 16="4-1k-1Q-30" 5a="0" 5b="0"><3H><22 16="4-1k-1Q-1b"></22><22 16="4-1k-1Q-5c">\'+s+\'</22><22 16="4-1k-1Q-31"></22></3H></3G>\':\'<13 16="4-1k-\'+d.1I+\'">\'+s+"</13>":14;s=a;6(!(!s||s==="")){n.2v("4-1k-"+d.1I).1o(s).1B("3I").1v();3w(d.1I){1z"32":n.19({8:i.8-d.15*2,3J:d.15,5d:d.15});y=n.5e(1a);n.1B(D);i.9+=y;1A;1z"5f":n.19({3J:d.15,8:i.8-d.15*2,5g:d.15}).1B(D);1A;1z"1Q":n.19("1b",18((n.8()-i.8-40)/2,10)*-1).1B(f);1A;5h:n.19({8:i.8-d.15*2,3K:d.15,5i:d.15}).1B(f)}}}n.1e();6(f.1G(":1Z")){b(E.21(z).21(A)).1e();a=f.2U();r={1d:a.1d,1b:a.1b,8:f.8(),9:f.9()};c=r.8==i.8&&r.9==i.9;j.3L(d.33,0.3,11(){1i g=11(){j.1o(m.34()).3L(d.33,1,S)};b.2s.2t("4-3v");j.1L().2Y("2u").19({"2d-8":d.15,8:i.8-d.15*2,9:e.1X?"1f":i.9-y-d.15*2});6(c)g();17{B.1K=0;b(B).2w({1K:1},{35:d.3M,36:d.5j,38:T,3a:g})}})}17{f.2Y("1P");j.19("2d-8",d.15);6(d.3b=="3N"){r=V();j.1o(m.34());f.1v();6(d.1u)i.1u=0;B.1K=0;b(B).2w({1K:1},{35:d.3c,36:d.3O,38:T,3a:S})}17{d.1I=="32"&&y>0&&n.1v();j.19({8:i.8-d.15*2,9:e.1X?"1f":i.9-y-d.15*2}).1o(m.34());f.19(i).5k(d.3b=="3P"?0:d.3c,S)}}}},Y=11(){6(d.2k||d.3d)b(1H).1t("2W.1m",11(a){6(a.2x==27&&d.2k){a.1R();b.4.23()}17 6((a.2x==37||a.2x==39)&&d.3d&&a.24.3e!=="5l"&&a.24.3e!=="5m"&&a.24.3e!=="5n"){a.1R();b.4[a.2x==37?"2y":"2z"]()}});6(d.3Q){6(d.2A&&l.1c>1||p!==0)z.1v();6(d.2A&&l.1c>1||p!=l.1c-1)A.1v()}17{z.1e();A.1e()}},S=11(){6(!b.3R.1u){j.2e(0).1P.3S("2u");f.2e(0).1P.3S("2u")}e.1X&&j.19("9","1f");f.19("9","1f");s&&s.1c&&n.1v();d.2O&&E.1v();Y();d.2N&&j.1t("1J",b.4.23);d.2j&&u.1t("1J",b.4.23);b(1n).1t("2c.1m",b.4.2c);d.3T&&b(1n).1t("2q.1m",b.4.2B);6(d.1r=="1y")b(\'<1y 16="4-3f" 2S="4-3f\'+(26 5o).5p()+\'" 3U="0" 5q="0" \'+(b.2F.3m?\'5r="1a""\':"")+\' 1O="\'+e.1O+\'" 1C="\'+d.1p+\'"></1y>\').1B(j);f.1v();h=14;b.4.2B();d.3V(l,p,d);1i a,c;6(l.1c-1>p){a=l[p+1].1p;6(1j a!=="28"&&a.2i(J)){c=26 2f;c.1C=a}}6(p>0){a=l[p-1].1p;6(1j a!=="28"&&a.2i(J)){c=26 2f;c.1C=a}}},T=11(a){1i c={8:18(r.8+(i.8-r.8)*a,10),9:18(r.9+(i.9-r.9)*a,10),1d:18(r.1d+(i.1d-r.1d)*a,10),1b:18(r.1b+(i.1b-r.1b)*a,10)};6(1j i.1u!=="28")c.1u=a<0.5?0.5:a;f.19(c);j.19({8:c.8-d.15*2,9:c.9-y*a-d.15*2})},U=11(){1D[b(1n).8()-d.1s*2,b(1n).9()-d.1s*2,b(1H).5s()+d.1s,b(1H).5t()+d.1s]},X=11(){1i a=U(),c={},g=d.3W,k=d.15*2;c.8=d.8.2n().1W("%")>-1?18(a[0]*2o(d.8)/2p,10):d.8+k;c.9=d.9.2n().1W("%")>-1?18(a[1]*2o(d.9)/2p,10):d.9+k;6(g&&(c.8>a[0]||c.9>a[1]))6(e.1r=="2L"||e.1r=="1T"){g=d.8/d.9;6(c.8>a[0]){c.8=a[0];c.9=18((c.8-k)/g+k,10)}6(c.9>a[1]){c.9=a[1];c.8=18((c.9-k)*g+k,10)}}17{c.8=25.3X(c.8,a[0]);c.9=25.3X(c.9,a[1])}c.1d=18(25.2C(a[3]-20,a[3]+(a[1]-c.9-40)*0.5),10);c.1b=18(25.2C(a[2]-20,a[2]+(a[0]-c.8-40)*0.5),10);1D c},V=11(){1i a=e.1V?b(e.1V):14,c={};6(a&&a.1c){c=a.5u();c.1d+=18(a.19("5v"),10)||0;c.1b+=18(a.19("3K"),10)||0;c.1d+=18(a.19("2d-1d-8"),10)||0;c.1b+=18(a.19("2d-1b-8"),10)||0;c.8=a.8();c.9=a.9();c={8:c.8+d.15*2,9:c.9+d.15*2,1d:c.1d-d.15-20,1b:c.1b-d.15-20}}17{a=U();c={8:d.15*2,9:d.15*2,1d:18(a[3]+a[1]*0.5,10),1b:18(a[2]+a[0]*0.5,10)}}1D c},Z=11(){6(t.1G(":1Z")){b("13",t).19("1d",L*-40+"2b");L=(L+1)%12}17 3Y(K)};b.2g.4=11(a){6(!b(1h).1c)1D 1h;b(1h).1x("4",b.1w({},a,b.3Z?b(1h).3Z():{})).1F("1J.1m").1t("1J.1m",11(c){c.1R();6(!h){h=1a;b(1h).5w();o=[];q=0;c=b(1h).1U("3g")||"";6(!c||c==""||c==="5x")o.41(1h);17{o=b("a[3g="+c+"], 5y[3g="+c+"]");q=o.42(1h)}I()}});1D 1h};b.4=11(a,c){1i g;6(!h){h=1a;g=1j c!=="28"?c:{};o=[];q=18(g.42,10)||0;6(b.5z(a)){5A(1i k=0,C=a.1c;k<C;k++)6(1j a[k]=="1M")b(a[k]).1x("4",b.1w({},g,a[k]));17 a[k]=b({}).1x("4",b.1w({1E:a[k]},g));o=43.5B(o,a)}17{6(1j a=="1M")b(a).1x("4",b.1w({},g,a));17 a=b({}).1x("4",b.1w({1E:a},g));o.41(a)}6(q>o.1c||q<0)q=0;I()}};b.4.2R=11(){3Y(K);t.1v();K=5C(Z,5D)};b.4.5E=11(){t.1e()};b.4.2z=11(){1D b.4.3h(p+1)};b.4.2y=11(){1D b.4.3h(p-1)};b.4.3h=11(a){6(!h){a=18(a);o=l;6(a>-1&&a<l.1c){q=a;I()}17 6(d.2A&&l.1c>1){q=a>=l.1c?0:l.1c-1;I()}}};b.4.1Y=11(){6(!h){h=1a;b.2s.2t("4-1Y");N();e.44(o,q,e);h=14}};b.4.23=11(){11 a(){u.45("46");n.1L().1e();f.1e();b.2s.2t("4-2Q");j.1L();d.47(l,p,d);l=e=[];p=q=0;d=e={};h=14}6(!(h||f.1G(":2r"))){h=1a;6(d&&14===d.2V(l,p,d))h=14;17{N();b(E.21(z).21(A)).1e();b(j.21(u)).1F();b(1n).1F("2c.1m 2q.1m");b(1H).1F("2W.1m");j.5F("1y").1U("1C",M&&/^48/i.2K(1n.49.1p||"")?"2a:4a(14)":"4b:4c");d.1I!=="32"&&n.1L();f.4d();6(d.3i=="3N"){r=V();1i c=f.2U();i={1d:c.1d,1b:c.1b,8:f.8(),9:f.9()};6(d.1u)i.1u=1;n.1L().1e();B.1K=1;b(B).2w({1K:0},{35:d.3j,36:d.4e,38:T,3a:a})}17 f.45(d.3i=="3P"?0:d.3j,a)}}};b.4.2c=11(){u.1G(":1Z")&&u.19("9",b(1H).9());b.4.2B(1a)};b.4.2B=11(a){1i c,g;6(!h){g=a===1a?1:0;c=U();!g&&(f.8()>c[0]||f.9()>c[1])||f.4d().2w({1d:18(25.2C(c[3]-20,c[3]+(c[1]-j.9()-40)*0.5-d.15)),1b:18(25.2C(c[2]-20,c[2]+(c[0]-j.8()-40)*0.5-d.15))},1j a=="5G"?a:3C)}};b.4.4f=11(){6(!b("#4-30").1c){b("3I").3k(m=b(\'<13 16="4-2l"></13>\'),t=b(\'<13 16="4-5H"><13></13></13>\'),u=b(\'<13 16="4-5I"></13>\'),f=b(\'<13 16="4-30"></13>\'));D=b(\'<13 16="4-5J"></13>\').3k(\'<13 1q="4-1g" 16="4-1g-n"></13><13 1q="4-1g" 16="4-1g-5K"></13><13 1q="4-1g" 16="4-1g-e"></13><13 1q="4-1g" 16="4-1g-5L"></13><13 1q="4-1g" 16="4-1g-s"></13><13 1q="4-1g" 16="4-1g-5M"></13><13 1q="4-1g" 16="4-1g-w"></13><13 1q="4-1g" 16="4-1g-5N"></13>\').1B(f);D.3k(j=b(\'<13 16="4-1E"></13>\'),E=b(\'<a 16="4-23"></a>\'),n=b(\'<13 16="4-1k"></13>\'),z=b(\'<a 1p="2a:;" 16="4-1b"><2D 1q="4g-2E" 16="4-1b-2E"></2D></a>\'),A=b(\'<a 1p="2a:;" 16="4-31"><2D 1q="4g-2E" 16="4-31-2E"></2D></a>\'));E.1J(b.4.23);t.1J(b.4.1Y);z.1J(11(a){a.1R();b.4.2y()});A.1J(11(a){a.1R();b.4.2z()});b.2g.4h&&f.1t("4h.1m",11(a,c){6(h)a.1R();17 6(b(a.24).2e(0).4i==0||b(a.24).2e(0).5O===b(a.24).2e(0).4i){a.1R();b.4[c>0?"2y":"2z"]()}});b.3R.1u||f.2v("4-5P");6(M){t.2v("4-4j");f.2v("4-4j");b(\'<1y 16="4-1e-5Q-3f" 1C="\'+(/^48/i.2K(1n.49.1p||"")?"2a:4a(14)":"4b:4c")+\'" 1O="3x" 2d="0" 3U="0" 5R="-1"></1y>\').5S(D)}}};b.2g.4.3p={15:10,1s:40,1u:14,3u:14,2A:14,1O:"1f",8:5T,9:5U,3W:1a,1X:1a,3T:14,1l:{},1T:{5V:"5W"},2j:1a,2N:14,2M:1a,3E:0.7,3D:"#5X",2I:1a,1I:"1Q",2Z:1S,3s:14,3b:"4k",3i:"4k",3c:3l,3j:3l,3M:3l,33:"46",3O:"4l",4e:"4l",2O:1a,3Q:1a,2k:1a,3d:1a,3q:11(){},44:11(){},3V:11(){},2V:11(){},47:11(){},3n:11(){}};b(1H).5Y(11(){b.4.4f()})})(43);', 62, 371, '||||fancybox||if||width|height||||||||||||||||||||||||||||||||||||||||||||||||||||||function||div|false|padding|id|else|parseInt|css|true|left|length|top|hide|auto|bg|this|var|typeof|title|ajax|fb|window|html|href|class|type|margin|bind|opacity|show|extend|data|iframe|case|break|appendTo|src|return|content|unbind|is|document|titlePosition|click|prop|empty|object|inline|scrolling|style|float|preventDefault|null|swf|attr|orig|indexOf|autoDimensions|cancel|visible||add|td|close|target|Math|new||undefined|children|javascript|px|resize|border|get|Image|fn|img|match|hideOnOverlayClick|enableEscapeButton|tmp|param|toString|parseFloat|100|scroll|hidden|event|trigger|filter|addClass|animate|keyCode|prev|next|cyclic|center|max|span|ico|browser|onerror|onload|titleShow|nodeName|test|image|overlayShow|hideOnContentClick|showCloseButton|replaceWith|cleanup|showActivity|name|win|position|onCleanup|keydown|visibility|removeAttr|titleFormat|wrap|right|inside|changeFade|contents|duration|easing||step||complete|transitionIn|speedIn|enableKeyboardNav|tagName|frame|rel|pos|transitionOut|speedOut|append|300|msie|onError|error|defaults|onStart|first|titleFromAlt|alt|modal|change|switch|no|value|embed|success|status|200|overlayColor|overlayOpacity|select|table|tr|body|marginLeft|paddingLeft|fadeTo|changeSpeed|elastic|easingIn|none|showNavArrows|support|removeAttribute|centerOnScroll|frameborder|onComplete|autoScale|min|clearInterval|metadata||push|index|jQuery|onCancel|fadeOut|fast|onClosed|https|location|void|about|blank|stop|easingOut|init|fancy|mousewheel|clientHeight|ie6|fade|swing|jpg|gif|png|bmp|jpeg|version|XMLHttpRequest|abort|The|requested|cannot|be|loaded|br|Please|try|again|later|hasClass|substr|parent|insertBefore|classid|clsid|D27CDB6E|AE6D|11cf|96B8|444553540000|movie|each|application|shockwave|flash|url|string|wrapInner|overflow|yes|relative|outside|background|color|cursor|pointer|not|one|inherit|removeClass|isFunction|cellpadding|cellspacing|main|marginRight|outerHeight|over|bottom|default|paddingRight|easingChange|fadeIn|INPUT|TEXTAREA|SELECT|Date|getTime|hspace|allowtransparency|scrollLeft|scrollTop|offset|paddingTop|blur|nofollow|area|isArray|for|merge|setInterval|66|hideActivity|find|number|loading|overlay|outer|ne|se|sw|nw|scrollHeight|ie|sel|tabindex|prependTo|560|340|wmode|transparent|777|ready'.split('|'), 0, {}));

/*!
* Scripts
*/
jQuery(function($) {
    var Engine = {
        utils: {
            links: function() {
                $('a[rel*=external]').click(function(e) {
                    e.preventDefault();
                    window.open($(this).attr('href'));
                });
            },
            email: function() {
                $('a.email').nospam({
                    replaceText: true,
                    filterLevel: 'low'
                });
            },
            heights: function() {
                $('div.diets-a > div').equalHeights();				
            },
            tooltip: function() {
                $("ul.box-a img[title]").tooltip({ offset: [16, 2], effect: 'slide' }).dynamic({ bottom: { direction: 'down', bounce: true} });
            },
            chatbox: function() {
                $('#chatbox p.close').click(function() {
                    $("#chatbox").fadeOut('slow');
                });
            },
            video : function(){	
				$('div.video-a > p a').fancybox({
					width: 809,
					height: 405,
					autoScale: false,
					transitionIn: 'fade',
					transitionOut: 'fade',
					type: 'iframe',
					overlayOpacity: 0.5,
					overlayColor: '#000',
					padding: 0
				});				
				$('div.video-b > div.main > * > a').click(function (){
					$(this).parent('*').parent('div.main').parent('div.video-b').children('div.popup').fadeIn('slow',function(){
						$(this).css({'display':'block'});
					});
					return false
				});	
				$('div.video-b p.close').click(function () {
					$('div.video-b > div.popup').fadeOut('slow');
				});
                },
            videoplayer: function() {
                $("#jquery_jplayer_1").jPlayer({
                    ready: function() {
                        $(this).jPlayer("setMedia", {
                            m4v: "media/movie-a.m4v",
                            poster: "media/movie-a.jpg"
                        });
                    },
                    ended: function(event) {
                        $(this).jPlayer("play");
                    },
                    swfPath: "js",
                    supplied: "m4v"
                });
            },

			tabs: function() {
			    $("div.tabbed-d > ul").tabs("div.tabbed-d > div > div");
			    $("div.tabbed-e > ul").tabs("div.tabbed-e > div > div");
			    $("div.tabbed-f > ul").tabs("div.tabbed-f > div > div");
			}

        }
    };

    Engine.utils.links();
    Engine.utils.email();
    Engine.utils.heights();
    Engine.utils.tooltip();
    Engine.utils.chatbox();
    Engine.utils.video();
    //Engine.utils.videoplayer();
    Engine.utils.tabs();
});

