(function(f){f.tools=f.tools||{version:{}};f.tools.version.tooltip="1.0.2";var d={toggle:[function(){this.getTip().show()},function(){this.getTip().hide()}],fade:[function(){this.getTip().fadeIn(this.getConf().fadeInSpeed)},function(){this.getTip().fadeOut(this.getConf().fadeOutSpeed)}]};f.tools.addTipEffect=function(c,a,b){d[c]=[a,b]};f.tools.addTipEffect("slideup",function(){var b=this.getConf();var a=b.slideOffset||10;this.getTip().css({opacity:0}).animate({top:"-="+a,opacity:b.opacity},b.slideInSpeed||200).show()},function(){var b=this.getConf();var a=b.slideOffset||10;this.getTip().animate({top:"-="+a,opacity:0},b.slideOutSpeed||200,function(){f(this).hide().animate({top:"+="+(a*2)},0)})});function e(l,m){var n=this;var c=l.next();if(m.tip){if(m.tip.indexOf("#")!=-1){c=f(m.tip)}else{c=l.nextAll(m.tip).eq(0);if(!c.length){c=l.parent().nextAll(m.tip).eq(0)}}}function a(h,g){f(n).bind(h,function(j,i){if(g&&g.call(this)===false&&i){i.proceed=false}});return n}f.each(m,function(h,g){if(f.isFunction(g)){a(h,g)}});var k=l.is("input, textarea");l.bind(k?"focus":"mouseover",function(g){g.target=this;n.show(g);c.hover(function(){n.show()},function(){n.hide()})});l.bind(k?"blur":"mouseout",function(){n.hide()});c.css("opacity",m.opacity);var b=0;f.extend(n,{show:function(p){if(p){l=f(p.target)}clearTimeout(b);if(c.is(":animated")||c.is(":visible")){return n}var s={proceed:true};f(n).trigger("onBeforeShow",s);if(!s.proceed){return n}var t=l.position().top-c.outerHeight();var i=c.outerHeight()+l.outerHeight();var j=m.position[0];if(j=="center"){t+=i/2}if(j=="bottom"){t+=i}var h=l.outerWidth()+c.outerWidth();var g=l.position().left+l.outerWidth();j=m.position[1];if(j=="center"){g-=h/2}if(j=="left"){g-=h}t+=m.offset[0];g+=m.offset[1];c.css({position:"absolute",top:t,left:g});d[m.effect][0].call(n);f(n).trigger("onShow");return n},hide:function(){clearTimeout(b);b=setTimeout(function(){if(!c.is(":visible")){return n}var g={proceed:true};f(n).trigger("onBeforeHide",g);if(!g.proceed){return n}d[m.effect][1].call(n);f(n).trigger("onHide")},m.delay||1);return n},isShown:function(){return c.is(":visible, :animated")},getConf:function(){return m},getTip:function(){return c},getTrigger:function(){return l},onBeforeShow:function(g){return a("onBeforeShow",g)},onShow:function(g){return a("onShow",g)},onBeforeHide:function(g){return a("onBeforeHide",g)},onHide:function(g){return a("onHide",g)}})}f.prototype.tooltip=function(c){var b=this.eq(typeof c=="number"?c:0).data("tooltip");if(b){return b}var a={tip:null,effect:"slideup",delay:30,opacity:1,position:["top","center"],offset:[0,0],api:false};if(f.isFunction(c)){c={onBeforeShow:c}}f.extend(a,c);this.each(function(){b=new e(f(this),a);f(this).data("tooltip",b)});return a.api?b:this}})(jQuery);(function(d){d.tools=d.tools||{version:{}};d.tools.version.scrollable="1.0.5";var f=null;function e(c,v){var F=this;if(!f){f=F}function u(h,g){d(F).bind(h,function(i,j){if(g&&g.call(this,j.index)===false&&j){j.proceed=false}});return F}d.each(v,function(h,g){if(d.isFunction(g)){u(h,g)}});var E=!v.vertical;var C=d(v.items,c);var y=0;function w(g,h){return g.indexOf("#")!=-1?d(g).eq(0):h.siblings(g).eq(0)}var b=w(v.navi,c);var B=w(v.prev,c);var z=w(v.next,c);var A=w(v.prevPage,c);var t=w(v.nextPage,c);d.extend(F,{getIndex:function(){return y},getConf:function(){return v},getSize:function(){return F.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/v.size)},getPageIndex:function(){return Math.ceil(y/v.size)},getRoot:function(){return c},getItemWrap:function(){return C},getItems:function(){return C.children()},getVisibleItems:function(){return F.getItems().slice(y,y+v.size)},seekTo:function(l,n,h){if(n===undefined){n=v.speed}if(d.isFunction(n)){h=n;n=v.speed}if(l<0){l=0}if(l>F.getSize()-v.size){return F}var g=F.getItems().eq(l);if(!g.length){return F}var o={index:l,proceed:true};d(F).trigger("onBeforeSeek",o);if(!o.proceed){return F}if(E){var m=-g.position().left;C.animate({left:m},n,v.easing,h?function(){h.call(F)}:null)}else{var i=-g.position().top;C.animate({top:i},n,v.easing,h?function(){h.call(F)}:null)}if(b.length){var k=v.activeClass;var j=Math.ceil(l/v.size);j=Math.min(j,b.children().length-1);b.children().removeClass(k).eq(j).addClass(k)}if(l===0){B.add(A).addClass(v.disabledClass)}else{B.add(A).removeClass(v.disabledClass)}if(l>=F.getSize()-v.size){z.add(t).addClass(v.disabledClass)}else{z.add(t).removeClass(v.disabledClass)}f=F;y=l;d(F).trigger("onSeek",{index:l});return F},move:function(h,i,j){var g=y+h;if(v.loop&&g>(F.getSize()-v.size)){g=0}return this.seekTo(g,i,j)},next:function(g,h){return this.move(1,g,h)},prev:function(g,h){return this.move(-1,g,h)},movePage:function(g,h,i){return this.move(v.size*g,h,i)},setPage:function(g,l,i){var j=v.size;var k=j*g;var h=k+j>=this.getSize();if(h){k=this.getSize()-v.size}return this.seekTo(k,l,i)},prevPage:function(g,h){return this.setPage(this.getPageIndex()-1,g,h)},nextPage:function(g,h){return this.setPage(this.getPageIndex()+1,g,h)},begin:function(g,h){return this.seekTo(0,g,h)},end:function(g,h){return this.seekTo(this.getSize()-v.size,g,h)},reload:function(){return a()},click:function(j,g,i){var h=F.getItems().eq(j);var k=v.activeClass;if(j<0||j>=this.getSize()){return F}if(v.size==2){if(j==F.getIndex()){j--}F.getItems().removeClass(k);h.addClass(k);return this.seekTo(j,g,i)}if(!h.hasClass(k)){F.getItems().removeClass(k);h.addClass(k);var l=Math.floor(v.size/2);var m=j-l;if(m>F.getSize()-v.size){m=F.getSize()-v.size}if(m!==j){return this.seekTo(m,g,i)}}return F},onBeforeSeek:function(g){return u("onBeforeSeek",g)},onSeek:function(g){return u("onSeek",g)}});if(d.isFunction(d.fn.mousewheel)){c.bind("mousewheel.scrollable",function(h,g){var i=d.browser.opera?1:-1;F.move(g>0?i:-i,50);return false})}B.addClass(v.disabledClass).click(function(){F.prev()});z.click(function(){F.next()});t.click(function(){F.nextPage()});A.addClass(v.disabledClass).click(function(){F.prevPage()});if(v.keyboard){d(document).unbind("keydown.scrollable").bind("keydown.scrollable",function(h){var g=f;if(!g||h.altKey||h.ctrlKey){return}if(E&&(h.keyCode==37||h.keyCode==39)){g.move(h.keyCode==37?-1:1);return h.preventDefault()}if(!E&&(h.keyCode==38||h.keyCode==40)){g.move(h.keyCode==38?-1:1);return h.preventDefault()}return true})}function a(){if(b.is(":empty")||b.data("me")==F){b.empty();b.data("me",F);for(var h=0;h<F.getPageAmount();h++){var g=d("<"+v.naviItem+"/>").attr("href",h).click(function(j){var k=d(this);k.parent().children().removeClass(v.activeClass);k.addClass(v.activeClass);F.setPage(k.attr("href"));return j.preventDefault()});if(h===0){g.addClass(v.activeClass)}b.append(g)}}else{var i=b.children();i.each(function(k){var j=d(this);j.attr("href",k);if(k===0){j.addClass(v.activeClass)}j.click(function(){b.find("."+v.activeClass).removeClass(v.activeClass);j.addClass(v.activeClass);F.setPage(j.attr("href"))})})}if(v.clickable){F.getItems().each(function(j,k){var l=d(this);if(!l.data("set")){l.bind("click.scrollable",function(){F.click(j)});l.data("set",true)}})}if(v.hoverClass){F.getItems().hover(function(){d(this).addClass(v.hoverClass)},function(){d(this).removeClass(v.hoverClass)})}return F}a();var D=null;function x(){if(D){return}D=setInterval(function(){if(v.interval===0){clearInterval(D);D=0;return}F.next()},v.interval)}if(v.interval>0){c.hover(function(){clearInterval(D);D=0},function(){x()});x()}}d.fn.scrollable=function(c){var b=this.eq(typeof c=="number"?c:0).data("scrollable");if(b){return b}var a={size:5,vertical:false,clickable:true,loop:false,interval:0,speed:400,keyboard:true,activeClass:"active",disabledClass:"disabled",hoverClass:null,easing:"swing",items:".items",prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",navi:".navi",naviItem:"a",api:false,onBeforeSeek:null,onSeek:null};d.extend(a,c);this.each(function(){b=new e(d(this),a);d(this).data("scrollable",b)});return a.api?b:this}})(jQuery);(function(d){d.tools=d.tools||{version:{}};d.tools.version.overlay="1.0.4";var f=[];function e(y,C){var a=this,b=d(window),A,o,D,x,v,t,u;var B=C.expose&&d.tools.version.expose;function c(h,g){d(a).bind(h,function(i,j){if(g&&g.call(this)===false&&j){j.proceed=false}});return a}d.each(C,function(h,g){if(d.isFunction(g)){c(h,g)}});var w=C.target||y.attr("rel");var z=w?d(w):null;if(!z){z=y}else{v=y}b.load(function(){t=z.attr("overlay");if(!t){t=z.css("backgroundImage");if(!t){throw"background-image CSS property not set for overlay element: "+w}t=t.substring(t.indexOf("(")+1,t.indexOf(")")).replace(/\"/g,"");z.css("backgroundImage","none");z.attr("overlay",t)}D=z.outerWidth({margin:true});x=z.outerHeight({margin:true});o=d('<img src="'+t+'"/>');o.css({border:0,position:"absolute",display:"none"}).width(D).attr("overlay",true);d("body").append(o);if(v){v.bind("click.overlay",function(g){a.load(g.pageY-b.scrollTop(),g.pageX-b.scrollLeft());return g.preventDefault()})}C.close=C.close||".close";if(!z.find(C.close).length){z.prepend('<div class="close"></div>')}A=z.find(C.close);A.bind("click.overlay",function(){a.close()});if(C.preload){setTimeout(function(){var g=new Image();g.src=t},2000)}});d.extend(a,{load:function(g,h){if(!o){b.load(function(){a.load(g,h)});return a}if(a.isOpened()){return a}if(C.oneInstance){d.each(f,function(){this.close()})}var i={proceed:true};d(a).trigger("onBeforeLoad",i);if(!i.proceed){return a}if(B){o.expose(C.expose);u=o.expose().load()}g=g||C.start.top;h=h||C.start.left;var k=C.finish.top;var j=C.finish.left;if(k=="center"){k=Math.max((b.height()-x)/2,0)}if(j=="center"){j=Math.max((b.width()-D)/2,0)}if(!C.start.absolute){g+=b.scrollTop();h+=b.scrollLeft()}if(!C.finish.absolute){k+=b.scrollTop();j+=b.scrollLeft()}o.css({top:g,left:h,width:C.start.width,zIndex:C.zIndex}).show();o.animate({top:k,left:j,width:D},C.speed,function(){z.css({position:"absolute",top:k,left:j});var l=o.css("zIndex");A.add(z).css("zIndex",++l);z.fadeIn(C.fadeInSpeed,function(){d(a).trigger("onLoad")})});return a},close:function(){if(!a.isOpened()){return a}var g={proceed:true};d(a).trigger("onBeforeClose",g);if(!g.proceed){return a}if(u){u.close()}if(o.is(":visible")){z.hide();var h=C.start.top;var i=C.start.left;if(v){g=v.offset();h=g.top+v.height()/2;i=g.left+v.width()/2}o.animate({top:h,left:i,width:0},C.closeSpeed,function(){d(a).trigger("onClose",g)})}return a},getBackgroundImage:function(){return o},getContent:function(){return z},getTrigger:function(){return v},isOpened:function(){return z.is(":visible")},getConf:function(){return C},onBeforeLoad:function(g){return c("onBeforeLoad",g)},onLoad:function(g){return c("onLoad",g)},onBeforeClose:function(g){return c("onBeforeClose",g)},onClose:function(g){return c("onClose",g)}});d(document).keydown(function(g){if(g.keyCode==27){a.close()}});if(C.closeOnClick){d(document).bind("click.overlay",function(h){if(!z.is(":visible, :animated")){return}var g=d(h.target);if(g.attr("overlay")){return}if(g.parents("[overlay]").length){return}a.close()})}}d.fn.overlay=function(c){var b=this.eq(typeof c=="number"?c:0).data("overlay");if(b){return b}var h=d(window);var a={start:{top:Math.round(h.height()/2),left:Math.round(h.width()/2),width:0,absolute:false},finish:{top:80,left:"center",absolute:false},speed:"normal",fadeInSpeed:"fast",closeSpeed:"fast",close:null,oneInstance:true,closeOnClick:true,preload:true,zIndex:9999,api:false,expose:null,target:null};if(d.isFunction(c)){c={onBeforeLoad:c}}d.extend(true,a,c);this.each(function(){b=new e(d(this),a);f.push(b);d(this).data("overlay",b)});return a.api?b:this}})(jQuery);(function(d){d.tools=d.tools||{version:{}};d.tools.version.expose="1.0.3";function e(){var a=d(window).width();if(d.browser.mozilla){return a}var b;if(window.innerHeight&&window.scrollMaxY){b=window.innerWidth+window.scrollMaxX}else{if(document.body.scrollHeight>document.body.offsetHeight){b=document.body.scrollWidth}else{b=document.body.offsetWidth}}return b<a?b+20:a}function f(k,c){var m=this,n=null,l=false,b=0;function a(h,g){d(m).bind(h,function(j,i){if(g&&g.call(this)===false&&i){i.proceed=false}});return m}d.each(c,function(h,g){if(d.isFunction(g)){a(h,g)}});d(window).bind("resize.expose",function(){if(n){n.css({width:e(),height:d(document).height()})}});d.extend(this,{getMask:function(){return n},getExposed:function(){return k},getConf:function(){return c},isLoaded:function(){return l},load:function(){if(l){return m}b=k.eq(0).css("zIndex");if(c.maskId){n=d("#"+c.maskId)}if(!n||!n.length){n=d("<div/>").css({position:"absolute",top:0,left:0,width:e(),height:d(document).height(),display:"none",opacity:0,zIndex:c.zIndex});if(c.maskId){n.attr("id",c.maskId)}d("body").append(n);var i=n.css("backgroundColor");if(!i||i=="transparent"||i=="rgba(0, 0, 0, 0)"){n.css("backgroundColor",c.color)}if(c.closeOnEsc){d(document).bind("keydown.unexpose",function(j){if(j.keyCode==27){m.close()}})}if(c.closeOnClick){n.bind("click.unexpose",function(){m.close()})}}var g={proceed:true};d(m).trigger("onBeforeLoad",g);if(!g.proceed){return m}d.each(k,function(){var j=d(this);if(!/relative|absolute|fixed/i.test(j.css("position"))){j.css("position","relative")}});k.css({zIndex:c.zIndex+1});var h=n.height();if(!this.isLoaded()){n.css({opacity:0,display:"block"}).fadeTo(c.loadSpeed,c.opacity,function(){if(n.height()!=h){n.css("height",h)}d(m).trigger("onLoad")})}l=true;return m},close:function(){if(!l){return m}var g={proceed:true};d(m).trigger("onBeforeClose",g);if(g.proceed===false){return m}n.fadeOut(c.closeSpeed,function(){d(m).trigger("onClose");k.css({zIndex:d.browser.msie?b:null})});l=false;return m},onBeforeLoad:function(g){return a("onBeforeLoad",g)},onLoad:function(g){return a("onLoad",g)},onBeforeClose:function(g){return a("onBeforeClose",g)},onClose:function(g){return a("onClose",g)}})}d.fn.expose=function(c){var b=this.eq(typeof c=="number"?c:0).data("expose");if(b){return b}var a={maskId:null,loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,color:"#456",api:false};if(typeof c=="string"){c={color:c}}d.extend(a,c);this.each(function(){b=new f(d(this),a);d(this).data("expose",b)});return a.api?b:this}})(jQuery);(function(){function v(a){console.log("$f.fireEvent",[].slice.call(a))}function r(a){if(!a||typeof a!="object"){return a}var c=new a.constructor();for(var b in a){if(a.hasOwnProperty(b)){c[b]=r(a[b])}}return c}function p(a,d){if(!a){return}var f,e=0,c=a.length;if(c===undefined){for(f in a){if(d.call(a[f],f,a[f])===false){break}}}else{for(var b=a[0];e<c&&d.call(b,e,b)!==false;b=a[++e]){}}return a}function z(a){return document.getElementById(a)}function t(a,b,c){if(typeof b!="object"){return a}if(a&&b){p(b,function(e,d){if(!c||typeof d!="function"){a[e]=d}})}return a}function o(a){var c=a.indexOf(".");if(c!=-1){var d=a.substring(0,c)||"*";var e=a.substring(c+1,a.length);var b=[];p(document.getElementsByTagName(d),function(){if(this.className&&this.className.indexOf(e)!=-1){b.push(this)}});return b}}function w(a){a=a||window.event;if(a.preventDefault){a.stopPropagation();a.preventDefault()}else{a.returnValue=false;a.cancelBubble=true}return false}function s(a,c,b){a[c]=a[c]||[];a[c].push(b)}function x(){return"_"+(""+Math.random()).substring(2,10)}var u=function(b,d,c){var e=this;var f={};var a={};e.index=d;if(typeof b=="string"){b={url:b}}t(this,b,true);p(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var i="on"+this;if(i.indexOf("*")!=-1){i=i.substring(0,i.length-1);var h="onBefore"+i.substring(2);e[h]=function(j){s(a,h,j);return e}}e[i]=function(j){s(a,i,j);return e};if(d==-1){if(e[h]){c[h]=e[h]}if(e[i]){c[i]=e[i]}}});t(this,{onCuepoint:function(h,i){if(arguments.length==1){f.embedded=[null,h];return e}if(typeof h=="number"){h=[h]}var j=x();f[j]=[h,i];if(c.isLoaded()){c._api().fp_addCuepoints(h,d,j)}return e},update:function(i){t(e,i);if(c.isLoaded()){c._api().fp_updateClip(i,d)}var j=c.getConfig();var h=(d==-1)?j.clip:j.playlist[d];t(h,i,true)},_fireEvent:function(k,m,j,i){if(k=="onLoad"){p(f,function(D,n){if(n[0]){c._api().fp_addCuepoints(n[0],d,D)}});return false}i=i||e;if(k=="onCuepoint"){var l=f[m];if(l){return l[1].call(c,i,j)}}if(k=="onStart"||k=="onUpdate"||k=="onResume"){t(i,m);if(!i.duration){i.duration=m.metaData.duration}else{i.fullDuration=m.metaData.duration}}var h=true;p(a[k],function(){h=this.call(c,i,m,j)});return h}});if(b.onCuepoint){var g=b.onCuepoint;e.onCuepoint.apply(e,typeof g=="function"?[g]:g);delete b.onCuepoint}p(b,function(i,h){if(typeof h=="function"){s(a,i,h);delete b[i]}});if(d==-1){c.onCuepoint=this.onCuepoint}};var q=function(f,d,e,b){var c={};var g=this;var a=false;if(b){t(c,b)}p(d,function(i,h){if(typeof h=="function"){c[i]=h;delete d[i]}});t(this,{animate:function(l,k,h){if(!l){return g}if(typeof k=="function"){h=k;k=500}if(typeof l=="string"){var i=l;l={};l[i]=k;k=500}if(h){var j=x();c[j]=h}if(k===undefined){k=500}d=e._api().fp_animate(f,l,k,j);return g},css:function(i,h){if(h!==undefined){var j={};j[i]=h;i=j}d=e._api().fp_css(f,i);t(g,d);return g},show:function(){this.display="block";e._api().fp_showPlugin(f);return g},hide:function(){this.display="none";e._api().fp_hidePlugin(f);return g},toggle:function(){this.display=e._api().fp_togglePlugin(f);return g},fadeTo:function(k,h,i){if(typeof h=="function"){i=h;h=500}if(i){var j=x();c[j]=i}this.display=e._api().fp_fadeTo(f,k,h,j);this.opacity=k;return g},fadeIn:function(h,i){return g.fadeTo(1,h,i)},fadeOut:function(h,i){return g.fadeTo(0,h,i)},getName:function(){return f},getPlayer:function(){return e},_fireEvent:function(i,j,h){if(i=="onUpdate"){var l=e._api().fp_getPlugin(f);if(!l){return}t(g,l);delete g.methods;if(!a){p(l.methods,function(){var m=""+this;g[m]=function(){var D=[].slice.call(arguments);var n=e._api().fp_invoke(f,m,D);return n=="undefined"?g:n}});a=true}}var k=c[i];if(k){k.apply(g,j);if(i.substring(0,1)=="_"){delete c[i]}}}})};function A(h,F,i){var H=this,j=null,k,n,f=[],G={},e={},b,m,l,a,g,d;t(H,{id:function(){return b},isLoaded:function(){return(j!==null)},getParent:function(){return h},hide:function(C){if(C){h.style.height="0px"}if(j){j.style.height="0px"}return H},show:function(){h.style.height=d+"px";if(j){j.style.height=g+"px"}return H},isHidden:function(){return j&&parseInt(j.style.height,10)===0},load:function(C){if(!j&&H._fireEvent("onBeforeLoad")!==false){p(B,function(){this.unload()});k=h.innerHTML;if(k&&!flashembed.isSupported(F.version)){h.innerHTML=""}flashembed(h,F,{config:i});if(C){C.cached=true;s(e,"onLoad",C)}}return H},unload:function(){try{if(!j||j.fp_isFullscreen()){return H}}catch(C){return H}if(k.replace(/\s/g,"")!==""){if(H._fireEvent("onBeforeUnload")===false){return H}j.fp_close();j=null;h.innerHTML=k;H._fireEvent("onUnload")}return H},getClip:function(C){if(C===undefined){C=a}return f[C]},getCommonClip:function(){return n},getPlaylist:function(){return f},getPlugin:function(E){var C=G[E];if(!C&&H.isLoaded()){var D=H._api().fp_getPlugin(E);if(D){C=new q(E,D,H);G[E]=C}}return C},getScreen:function(){return H.getPlugin("screen")},getControls:function(){return H.getPlugin("controls")},getConfig:function(C){return C?r(i):i},getFlashParams:function(){return F},loadPlugin:function(M,N,D,E){if(typeof D=="function"){E=D;D={}}var O=E?x():"_";H._api().fp_loadPlugin(M,N,D,O);var P={};P[O]=E;var C=new q(M,null,H,P);G[M]=C;return C},getState:function(){return j?j.fp_getState():-1},play:function(D,E){function C(){if(D!==undefined){H._api().fp_play(D,E)}else{H._api().fp_play()}}if(j){C()}else{H.load(function(){C()})}return H},getVersion:function(){var C="flowplayer.js 3.1.1";if(j){var D=j.fp_getVersion();D.push(C);return D}return C},_api:function(){if(!j){throw"Flowplayer "+H.id()+" not loaded when calling an API method"}return j},setClip:function(C){H.setPlaylist([C]);return H},getIndex:function(){return l}});p(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error").split(","),function(){var D="on"+this;if(D.indexOf("*")!=-1){D=D.substring(0,D.length-1);var C="onBefore"+D.substring(2);H[C]=function(E){s(e,C,E);return H}}H[D]=function(E){s(e,D,E);return H}});p(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip").split(","),function(){var C=this;H[C]=function(E,J){if(!j){return H}var D=null;if(E!==undefined&&J!==undefined){D=j["fp_"+C](E,J)}else{D=(E===undefined)?j["fp_"+C]():j["fp_"+C](E)}return D=="undefined"?H:D}});H._fireEvent=function(D){if(typeof D=="string"){D=[D]}var C=D[0],Q=D[1],S=D[2],T=D[3],U=0;if(i.debug){v(D)}if(!j&&C=="onLoad"&&Q=="player"){j=j||z(m);g=j.clientHeight;p(f,function(){this._fireEvent("onLoad")});p(G,function(J,I){I._fireEvent("onUpdate")});n._fireEvent("onLoad")}if(C=="onLoad"&&Q!="player"){return}if(C=="onError"){if(typeof Q=="string"||(typeof Q=="number"&&typeof S=="number")){Q=S;S=T}}if(C=="onContextMenu"){p(i.contextMenu[Q],function(J,I){I.call(H)});return}if(C=="onPluginEvent"){var X=Q.name||Q;var W=G[X];if(W){W._fireEvent("onUpdate",Q);W._fireEvent(S,D.slice(3))}return}if(C=="onPlaylistReplace"){f=[];var R=0;p(Q,function(){f.push(new u(this,R++,H))})}if(C=="onClipAdd"){if(Q.isInStream){return}Q=new u(Q,S,H);f.splice(S,0,Q);for(U=S+1;U<f.length;U++){f[U].index++}}var E=true;if(typeof Q=="number"&&Q<f.length){a=Q;var V=f[Q];if(V){E=V._fireEvent(C,S,T)}if(!V||E!==false){E=n._fireEvent(C,S,T,V)}}p(e[C],function(){E=this.call(H,Q,S);if(this.cached){e[C].splice(U,1)}if(E===false){return false}U++});return E};function c(){if($f(h)){$f(h).getParent().innerHTML="";l=$f(h).getIndex();B[l]=H}else{B.push(H);l=B.length-1}d=parseInt(h.style.height,10)||h.clientHeight;if(typeof F=="string"){F={src:F}}b=h.id||"fp"+x();m=F.id||b+"_api";F.id=m;i.playerId=b;if(typeof i=="string"){i={clip:{url:i}}}if(typeof i.clip=="string"){i.clip={url:i.clip}}i.clip=i.clip||{};if(h.getAttribute("href",2)&&!i.clip.url){i.clip.url=h.getAttribute("href",2)}n=new u(i.clip,-1,H);i.playlist=i.playlist||[i.clip];var D=0;p(i.playlist,function(){var E=this;if(typeof E=="object"&&E.length){E={url:""+E}}p(i.clip,function(L,K){if(K!==undefined&&E[L]===undefined&&typeof K!="function"){E[L]=K}});i.playlist[D]=E;E=new u(E,D,H);f.push(E);D++});p(i,function(J,E){if(typeof E=="function"){s(e,J,E);delete i[J]}});p(i.plugins,function(J,E){if(E){G[J]=new q(J,E,H)}});if(!i.plugins||i.plugins.controls===undefined){G.controls=new q("controls",null,H)}G.canvas=new q("canvas",null,H);F.bgcolor=F.bgcolor||"#000000";F.version=F.version||[9,0];F.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";function C(E){if(!H.isLoaded()&&H._fireEvent("onBeforeClick")!==false){H.load()}return w(E)}k=h.innerHTML;if(k.replace(/\s/g,"")!==""){if(h.addEventListener){h.addEventListener("click",C,false)}else{if(h.attachEvent){h.attachEvent("onclick",C)}}}else{if(h.addEventListener){h.addEventListener("click",w,false)}H.load()}}if(typeof h=="string"){flashembed.domReady(function(){var C=z(h);if(!C){throw"Flowplayer cannot access element: "+h}else{h=C;c()}})}else{c()}}var B=[];function y(a){this.length=a.length;this.each=function(b){p(a,b)};this.size=function(){return a.length}}window.flowplayer=window.$f=function(){var e=null;var f=arguments[0];if(!arguments.length){p(B,function(){if(this.isLoaded()){e=this;return false}});return e||B[0]}if(arguments.length==1){if(typeof f=="number"){return B[f]}else{if(f=="*"){return new y(B)}p(B,function(){if(this.id()==f.id||this.id()==f||this.getParent()==f){e=this;return false}});return e}}if(arguments.length>1){var c=arguments[1];var d=(arguments.length==3)?arguments[2]:{};if(typeof f=="string"){if(f.indexOf(".")!=-1){var a=[];p(o(f),function(){a.push(new A(this,r(c),r(d)))});return new y(a)}else{var b=z(f);return new A(b!==null?b:f,c,d)}}else{if(f){return new A(f,c,d)}}}return null};t(window.$f,{fireEvent:function(){var b=[].slice.call(arguments);var a=$f(b[0]);return a?a._fireEvent(b.slice(1)):null},addPlugin:function(b,a){A.prototype[b]=a;return $f},each:p,extend:t});if(typeof jQuery=="function"){jQuery.prototype.flowplayer=function(a,b){if(!arguments.length||typeof arguments[0]=="number"){var c=[];this.each(function(){var d=$f(this);if(d){c.push(d)}});return arguments.length?c[arguments[0]]:new y(c)}return this.each(function(){$f(this,r(a),b?r(b):{})})}}})();(function(){var n=typeof jQuery=="function";function j(){if(p.done){return false}var a=document;if(a&&a.getElementsByTagName&&a.getElementById&&a.body){clearInterval(p.timer);p.timer=null;for(var b=0;b<p.ready.length;b++){p.ready[b].call()}p.ready=null;p.done=true}}var p=n?jQuery:function(a){if(p.done){return a()}if(p.timer){p.ready.push(a)}else{p.ready=[a];p.timer=setInterval(j,13)}};function m(a,b){if(b){for(key in b){if(b.hasOwnProperty(key)){a[key]=b[key]}}}return a}function l(c){switch(k(c)){case"string":c=c.replace(new RegExp('(["\\\\])',"g"),"\\$1");c=c.replace(/^\s?(\d+)%/,"$1pct");return'"'+c+'"';case"array":return"["+q(c,function(d){return l(d)}).join(",")+"]";case"function":return'"function()"';case"object":var b=[];for(var a in c){if(c.hasOwnProperty(a)){b.push('"'+a+'":'+l(c[a]))}}return"{"+b.join(",")+"}"}return String(c).replace(/\s/g," ").replace(/\'/g,'"')}function k(a){if(a===null||a===undefined){return false}var b=typeof a;return(b=="object"&&a.push)?"array":b}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function q(d,a){var b=[];for(var c in d){if(d.hasOwnProperty(c)){b[c]=a(d[c])}}return b}function r(f,d){var g=m({},f);var e=document.all;var a='<object width="'+g.width+'" height="'+g.height+'"';if(e&&!g.id){g.id="_"+(""+Math.random()).substring(9)}if(g.id){a+=' id="'+g.id+'"'}g.src+=((g.src.indexOf("?")!=-1?"&":"?")+Math.random());if(g.w3c||!e){a+=' data="'+g.src+'" type="application/x-shockwave-flash"'}else{a+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}a+=">";if(g.w3c||e){a+='<param name="movie" value="'+g.src+'" />'}g.width=g.height=g.id=g.w3c=g.src=null;for(var c in g){if(g[c]!==null){a+='<param name="'+c+'" value="'+g[c]+'" />'}}var h="";if(d){for(var b in d){if(d[b]!==null){h+=b+"="+(typeof d[b]=="object"?l(d[b]):d[b])+"&"}}h=h.substring(0,h.length-1);a+='<param name="flashvars" value=\''+h+"' />"}a+="</object>";return a}function o(b,g,c){var d=flashembed.getVersion();m(this,{getContainer:function(){return b},getConf:function(){return g},getVersion:function(){return d},getFlashvars:function(){return c},getApi:function(){return b.firstChild},getHTML:function(){return r(g,c)}});var f=g.version;var e=g.expressInstall;var h=!f||flashembed.isSupported(f);if(h){g.onFail=g.version=g.expressInstall=null;b.innerHTML=r(g,c)}else{if(f&&e&&flashembed.isSupported([6,65])){m(g,{src:e});c={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};b.innerHTML=r(g,c)}else{if(b.innerHTML.replace(/\s/g,"")!==""){}else{b.innerHTML="<h2>Flash version "+f+" or greater is required</h2><h3>"+(d[0]>0?"Your version is "+d:"You have no flash plugin installed")+"</h3>"+(b.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(b.tagName=="A"){b.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!h&&g.onFail){var a=g.onFail.call(this);if(typeof a=="string"){b.innerHTML=a}}if(document.all){window[g.id]=document.getElementById(g.id)}}window.flashembed=function(c,b,d){if(typeof c=="string"){var a=document.getElementById(c);if(a){c=a}else{p(function(){flashembed(c,b,d)});return}}if(!c){return}var e={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false};if(typeof b=="string"){b={src:b}}m(e,b);return new o(c,e,d)};m(window.flashembed,{getVersion:function(){var b=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var c=navigator.plugins["Shockwave Flash"].description;if(typeof c!="undefined"){c=c.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var a=parseInt(c.replace(/^(.*)\..*$/,"$1"),10);var e=/r/.test(c)?parseInt(c.replace(/^.*r(.*)$/,"$1"),10):0;b=[a,e]}}else{if(window.ActiveXObject){try{var g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(f){try{g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=[6,0];g.AllowScriptAccess="always"}catch(d){if(b[0]==6){return}}try{g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(h){}}if(typeof g=="object"){c=g.GetVariable("$version");if(typeof c!="undefined"){c=c.replace(/^\S+\s+(.*)$/,"$1").split(",");b=[parseInt(c[0],10),parseInt(c[2],10)]}}}}return b},isSupported:function(c){var a=flashembed.getVersion();var b=(a[0]>c[0])||(a[0]==c[0]&&a[1]>=c[1]);return b},domReady:p,asString:l,getHTML:r});if(n){jQuery.tools=jQuery.tools||{version:{}};jQuery.tools.version.flashembed="1.0.2";jQuery.fn.flashembed=function(b,c){var a=null;this.each(function(){a=flashembed(this,b,c)});return b.api===false?this:a}}})();$f.addPlugin("controls",function(j,a){function q(w){if(typeof w=="undefined"){w=window.event}if(typeof w.layerX=="undefined"){w.layerX=w.offsetX}if(typeof w.layerY=="undefined"){w.layerY=w.offsetY}return w}function l(w){return w.clientWidth}function d(w){return w.offsetLeft}function h(w,D,G,C){var H=false;function F(){}w.onDragStart=w.onDragStart||F;w.onDragEnd=w.onDragEnd||F;w.onDrag=w.onDrag||F;function A(I){if(I>G){return false}if(I<D){return false}w.style.left=I+"px";return true}function B(){document.onmousemove=null;document.onmouseup=null;w.onDragEnd(parseInt(w.style.left,10));H=false}function E(J){J=q(J);var I=J.clientX-C;if(A(I)){H=true;w.onDrag(I)}return false}w.onmousedown=function(I){I=q(I);w.onDragStart(parseInt(w.style.left,10));document.onmousemove=E;document.onmouseup=B;return false};this.dragTo=function(I){if(A(I)){w.onDragEnd(I)}};this.setMax=function(I){G=I};this.isDragging=function(){return H};return this}function v(A,w){if(w){for(key in w){if(key){A[key]=w[key]}}}}function t(w){var B=j.getElementsByTagName("*");var C=new RegExp("(^|\\s)"+w+"(\\s|$)");for(var A=0;A<B.length;A++){if(C.test(B[A].className)){return B[A]}}}function x(w){w=parseInt(w,10);return w>=10?w:"0"+w}function f(B){var A=Math.floor(B/3600);var w=Math.floor(B/60);B=B-(w*60);if(A>=1){w-=A*60;return x(A)+":"+x(w)+":"+x(B)}return x(w)+":"+x(B)}function y(A,w){return"<span>"+f(A)+"</span> <strong>"+f(w)+"</strong>"}var n=this;var m={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>'};v(m,a);if(typeof j=="string"){j=document.getElementById(j)}if(!j){return}if(!j.innerHTML.replace(/\s/g,"")){j.innerHTML=m.template}var r=t(m.playHeadClass);var u=t(m.bufferClass);var o=t(m.progressClass);var p=t(m.trackClass);var g=t(m.timeClass);var e=t(m.muteClass);g.innerHTML=y(0,m.duration);var i=l(p);var s=l(r);var c=new h(r,0,0,d(j)+d(p)+(s/2));p.onclick=function(w){w=q(w);if(w.target==r){return false}c.dragTo(w.layerX-s/2)};var z=t(m.playClass);z.onclick=function(){if(n.isLoaded()){n.toggle()}else{n.play()}};e.onclick=function(){if(n.getStatus().muted){n.unmute()}else{n.mute()}};var k=null;function b(w,A){return parseInt(Math.min(w/A*i,i-s/2),10)}n.onStart(function(w){var A=w.duration||0;clearInterval(k);k=setInterval(function(){var C=n.getStatus();if(C.time){g.innerHTML=y(C.time,w.duration)}if(C.time===undefined){clearInterval(k);return}var B=b(C.bufferEnd,A);u.style.width=B+"px";c.setMax(B);if(!n.isPaused()&&!c.isDragging()){B=b(C.time,A);o.style.width=B+"px";r.style.left=(B-s/2)+"px"}},500)});n.onBegin(function(){z.className=m.pauseClass});n.onPause(function(){z.className=m.playClass});n.onResume(function(){z.className=m.pauseClass});n.onMute(function(){e.className=m.unmuteClass});n.onUnmute(function(){e.className=m.muteClass});n.onFinish(function(w){clearInterval(k)});n.onUnload(function(){g.innerHTML=y(0,m.duration)});r.onDragEnd=function(w){var A=parseInt(w/i*100,10)+"%";o.style.width=w+"px";if(n.isLoaded()){n.seek(A)}};r.onDrag=function(w){o.style.width=w+"px"};return n});(function(b){$f.addPlugin("playlist",function(z,a){var p=this;var B={playingClass:"playing",pausedClass:"paused",progressClass:"progress",template:'<a href="${url}">${title}</a>',loop:false,playOnClick:true,manual:false};b.extend(B,a);z=b(z);var t=p.getPlaylist().length<=1||B.manual;var s=null;function y(c){var d=q;b.each(c,function(f,e){if(!b.isFunction(e)){d=d.replace("${"+f+"}",e).replace("$%7B"+f+"%7D",e)}});return d}function u(){s=z.children().unbind("click.playlist").bind("click.playlist",function(){return v(b(this),s.index(this))})}function A(){z.empty();b.each(p.getPlaylist(),function(){z.append(y(this))});u()}function v(d,c){if(d.hasClass(B.playingClass)||d.hasClass(B.pausedClass)){p.toggle()}else{d.addClass(B.progressClass);p.play(c)}return false}function r(){if(t){s=z.children()}s.removeClass(B.playingClass);s.removeClass(B.pausedClass);s.removeClass(B.progressClass)}function x(c){return(t)?s.filter("[href="+c.url+"]"):s.eq(c.index)}if(!t){var q=z.is(":empty")?B.template:z.html();A()}else{s=z.children();if(b.isFunction(s.live)){b(z.selector+"> *").live("click",function(){var c=b(this);return v(c,c.attr("href"))})}else{s.click(function(){var c=b(this);return v(c,c.attr("href"))})}var w=p.getClip(0);if(!w.url&&B.playOnClick){w.update({url:s.eq(0).attr("href")})}}p.onBegin(function(c){r();x(c).addClass(B.playingClass)});p.onPause(function(c){x(c).removeClass(B.playingClass).addClass(B.pausedClass)});p.onResume(function(c){x(c).removeClass(B.pausedClass).addClass(B.playingClass)});if(!B.loop&&!t){p.onBeforeFinish(function(c){if(!c.isInStream&&c.index<s.length-1){return false}})}if(t&&B.loop){p.onBeforeFinish(function(c){var d=x(c);if(d.next().length){d.next().click()}else{s.eq(0).click()}return false})}p.onUnload(function(){r()});if(!t){p.onPlaylistReplace(function(){A()})}p.onClipAdd(function(c,d){s.eq(d).before(y(c));u()});return p})})(jQuery);(function(){function a(b,c){if(b.substring(0,4)=="http"){return b}if(c){return c+(c.substring(c.length-1)!="/"?"/":"")+b}c=location.protocol+"//"+location.host;if(b.substring(0,1)=="/"){return c+b}var d=location.pathname;d=d.substring(0,d.lastIndexOf("/"));return c+d+"/"+b}$f.addPlugin("embed",function(d){var b=this;var c=b.getConfig(true);var e={width:b.getParent().clientWidth||"100%",height:b.getParent().clientHeight||"100%",url:a(b.getFlashParams().src),index:-1,allowfullscreen:true,allowscriptaccess:"always"};$f.extend(e,d);e.src=e.url;e.w3c=true;delete c.playerId;delete e.url;delete e.index;this.getEmbedCode=function(h,f){f=typeof f=="number"?f:e.index;if(f>=0){c.playlist=[b.getPlaylist()[f]]}f=0;$f.each(c.playlist,function(){c.playlist[f++].url=a(this.url,this.baseUrl)});var g=flashembed.getHTML(e,{config:c});if(!h){g=g.replace(/\</g,"&lt;").replace(/\>/g,"&gt;")}return g};return b})})();