(function(b){function u(a,f,d){var g=this,m=b(this),o;b.each(d,function(c,k){b.isFunction(k)&&m.bind(c,k)});b.extend(this,{click:function(c,k){g.getCurrentPane();var n=a.eq(c);if(typeof c=="string"&&c.replace("#","")){n=a.filter("[href*="+c.replace("#","")+"]");c=Math.max(a.index(n),0)}if(d.rotate){var s=a.length-1;if(c<0)return g.click(s,k);if(c>s)return g.click(0,k)}if(!n.length){if(o>=0)return g;c=d.initialIndex;n=a.eq(c)}if(c===o)return g;k=k||b.Event();k.type="onBeforeClick";m.trigger(k,[c]);
if(!k.isDefaultPrevented()){p[d.effect].call(g,c,function(){k.type="onClick";m.trigger(k,[c])});k.type="onStart";m.trigger(k,[c]);if(!k.isDefaultPrevented()){o=c;a.removeClass(d.current);n.addClass(d.current);return g}}},getConf:function(){return d},getTabs:function(){return a},getPanes:function(){return f},getCurrentPane:function(){return f.eq(o)},getCurrentTab:function(){return a.eq(o)},getIndex:function(){return o},next:function(){return g.click(o+1)},prev:function(){return g.click(o-1)},bind:function(c,
k){m.bind(c,k);return g},onBeforeClick:function(c){return this.bind("onBeforeClick",c)},onClick:function(c){return this.bind("onClick",c)},unbind:function(c){m.unbind(c);return g}});a.each(function(c){b(this).bind(d.event,function(k){g.click(c,k);return false})});if(location.hash)g.click(location.hash);else if(d.initialIndex===0||d.initialIndex>0)g.click(d.initialIndex);f.find("a[href^=#]").click(function(c){g.click(b(this).attr("href"),c)})}b.tools=b.tools||{};b.tools.tabs={version:"1.0.4",conf:{tabs:"a",
current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",api:false,rotate:false},addEffect:function(a,f){p[a]=f}};var p={"default":function(a,f){this.getPanes().hide().eq(a).show();f.call()},fade:function(a,f){var d=this.getConf(),g=d.fadeOutSpeed,m=this.getPanes();g?m.fadeOut(g):m.hide();m.eq(a).fadeIn(d.fadeInSpeed,f)},slide:function(a,f){this.getPanes().slideUp(200);this.getPanes().eq(a).slideDown(400,f)},ajax:function(a,f){this.getPanes().eq(0).load(this.getTabs().eq(a).attr("href"),
f)}},r;b.tools.tabs.addEffect("horizontal",function(a,f){r||(r=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){b(this).hide()});this.getPanes().eq(a).animate({width:r},function(){b(this).show();f.call()})});b.fn.tabs=function(a,f){var d=this.eq(typeof f=="number"?f:0).data("tabs");if(d)return d;if(b.isFunction(f))f={onBeforeClick:f};var g=b.extend({},b.tools.tabs.conf),m=this.length;f=b.extend(g,f);this.each(function(){var o=b(this),c=o.find(f.tabs);c.length||(c=
o.children());var k=a.jquery?a:o.children(a);k.length||(k=m==1?b(a):o.parent().find(a));d=new u(c,k,f);o.data("tabs",d)});return f.api?d:this}})(jQuery);
(function(b){var u=b.tools.tabs;u.plugins=u.plugins||{};u.plugins.slideshow={version:"1.0.2",conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:false,autopause:true,interval:3E3,clickable:true,api:false}};b.prototype.slideshow=function(p){var r=b.extend({},u.plugins.slideshow.conf),a=this.length;p=b.extend(r,p);this.each(function(){function f(h){return a==1?b(h):d.parent().find(h)}var d=b(this),g=d.tabs(),m=b(g);b.each(p,function(h,t){b.isFunction(t)&&g.bind(h,t)});var o=f(p.next).click(function(){g.next()}),
c=f(p.prev).click(function(){g.prev()}),k,n,s,e=false;b.extend(g,{play:function(){if(!k){var h=b.Event("onBeforePlay");m.trigger(h);if(h.isDefaultPrevented())return g;e=false;k=setInterval(g.next,p.interval);m.trigger("onPlay");g.next()}},pause:function(){if(!k)return g;var h=b.Event("onBeforePause");m.trigger(h);if(h.isDefaultPrevented())return g;k=clearInterval(k);s=clearInterval(s);m.trigger("onPause")},stop:function(){g.pause();e=true},onBeforePlay:function(h){return g.bind("onBeforePlay",h)},
onPlay:function(h){return g.bind("onPlay",h)},onBeforePause:function(h){return g.bind("onBeforePause",h)},onPause:function(h){return g.bind("onPause",h)}});p.autopause&&g.getTabs().add(o).add(c).add(g.getPanes()).hover(function(){g.pause();n=clearInterval(n)},function(){e||(n=setTimeout(g.play,p.interval))});if(p.autoplay)s=setTimeout(g.play,p.interval);else g.stop();p.clickable&&g.getPanes().click(function(){g.next()});if(!g.getConf().rotate){var l=p.disabledClass;g.getIndex()||c.addClass(l);g.onBeforeClick(function(h,
t){if(t){c.removeClass(l);t==g.getTabs().length-1?o.addClass(l):o.removeClass(l)}else c.addClass(l)})}});return p.api?void 0:this}})(jQuery);
(function(b){function u(f){if(f){var d=a.contentWindow.document;d.open().close();d.location.hash=f}}var p=b.tools.tabs;p.plugins=p.plugins||{};p.plugins.history={version:"1.0.2",conf:{api:false}};var r,a;b.fn.onHash=function(f){var d=this;if(b.browser.msie&&b.browser.version<"8"){if(!a){a=b("<iframe/>").attr("src","javascript:false;").hide().get(0);b("body").append(a);setInterval(function(){var g=a.contentWindow.document.location.hash;if(r!==g){b.event.trigger("hash",g);r=g}},100);u(location.hash||
"#")}d.bind("click.hash",function(){u(b(this).attr("href"))})}else setInterval(function(){var g=location.hash,m=d.filter("[href$="+g+"]");if(!m.length){g=g.replace("#","");m=d.filter("[href$="+g+"]")}if(m.length&&g!==r){r=g;b.event.trigger("hash",g)}},100);b(window).bind("hash",f);return this};b.fn.history=function(f){var d=b.extend({},p.plugins.history.conf),g;f=b.extend(d,f);this.each(function(){var m=b(this).tabs(),o=m.getTabs();if(m)g=m;o.onHash(function(c,k){if(!k||k=="#")k=m.getConf().initialIndex;
m.click(k)});o.click(function(){location.hash=b(this).attr("href").replace("#","")})});return f.api?g:this}})(jQuery);
(function(b){function u(a,f){function d(){var h=f.relative?a.position().top:a.offset().top,t=f.relative?a.position().left:a.offset().left,j=f.position[0];h-=o.outerHeight()-f.offset[0];t+=a.outerWidth()+f.offset[1];var q=o.outerHeight()+a.outerHeight();if(j=="center")h+=q/2;if(j=="bottom")h+=q;j=f.position[1];q=o.outerWidth()+a.outerWidth();if(j=="center")t-=q/2;if(j=="left")t-=q;return{top:h,left:t}}var g=this,m=b(this);a.data("tooltip",g);var o=a.next();if(f.tip){o=b(f.tip);if(o.length>1){o=a.nextAll(f.tip).eq(0);
o.length||(o=a.parent().nextAll(f.tip).eq(0))}}var c=a.is(":input"),k=c&&a.is(":checkbox, :radio, select, :button"),n=a.attr("type"),s=f.events[n]||f.events[c?k?"widget":"input":"def"];s=s.split(/,\s*/);if(s.length!=2)throw"Tooltip: bad events configuration for "+n;a.bind(s[0],function(h){f.oneInstance&&b.each(p,function(){this.hide()});var t=o.data("trigger");t&&t[0]!=this&&o.hide().stop(true,true);h.target=this;g.show(h);s=f.events.tooltip.split(/,\s*/);o.bind(s[0],function(){g.show(h)});s[1]&&
o.bind(s[1],function(){g.hide(h)})});a.bind(s[1],function(h){g.hide(h)});!b.browser.msie&&!c&&!f.predelay&&a.mousemove(function(){g.isShown()||a.triggerHandler("mouseover")});f.opacity<1&&o.css("opacity",f.opacity);var e=0,l=a.attr("title");if(l&&f.cancelDefault){a.removeAttr("title");a.data("title",l)}b.extend(g,{show:function(h){function t(){o.data("trigger",a);var j=d(h);f.tip&&l&&o.html(a.data("title"));h=h||b.Event();h.type="onBeforeShow";m.trigger(h,[j]);if(h.isDefaultPrevented())return g;j=
d(h);o.css({position:"absolute",top:j.top,left:j.left});j=r[f.effect];if(!j)throw'Nonexistent effect "'+f.effect+'"';j[0].call(g,function(){h.type="onShow";m.trigger(h)})}if(h)a=b(h.target);clearTimeout(o.data("timer"));if(o.is(":animated")||o.is(":visible"))return g;if(f.predelay){clearTimeout(e);e=setTimeout(t,f.predelay)}else t();return g},hide:function(h){function t(){h=h||b.Event();h.type="onBeforeHide";m.trigger(h);h.isDefaultPrevented()||r[f.effect][1].call(g,function(){h.type="onHide";m.trigger(h)})}
clearTimeout(o.data("timer"));clearTimeout(e);if(o.is(":visible")){f.delay&&h?o.data("timer",setTimeout(t,f.delay)):t();return g}},isShown:function(){return o.is(":visible, :animated")},getConf:function(){return f},getTip:function(){return o},getTrigger:function(){return a},bind:function(h,t){m.bind(h,t);return g},onHide:function(h){return this.bind("onHide",h)},onBeforeShow:function(h){return this.bind("onBeforeShow",h)},onShow:function(h){return this.bind("onShow",h)},onBeforeHide:function(h){return this.bind("onBeforeHide",
h)},unbind:function(h){m.unbind(h);return g}});b.each(f,function(h,t){b.isFunction(t)&&g.bind(h,t)})}var p=[];b.tools=b.tools||{};b.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout",tooltip:"mouseover,mouseout"},api:false},addEffect:function(a,
f,d){r[a]=[f,d]}};var r={toggle:[function(a){var f=this.getConf(),d=this.getTip();f=f.opacity;f<1&&d.css({opacity:f});d.show();a.call()},function(a){this.getTip().hide();a.call()}],fade:[function(a){this.getTip().fadeIn(this.getConf().fadeInSpeed,a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,a)}]};b.prototype.tooltip=function(a){var f=this.eq(typeof a=="number"?a:0).data("tooltip");if(f)return f;var d=b.extend(true,{},b.tools.tooltip.conf);if(b.isFunction(a))a={onBeforeShow:a};
else if(typeof a=="string")a={tip:a};a=b.extend(true,d,a);if(typeof a.position=="string")a.position=a.position.split(/,?\s/);a.lazy!==false&&(a.lazy===true||this.length>20)?this.one("mouseover",function(g){f=new u(b(this),a);f.show(g);p.push(f)}):this.each(function(){f=new u(b(this),a);p.push(f)});return a.api?f:this}})(jQuery);
(function(b){var u=b.tools.tooltip;u.effects=u.effects||{};u.effects.slide={version:"1.0.0"};b.extend(u.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!b.browser.msie});var p={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};b.tools.tooltip.addEffect("slide",function(r){var a=this.getConf(),f=this.getTip(),d=a.slideFade?{opacity:a.opacity}:{},g=p[a.direction]||p.up;d[g[1]]=g[0]+"="+a.slideOffset;a.slideFade&&f.css({opacity:0});f.show().animate(d,
a.slideInSpeed,r)},function(r){var a=this.getConf(),f=a.slideOffset,d=a.slideFade?{opacity:0}:{},g=p[a.direction]||p.up,m=""+g[0];if(a.bounce)m=m=="+"?"-":"+";d[g[1]]=m+"="+f;this.getTip().animate(d,a.slideOutSpeed,function(){b(this).hide();r.call()})})})(jQuery);
(function(b){function u(a){var f=b(window),d=f.width()+f.scrollLeft(),g=f.height()+f.scrollTop();return[a.offset().top<=f.scrollTop(),d<=a.offset().left+a.width(),g<=a.offset().top+a.height(),f.scrollLeft()>=a.offset().left]}function p(a){for(var f=a.length;f--;)if(a[f])return false;return true}var r=b.tools.tooltip;r.plugins=r.plugins||{};r.plugins.dynamic={version:"1.0.1",conf:{api:false,classNames:"top right bottom left"}};b.fn.dynamic=function(a){var f=b.extend({},r.plugins.dynamic.conf),d;if(typeof a==
"number")a={speed:a};a=b.extend(f,a);var g=a.classNames.split(/\s/),m;this.each(function(){if(b(this).tooltip().jquery)throw"Lazy feature not supported by dynamic plugin. set lazy: false for tooltip";var o=b(this).tooltip().onBeforeShow(function(c,k){c=this.getTip();var n=this.getConf();m||(m=[n.position[0],n.position[1],n.offset[0],n.offset[1],b.extend({},n)]);b.extend(n,m[4]);n.position=[m[0],m[1]];n.offset=[m[2],m[3]];c.css({visibility:"hidden",position:"absolute",top:k.top,left:k.left}).show();
k=u(c);if(!p(k)){if(k[2]){b.extend(n,a.top);n.position[0]="top";c.addClass(g[0])}if(k[3]){b.extend(n,a.right);n.position[1]="right";c.addClass(g[1])}if(k[0]){b.extend(n,a.bottom);n.position[0]="bottom";c.addClass(g[2])}if(k[1]){b.extend(n,a.left);n.position[1]="left";c.addClass(g[3])}if(k[0]||k[2])n.offset[0]*=-1;if(k[1]||k[3])n.offset[1]*=-1}c.css({visibility:"visible"}).hide()});o.onShow(function(){var c=this.getConf();this.getTip();c.position=[m[0],m[1]];c.offset=[m[2],m[3]]});o.onHide(function(){this.getTip().removeClass(a.classNames)});
d=o});return a.api?d:this}})(jQuery);
(function(b){function u(r,a){function f(j){var q=b(j);return a.globalNav?q:r.parent().find(j)}var d=this,g=b(this),m=!a.vertical,o=r.children(),c=0,k;p||(p=d);b.each(a,function(j,q){b.isFunction(q)&&g.bind(j,q)});if(o.length>1)o=b(a.items,r);r.data("finder",f);var n=f(a.prev),s=f(a.next),e=f(a.prevPage),l=f(a.nextPage);b.extend(d,{getIndex:function(){return c},getClickIndex:function(){var j=d.getItems();return j.index(j.filter("."+a.activeClass))},getConf:function(){return a},getSize:function(){return d.getItems().size()},
getPageAmount:function(){return Math.ceil(this.getSize()/a.size)},getPageIndex:function(){return Math.ceil(c/a.size)},getNaviButtons:function(){return n.add(s).add(e).add(l)},getRoot:function(){return r},getItemWrap:function(){return o},getItems:function(){return o.children(a.item)},getVisibleItems:function(){return d.getItems().slice(c,c+a.size)},seekTo:function(j,q,B){function w(){B&&B.call(d,j);g.trigger("onSeek",[j])}if(j<0)j=0;if(c===j)return d;if(b.isFunction(q))B=q;if(j>d.getSize()-a.size)return a.loop?
d.begin():this.end();var x=d.getItems().eq(j);if(!x.length)return d;var A=b.Event("onBeforeSeek");g.trigger(A,[j]);if(A.isDefaultPrevented())return d;if(q===undefined||b.isFunction(q))q=a.speed;m?o.animate({left:-x.position().left},q,a.easing,w):o.animate({top:-x.position().top},q,a.easing,w);p=d;c=j;A=b.Event("onStart");g.trigger(A,[j]);if(A.isDefaultPrevented())return d;n.add(e).toggleClass(a.disabledClass,j===0);s.add(l).toggleClass(a.disabledClass,j>=d.getSize()-a.size);return d},move:function(j,
q,B){k=j>0;return this.seekTo(c+j,q,B)},next:function(j,q){return this.move(1,j,q)},prev:function(j,q){return this.move(-1,j,q)},movePage:function(j,q,B){k=j>0;var w=a.size*j,x=c%a.size;if(x>0)w+=j>0?-x:a.size-x;return this.move(w,q,B)},prevPage:function(j,q){return this.movePage(-1,j,q)},nextPage:function(j,q){return this.movePage(1,j,q)},setPage:function(j,q,B){return this.seekTo(j*a.size,q,B)},begin:function(j,q){k=false;return this.seekTo(0,j,q)},end:function(j,q){k=true;var B=this.getSize()-
a.size;return B>0?this.seekTo(B,j,q):d},reload:function(){g.trigger("onReload");return d},focus:function(){return p=d},click:function(j){var q=d.getItems().eq(j),B=a.activeClass,w=a.size;if(j<0||j>=d.getSize())return d;if(w==1){if(a.loop)return d.next();if(j===0||j==d.getSize()-1)k=k===undefined?true:!k;return k===false?d.prev():d.next()}if(w==2){j==c&&j--;d.getItems().removeClass(B);q.addClass(B);return d.seekTo(j,time,fn)}if(!q.hasClass(B)){d.getItems().removeClass(B);q.addClass(B);q=Math.floor(w/
2);q=j-q;if(q>d.getSize()-w)q=d.getSize()-w;if(q!==j)return d.seekTo(q)}return d},bind:function(j,q){g.bind(j,q);return d},unbind:function(j){g.unbind(j);return d}});b.each("onBeforeSeek,onStart,onSeek,onReload".split(","),function(j,q){d[q]=function(B){return d.bind(q,B)}});n.addClass(a.disabledClass).click(function(){d.prev()});s.click(function(){d.next()});l.click(function(){d.nextPage()});d.getSize()<a.size&&s.add(l).addClass(a.disabledClass);e.addClass(a.disabledClass).click(function(){d.prevPage()});
var h=a.hoverClass,t="keydown."+Math.random().toString().substring(10);d.onReload(function(){h&&d.getItems().hover(function(){b(this).addClass(h)},function(){b(this).removeClass(h)});a.clickable&&d.getItems().each(function(j){b(this).unbind("click.scrollable").bind("click.scrollable",function(q){if(!b(q.target).is("a"))return d.click(j)})});a.keyboard?b(document).unbind(t).bind(t,function(j){if(!(j.altKey||j.ctrlKey))if(!(a.keyboard!="static"&&p!=d)){var q=a.keyboardSteps;if(m&&(j.keyCode==37||j.keyCode==
39)){d.move(j.keyCode==37?-q:q);return j.preventDefault()}if(!m&&(j.keyCode==38||j.keyCode==40)){d.move(j.keyCode==38?-q:q);return j.preventDefault()}return true}}):b(document).unbind(t)});d.reload()}b.tools=b.tools||{};b.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",
nextPage:".nextPage",api:false}};var p;b.fn.scrollable=function(r){var a=this.eq(typeof r=="number"?r:0).data("scrollable");if(a)return a;var f=b.extend({},b.tools.scrollable.conf);r=b.extend(f,r);r.keyboardSteps=r.keyboardSteps||r.size;this.each(function(){a=new u(b(this),r);b(this).data("scrollable",a)});return r.api?a:this}})(jQuery);
(function(b){var u=b.tools.scrollable;u.plugins=u.plugins||{};u.plugins.circular={version:"0.5.1",conf:{api:false,clonedClass:"cloned"}};b.fn.circular=function(p){var r=b.extend({},u.plugins.circular.conf),a;b.extend(r,p);this.each(function(){function f(e){e=n.eq(e);m.vertical?o.css({top:-e.position().top}):o.css({left:-e.position().left})}var d=b(this).scrollable(),g=d.getItems(),m=d.getConf(),o=d.getItemWrap(),c=0;if(d)a=d;if(g.length<m.size)return false;g.slice(0,m.size).each(function(e){b(this).clone().appendTo(o).click(function(){d.click(g.length+
e)}).addClass(r.clonedClass)});var k=b.makeArray(g.slice(-m.size)).reverse();b(k).each(function(e){b(this).clone().prependTo(o).click(function(){d.click(-e-1)}).addClass(r.clonedClass)});var n=o.children(m.item),s=m.hoverClass;s&&n.hover(function(){b(this).addClass(s)},function(){b(this).removeClass(s)});f(m.size);b.extend(d,{move:function(e,l,h,t){var j=c+e+m.size,q=j>d.getSize()-m.size;if(j<=0||q){j=c+m.size+(q?-g.length:g.length);f(j);j=j+e}t&&n.removeClass(m.activeClass).eq(j+Math.floor(m.size/
2)).addClass(m.activeClass);if(j===c+m.size)return self;return d.seekTo(j,l,h)},begin:function(e,l){return this.seekTo(m.size,e,l)},end:function(e,l){return this.seekTo(g.length,e,l)},click:function(e,l,h){if(!m.clickable)return self;if(m.size==1)return this.next();e=e-c;e-=Math.floor(m.size/2);return this.move(e,l,h,true)},getIndex:function(){return c},setPage:function(e,l,h){return this.seekTo(e*m.size+m.size,l,h)},getPageAmount:function(){return Math.ceil(g.length/m.size)},getPageIndex:function(){if(c<
0)return this.getPageAmount()-1;if(c>=g.length)return 0;return(c+m.size)/m.size-1},getVisibleItems:function(){var e=c+m.size;return n.slice(e,e+m.size)}});d.onStart(function(e,l){c=l-m.size;return false});d.getNaviButtons().removeClass(m.disabledClass)});return r.api?a:this}})(jQuery);
(function(b){var u=b.tools.scrollable;u.plugins=u.plugins||{};u.plugins.autoscroll={version:"1.0.1",conf:{autoplay:true,interval:3E3,autopause:true,steps:1,api:false}};b.fn.autoscroll=function(p){if(typeof p=="number")p={interval:p};var r=b.extend({},u.plugins.autoscroll.conf),a;b.extend(r,p);this.each(function(){var f=b(this).scrollable();if(f)a=f;var d,g,m=true;f.play=function(){if(!d){m=false;d=setInterval(function(){f.move(r.steps)},r.interval);f.move(r.steps)}};f.pause=function(){d=clearInterval(d)};
f.stop=function(){f.pause();m=true};r.autopause&&f.getRoot().add(f.getNaviButtons()).hover(function(){f.pause();clearInterval(g)},function(){m||(g=setTimeout(f.play,r.interval))});r.autoplay&&setTimeout(f.play,r.interval)});return r.api?a:this}})(jQuery);
(function(b){var u=b.tools.scrollable;u.plugins=u.plugins||{};u.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};b.fn.navigator=function(p){var r=b.extend({},u.plugins.navigator.conf),a;if(typeof p=="string")p={navi:p};p=b.extend(r,p);this.each(function(){function f(){if(!g.children().length||g.data("navi")==d){g.empty();g.data("navi",d);for(var k=0;k<d.getPageAmount();k++)g.append(b("<"+(p.naviItem||"a")+"/>"));m=g.children().each(function(n){var s=
b(this);s.click(function(e){d.setPage(n);return e.preventDefault()});p.indexed&&s.text(n);p.idPrefix&&s.attr("id",p.idPrefix+n)})}else{m=p.naviItem?g.find(p.naviItem):g.children();m.each(function(n){b(this).click(function(s){d.setPage(n);return s.preventDefault()})})}m.eq(0).addClass(p.activeClass)}var d=b(this).scrollable(),g=d.getRoot().data("finder").call(null,p.navi),m=null,o=d.getNaviButtons();if(d)a=d;d.getNaviButtons=function(){return o.add(g)};d.onStart(function(){var k=p.activeClass;m.removeClass(k).eq(d.getPageIndex()).addClass(k)});
d.onReload(function(){f()});f();var c=m.filter("[href="+location.hash+"]");c.length&&d.move(m.index(c))});return p.api?a:this}})(jQuery);
(function(b){function u(a){switch(a.type){case "mousemove":return b.extend(a.data,{clientX:a.clientX,clientY:a.clientY,pageX:a.pageX,pageY:a.pageY});case "DOMMouseScroll":b.extend(a,a.data);a.delta=-a.detail/3;break;case "mousewheel":a.delta=a.wheelDelta/120;break}a.type="wheel";return b.event.handle.call(this,a,a.delta)}b.fn.wheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};b.event.special.wheel={setup:function(){b.event.add(this,p,u,{})},teardown:function(){b.event.remove(this,p,u)}};
var p=!b.browser.mozilla?"mousewheel":"DOMMouseScroll"+(b.browser.version<"1.9"?" mousemove":""),r=b.tools.scrollable;r.plugins=r.plugins||{};r.plugins.mousewheel={version:"1.0.1",conf:{api:false,speed:50}};b.fn.mousewheel=function(a){var f=b.extend({},r.plugins.mousewheel.conf),d;if(typeof a=="number")a={speed:a};a=b.extend(f,a);this.each(function(){var g=b(this).scrollable();if(g)d=g;g.getRoot().wheel(function(m,o){g.move(o<0?1:-1,a.speed||50);return false})});return a.api?d:this}})(jQuery);
(function(b){function u(a,f){var d=this,g=b(this),m=b(window),o,c,k,n=f.expose&&b.tools.expose.version,s=f.target||a.attr("rel");c=s?b(s):a;if(!c.length)throw"Could not find Overlay: "+s;a&&a.index(c)==-1&&a.click(function(l){d.load(l);return l.preventDefault()});b.each(f,function(l,h){b.isFunction(h)&&g.bind(l,h)});b.extend(d,{load:function(l){if(d.isOpened())return d;var h=p[f.effect];if(!h)throw'Overlay: cannot find effect : "'+f.effect+'"';f.oneInstance&&b.each(r,function(){this.close(l)});l=
l||b.Event();l.type="onBeforeLoad";g.trigger(l);if(l.isDefaultPrevented())return d;k=true;n&&c.expose().load(l);var t=f.top,j=f.left,q=c.outerWidth({margin:true}),B=c.outerHeight({margin:true});if(typeof t=="string")t=t=="center"?Math.max((m.height()-B)/2,0):parseInt(t,10)/100*m.height();if(j=="center")j=Math.max((m.width()-q)/2,0);if(!f.absolute){t+=m.scrollTop();j+=m.scrollLeft()}c.css({top:t,left:j,position:"absolute"});l.type="onStart";g.trigger(l);h[0].call(d,function(){if(k){l.type="onLoad";
g.trigger(l)}});f.closeOnClick&&b(document).bind("click.overlay",function(w){if(d.isOpened())b(w.target).parents(c).length>1||b.each(r,function(){this.close(w)})});f.closeOnEsc&&b(document).unbind("keydown.overlay").bind("keydown.overlay",function(w){w.keyCode==27&&b.each(r,function(){this.close(w)})});return d},close:function(l){if(!d.isOpened())return d;l=l||b.Event();l.type="onBeforeClose";g.trigger(l);if(!l.isDefaultPrevented()){k=false;p[f.effect][1].call(d,function(){l.type="onClose";g.trigger(l)});
var h=true;b.each(r,function(){if(this.isOpened())h=false});h&&b(document).unbind("click.overlay").unbind("keydown.overlay");return d}},getContent:function(){return c},getOverlay:function(){return c},getTrigger:function(){return a},getClosers:function(){return o},isOpened:function(){return k},getConf:function(){return f},bind:function(l,h){g.bind(l,h);return d},unbind:function(l){g.unbind(l);return d}});b.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(l,h){d[h]=function(t){return d.bind(h,
t)}});if(n){if(typeof f.expose=="string")f.expose={color:f.expose};b.extend(f.expose,{api:true,closeOnClick:f.closeOnClick,closeOnEsc:false});var e=c.expose(f.expose);e.onBeforeClose(function(l){d.close(l)});d.onClose(function(l){e.close(l)})}o=c.find(f.close||".close");if(!o.length&&!f.close){o=b('<div class="close"></div>');c.prepend(o)}o.click(function(l){d.close(l)})}b.tools=b.tools||{};b.tools.overlay={version:"1.1.2",addEffect:function(a,f,d){p[a]=[f,d]},conf:{top:"10%",left:"center",absolute:false,
speed:"normal",closeSpeed:"fast",effect:"default",close:null,oneInstance:true,closeOnClick:true,closeOnEsc:true,api:false,expose:null,target:null}};var p={};b.tools.overlay.addEffect("default",function(a){this.getOverlay().fadeIn(this.getConf().speed,a)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,a)});var r=[];b.fn.overlay=function(a){var f=this.eq(typeof a=="number"?a:0).data("overlay");if(f)return f;if(b.isFunction(a))a={onBeforeLoad:a};var d=b.extend({},b.tools.overlay.conf);
a=b.extend(true,d,a);this.each(function(){f=new u(b(this),a);r.push(f);b(this).data("overlay",f)});return a.api?f:this}})(jQuery);
(function(b){var u=b.tools.overlay;u.plugins=u.plugins||{};u.plugins.gallery={version:"1.0.0",conf:{imgId:"img",next:".next",prev:".prev",info:".info",progress:".progress",disabledClass:"disabled",activeClass:"active",opacity:0.8,speed:"slow",template:"<strong>${title}</strong> <span>Image ${index} of ${total}</span>",autohide:true,preload:true,api:false}};b.fn.gallery=function(p){function r(h){n.fadeIn();s.hide();e.hide();var t=h.attr("href"),j=new Image;j.onload=function(){n.fadeOut();var q=b("#"+
d.imgId,m);if(!q.length){q=b("<img/>").attr("id",d.imgId).css("visibility","hidden");m.prepend(q)}q.attr("src",t).css("visibility","hidden");var B=j.width,w=(b(window).width()-B)/2;l=g.index(g.filter("[href="+t+"]"));g.removeClass(d.activeClass).eq(l).addClass(d.activeClass);var x=d.disabledClass;s.removeClass(x);l===0&&c.addClass(x);l==g.length-1&&o.addClass(x);x=d.template.replace("${title}",h.attr("title")||h.data("title")).replace("${index}",l+1).replace("${total}",g.length);var A=parseInt(k.css("paddingLeft"),
10)+parseInt(k.css("paddingRight"),10);k.html(x).css({width:B-A});m.animate({width:B,height:j.height,left:w},d.speed,function(){q.hide().css("visibility","visible").fadeIn(function(){if(!d.autohide){s.fadeIn();e.show()}})})};j.onerror=function(){m.fadeIn().html("Cannot find image "+t)};j.src=t;d.preload&&g.filter(":eq("+(l-1)+"), :eq("+(l+1)+")").each(function(){(new Image).src=b(this).attr("href")})}function a(h,t){h.click(function(){if(!h.hasClass(d.disabledClass)){var j=g.eq(i=l+(t?1:-1));j.length&&
r(j)}})}function f(){if(!m.is(":animated")){s.show();e.show()}}var d=b.extend({},u.plugins.gallery.conf);b.extend(d,p);p=this.overlay();var g=this,m=p.getOverlay(),o=m.find(d.next),c=m.find(d.prev),k=m.find(d.info),n=m.find(d.progress),s=c.add(o).add(k).css({opacity:d.opacity}),e=p.getClosers(),l;a(o,true);a(c);b(document).keydown(function(h){if(!(!m.is(":visible")||h.altKey||h.ctrlKey)){if(h.keyCode==37||h.keyCode==39){(h.keyCode==37?c:o).click();return h.preventDefault()}return true}});d.autohide&&
m.hover(f,function(){s.fadeOut();e.hide()}).mousemove(f);this.each(function(){var h=b(this),t=b(this).overlay();t.onBeforeLoad(function(){r(h)});t.onClose(function(){g.removeClass(d.activeClass)})});return d.api?void 0:this}})(jQuery);
(function(b){function u(r){var a=r.offset();return[a.top+r.height()/2,a.left+r.width()/2]}var p=b.tools.overlay;p.effects=p.effects||{};p.effects.apple={version:"1.0.1"};b.extend(p.conf,{start:{absolute:true,top:null,left:null},fadeInSpeed:"fast",zIndex:9999});p.addEffect("apple",function(r){var a=this.getOverlay(),f=this.getConf(),d=this.getTrigger(),g=this,m=a.outerWidth({margin:true}),o=a.data("img");if(!o){o=a.css("backgroundImage");if(!o)throw"background-image CSS property not set for overlay";
o=o.substring(o.indexOf("(")+1,o.indexOf(")")).replace(/\"/g,"");a.css("backgroundImage","none");o=b('<img src="'+o+'"/>');o.css({border:0,position:"absolute",display:"none"}).width(m);b("body").append(o);a.data("img",o)}var c=b(window),k=f.start.top||Math.round(c.height()/2),n=f.start.left||Math.round(c.width()/2);if(d){d=u(d);k=d[0];n=d[1]}if(!f.start.absolute){k+=c.scrollTop();n+=c.scrollLeft()}o.css({top:k,left:n,width:0,zIndex:f.zIndex}).show();o.animate({top:a.css("top"),left:a.css("left"),
width:m},f.speed,function(){a.css("zIndex",f.zIndex+1).fadeIn(f.fadeInSpeed,function(){g.isOpened()&&!b(this).index(a)?r.call():a.hide()})})},function(r){var a=this.getOverlay(),f=this.getConf(),d=this.getTrigger(),g=f.start.top,m=f.start.left;a.hide();if(d){d=u(d);g=d[0];m=d[1]}a.data("img").animate({top:g,left:m,width:0},f.closeSpeed,r)})})(jQuery);
(function(b){function u(){if(b.browser.msie){var r=b(document).height(),a=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r-a<20?a:r]}return[b(window).width(),b(document).height()]}function p(r,a){var f=this,d=b(this),g=null,m=false,o=0;b.each(a,function(c,k){b.isFunction(k)&&d.bind(c,k)});b(window).resize(function(){f.fit()});b.extend(this,{getMask:function(){return g},getExposed:function(){return r},getConf:function(){return a},isLoaded:function(){return m},
load:function(c){if(m)return f;o=r.eq(0).css("zIndex");if(a.maskId)g=b("#"+a.maskId);if(!g||!g.length){var k=u();g=b("<div/>").css({position:"absolute",top:0,left:0,width:k[0],height:k[1],display:"none",opacity:0,zIndex:a.zIndex});a.maskId&&g.attr("id",a.maskId);b("body").append(g);k=g.css("backgroundColor");if(!k||k=="transparent"||k=="rgba(0, 0, 0, 0)")g.css("backgroundColor",a.color);a.closeOnEsc&&b(document).bind("keydown.unexpose",function(s){s.keyCode==27&&f.close()});a.closeOnClick&&g.bind("click.unexpose",
function(s){f.close(s)})}c=c||b.Event();c.type="onBeforeLoad";d.trigger(c);if(c.isDefaultPrevented())return f;b.each(r,function(){var s=b(this);/relative|absolute|fixed/i.test(s.css("position"))||s.css("position","relative")});r.css({zIndex:Math.max(a.zIndex+1,o=="auto"?0:o)});var n=g.height();this.isLoaded()||g.css({opacity:0,display:"block"}).fadeTo(a.loadSpeed,a.opacity,function(){g.height()!=n&&g.css("height",n);c.type="onLoad";d.trigger(c)});m=true;return f},close:function(c){if(!m)return f;
c=c||b.Event();c.type="onBeforeClose";d.trigger(c);if(c.isDefaultPrevented())return f;g.fadeOut(a.closeSpeed,function(){c.type="onClose";d.trigger(c);r.css({zIndex:b.browser.msie?o:null})});m=false;return f},fit:function(){if(g){var c=u();g.css({width:c[0],height:c[1]})}},bind:function(c,k){d.bind(c,k);return f},unbind:function(c){d.unbind(c);return f}});b.each("onBeforeLoad,onLoad,onBeforeClose,onClose".split(","),function(c,k){f[k]=function(n){return f.bind(k,n)}})}b.tools=b.tools||{};b.tools.expose=
{version:"1.0.5",conf:{maskId:null,loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,color:"#456",api:false}};b.fn.expose=function(r){var a=this.eq(typeof r=="number"?r:0).data("expose");if(a)return a;if(typeof r=="string")r={color:r};var f=b.extend({},b.tools.expose.conf);r=b.extend(f,r);this.each(function(){a=new p(b(this),r);b(this).data("expose",a)});return r.api?a:this}})(jQuery);
(function(){function b(e){console.log("$f.fireEvent",[].slice.call(e))}function u(e){if(!e||typeof e!="object")return e;var l=new e.constructor;for(var h in e)if(e.hasOwnProperty(h))l[h]=u(e[h]);return l}function p(e,l){if(e){var h,t=0,j=e.length;if(j===undefined)for(h in e){if(l.call(e[h],h,e[h])===false)break}else for(h=e[0];t<j&&l.call(h,t,h)!==false;h=e[++t]);return e}}function r(e){return document.getElementById(e)}function a(e,l,h){if(typeof l!="object")return e;e&&l&&p(l,function(t,j){if(!h||
typeof j!="function")e[t]=j});return e}function f(e){var l=e.indexOf(".");if(l!=-1){var h=e.substring(0,l)||"*",t=e.substring(l+1,e.length),j=[];p(document.getElementsByTagName(h),function(){this.className&&this.className.indexOf(t)!=-1&&j.push(this)});return j}}function d(e){e=e||window.event;if(e.preventDefault){e.stopPropagation();e.preventDefault()}else{e.returnValue=false;e.cancelBubble=true}return false}function g(e,l,h){e[l]=e[l]||[];e[l].push(h)}function m(){return"_"+(""+Math.random()).substring(2,
10)}function o(e,l,h){function t(){function z(y){!j.isLoaded()&&j._fireEvent("onBeforeClick")!==false&&j.load();return d(y)}if($f(e)){$f(e).getParent().innerHTML="";G=$f(e).getIndex();s[G]=j}else{s.push(j);G=s.length-1}M=parseInt(e.style.height,10)||e.clientHeight;if(typeof l=="string")l={src:l};C=e.id||"fp"+m();F=l.id||C+"_api";l.id=F;h.playerId=C;if(typeof h=="string")h={clip:{url:h}};if(typeof h.clip=="string")h.clip={url:h.clip};h.clip=h.clip||{};if(e.getAttribute("href",2)&&!h.clip.url)h.clip.url=
e.getAttribute("href",2);w=new k(h.clip,-1,j);h.playlist=h.playlist||[h.clip];var D=0;p(h.playlist,function(){var y=this;if(typeof y=="object"&&y.length)y={url:""+y};p(h.clip,function(E,H){if(H!==undefined&&y[E]===undefined&&typeof H!="function")y[E]=H});h.playlist[D]=y;y=new k(y,D,j);x.push(y);D++});p(h,function(y,E){if(typeof E=="function"){w[y]?w[y](E):g(v,y,E);delete h[y]}});p(h.plugins,function(y,E){if(E)A[y]=new n(y,E,j)});if(!h.plugins||h.plugins.controls===undefined)A.controls=new n("controls",
null,j);A.canvas=new n("canvas",null,j);l.bgcolor=l.bgcolor||"#000000";l.version=l.version||[9,0];l.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";B=e.innerHTML;if(B.replace(/\s/g,"")!=="")if(e.addEventListener)e.addEventListener("click",z,false);else e.attachEvent&&e.attachEvent("onclick",z);else{e.addEventListener&&e.addEventListener("click",d,false);j.load()}}var j=this,q=null,B,w,x=[],A={},v={},C,F,G,I,L,M;a(j,{id:function(){return C},isLoaded:function(){return q!==null},getParent:function(){return e},
hide:function(z){if(z)e.style.height="0px";if(q)q.style.height="0px";return j},show:function(){e.style.height=M+"px";if(q)q.style.height=L+"px";return j},isHidden:function(){return q&&parseInt(q.style.height,10)===0},load:function(z){if(!q&&j._fireEvent("onBeforeLoad")!==false){p(s,function(){this.unload()});if((B=e.innerHTML)&&!flashembed.isSupported(l.version))e.innerHTML="";flashembed(e,l,{config:h});if(z){z.cached=true;g(v,"onLoad",z)}}return j},unload:function(){if(B.replace(/\s/g,"")!==""){if(j._fireEvent("onBeforeUnload")===
false)return j;try{if(q){q.fp_close();j._fireEvent("onUnload")}}catch(z){}q=null;e.innerHTML=B}return j},getClip:function(z){if(z===undefined)z=I;return x[z]},getCommonClip:function(){return w},getPlaylist:function(){return x},getPlugin:function(z){var D=A[z];if(!D&&j.isLoaded()){var y=j._api().fp_getPlugin(z);if(y){D=new n(z,y,j);A[z]=D}}return D},getScreen:function(){return j.getPlugin("screen")},getControls:function(){return j.getPlugin("controls")},getConfig:function(z){return z?u(h):h},getFlashParams:function(){return l},
loadPlugin:function(z,D,y,E){if(typeof y=="function"){E=y;y={}}var H=E?m():"_";j._api().fp_loadPlugin(z,D,y,H);D={};D[H]=E;E=new n(z,null,j,D);return A[z]=E},getState:function(){return q?q.fp_getState():-1},play:function(z,D){function y(){z!==undefined?j._api().fp_play(z,D):j._api().fp_play()}q?y():j.load(function(){y()});return j},getVersion:function(){if(q){var z=q.fp_getVersion();z.push("flowplayer.js 3.1.4");return z}return"flowplayer.js 3.1.4"},_api:function(){if(!q)throw"Flowplayer "+j.id()+
" not loaded when calling an API method";return q},setClip:function(z){j.setPlaylist([z]);return j},getIndex:function(){return G}});p("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var z="on"+this;if(z.indexOf("*")!=-1){z=z.substring(0,z.length-1);var D="onBefore"+z.substring(2);j[D]=function(y){g(v,D,y);return j}}j[z]=function(y){g(v,z,y);return j}});p("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed".split(","),
function(){var z=this;j[z]=function(D,y){if(!q)return j;var E=null;E=D!==undefined&&y!==undefined?q["fp_"+z](D,y):D===undefined?q["fp_"+z]():q["fp_"+z](D);return E==="undefined"||E===undefined?j:E}});j._fireEvent=function(z){if(typeof z=="string")z=[z];var D=z[0],y=z[1],E=z[2],H=z[3],J=0;h.debug&&b(z);if(!q&&D=="onLoad"&&y=="player"){q=q||r(F);L=q.clientHeight;p(x,function(){this._fireEvent("onLoad")});p(A,function(O,N){N._fireEvent("onUpdate")});w._fireEvent("onLoad")}if(!(D=="onLoad"&&y!="player")){if(D==
"onError")if(typeof y=="string"||typeof y=="number"&&typeof E=="number"){y=E;E=H}if(D=="onContextMenu")p(h.contextMenu[y],function(O,N){N.call(j)});else if(D=="onPluginEvent"){if(H=A[y.name||y]){H._fireEvent("onUpdate",y);H._fireEvent(E,z.slice(3))}}else{if(D=="onPlaylistReplace"){x=[];var P=0;p(y,function(){x.push(new k(this,P++,j))})}if(D=="onClipAdd"){if(y.isInStream)return;y=new k(y,E,j);x.splice(E,0,y);for(J=E+1;J<x.length;J++)x[J].index++}var K=true;if(typeof y=="number"&&y<x.length){I=y;if(z=
x[y])K=z._fireEvent(D,E,H);if(!z||K!==false)K=w._fireEvent(D,E,H,z)}p(v[D],function(){K=this.call(j,y,E);this.cached&&v[D].splice(J,1);if(K===false)return false;J++});return K}}};typeof e=="string"?flashembed.domReady(function(){var z=r(e);if(z){e=z;t()}else throw"Flowplayer cannot access element: "+e;}):t()}function c(e){this.length=e.length;this.each=function(l){p(e,l)};this.size=function(){return e.length}}var k=function(e,l,h){var t=this,j={},q={};t.index=l;if(typeof e=="string")e={url:e};a(this,
e,true);p("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var w="on"+this;if(w.indexOf("*")!=-1){w=w.substring(0,w.length-1);var x="onBefore"+w.substring(2);t[x]=function(A){g(q,x,A);return t}}t[w]=function(A){g(q,w,A);return t};if(l==-1){if(t[x])h[x]=t[x];if(t[w])h[w]=t[w]}});a(this,{onCuepoint:function(w,x){if(arguments.length==1){j.embedded=[null,w];return t}if(typeof w=="number")w=[w];var A=m();j[A]=[w,x];h.isLoaded()&&
h._api().fp_addCuepoints(w,l,A);return t},update:function(w){a(t,w);h.isLoaded()&&h._api().fp_updateClip(w,l);var x=h.getConfig();a(l==-1?x.clip:x.playlist[l],w,true)},_fireEvent:function(w,x,A,v){if(w=="onLoad"){p(j,function(G,I){I[0]&&h._api().fp_addCuepoints(I[0],l,G)});return false}v=v||t;if(w=="onCuepoint"){var C=j[x];if(C)return C[1].call(h,v,A)}if(x&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(w)!=-1){a(v,x);if(x.metaData)if(v.duration)v.fullDuration=x.metaData.duration;else v.duration=
x.metaData.duration}var F=true;p(q[w],function(){F=this.call(h,v,x,A)});return F}});if(e.onCuepoint){var B=e.onCuepoint;t.onCuepoint.apply(t,typeof B=="function"?[B]:B);delete e.onCuepoint}p(e,function(w,x){if(typeof x=="function"){g(q,w,x);delete e[w]}});if(l==-1)h.onCuepoint=this.onCuepoint},n=function(e,l,h,t){var j={},q=this,B=false;t&&a(j,t);p(l,function(w,x){if(typeof x=="function"){j[w]=x;delete l[w]}});a(this,{animate:function(w,x,A){if(!w)return q;if(typeof x=="function"){A=x;x=500}if(typeof w==
"string"){var v=w;w={};w[v]=x;x=500}if(A){var C=m();j[C]=A}if(x===undefined)x=500;l=h._api().fp_animate(e,w,x,C);return q},css:function(w,x){if(x!==undefined){var A={};A[w]=x;w=A}l=h._api().fp_css(e,w);a(q,l);return q},show:function(){this.display="block";h._api().fp_showPlugin(e);return q},hide:function(){this.display="none";h._api().fp_hidePlugin(e);return q},toggle:function(){this.display=h._api().fp_togglePlugin(e);return q},fadeTo:function(w,x,A){if(typeof x=="function"){A=x;x=500}if(A){var v=
m();j[v]=A}this.display=h._api().fp_fadeTo(e,w,x,v);this.opacity=w;return q},fadeIn:function(w,x){return q.fadeTo(1,w,x)},fadeOut:function(w,x){return q.fadeTo(0,w,x)},getName:function(){return e},getPlayer:function(){return h},_fireEvent:function(w,x){if(w=="onUpdate"){var A=h._api().fp_getPlugin(e);if(!A)return;a(q,A);delete q.methods;if(!B){p(A.methods,function(){var v=""+this;q[v]=function(){var C=[].slice.call(arguments);C=h._api().fp_invoke(e,v,C);return C==="undefined"||C===undefined?q:C}});
B=true}}if(A=j[w]){A.apply(q,x);w.substring(0,1)=="_"&&delete j[w]}}})},s=[];window.flowplayer=window.$f=function(){var e=null,l=arguments[0];if(!arguments.length){p(s,function(){if(this.isLoaded()){e=this;return false}});return e||s[0]}if(arguments.length==1)if(typeof l=="number")return s[l];else{if(l=="*")return new c(s);p(s,function(){if(this.id()==l.id||this.id()==l||this.getParent()==l){e=this;return false}});return e}if(arguments.length>1){var h=arguments[1],t=arguments.length==3?arguments[2]:
{};if(typeof l=="string")if(l.indexOf(".")!=-1){var j=[];p(f(l),function(){j.push(new o(this,u(h),u(t)))});return new c(j)}else{var q=r(l);return new o(q!==null?q:l,h,t)}else if(l)return new o(l,h,t)}return null};a(window.$f,{fireEvent:function(){var e=[].slice.call(arguments),l=$f(e[0]);return l?l._fireEvent(e.slice(1)):null},addPlugin:function(e,l){o.prototype[e]=l;return $f},each:p,extend:a});if(typeof jQuery=="function")jQuery.prototype.flowplayer=function(e,l){if(!arguments.length||typeof arguments[0]==
"number"){var h=[];this.each(function(){var t=$f(this);t&&h.push(t)});return arguments.length?h[arguments[0]]:new c(h)}return this.each(function(){$f(this,u(e),l?u(l):{})})}})();
(function(){function b(){if(o.done)return false;var c=document;if(c&&c.getElementsByTagName&&c.getElementById&&c.body){clearInterval(o.timer);o.timer=null;for(c=0;c<o.ready.length;c++)o.ready[c].call();o.ready=null;o.done=true}}function u(c,k){if(k)for(key in k)if(k.hasOwnProperty(key))c[key]=k[key];return c}function p(c){switch(r(c)){case "string":c=c.replace(new RegExp('(["\\\\])',"g"),"\\$1");c=c.replace(/^\s?(\d+)%/,"$1pct");return'"'+c+'"';case "array":return"["+a(c,function(s){return p(s)}).join(",")+
"]";case "function":return'"function()"';case "object":var k=[];for(var n in c)c.hasOwnProperty(n)&&k.push('"'+n+'":'+p(c[n]));return"{"+k.join(",")+"}"}return String(c).replace(/\s/g," ").replace(/\'/g,'"')}function r(c){if(c===null||c===undefined)return false;var k=typeof c;return k=="object"&&c.push?"array":k}function a(c,k){var n=[];for(var s in c)if(c.hasOwnProperty(s))n[s]=k(c[s]);return n}function f(c,k){var n=u({},c),s=document.all;c='<object width="'+n.width+'" height="'+n.height+'"';if(s&&
!n.id)n.id="_"+(""+Math.random()).substring(9);if(n.id)c+=' id="'+n.id+'"';if(n.cachebusting)n.src+=(n.src.indexOf("?")!=-1?"&":"?")+Math.random();c+=n.w3c||!s?' data="'+n.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';c+=">";if(n.w3c||s)c+='<param name="movie" value="'+n.src+'" />';n.width=n.height=n.id=n.w3c=n.src=null;for(var e in n)if(n[e]!==null)c+='<param name="'+e+'" value="'+n[e]+'" />';e="";if(k){for(var l in k)if(k[l]!==null)e+=l+"="+
(typeof k[l]=="object"?p(k[l]):k[l])+"&";e=e.substring(0,e.length-1);c+='<param name="flashvars" value=\''+e+"' />"}c+="</object>";return c}function d(c,k,n){var s=flashembed.getVersion();u(this,{getContainer:function(){return c},getConf:function(){return k},getVersion:function(){return s},getFlashvars:function(){return n},getApi:function(){return c.firstChild},getHTML:function(){return f(k,n)}});var e=k.version,l=k.expressInstall,h=!e||flashembed.isSupported(e);if(h){k.onFail=k.version=k.expressInstall=
null;c.innerHTML=f(k,n)}else if(e&&l&&flashembed.isSupported([6,65])){u(k,{src:l});n={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};c.innerHTML=f(k,n)}else if(c.innerHTML.replace(/\s/g,"")===""){c.innerHTML="<h2>Flash version "+e+" or greater is required</h2><h3>"+(s[0]>0?"Your version is "+s:"You have no flash plugin installed")+"</h3>"+(c.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");
if(c.tagName=="A")c.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}if(!h&&k.onFail){e=k.onFail.call(this);if(typeof e=="string")c.innerHTML=e}if(document.all)window[k.id]=document.getElementById(k.id)}var g=typeof jQuery=="function",m={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(g){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",
conf:m}}var o=g?jQuery:function(c){if(o.done)return c();if(o.timer)o.ready.push(c);else{o.ready=[c];o.timer=setInterval(b,13)}};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(c,k,n){if(typeof c=="string"){var s=document.getElementById(c);if(s)c=s;else{o(function(){flashembed(c,k,n)});return}}if(c){if(typeof k=="string")k={src:k};s=u({},m);u(s,k);return new d(c,s,n)}};u(window.flashembed,
{getVersion:function(){var c=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var k=navigator.plugins["Shockwave Flash"].description;if(typeof k!="undefined"){k=k.replace(/^.*\s+(\S+\s+\S+$)/,"$1");c=parseInt(k.replace(/^(.*)\..*$/,"$1"),10);k=/r/.test(k)?parseInt(k.replace(/^.*r(.*)$/,"$1"),10):0;c=[c,k]}}else if(window.ActiveXObject){try{k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(n){try{k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=
[6,0];k.AllowScriptAccess="always"}catch(s){if(c[0]==6)return c}try{k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(typeof k=="object"){k=k.GetVariable("$version");if(typeof k!="undefined"){k=k.replace(/^\S+\s+(.*)$/,"$1").split(",");c=[parseInt(k[0],10),parseInt(k[2],10)]}}}return c},isSupported:function(c){var k=flashembed.getVersion();return k[0]>c[0]||k[0]==c[0]&&k[1]>=c[1]},domReady:o,asString:p,getHTML:f});if(g)jQuery.fn.flashembed=function(c,k){var n=null;this.each(function(){n=
flashembed(this,c,k)});return c.api===false?this:n}})();
$f.addPlugin("controls",function(b,u){function p(v){if(typeof v=="undefined")v=window.event;if(typeof v.layerX=="undefined")v.layerX=v.offsetX;if(typeof v.layerY=="undefined")v.layerY=v.offsetY;return v}function r(v){return v.clientWidth}function a(v){return v.offsetLeft}function f(v,C,F,G){function I(){}function L(y){if(y>F)return false;if(y<C)return false;v.style.left=y+"px";return true}function M(){document.onmousemove=null;document.onmouseup=null;v.onDragEnd(parseInt(v.style.left,10));D=false}
function z(y){y=p(y);y=y.clientX-G;if(L(y)){D=true;v.onDrag(y)}return false}var D=false;v.onDragStart=v.onDragStart||I;v.onDragEnd=v.onDragEnd||I;v.onDrag=v.onDrag||I;v.onmousedown=function(y){p(y);v.onDragStart(parseInt(v.style.left,10));document.onmousemove=z;document.onmouseup=M;return false};this.dragTo=function(y){L(y)&&v.onDragEnd(y)};this.setMax=function(y){F=y};this.isDragging=function(){return D};return this}function d(v,C){if(C)for(key in C)if(key)v[key]=C[key]}function g(v){var C=b.getElementsByTagName("*");
v=new RegExp("(^|\\s)"+v+"(\\s|$)");for(var F=0;F<C.length;F++)if(v.test(C[F].className))return C[F]}function m(v){v=parseInt(v,10);return v>=10?v:"0"+v}function o(v){var C=Math.floor(v/3600),F=Math.floor(v/60);v-=F*60;if(C>=1){F-=C*60;return m(C)+":"+m(F)+":"+m(v)}return m(F)+":"+m(v)}function c(v,C){return"<span>"+o(v)+"</span> <strong>"+o(C)+"</strong>"}function k(v,C){v=parseInt(Math.min(v/C*q,q-B/2),10);return isNaN(v)?0:v}var n=this,s={playHeadClass:"playhead",trackClass:"track",playClass:"play",
pauseClass:"pause",bufferClass:"buffer",progressClass:"progress",timeClass:"time",muteClass:"mute",unmuteClass:"unmute",duration:0,template:'<a class="play">play</a><div class="track"><div class="buffer"></div><div class="progress"></div><div class="playhead"></div></div><div class="time"></div><a class="mute">mute</a>'};d(s,u);if(typeof b=="string")b=document.getElementById(b);if(b){if(!b.innerHTML.replace(/\s/g,""))b.innerHTML=s.template;var e=g(s.playHeadClass),l=g(s.bufferClass),h=g(s.progressClass);
u=g(s.trackClass);var t=g(s.timeClass),j=g(s.muteClass);t.innerHTML=c(0,s.duration);var q=r(u),B=r(e),w=new f(e,0,0,a(b)+a(u)+B/2);u.onclick=function(v){v=p(v);if(v.target==e)return false;w.dragTo(v.layerX-B/2)};var x=g(s.playClass);x.onclick=function(){n.isLoaded()?n.toggle():n.play()};j.onclick=function(){n.getStatus().muted?n.unmute():n.mute()};var A=null;n.onStart(function(v){var C=v.duration||0;clearInterval(A);A=setInterval(function(){var F=n.getStatus();if(F.time)t.innerHTML=c(F.time,v.duration);
if(F.time===undefined)clearInterval(A);else{var G=k(F.bufferEnd,C);l.style.width=G+"px";w.setMax(G);if(!n.isPaused()&&!w.isDragging()){G=k(F.time,C);h.style.width=G+"px";e.style.left=G-B/2+"px"}}},500)});n.onBegin(function(){x.className=s.pauseClass});n.onPause(function(){x.className=s.playClass});n.onResume(function(){x.className=s.pauseClass});n.onMute(function(){j.className=s.unmuteClass});n.onUnmute(function(){j.className=s.muteClass});n.onFinish(function(){clearInterval(A)});n.onUnload(function(){t.innerHTML=
c(0,s.duration)});e.onDragEnd=function(v){var C=parseInt(v/q*100,10)+"%";h.style.width=v+"px";n.isLoaded()&&n.seek(C)};e.onDrag=function(v){h.style.width=v+"px"};return n}});
(function(b){$f.addPlugin("playlist",function(u,p){function r(e){var l=s;b.each(e,function(h,t){b.isFunction(t)||(l=l.replace("${"+h+"}",t).replace("$%7B"+h+"%7D",t))});return l}function a(){n=u.children().unbind("click.playlist").bind("click.playlist",function(){return d(b(this),n.index(this))})}function f(){u.empty();b.each(o.getPlaylist(),function(){u.append(r(this))});a()}function d(e,l){if(e.hasClass(c.playingClass)||e.hasClass(c.pausedClass))o.toggle();else{e.addClass(c.progressClass);o.play(l)}return false}
function g(){if(k)n=u.children();n.removeClass(c.playingClass);n.removeClass(c.pausedClass);n.removeClass(c.progressClass)}function m(e){var l=e.isInStream?e.parentUrl:e.originalUrl;return k?n.filter("[href="+l+"]"):n.eq(e.index)}var o=this,c={playingClass:"playing",pausedClass:"paused",progressClass:"progress",template:'<a href="${url}">${title}</a>',loop:false,playOnClick:true,manual:false};b.extend(c,p);u=b(u);var k=o.getPlaylist().length<=1||c.manual,n=null;if(k){n=u.children();b.isFunction(n.live)?
b(u.selector+"> *").live("click",function(){var e=b(this);return d(e,e.attr("href"))}):n.click(function(){var e=b(this);return d(e,e.attr("href"))});p=o.getClip(0);!p.url&&c.playOnClick&&p.update({url:n.eq(0).attr("href")})}else{var s=u.is(":empty")?c.template:u.html();f()}o.onBegin(function(e){g();m(e).addClass(c.playingClass)});o.onPause(function(e){m(e).removeClass(c.playingClass).addClass(c.pausedClass)});o.onResume(function(e){m(e).removeClass(c.pausedClass).addClass(c.playingClass)});!c.loop&&
!k&&o.onBeforeFinish(function(e){if(!e.isInStream&&e.index<n.length-1)return false});k&&c.loop&&o.onBeforeFinish(function(e){if(!e.isInStream){e=m(e);e.next().length?e.next().click():n.eq(0).click();return false}});o.onUnload(function(){g()});k||o.onPlaylistReplace(function(){f()});o.onClipAdd(function(e,l){n.eq(l).before(r(e));a()});return o})})(jQuery);
(function(){function b(u,p){if(u.substring(0,4)=="http")return u;if(p)return p+(p.substring(p.length-1)!="/"?"/":"")+u;p=location.protocol+"//"+location.host;if(u.substring(0,1)=="/")return p+u;var r=location.pathname;r=r.substring(0,r.lastIndexOf("/"));return p+r+"/"+u}$f.addPlugin("embed",function(u){var p=this,r=p.getConfig(true),a={width:p.getParent().clientWidth||"100%",height:p.getParent().clientHeight||"100%",url:b(p.getFlashParams().src),index:-1,id:"_"+(""+Math.random()).substring(2,10),
allowfullscreen:true,allowscriptaccess:"always"};$f.extend(a,u);a.src=a.url;a.w3c=true;delete r.playerId;delete a.url;delete a.index;this.getEmbedCode=function(f,d){d=typeof d=="number"?d:a.index;if(d>=0)r.playlist=[p.getPlaylist()[d]];d=0;$f.each(r.playlist,function(){r.playlist[d++].url=b(this.url,this.baseUrl)});var g=flashembed.getHTML(a,{config:r});f||(g=g.replace(/\</g,"&lt;").replace(/\>/g,"&gt;"));return g};return p})})();

