/* Generated 2011-06-14 11:01:10 */
jQuery.ui||(function(p){var j=p.fn.remove,o=p.browser.mozilla&&(parseFloat(p.browser.version)<1.9);p.ui={version:"1.7.2",plugin:{add:function(c,b,e){var a=p.ui[c].prototype;for(var d in e){a.plugins[d]=a.plugins[d]||[];a.plugins[d].push([b,e[d]])}},call:function(d,b,c){var e=d.plugins[b];if(!e||!d.element[0].parentNode){return}for(var a=0;a<e.length;a++){if(d.options[e[a][0]]){e[a][1].apply(d.element,c)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,c){if(p(a).css("overflow")=="hidden"){return false}var d=(c&&c=="left")?"scrollLeft":"scrollTop",b=false;if(a[d]>0){return true}a[d]=1;b=(a[d]>0);a[d]=0;return b},isOverAxis:function(b,c,a){return(b>c)&&(b<(c+a))},isOver:function(e,c,f,a,d,b){return p.ui.isOverAxis(e,f,d)&&p.ui.isOverAxis(c,a,b)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(o){var m=p.attr,n=p.fn.removeAttr,k="http://www.w3.org/2005/07/aaa",r=/^aria-/,q=/^wairole:/;p.attr=function(c,d,b){var a=b!==undefined;return(d=="role"?(a?m.call(this,c,d,"wairole:"+b):(m.apply(this,arguments)||"").replace(q,"")):(r.test(d)?(a?c.setAttributeNS(k,d.replace(r,"aaa:"),b):m.call(this,c,d.replace(r,"aaa:"))):m.apply(this,arguments)))};p.fn.removeAttr=function(a){return(r.test(a)?this.each(function(){this.removeAttributeNS(k,a.replace(r,""))}):n.call(this,a))}}p.fn.extend({remove:function(){p("*",this).add(this).each(function(){p(this).triggerHandler("remove")});return j.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var a;if((p.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(p.curCSS(this,"position",1))&&(/(auto|scroll)/).test(p.curCSS(this,"overflow",1)+p.curCSS(this,"overflow-y",1)+p.curCSS(this,"overflow-x",1))}).eq(0)}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test(p.curCSS(this,"overflow",1)+p.curCSS(this,"overflow-y",1)+p.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!a.length?p(document):a}});p.extend(p.expr[":"],{data:function(a,b,c){return !!p.data(a,c[3])},focusable:function(b){var a=b.nodeName.toLowerCase(),c=p.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(a)?!b.disabled:"a"==a||"area"==a?b.href||!isNaN(c):!isNaN(c))&&!p(b)["area"==a?"parents":"closest"](":hidden").length},tabbable:function(a){var b=p.attr(a,"tabindex");return(isNaN(b)||b>=0)&&p(a).is(":focusable")}});function l(a,f,e,b){function c(g){var h=p[a][f][g]||[];return(typeof h=="string"?h.split(/,?\s+/):h)}var d=c("getter");if(b.length==1&&typeof b[0]=="string"){d=d.concat(c("getterSetter"))}return(p.inArray(e,d)!=-1)}p.widget=function(b,c){var a=b.split(".")[0];b=b.split(".")[1];p.fn[b]=function(e){var g=(typeof e=="string"),f=Array.prototype.slice.call(arguments,1);if(g&&e.substring(0,1)=="_"){return this}if(g&&l(a,b,e,f)){var d=p.data(this[0],b);return(d?d[e].apply(d,f):undefined)}return this.each(function(){var h=p.data(this,b);(!h&&!g&&p.data(this,b,new p[a][b](this,e))._init());(h&&g&&p.isFunction(h[e])&&h[e].apply(h,f))})};p[a]=p[a]||{};p[a][b]=function(e,f){var d=this;this.namespace=a;this.widgetName=b;this.widgetEventPrefix=p[a][b].eventPrefix||b;this.widgetBaseClass=a+"-"+b;this.options=p.extend({},p.widget.defaults,p[a][b].defaults,p.metadata&&p.metadata.get(e)[b],f);this.element=p(e).bind("setData."+b,function(h,i,g){if(h.target==e){return d._setData(i,g)}}).bind("getData."+b,function(g,h){if(g.target==e){return d._getData(h)}}).bind("remove",function(){return d.destroy()})};p[a][b].prototype=p.extend({},p.widget.prototype,c);p[a][b].getterSetter="option"};p.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(b,a){var c=b,d=this;if(typeof b=="string"){if(a===undefined){return this._getData(b)}c={};c[b]=a}p.each(c,function(f,e){d._setData(f,e)})},_getData:function(a){return this.options[a]},_setData:function(b,a){this.options[b]=a;if(b=="disabled"){this.element[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",a)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(b,a,g){var e=this.options[b],d=(b==this.widgetEventPrefix?b:this.widgetEventPrefix+b);a=p.Event(a);a.type=d;if(a.originalEvent){for(var c=p.event.props.length,f;c;){f=p.event.props[--c];a[f]=a.originalEvent[f]}}this.element.trigger(a,g);return !(p.isFunction(e)&&e.call(this.element[0],a,g)===false||a.isDefaultPrevented())}};p.widget.defaults={disabled:false};p.ui.mouse={_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false}});if(p.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(p.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(b));this._mouseDownEvent=b;var c=this,a=(b.which==1),d=(typeof this.options.cancel=="string"?p(b.target).parents().add(b.target).filter(this.options.cancel).length:false);if(!a||d||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(b)!==false);if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};p(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(p.browser.safari||b.preventDefault());b.originalEvent.mouseHandled=true;return true},_mouseMove:function(a){if(p.browser.msie&&!a.button){return this._mouseUp(a)}if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,a)!==false);(this._mouseStarted?this._mouseDrag(a):this._mouseUp(a))}return !this._mouseStarted},_mouseUp:function(a){p(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(a.target==this._mouseDownEvent.target);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return(Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance)},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true}};p.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(b){b.widget("ui.accordion",{_init:function(){var e=this.options,a=this;this.running=0;if(e.collapsible==b.ui.accordion.defaults.collapsible&&e.alwaysOpen!=b.ui.accordion.defaults.alwaysOpen){e.collapsible=!e.alwaysOpen}if(e.navigation){var f=this.element.find("a").filter(e.navigationFilter);if(f.length){if(f.filter(e.header).length){this.active=f}else{this.active=f.parent().parent().prev();f.addClass("ui-accordion-content-active")}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix")}this.headers=this.element.find(e.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||e.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");b("<span/>").addClass("ui-icon "+e.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(e.icons.header).toggleClass(e.icons.headerSelected);if(b.browser.msie){this.element.find("a").css("zoom","1")}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(c){return a._keydown(c)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0")}else{this.active.attr("aria-expanded","true").attr("tabIndex","0")}if(!b.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(e.event){this.headers.bind((e.event)+".accordion",function(c){return a._clickHandler.call(a,c,this)})}},destroy:function(){var d=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var a=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(d.autoHeight||d.fillHeight){a.css("height","")}},_setData:function(a,d){if(a=="alwaysOpen"){a="collapsible";d=!d}b.widget.prototype._setData.apply(this,arguments)},_keydown:function(j){var h=this.options,i=b.ui.keyCode;if(h.disabled||j.altKey||j.ctrlKey){return}var k=this.headers.length;var a=this.headers.index(j.target);var l=false;switch(j.keyCode){case i.RIGHT:case i.DOWN:l=this.headers[(a+1)%k];break;case i.LEFT:case i.UP:l=this.headers[(a-1+k)%k];break;case i.SPACE:case i.ENTER:return this._clickHandler({target:j.target},j.target)}if(l){b(j.target).attr("tabIndex","-1");b(l).attr("tabIndex","0");l.focus();return false}return true},resize:function(){var f=this.options,g;if(f.fillSpace){if(b.browser.msie){var a=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}g=this.element.parent().height();if(b.browser.msie){this.element.parent().css("overflow",a)}this.headers.each(function(){g-=b(this).outerHeight()});var h=0;this.headers.next().each(function(){h=Math.max(h,b(this).innerHeight()-b(this).height())}).height(Math.max(0,g-h)).css("overflow","auto")}else{if(f.autoHeight){g=0;this.headers.next().each(function(){g=Math.max(g,b(this).outerHeight())}).height(g)}}},activate:function(a){var d=this._findActive(a)[0];this._clickHandler({target:d},d)},_findActive:function(a){return a?typeof a=="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?b([]):this.headers.filter(":eq(0)")},_clickHandler:function(r,n){var p=this.options;if(p.disabled){return false}if(!r.target&&p.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(p.icons.headerSelected).addClass(p.icons.header);this.active.next().addClass("ui-accordion-content-active");var l=this.active.next(),o={options:p,newHeader:b([]),oldHeader:p.active,newContent:b([]),oldContent:l},q=(this.active=b([]));this._toggle(q,l,o);return false}var m=b(r.currentTarget||n);var k=m[0]==this.active[0];if(this.running||(!p.collapsible&&k)){return false}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(p.icons.headerSelected).addClass(p.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!k){m.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(p.icons.header).addClass(p.icons.headerSelected);m.next().addClass("ui-accordion-content-active")}var q=m.next(),l=this.active.next(),o={options:p,newHeader:k&&p.collapsible?b([]):m,oldHeader:this.active,newContent:k&&p.collapsible?b([]):q.find("> *"),oldContent:l.find("> *")},a=this.headers.index(this.active[0])>this.headers.index(m[0]);this.active=k?b([]):m;this._toggle(q,l,o,k,a);return false},_toggle:function(x,q,s,p,o){var v=this.options,a=this;this.toShow=x;this.toHide=q;this.data=s;var w=function(){if(!a){return}return a._completed.apply(a,arguments)};this._trigger("changestart",null,this.data);this.running=q.size()===0?x.size():q.size();if(v.animated){var t={};if(v.collapsible&&p){t={toShow:b([]),toHide:q,complete:w,down:o,autoHeight:v.autoHeight||v.fillSpace}}else{t={toShow:x,toHide:q,complete:w,down:o,autoHeight:v.autoHeight||v.fillSpace}}if(!v.proxied){v.proxied=v.animated}if(!v.proxiedDuration){v.proxiedDuration=v.duration}v.animated=b.isFunction(v.proxied)?v.proxied(t):v.proxied;v.duration=b.isFunction(v.proxiedDuration)?v.proxiedDuration(t):v.proxiedDuration;var n=b.ui.accordion.animations,u=v.duration,r=v.animated;if(!n[r]){n[r]=function(c){this.slide(c,{easing:r,duration:u||700})}}n[r](t)}else{if(v.collapsible&&p){x.toggle()}else{q.hide();x.show()}w(true)}q.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();x.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(a){var d=this.options;this.running=a?0:--this.running;if(this.running){return}if(d.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger("change",null,this.data)}});b.extend(b.ui.accordion,{version:"1.7.2",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(a,l){a=b.extend({easing:"swing",duration:300},a,l);if(!a.toHide.size()){a.toShow.animate({height:"show"},a);return}if(!a.toShow.size()){a.toHide.animate({height:"hide"},a);return}var q=a.toShow.css("overflow"),m,p={},n={},o=["height","paddingTop","paddingBottom"],r;var k=a.toShow;r=k[0].style.width;k.width(parseInt(k.parent().width(),10)-parseInt(k.css("paddingLeft"),10)-parseInt(k.css("paddingRight"),10)-(parseInt(k.css("borderLeftWidth"),10)||0)-(parseInt(k.css("borderRightWidth"),10)||0));b.each(o,function(e,c){n[c]="hide";var d=(""+b.css(a.toShow[0],c)).match(/^([\d+-.]+)(.*)$/);p[c]={value:d[1],unit:d[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(n,{step:function(d,c){if(c.prop=="height"){m=(c.now-c.start)/(c.end-c.start)}a.toShow[0].style[c.prop]=(m*p[c.prop].value)+p[c.prop].unit},duration:a.duration,easing:a.easing,complete:function(){if(!a.autoHeight){a.toShow.css("height","")}a.toShow.css("width",r);a.toShow.css({overflow:q});a.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1000:200})},easeslide:function(a){this.slide(a,{easing:"easeinout",duration:700})}}})})(jQuery);
(function(a){a.fn.hoverIntent=function(l,j){var k={sensitivity:7,interval:100,timeout:0};k=a.extend(k,j?{over:l,out:j}:l);var n,m,h,e;var d=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(e-m))<k.sensitivity){a(f).unbind("mousemove",d);f.hoverIntent_s=1;return k.over.apply(f,[g])}else{h=n;e=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},k.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return k.out.apply(f,[g])};var b=function(q){var o=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;while(o&&o!=this){try{o=o.parentNode}catch(q){o=this}}if(o==this){return false}var g=jQuery.extend({},q);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(q.type=="mouseover"){h=g.pageX;e=g.pageY;a(f).bind("mousemove",d);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},k.interval)}}else{a(f).unbind("mousemove",d);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},k.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);
(function(aM){function aB(a,c){c=c==="x"?aF.width():aF.height();return typeof a==="string"?Math.round(a.match(/%/)?c/100*parseInt(a,10):parseInt(a,10)):a}function ag(a){a=aM.isFunction(a)?a.call(aJ):a;return aN.photo||a.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function d(){for(var a in aN){if(aM.isFunction(aN[a])&&a.substring(0,2)!=="on"){aN[a]=aN[a].call(aJ)}}aN.rel=aN.rel||aJ.rel;aN.href=aN.href||aJ.href;aN.title=aN.title||aJ.title}function b(a){aJ=a;aN=aM.extend({},aM(aJ).data(aC));d();if(aN.rel&&aN.rel!=="nofollow"){aK=aM(".cboxElement").filter(function(){return(aM(this).data(aC).rel||this.rel)===aN.rel});aI=aK.index(aJ);if(aI<0){aK=aK.add(aJ);aI=aK.length-1}}else{aK=aM(aJ);aI=0}if(!ap){ao=ap=aE;af=aJ;af.blur();aM(document).bind("keydown.cbox_close",function(c){if(c.keyCode===27){c.preventDefault();aL.close()}}).bind("keydown.cbox_arrows",function(c){if(aK.length>1){if(c.keyCode===37){c.preventDefault();an.click()}else{if(c.keyCode===39){c.preventDefault();am.click()}}}});aN.overlayClose&&aA.css({cursor:"pointer"}).one("click",aL.close);aM.event.trigger(aq);aN.onOpen&&aN.onOpen.call(aJ);aA.css({opacity:aN.opacity}).show();aN.w=aB(aN.initialWidth,"x");aN.h=aB(aN.initialHeight,"y");aL.position(0);ae&&aF.bind("resize.cboxie6 scroll.cboxie6",function(){aA.css({width:aF.width(),height:aF.height(),top:aF.scrollTop(),left:aF.scrollLeft()})}).trigger("scroll.cboxie6")}ad.add(an).add(am).add(az).add(ac).hide();ab.html(aN.close).show();aL.slideshow();aL.load()}var aC="colorbox",al="hover",aE=true,aL,av=aM.browser.msie&&!aM.support.opacity,ae=av&&aM.browser.version<7,aq="cbox_open",ak="cbox_load",L="cbox_complete",G="resize.cbox_resize",aA,aH,ay,aD,A,o,h,f,aK,aF,aG,aj,ai,ah,ac,ad,az,am,an,ab,au,at,ax,aw,aJ,af,aI,aN,ap,ao,ar={transition:"elastic",speed:350,width:false,height:false,innerWidth:false,innerHeight:false,initialWidth:"300",initialHeight:"300",maxWidth:false,maxHeight:false,scalePhotos:aE,scrolling:aE,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.7,preloading:aE,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,overlayClose:aE,slideshow:false,slideshowAuto:aE,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false};aL=aM.fn.colorbox=function(a,e){var c=this;if(!c.length){if(c.selector===""){c=aM("<a/>");a.open=aE}else{return this}}c.each(function(){var g=aM.extend({},aM(this).data(aC)?aM(this).data(aC):ar,a);aM(this).data(aC,g).addClass("cboxElement");if(e){aM(this).data(aC).onComplete=e}});a&&a.open&&b(c);return this};aL.init=function(){function a(c){return aM('<div id="cbox'+c+'"/>')}aF=aM(window);aH=aM('<div id="colorbox"/>');aA=a("Overlay").hide();ay=a("Wrapper");aD=a("Content").append(aG=a("LoadedContent").css({width:0,height:0}),ai=a("LoadingOverlay"),ah=a("LoadingGraphic"),ac=a("Title"),ad=a("Current"),az=a("Slideshow"),am=a("Next"),an=a("Previous"),ab=a("Close"));ay.append(aM("<div/>").append(a("TopLeft"),A=a("TopCenter"),a("TopRight")),aM("<div/>").append(o=a("MiddleLeft"),aD,h=a("MiddleRight")),aM("<div/>").append(a("BottomLeft"),f=a("BottomCenter"),a("BottomRight"))).children().children().css({"float":"left"});aj=aM("<div style='position:absolute; top:0; left:0; width:9999px; height:0;'/>");aM("body").prepend(aA,aH.append(ay,aj));if(av){aH.addClass("cboxIE");ae&&aA.css("position","absolute")}aD.children().bind("mouseover mouseout",function(){aM(this).toggleClass(al)}).addClass(al);au=A.height()+f.height()+aD.outerHeight(aE)-aD.height();at=o.width()+h.width()+aD.outerWidth(aE)-aD.width();ax=aG.outerHeight(aE);aw=aG.outerWidth(aE);aH.css({"padding-bottom":au,"padding-right":at}).hide();am.click(aL.next);an.click(aL.prev);ab.click(aL.close);aD.children().removeClass(al);aM(".cboxElement").live("click",function(c){if(c.button!==0&&typeof c.button!=="undefined"){return aE}else{b(this);return false}})};aL.position=function(a,i){function c(j){A[0].style.width=f[0].style.width=aD[0].style.width=j.style.width;ah[0].style.height=ai[0].style.height=aD[0].style.height=o[0].style.height=h[0].style.height=j.style.height}var e=aF.height();e=Math.max(e-aN.h-ax-au,0)/2+aF.scrollTop();var g=Math.max(document.documentElement.clientWidth-aN.w-aw-at,0)/2+aF.scrollLeft();a=aH.width()===aN.w+aw&&aH.height()===aN.h+ax?0:a;ay[0].style.width=ay[0].style.height="9999px";aH.dequeue().animate({width:aN.w+aw,height:aN.h+ax,top:e,left:g},{duration:a,complete:function(){c(this);ao=false;ay[0].style.width=aN.w+aw+at+"px";ay[0].style.height=aN.h+ax+au+"px";i&&i()},step:function(){c(this)}})};aL.resize=function(e){function k(){aN.w=aN.w||aG.width();aN.w=aN.mw&&aN.mw<aN.w?aN.mw:aN.w;return aN.w}function g(){aN.h=aN.h||aG.height();aN.h=aN.mh&&aN.mh<aN.h?aN.mh:aN.h;return aN.h}function i(l){aL.position(l,function(){if(ap){if(av){c&&aG.fadeIn(100);aH[0].style.removeAttribute("filter")}if(aN.iframe){aG.append("<iframe id='cboxIframe'"+(aN.scrolling?" ":"scrolling='no'")+" name='iframe_"+(new Date).getTime()+"' frameborder=0 src='"+aN.href+"' "+(av?"allowtransparency='true'":"")+" />")}aG.show();ac.show().html(aN.title);if(aK.length>1){ad.html(aN.current.replace(/\{current\}/,aI+1).replace(/\{total\}/,aK.length)).show();am.html(aN.next).show();an.html(aN.previous).show();aN.slideshow&&az.show()}ai.hide();ah.hide();aM.event.trigger(L);aN.onComplete&&aN.onComplete.call(aJ);aN.transition==="fade"&&aH.fadeTo(a,1,function(){av&&aH[0].style.removeAttribute("filter")});aF.bind(G,function(){aL.position(0)})}})}if(ap){var j,c,a=aN.transition==="none"?0:aN.speed;aF.unbind(G);if(e){aG.remove();aG=aM('<div id="cboxLoadedContent"/>').html(e);aG.hide().appendTo(aj).css({width:k(),overflow:aN.scrolling?"auto":"hidden"}).css({height:g()}).prependTo(aD);aM("#cboxPhoto").css({cssFloat:"none"});ae&&aM("select:not(#colorbox select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("cbox_cleanup",function(){this.style.visibility="inherit"});aN.transition==="fade"&&aH.fadeTo(a,0,function(){i(0)})||i(a);if(aN.preloading&&aK.length>1){e=aI>0?aK[aI-1]:aK[aK.length-1];j=aI<aK.length-1?aK[aI+1]:aK[0];j=aM(j).data(aC).href||j.href;e=aM(e).data(aC).href||e.href;ag(j)&&aM("<img />").attr("src",j);ag(e)&&aM("<img />").attr("src",e)}}else{setTimeout(function(){var l=aG.wrapInner("<div style='overflow:auto'></div>").children();aN.h=l.height();aG.css({height:aN.h});l.replaceWith(l.children());aL.position(a)},1)}}};aL.load=function(){var a,g,c,e=aL.resize;ao=aE;aJ=aK[aI];aN=aM.extend({},aM(aJ).data(aC));d();aM.event.trigger(ak);aN.onLoad&&aN.onLoad.call(aJ);aN.h=aN.height?aB(aN.height,"y")-ax-au:aN.innerHeight?aB(aN.innerHeight,"y"):false;aN.w=aN.width?aB(aN.width,"x")-aw-at:aN.innerWidth?aB(aN.innerWidth,"x"):false;aN.mw=aN.w;aN.mh=aN.h;if(aN.maxWidth){aN.mw=aB(aN.maxWidth,"x")-aw-at;aN.mw=aN.w&&aN.w<aN.mw?aN.w:aN.mw}if(aN.maxHeight){aN.mh=aB(aN.maxHeight,"y")-ax-au;aN.mh=aN.h&&aN.h<aN.mh?aN.h:aN.mh}a=aN.href;ai.show();ah.show();if(aN.inline){aM('<div id="cboxInlineTemp" />').hide().insertBefore(aM(a)[0]).bind(ak+" cbox_cleanup",function(){aM(this).replaceWith(aG.children())});e(aM(a))}else{if(aN.iframe){e(" ")}else{if(aN.html){e(aN.html)}else{if(ag(a)){g=new Image;g.onload=function(){var i;g.onload=null;g.id="cboxPhoto";aM(g).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(aN.scalePhotos){c=function(){g.height-=g.height*i;g.width-=g.width*i};if(aN.mw&&g.width>aN.mw){i=(g.width-aN.mw)/g.width;c()}if(aN.mh&&g.height>aN.mh){i=(g.height-aN.mh)/g.height;c()}}if(aN.h){g.style.marginTop=Math.max(aN.h-g.height,0)/2+"px"}e(g);aK.length>1&&aM(g).css({cursor:"pointer"}).click(aL.next);if(av){g.style.msInterpolationMode="bicubic"}};g.src=a}else{aM("<div />").appendTo(aj).load(a,function(j,i){i==="success"?e(this):e(aM("<p>Request unsuccessful.</p>"))})}}}}};aL.next=function(){if(!ao){aI=aI<aK.length-1?aI+1:0;aL.load()}};aL.prev=function(){if(!ao){aI=aI>0?aI-1:aK.length-1;aL.load()}};aL.slideshow=function(){function a(){az.text(aN.slideshowStop).bind(L,function(){c=setTimeout(aL.next,aN.slideshowSpeed)}).bind(ak,function(){clearTimeout(c)}).one("click",function(){g();aM(this).removeClass(al)});aH.removeClass(e+"off").addClass(e+"on")}var g,c,e="cboxSlideshow_";az.bind("cbox_closed",function(){az.unbind();clearTimeout(c);aH.removeClass(e+"off "+e+"on")});g=function(){clearTimeout(c);az.text(aN.slideshowStart).unbind(L+" "+ak).one("click",function(){a();c=setTimeout(aL.next,aN.slideshowSpeed);aM(this).removeClass(al)});aH.removeClass(e+"on").addClass(e+"off")};if(aN.slideshow&&aK.length>1){aN.slideshowAuto?a():g()}};aL.close=function(){aM.event.trigger("cbox_cleanup");aN.onCleanup&&aN.onCleanup.call(aJ);ap=false;aM(document).unbind("keydown.cbox_close keydown.cbox_arrows");aF.unbind(G+" resize.cboxie6 scroll.cboxie6");aA.css({cursor:"auto"}).fadeOut("fast");aH.stop(aE,false).fadeOut("fast",function(){aM("#colorbox iframe").attr("src","about:blank");aG.remove();aH.css({opacity:1});try{af.focus()}catch(a){}aM.event.trigger("cbox_closed");aN.onClosed&&aN.onClosed.call(aJ)})};aL.element=function(){return aM(aJ)};aL.settings=ar;aM(aL.init)})(jQuery);
(function(d){d.fn.carousel=function(k){var k=d.extend({direction:"horizontal",loop:false,dispItems:1,pagination:false,paginationPosition:"inside",nextBtn:'<span role="button"></span>',prevBtn:'<span role="button"></span>',btnsPosition:"inside",nextBtnInsert:"appendTo",prevBtnInsert:"prependTo",nextBtnInsertFn:false,prevBtnInsertFn:false,autoSlide:false,autoSlideInterval:3000,delayAutoSlide:false,combinedClasses:false,effect:"slide",slideEasing:"swing",animSpeed:"normal",equalWidths:"true",callback:function(){},useAddress:false,adressIdentifier:"carousel",counter:false,showButtonTitles:false,buttonTitle:""},k);if(k.btnsPosition=="outside"){k.prevBtnInsert="insertBefore";k.nextBtnInsert="insertAfter"}k.delayAutoSlide=k.delayAutoSlide||k.autoSlideInterval;return this.each(function(){var l={$elts:{},params:k,launchOnLoad:[]};l.$elts.carousel=d(this).addClass("js");l.$elts.content=d(this).children().css({position:"absolute",top:0});l.$elts.wrap=l.$elts.content.wrap('<div class="carousel-wrap"><div class="inner-wrap"></div></div>').parent().css({overflow:"hidden",position:"relative"});l.steps={first:0,count:l.$elts.content.children().length};l.steps.last=l.steps.count-1;if(d.isFunction(l.params.prevBtnInsertFn)){l.$elts.prevBtn=l.params.prevBtnInsertFn(l.$elts)}else{l.$elts.prevBtn=d(k.prevBtn)[k.prevBtnInsert](l.$elts.carousel)}if(d.isFunction(l.params.nextBtnInsertFn)){l.$elts.nextBtn=l.params.nextBtnInsertFn(l.$elts)}else{l.$elts.nextBtn=d(k.nextBtn)[k.nextBtnInsert](l.$elts.carousel)}l.$elts.nextBtn.addClass("carousel-control next carousel-next");l.$elts.prevBtn.addClass("carousel-control previous carousel-previous");c(l);if(l.params.pagination){h(l)}if(l.params.counter){l.$elts.counterContainer=d('<span class="page-counter"></span>').prependTo(l.$elts.carousel)}i(l);d(function(){if(k.showButtonTitles){d(".carousel-next").attr("title",k.buttonTitle);d(".carousel-previous").attr("title",k.buttonTitle)}var m=l.$elts.content.children(":first");l.itemWidth=m.outerWidth();if(k.direction=="vertical"){l.contentWidth=l.itemWidth}else{if(k.equalWidths){l.contentWidth=l.itemWidth*l.steps.count}else{l.contentWidth=(function(){var n=0;l.$elts.content.children().each(function(){n+=d(this).outerWidth()});return n})()}}l.$elts.content.width(l.contentWidth);l.itemHeight=m.outerHeight();if(k.direction=="vertical"){l.$elts.content.css({height:l.itemHeight*l.steps.count+"px"});l.$elts.content.parent().css({height:l.itemHeight*l.params.dispItems+"px"})}else{l.$elts.content.parent().css({height:l.itemHeight+"px"})}f(l);e(l,0);d.each(l.launchOnLoad,function(n,o){o()});if(l.params.autoSlide){window.setTimeout(function(){l.autoSlideInterval=window.setInterval(function(){b(l,g(l,"next"))},l.params.autoSlideInterval)},l.params.delayAutoSlide)}})})};function c(k){k.$elts.nextBtn.add(k.$elts.prevBtn).bind("enable",function(){var l=d(this).unbind("click").bind("click",function(){b(k,g(k,(l.is(".next")?"next":"prev")));j(k)}).removeClass("disabled");if(k.params.combinedClasses){l.removeClass("next-disabled previous-disabled")}}).bind("disable",function(){var l=d(this).unbind("click").addClass("disabled");if(k.params.combinedClasses){if(l.is(".next")){l.addClass("next-disabled")}else{if(l.is(".previous")){l.addClass("previous-disabled")}}}}).hover(function(){d(this).toggleClass("hover")})}function h(k){k.$elts.pagination=d('<div class="center-wrap"><div class="carousel-pagination"><p></p></div></div>')[((k.params.paginationPosition=="outside")?"insertAfter":"appendTo")](k.$elts.carousel).find("p");k.$elts.paginationBtns=d([]);k.$elts.content.find("li").each(function(l){if(l%k.params.dispItems==0){k.$elts.paginationBtns=k.$elts.paginationBtns.add(d('<a role="button"><span>'+(k.$elts.paginationBtns.length+1)+"</span></a>").data("firstStep",l))}});k.$elts.paginationBtns.appendTo(k.$elts.pagination);k.$elts.paginationBtns.slice(0,1).addClass("active");k.launchOnLoad.push(function(){k.$elts.paginationBtns.click(function(l){b(k,d(this).data("firstStep"));j(k)})})}function i(k){if(k.params.useAddress&&d.isFunction(d.fn.address)){d.address.init(function(m){var l=d.address.pathNames();if(l[0]===k.params.adressIdentifier&&!!l[1]){b(k,l[1]-1)}else{d.address.value("/"+k.params.adressIdentifier+"/1")}}).change(function(m){var l=d.address.pathNames();if(l[0]===k.params.adressIdentifier&&!!l[1]){b(k,l[1]-1)}})}else{k.params.useAddress=false}}function b(k,l){k.params.callback(l);a(k,l);k.steps.first=l;f(k);e(k,l);if(k.params.useAddress){d.address.value("/"+k.params.adressIdentifier+"/"+(l+1))}}function e(l,m){if(!l.params.counter){return}var k='<span class="current">'+(m+1)+'</span> / <span class="total">'+l.steps.count+"</span>";d(l.$elts.counterContainer).html(k)}function g(l,k){if(k=="prev"){if((l.steps.first-l.params.dispItems)>=0){return l.steps.first-l.params.dispItems}else{return((l.params.loop)?(l.steps.count-l.params.dispItems):false)}}else{if(k=="next"){if((l.steps.first+l.params.dispItems)<l.steps.count){return l.steps.first+l.params.dispItems}else{return((l.params.loop)?0:false)}}}}function a(k,l){switch(k.params.effect){case"no":if(k.params.direction=="vertical"){k.$elts.content.css("top",-(k.itemHeight*l)+"px")}else{k.$elts.content.css("left",-(k.itemWidth*l)+"px")}break;case"fade":if(k.params.direction=="vertical"){k.$elts.content.hide().css("top",-(k.itemHeight*l)+"px").fadeIn(k.params.animSpeed)}else{k.$elts.content.hide().css("left",-(k.itemWidth*l)+"px").fadeIn(k.params.animSpeed)}break;default:if(k.params.direction=="vertical"){k.$elts.content.stop().animate({top:-(k.itemHeight*l)+"px"},k.params.animSpeed,k.params.slideEasing)}else{k.$elts.content.stop().animate({left:-(k.itemWidth*l)+"px"},k.params.animSpeed,k.params.slideEasing)}break}}function f(k){if(g(k,"prev")!==false){k.$elts.prevBtn.trigger("enable")}else{k.$elts.prevBtn.trigger("disable")}if(g(k,"next")!==false){k.$elts.nextBtn.trigger("enable")}else{k.$elts.nextBtn.trigger("disable")}if(k.params.pagination){k.$elts.paginationBtns.removeClass("active").filter(function(){return(d(this).data("firstStep")==k.steps.first)}).addClass("active")}}function j(k){if(!!k.autoSlideInterval){window.clearInterval(k.autoSlideInterval)}}})(jQuery);
(function(b){function a(e){e=b.extend({"default":0},e);var d=b(this).children("ul").children("li");var c=b(this).children("div");b(this).addClass("tabbed");b(c).addClass("tab-pane");b(d).find("a").wrap('<span class="back"><span class="left"><span class="right"></span></span></span>');b(d).find("a").click(function(){b(this).closest("li").click();return false});b(d).each(function(f){b(this).click(function(){b(c).hide().removeClass("active").eq(f).show().addClass("active");b(d).removeClass("active").eq(f).addClass("active")})});b(d).eq(e["default"]).click()}b.fn.extend({ekTabs:function(){return this.each(function(c){a.call(this,c)})}})})(jQuery);
(function(b){function a(f){f=b.extend({"default":0},f);var e='<table class="ek-lift-tabs"><tr><td class="tabs"></td><td class="panes"></td></tr></table>';e=b(e);var c=b(e).find(".tabs");var d=b(e).find(".panes");b(this).children("h3").each(function(){var g=b(this).next("div");g.addClass("pane");b(g).hide();b(this).addClass("tab").prepend('<span class="tab-icon"></span>');b(this).find("a").click(function(h){h.preventDefault()});b(this).click(function(){b(d).children("div").hide();b(g).show();b(c).children("h3").removeClass("tab-active").addClass("tab-default");b(this).removeClass("tab-default").addClass("tab-active")});b(c).append(this);b(d).append(g)});b(c).append('<div class="spacer"></div>');b(this).append(e);b(c).children("h3:first").click()}b.fn.extend({ekLifttabs:function(){return this.each(function(c){a.call(this,c)})}})})(jQuery);
(function(){function e(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function l(t,r){if(!t){return}var p,q=0,o=t.length;if(o===undefined){for(p in t){if(r.call(t[p],p,t[p])===false){break}}}else{for(var s=t[0];q<o&&r.call(s,q,s)!==false;s=t[++q]){}}return t}function b(o){return document.getElementById(o)}function a(q,p,o){if(typeof p!="object"){return q}if(q&&p){l(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.slice(0,q)||"*";var o=s.slice(q+1,s.length);var r=[];l(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function d(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function f(){return"_"+(""+Math.random()).slice(2,10)}var i=function(u,t,s){var r=this,q={},p={};r.index=t;if(typeof u=="string"){u={url:u}}a(this,u,true);l(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var w="on"+this;if(w.indexOf("*")!=-1){w=w.slice(0,w.length-1);var v="onBefore"+w.slice(2);r[v]=function(x){j(p,v,x);return r}}r[w]=function(x){j(p,w,x);return r};if(t==-1){if(r[v]){s[v]=r[v]}if(r[w]){s[w]=r[w]}}});a(this,{onCuepoint:function(v,x){if(arguments.length==1){q.embedded=[null,v];return r}if(typeof v=="number"){v=[v]}var w=f();q[w]=[v,x];if(s.isLoaded()){s._api().fp_addCuepoints(v,t,w)}return r},update:function(w){a(r,w);if(s.isLoaded()){s._api().fp_updateClip(w,t)}var v=s.getConfig();var x=(t==-1)?v.clip:v.playlist[t];a(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){l(q,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],t,B)}});return false}A=A||r;if(v=="onCuepoint"){var z=q[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){a(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;l(p[v],function(){x=this.call(s,A,y,w)});return x}});if(u.onCuepoint){var o=u.onCuepoint;r.onCuepoint.apply(r,typeof o=="function"?[o]:o);delete u.onCuepoint}l(u,function(v,w){if(typeof w=="function"){j(p,v,w);delete u[v]}});if(t==-1){s.onCuepoint=this.onCuepoint}};var m=function(r,s,q,t){var p=this,o={},u=false;if(t){a(o,t)}l(s,function(v,w){if(typeof w=="function"){o[v]=w;delete s[v]}});a(this,{animate:function(y,z,x){if(!y){return p}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=f();o[v]=x}if(z===undefined){z=500}s=q._api().fp_animate(r,y,z,v);return p},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}s=q._api().fp_css(r,w);a(p,s);return p},show:function(){this.display="block";q._api().fp_showPlugin(r);return p},hide:function(){this.display="none";q._api().fp_hidePlugin(r);return p},toggle:function(){this.display=q._api().fp_togglePlugin(r);return p},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=f();o[v]=w}this.display=q._api().fp_fadeTo(r,y,x,v);this.opacity=y;return p},fadeIn:function(w,v){return p.fadeTo(1,w,v)},fadeOut:function(w,v){return p.fadeTo(0,w,v)},getName:function(){return r},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var y=q._api().fp_getPlugin(r);if(!y){return}a(p,y);delete p.methods;if(!u){l(y.methods,function(){var A=""+this;p[A]=function(){var B=[].slice.call(arguments);var C=q._api().fp_invoke(r,A,B);return C==="undefined"||C===undefined?p:C}});u=true}}var z=o[w];if(z){z.apply(p,v);if(w.slice(0,1)=="_"){delete o[w]}}return p}})};function h(p,x,t){var w=this,v=null,B=false,u,s,E=[],G={},F={},D,r,q,C,o,z;a(w,{id:function(){return D},isLoaded:function(){return(v!==null&&!B)},getParent:function(){return p},hide:function(H){if(H){p.style.height="0px"}if(w.isLoaded()){v.style.height="0px"}return w},show:function(){p.style.height=z+"px";if(w.isLoaded()){v.style.height=o+"px"}return w},isHidden:function(){return w.isLoaded()&&parseInt(v.style.height,10)===0},load:function(J){if(!w.isLoaded()&&w._fireEvent("onBeforeLoad")!==false){var H=function(){u=p.innerHTML;if(u&&!flashembed.isSupported(x.version)){p.innerHTML=""}flashembed(p,x,{config:t});if(J){J.cached=true;j(F,"onLoad",J)}};var I=0;l(g,function(){this.unload(function(K){if(++I==g.length){H()}})})}return w},unload:function(J){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(J){J(false)}return w}if(u.replace(/\s/g,"")!==""){if(w._fireEvent("onBeforeUnload")===false){if(J){J(false)}return w}B=true;try{if(v){v.fp_close();w._fireEvent("onUnload")}}catch(H){}var I=function(){v=null;p.innerHTML=u;B=false;if(J){J(true)}};setTimeout(I,50)}else{if(J){J(false)}}return w},getClip:function(H){if(H===undefined){H=C}return E[H]},getCommonClip:function(){return s},getPlaylist:function(){return E},getPlugin:function(I){var H=G[I];if(!H&&w.isLoaded()){var J=w._api().fp_getPlugin(I);if(J){H=new m(I,J,w);G[I]=H}}return H},getScreen:function(){return w.getPlugin("screen")},getControls:function(){return w.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return w.getPlugin("logo")._fireEvent("onUpdate")}catch(H){}},getPlay:function(){return w.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(H){return H?k(t):t},getFlashParams:function(){return x},loadPlugin:function(K,J,M,L){if(typeof M=="function"){L=M;M={}}var I=L?f():"_";w._api().fp_loadPlugin(K,J,M,I);var H={};H[I]=L;var N=new m(K,null,w,H);G[K]=N;return N},getState:function(){return w.isLoaded()?v.fp_getState():-1},play:function(I,H){var J=function(){if(I!==undefined){w._api().fp_play(I,H)}else{w._api().fp_play()}};if(w.isLoaded()){J()}else{if(B){setTimeout(function(){w.play(I,H)},50)}else{w.load(function(){J()})}}return w},getVersion:function(){var I="flowplayer.js 3.2.0";if(w.isLoaded()){var H=v.fp_getVersion();H.push(I);return H}return I},_api:function(){if(!w.isLoaded()){throw"Flowplayer "+w.id()+" not loaded when calling an API method"}return v},setClip:function(H){w.setPlaylist([H]);return w},getIndex:function(){return q}});l(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var H="on"+this;if(H.indexOf("*")!=-1){H=H.slice(0,H.length-1);var I="onBefore"+H.slice(2);w[I]=function(J){j(F,I,J);return w}}w[H]=function(J){j(F,H,J);return w}});l(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var H=this;w[H]=function(J,I){if(!w.isLoaded()){return w}var K=null;if(J!==undefined&&I!==undefined){K=v["fp_"+H](J,I)}else{K=(J===undefined)?v["fp_"+H]():v["fp_"+H](J)}return K==="undefined"||K===undefined?w:K}});w._fireEvent=function(Q){if(typeof Q=="string"){Q=[Q]}var R=Q[0],O=Q[1],M=Q[2],L=Q[3],K=0;if(t.debug){e(Q)}if(!w.isLoaded()&&R=="onLoad"&&O=="player"){v=v||b(r);o=v.clientHeight;l(E,function(){this._fireEvent("onLoad")});l(G,function(S,T){T._fireEvent("onUpdate")});s._fireEvent("onLoad")}if(R=="onLoad"&&O!="player"){return}if(R=="onError"){if(typeof O=="string"||(typeof O=="number"&&typeof M=="number")){O=M;M=L}}if(R=="onContextMenu"){l(t.contextMenu[O],function(S,T){T.call(w)});return}if(R=="onPluginEvent"){var H=O.name||O;var I=G[H];if(I){I._fireEvent("onUpdate",O);I._fireEvent(M,Q.slice(3))}return}if(R=="onPlaylistReplace"){E=[];var N=0;l(O,function(){E.push(new i(this,N++,w))})}if(R=="onClipAdd"){if(O.isInStream){return}O=new i(O,M,w);E.splice(M,0,O);for(K=M+1;K<E.length;K++){E[K].index++}}var P=true;if(typeof O=="number"&&O<E.length){C=O;var J=E[O];if(J){P=J._fireEvent(R,M,L)}if(!J||P!==false){P=s._fireEvent(R,M,L,J)}}l(F[R],function(){P=this.call(w,O,M);if(this.cached){F[R].splice(K,1)}if(P===false){return false}K++});return P};function A(){if($f(p)){$f(p).getParent().innerHTML="";q=$f(p).getIndex();g[q]=w}else{g.push(w);q=g.length-1}z=parseInt(p.style.height,10)||p.clientHeight;D=p.id||"fp"+f();r=x.id||D+"_api";x.id=r;t.playerId=D;if(typeof t=="string"){t={clip:{url:t}}}if(typeof t.clip=="string"){t.clip={url:t.clip}}t.clip=t.clip||{};if(p.getAttribute("href",2)&&!t.clip.url){t.clip.url=p.getAttribute("href",2)}s=new i(t.clip,-1,w);t.playlist=t.playlist||[t.clip];var H=0;l(t.playlist,function(){var J=this;if(typeof J=="object"&&J.length){J={url:""+J}}l(t.clip,function(K,L){if(L!==undefined&&J[K]===undefined&&typeof L!="function"){J[K]=L}});t.playlist[H]=J;J=new i(J,H,w);E.push(J);H++});l(t,function(J,K){if(typeof K=="function"){if(s[J]){s[J](K)}else{j(F,J,K)}delete t[J]}});l(t.plugins,function(J,K){if(K){G[J]=new m(J,K,w)}});if(!t.plugins||t.plugins.controls===undefined){G.controls=new m("controls",null,w)}G.canvas=new m("canvas",null,w);function I(J){if(!w.isLoaded()&&w._fireEvent("onBeforeClick")!==false){w.load()}return d(J)}u=p.innerHTML;if(u.replace(/\s/g,"")!==""){if(p.addEventListener){p.addEventListener("click",I,false)}else{if(p.attachEvent){p.attachEvent("onclick",I)}}}else{if(p.addEventListener){p.addEventListener("click",d,false)}w.load()}}if(typeof p=="string"){var y=b(p);if(!y){throw"Flowplayer cannot access element: "+p}else{p=y;A()}}else{A()}}var g=[];function c(o){this.length=o.length;this.each=function(p){l(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){l(g,function(){if(this.isLoaded()){p=this;return false}});return p||g[0]}if(arguments.length==1){if(typeof o=="number"){return g[o]}else{if(o=="*"){return new c(g)}l(g,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};if(typeof t=="string"){t={src:t}}t=a({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:true},t);if(typeof o=="string"){if(o.indexOf(".")!=-1){var s=[];l(n(o),function(){s.push(new h(this,k(t),k(q)))});return new c(s)}else{var r=b(o);return new h(r!==null?r:o,t,q)}}else{if(o){return new h(o,t,q)}}}return null};a(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){h.prototype[o]=p;return $f},each:l,extend:a});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new c(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var i=document.all,j="http://www.adobe.com/go/getflashplayer",g=typeof jQuery=="function",e=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,c={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(l,f){if(f){for(key in f){if(f.hasOwnProperty(key)){l[key]=f[key]}}}return l}function a(f,n){var l=[];for(var m in f){if(f.hasOwnProperty(m)){l[m]=n(f[m])}}return l}window.flashembed=function(f,m,l){if(typeof f=="string"){f=document.getElementById(f.replace("#",""))}if(!f){return}if(typeof m=="string"){m={src:m}}return new d(f,b(b({},c),m),l)};var h=b(window.flashembed,{conf:c,getVersion:function(){var f;try{f=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(n){try{var l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");f=l&&l.GetVariable("$version")}catch(m){}}f=e.exec(f);return[f[1],f[3]]},asString:function(l){if(l===null||l===undefined){return null}var f=typeof l;if(f=="object"&&l.push){f="array"}switch(f){case"string":l=l.replace(new RegExp('(["\\\\])',"g"),"\\$1");l=l.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+l+'"';case"array":return"["+a(l,function(o){return h.asString(o)}).join(",")+"]";case"function":return'"function()"';case"object":var m=[];for(var n in l){if(l.hasOwnProperty(n)){m.push('"'+n+'":'+h.asString(l[n]))}}return"{"+m.join(",")+"}"}return String(l).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(o,l){o=b({},o);var n='<object width="'+o.width+'" height="'+o.height+'" id="'+o.id+'"" name="'+o.id+'"';if(o.cachebusting){o.src+=((o.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(o.w3c||!i){n+=' data="'+o.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(o.w3c||i){n+='<param name="movie" value="'+o.src+'" />'}o.width=o.height=o.id=o.w3c=o.src=null;o.onFail=o.version=o.expressInstall=null;for(var m in o){if(o[m]){n+='<param name="'+m+'" value="'+o[m]+'" />'}}var p="";if(l){for(var f in l){if(l[f]){var q=l[f];p+=f+"="+(/function|object/.test(typeof q)?h.asString(q):q)+"&"}}p=p.slice(0,-1);n+='<param name="flashvars" value=\''+p+"' />"}n+="</object>";return n},isSupported:function(f){return k[0]>f[0]||k[0]==f[0]&&k[1]>=f[1]}});var k=h.getVersion();function d(f,n,m){if(h.isSupported(n.version)){f.innerHTML=h.getHTML(n,m)}else{if(n.expressInstall&&h.isSupported([6,65])){f.innerHTML=h.getHTML(b(n,{src:n.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!f.innerHTML.replace(/\s/g,"")){f.innerHTML="<h2>Flash version "+n.version+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(f.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+j+"'>here</a></p>");if(f.tagName=="A"){f.onclick=function(){location.href=j}}}if(n.onFail){var l=n.onFail.call(this);if(typeof l=="string"){f.innerHTML=l}}}}if(i){window[n.id]=document.getElementById(n.id)}b(this,{getRoot:function(){return f},getOptions:function(){return n},getConf:function(){return m},getApi:function(){return f.firstChild}})}if(g){jQuery.tools=jQuery.tools||{version:"3.2.0"};jQuery.tools.flashembed={conf:c};jQuery.fn.flashembed=function(l,f){return this.each(function(){$(this).data("flashembed",flashembed(this,l,f))})}}})();
(function(a){var b;for(b in a){String.prototype[b]=(function(){var c=a[b];return function(){var d=[this.toString()],e;for(e=0;e<arguments.length;e++){d[d.length]=arguments[e]}return c.apply(this,d)}})()}window.jString=a})((function(){function u(z,A,y){if(isNaN(z)){return A}else{if(z<0){return(-z>y?0:y+z)}else{if(z>y){return y}}}return z}function j(y){if(y===undefined||y===null||y===""){return true}return false}function k(A,z,B,y){B=u(B,0,A.length);if(isNaN(y)){y=z.length}return A.slice(0,B)+z+A.slice(B+y)}function q(A,z){var y;if(z===undefined||z===null){z=" \r\n\t"}for(y=0;y<A.length;y++){if(z.indexOf(A.charAt(y))===-1){break}}if(y){A=A.substring(y)}return A}function x(A,z){var y;if(z===undefined||z===null){z=" \r\n\t"}for(y=A.length-1;y>=0;y--){if(z.indexOf(A.charAt(y))===-1){break}}if(++y<A.length){A=A.substring(0,y)}return A}function p(z,y){if(y===undefined||y===null){y=" \r\n\t"}return x(q(z,y),y)}function s(D,B,C){var z="",y=D.length,A;if(isNaN(B)||y<1){return z}if(!isNaN(C)&&C!==0){if(C<0){C=y+C}D=D.substr(C)+D.substr(0,C)}for(A=Math.floor(B/y);A>0;A--){z+=D}y=B%y;if(y){z+=D.substring(0,y)}return z}function n(D,B,y){var z=D.length,C,A;if(isNaN(B)||B<=z){return D}if(y===undefined||y===null||y.length<1){y=" "}C=Math.floor((B-z)/2);A=B-z-C;return s(y,C)+D+s(y,A,(z+C)%y.length)}function v(A,z,y){if(isNaN(z)||z<=A.length){return A}if(y===undefined||y===null||y.length<1){y=" "}return A+s(y,z-A.length,A.length%y.length)}function h(A,z,y){if(isNaN(z)||z<=A.length){return A}if(y===undefined||y===null||y.length<1){y=" "}return s(y,z-A.length)+A}function d(D,C,E,z){var y=C.length,B=0,A;if(y<1){return B}E=u(E,0,D.length);z=u(z,D.length,D.length);while((A=D.indexOf(C,E))!==-1){if(A+y>z){break}B++;E=A+y}return B}function g(y){return y===""}function f(y){return y.search(/[^\s]/g)===-1}function w(A,z,B,y){B=u(B,0,A.length);y=u(y,A.length,A.length);if(z.length>y-B){return false}return(A.indexOf(z,B)===B)}function m(A,z,C,y){var B;C=u(C,0,A.length);y=u(y,A.length,A.length);if(z.length>y-C){return false}B=A.lastIndexOf(z,y);return(B!==-1&&B===y-z.length)}function c(A,z,C,y){var B;C=u(C,0,A.length);y=u(y,A.length,A.length);if(z.length>y-C){return false}B=A.indexOf(z,C);return(B!==-1&&B<=y-z.length)}function i(B,z){var A={"&amp;":/&/g,"&lt;":/\</g,"&gt;":/\>/g},y;for(y in A){B=B.replace(A[y],y)}if(z){A={"&quot;":/"/g,"&#39;":/'/g};for(y in A){B=B.replace(A[y],y)}}return B}function l(C,B){var z="",y=B.length,A;if(y<1){return z}y--;for(A=0;A<y;A++){z+=B[A]+C}z+=B[A];return z}function a(z,y,A){y=u(y,z.length,z.length);if(z.length<=y){return z}if(A===undefined||A===null){A="..."}if(A.length>y){A=A.substring(0,y)}return z.substring(0,y-A.length)+A}function e(y){return y.replace(/(?:^(.)|\s(.))/g,function(z){return z.toUpperCase()})}function b(y){return y.replace(/^\s*(.)/g,function(z){return z.toUpperCase()})}function o(y,A){var z=new r(y,A);return z.parse()}function t(y){var A={},z;for(z=1;z<arguments.length;z++){A[z-1]=arguments[z]}return o(y,A)}function r(y,z){this.fmt=y;this.repl=z}r.prototype.fs_re=/^(?:(.)?([\<\>=\^]))?([\+\- ])?(#)?(0)?(\d+)?(?:\.(\d+))?([\w%])?$/;r.prototype.inf_re=/^(\-)?Infinity$/i;r.prototype.num_prefixes={b:"0b",o:"0o",x:"0x",X:"0x"};r.prototype.parse=function(){var D,B=0,C=null,z,y,A;for(z=0;z<this.fmt.length;z++){D=this.fmt.charAt(z);if(D==="{"){if(this.fmt.length>z+1&&this.fmt.charAt(z+1)==="{"){this.fmt=k(this.fmt,"",z,1);continue}if(B===0){C=z}B++}else{if(D==="}"){if(B==0&&this.fmt.length>z+1&&this.fmt.charAt(z+1)==="}"){this.fmt=k(this.fmt,"",z,1);continue}B--;if(B<0){B=0;continue}else{if(B==0){y=this.fmt.substring(C+1,z);A=this.parseReplacement(y);if(A!==null){this.fmt=k(this.fmt,A,C,z-C+1);z=C+A.length-1;continue}}}}}}return this.fmt};r.prototype.parseReplacement=function(D){var E=0,z,B,A,C,y;B=D.indexOf(":");if(B===-1){B=D.length}else{if(B===E){return null}}A=D.substring(E,B);C=this.parseFieldName(A);if(C===null||!C.toString){return null}if(B<D.length&&D.charAt(B)===":"){y=D.substring(B+1);B=0;E=B;while((E=y.indexOf("{",E))!==-1){z=y.indexOf("}",E);if(z===-1){return null}A=this.parseFieldName(y.substring(E+1,z));if(A===null){return null}y=k(y,A,E,z-E+1);E++}C=this.processFormatting(C,y)}else{C=C.toString()}return C};r.prototype.processFormatting=function(B,J){var H,I,F,E,G,M,K,A,z,D,y,C,L;H=J.match(this.fs_re);if(H===null){return null}M=(j(H[1])?" ":H[1]);K=(j(H[2])?"<":H[2]);A=(j(H[3])?"-":H[3]);z=(H[4]==="#");D=(H[5]==="0");y=H[6];C=(j(H[7])?6:new Number(H[7]));L=H[8];if(D&&j(H[1])){M="0";K="="}if(!j(L)){I=new Number(B);B=null;if(I>=0||isNaN(I)){if(A==="+"||A===" "){}else{A=""}}else{A=""}if(isNaN(I)){B=A+"nan";if("FEG".indexOf(L)>-1){B=B.toUpperCase()}if(L==="%"){B+="%"}}else{if((H=this.inf_re.exec(I))!==null){if(H[1]==="-"){A="-"}B=A+"inf";if("FEG".indexOf(L)>-1){B=B.toUpperCase()}if(L==="%"){B+="%"}}else{if(L==="d"){B=A+I.toFixed(0)}else{if((H=({b:2,o:8,x:16,X:16})[L])!==undefined){B=(new Number(I.toFixed(0))).toString(H);if(z){if((H=B.charAt(0))==="-"){B=B.substring(1)}else{H=""}B=H+this.num_prefixes[L]+B}if(L==="X"){B=B.toUpperCase()}B=A+B}else{if(L==="c"){if(I>=0&&I<=65535){B=String.fromCharCode(I.toFixed(0))}}else{if(L==="f"||L==="F"){B=A+I.toFixed(C)}else{if(L==="e"||L==="E"){B=A+I.toExponential(C);B=B.replace(/(e[\+\-])(\d+)/,function(N,O,P){return O+h(P,2,"0")});if(L==="E"){B=B.toUpperCase()}}else{if(L==="g"||L==="G"){if(C<1){C=1}H=I.toExponential(C-1);F=parseInt(H.match(/e([\+\-]\d+)$/)[1]);if(-4<=F&&F<C){H=C-1-F;B=I.toFixed(H>0?H:0)}else{B=H}B=B.replace(/^(\-?\d+)(?:\.(\d+))?(?:(e[\+\-])(\d+))?$/,function(O,Q,P,N,S){var R=""+Q;if(!j(P)){P=x(P,"0");if(P!==""){R+="."+P}}if(!j(N)){R+=N+h(S,2,"0")}return R});B=A+B;if(L==="G"){B=B.toUpperCase()}}else{if(L==="%"){I*=100;if(!this.inf_re.test(I)){B=A+(C===undefined?I.toString():I.toFixed(C!==null?C:1))+"%"}}else{return null}}}}}}}}}}else{if(C!==undefined&&C!==null){B=B.toString();if(B.length>C){B=B.substring(0,C)}}}B=B.toString();if(y!==null&&B.length<y){if(K==="<"){B=v(B,y,M)}else{if(K===">"){B=h(B,y,M)}else{if(K==="^"){B=n(B,y,M)}else{if(K==="="&&L!==null&&L!=="c"){H=B.charAt(0);if(H==="-"||H==="+"||H===" "){B=B.substring(1);E=H}else{E=""}if(z&&(H=this.num_prefixes[L])!==undefined){B=B.substring(H.length);E+=H}G=B.length+E.length;for(;G<y;G++){B=M+B}B=E+B}}}}}return B!==null?B.toString():""};r.prototype.parseFieldName=function(B){var z,y,A=null,C;z=B.indexOf("[");if(z===-1){z=B.length}if(z===0){return null}y=B.substring(0,z);if(this.repl[y]===undefined){return null}A=this.repl[y];for(;z<B.length;z++){if(B.charAt(z)!=="["){return null}C=z+1;z=B.indexOf("]",C);if(z===-1){return null}y=B.substring(C,z);if(A[y]===undefined){return null}A=A[y]}return A};return{count:d,blank:f,empty:g,startswith:w,endswith:m,contains:c,fill:s,replacesub:k,join:l,lstrip:q,rstrip:x,strip:p,ljust:v,rjust:h,center:n,encodehtml:i,truncate:a,ucwords:e,capitalize:b,format:t,vformat:o}})());
var EK_Comment=(function(){var m={};var h=null;var d="CommentCmd";var c={};var q={};function k(t){if(q[t]===undefined){n()}if(q[t]===undefined){return t}return q[t]}function p(u,t,v){t.__action__="comment.ajax";t[d]=u;var w=function(x){v.call(this,x)};$.ajax({url:h,data:t,async:true,cache:false,type:"POST",dataType:"json",success:w})}function n(){var t={__action__:"comment.ajax"};t[d]="getLocalizations";$.ajax({url:h,data:t,async:false,timeout:5000,cache:true,type:"POST",dataType:"json",success:(function(u){q=u.loc})})}function a(u){var t={tid:u.tid,pid:u.pid,title:$("#message-input-title-"+u.tid+"-"+u.pid).val(),author:$("#message-input-author-"+u.tid+"-"+u.pid).val(),message:$("#message-input-content-"+u.tid+"-"+u.pid).val()};l(u.tid,u.pid,true);p("getMessagePreview",t,function(v){$("#message-preview-"+u.tid+"-"+u.pid).html(v.html);l(u.tid,u.pid,false)})}function b(u){var t={tid:u.tid,pid:u.pid,token:c[u.tid],title:$("#message-input-title-"+u.tid+"-"+u.pid).val(),author:$("#message-input-author-"+u.tid+"-"+u.pid).val(),message:$("#message-input-content-"+u.tid+"-"+u.pid).val()};l(u.tid,u.pid,true);p("addMessage",t,function(v){l(u.tid,u.pid,false);if(v.error!==undefined){$("#message-error-"+u.tid+"-"+u.pid).html(v.error);return}j("author",t.author,2592000,"/");$("#thread-tree-"+u.tid).html(v.html);r(u.tid,u.pid);if(v.visible){$("#message-node-"+v.mid).addClass("message-node-new");g("#message-node-"+v.mid)}else{if(v.notice){$("#message-playground-"+u.tid+"-"+u.pid).html(v.notice);g("#message-node-"+u.pid)}}})}function j(v,w,u,x){var t=new Date();if(u===undefined||u===null){u=2592000}t.setTime(t.getTime()+Math.floor(u*1000));if(x===undefined||x===null){x="/"}var y="comment["+encodeURIComponent(v)+"]="+encodeURIComponent(w)+"; expires="+t.toGMTString()+"; path="+escape(x);document.cookie=y}function g(t){var u=($(t).offset()).top-50;if(u>0){window.scrollTo(0,u)}}function r(u,t){$("#message-input-title-"+u+"-"+t).val("");$("#message-input-author-"+u+"-"+t).val("");$("#message-input-content-"+u+"-"+t).val("");$("#message-preview-"+u+"-"+t).remove()}function s(u,t){$("#message-preview-btn-"+u+"-"+t).click(function(){a({tid:u,pid:t})});$("#message-send-btn-"+u+"-"+t).click(function(){b({tid:u,pid:t})});$("#message-cancel-btn-"+u+"-"+t).click(function(){$("#message-playground-"+u+"-"+t).html("<!-- -->")});$("#message-fmtbtn-bold-"+u+"-"+t).click(function(){f(u,t,"b")});$("#message-fmtbtn-italic-"+u+"-"+t).click(function(){f(u,t,"i")});$("#message-fmtbtn-underline-"+u+"-"+t).click(function(){f(u,t,"u")});$("#message-fmtbtn-quote-"+u+"-"+t).click(function(){f(u,t,"quote")})}function f(v,w,u){var t=e(v,w);t="<"+u+">"+t+"</"+u+">";o(v,w,t)}function e(u,v){var t=$("#message-input-content-"+u+"-"+v).get(0);if(document.selection){t.focus();return(document.selection.createRange()).text}else{return t.value.substring(t.selectionStart,t.selectionEnd)}}function o(v,x,u){var t=$("#message-input-content-"+v+"-"+x).get(0);if(document.selection){t.focus();(document.selection.createRange()).text=u}else{var w=t.value;t.value=w.substring(0,t.selectionStart)+u+w.substring(t.selectionEnd)}}function l(u,v,t){$("#editor-load-indicator-"+u+"-"+v).css("visibility",t?"visible":"hidden")}function i(u,v,t){$("#message-load-indicator-"+u+"-"+v).css("visibility",t?"visible":"hidden")}m.deleteMessage=function(u){if(!confirm(k("delete_confirm"))){return}var t={tid:u.tid,id:u.id};i(u.tid,u.id,true);p("deleteMessage",t,function(v){i(u.tid,u.id,false);$("#thread-tree-"+u.tid).html(v.html)})};m.publishMessage=function(u){var t={tid:u.tid,id:u.id};i(u.tid,u.id,true);p("publishMessage",t,function(v){i(u.tid,u.id,false);$("#thread-tree-"+u.tid).html(v.html)})};m.unpublishMessage=function(u){var t={tid:u.tid,id:u.id};i(u.tid,u.id,true);p("unpublishMessage",t,function(v){i(u.tid,u.id,false);$("#thread-tree-"+u.tid).html(v.html)})};m.getMessageEditor=function(u){var t={tid:u.tid,pid:u.pid,quote:!!u.quote};$(".message-playground").html("<!-- -->");i(u.tid,u.pid,true);p("getMessageEditor",t,function(v){i(u.tid,u.pid,false);$("#message-playground-"+u.tid+"-"+u.pid).html(v.html);s(u.tid,u.pid);if($("#message-input-author-"+u.tid+"-"+u.pid).val()===""){$("#message-input-author-"+u.tid+"-"+u.pid).get(0).focus()}else{$("#message-input-content-"+u.tid+"-"+u.pid).get(0).focus()}})};m.initGlobal=function(t){if(t.commandProxy){h=t.commandProxy}};m.initEditor=function(u,t){c[u]=t;s(u,0)};return m})();
var EK_Popularity=(function(){var b={};var a=3;b.log=function(d,e,c){setTimeout(function(){var f={__action__:"popularity.log",type:d,id:e,token:c};$.ajax({url:EK_Config.commandProxy,data:f,async:true,cache:false,type:"POST",dataType:"json",success:function(g){}})},a*1000)};return b})();
var EK=(function(){var b={};function a(e,f,d,g){var c=new Date();if(d===undefined||d===null){d=31536000}c.setTime(c.getTime()+Math.floor(d*1000));if(g===undefined||g===null){g="/"}var h=encodeURIComponent(e)+"="+encodeURIComponent(f)+"; expires="+c.toGMTString()+"; path="+escape(g);document.cookie=h}b.initThemeNaviSub=function(c){$(c).find(".subnavi-level-1 li").hoverIntent({over:function(){var d=($(this).attr("class").match(/meta-item-(\d+)/))[1];$(c).find(".subnavi-level-2 ul").hide();$(c).find(".subnavi-level-2 ul.meta-sub-"+d).show();$(c).find(".subnavi-level-1 li").removeClass("active");$(this).addClass("active")},out:function(){},sensitivity:2,interval:0,timeout:0})};b.doAjaxLogin=function(d,e){var c={__action__:"extra.ajaxLogin"};c["s[Username]"]=$(e).find(".username").val();c["s[Password]"]=$(e).find(".password").val();$(e).find(".buttonbar").hide();$(e).find(".load-indicator").addClass("load-indicator-active");$(e).colorbox.resize();$.ajax({url:d,data:c,async:true,timeout:15000,cache:false,type:"POST",dataType:"json",success:(function(f){$(e).find(".load-indicator").removeClass("load-indicator-active");if(f.status===true){if(f.redir_url){document.location=f.redir_url}}$(e).find(".status").html('<div class="status-msg">'+f.msg+"</div>");$(e).find(".buttonbar").show()})})};b.initWebPart=function(d,c){$(d).find(".save-btn").click(function(){var e=[];$(d).find("input.input-category:checked").each(function(){e.push($(this).val())});a("webpart-categories",e.join("-"),86400*365,"/");$.fn.colorbox.close();if(c.updateurl){$("#WebPartUpdate").load(c.updateurl)}});$(d).find(".cancel-btn").click(function(){$.fn.colorbox.close()})};return b})();
var EK_Init=(function(){var pub={};var initializers={accordion:[],carousel:[],tabs:[],lifttabs:[]};function init_accordion(selector,params){$(selector).accordion(params)}function init_carousel(selector,params){$(selector).carousel(params)}function init_tabs(selector,params){$(selector).ekTabs(params)}function init_lifttabs(selector,params){$(selector).ekLifttabs(params)}function addInitializer(name,selector,params){initializers[name].push({selector:selector,params:params})}addInitializer("accordion",".meta-accordion-default",{autoHeight:false});addInitializer("accordion",".meta-accordion-default-closed",{active:false});addInitializer("carousel",".meta-carousel-default",{loop:true});addInitializer("tabs",".meta-tabbed-default",{});addInitializer("lifttabs",".meta-lifttabs-default",{});function initCrumbpath(){$(".crumb-path .crumb-item").hoverIntent({over:function(){if($(this).find(".crumb-subnavi").size()){return}var crumbwidth=$(this).width();var item_id=($(this).attr("class").match(/meta-item-(\d+)/))[1];var container=$('<span class="crumb-subnavi"><span class="ajaxload"></span></span>').appendTo(this);if(crumbwidth>250){container.width(crumbwidth)}var this_item=this;var args={__action__:"crumbpath.getSubnavi",id:item_id};jQuery.ajax({async:true,type:"POST",url:EK_Config.commandProxy,data:args,cache:true,dataType:"html",timeout:5000,success:function(data){var html=(data!==""?'<div class="crumb-subnavi-content">'+data+"</div>":"");$(this_item).find(".crumb-subnavi").html(html)}})},out:function(){$(this).find(".crumb-subnavi").remove()},sensitivity:2,interval:200,timeout:0})}function initListviewYearFilter(){$(".listview-year-filter ul.years li.year").hoverIntent({over:function(){$(this).find(".subnavi").css("display","block")},out:function(){$(this).find(".subnavi").css("display","none")},sensitivity:2,interval:200,timeout:0})}function initVideoLinks(){var ratiomap={"4_3":0.75,"16_9":0.5625},ratio,height;$("a.video-linkki-4_3,a.video-linkki-16_9").filter("[href*=.flv]").each(function(){$(this).css("display","block");ratio=ratiomap[$(this).attr("class").match(/video-linkki-(\d+_\d+)/)[1]];height=Math.ceil(($(this).innerWidth()*ratio));$(this).css("height",height+"px");$(this).addClass("flowplayer-link");$(this).flowplayer({src:"/libek-static/swf/flowplayer-3.2.1.swf"},{})})}pub.addAccordion=function(selector,params){addInitializer("accordion",selector,params)};pub.addCarousel=function(selector,params){addInitializer("carousel",selector,params)};pub.addTabs=function(selector,params){addInitializer("tabs",selector,params)};pub.addLifttabs=function(selector,params){addInitializer("lifttabs",selector,params)};pub.init=function(){for(var type in initializers){var list=initializers[type];var mtd=eval("init_"+type);for(var i=0,len=list.length;i<len;i++){var data=list[i];mtd.call(this,data.selector,data.params)}}initCrumbpath();initListviewYearFilter();initVideoLinks()};return pub})();$(function(){EK_Init.init()});

