jQuery.fn.highlightWithClass=function(b,c){function a(g,l,m){var o=0;if(g.nodeType==3){var n=g.data.toUpperCase().indexOf(l);if(n>=0){var k=document.createElement("span");k.className=m;var h=g.splitText(n);var e=h.splitText(l.length);var f=h.cloneNode(true);k.appendChild(f);h.parentNode.replaceChild(k,h);o=1}}else{if(g.nodeType==1&&g.childNodes&&!/(script|style)/i.test(g.tagName)){for(var j=0;j<g.childNodes.length;++j){j+=a(g.childNodes[j],l,m)}}}return o}return this.each(function(){a(this,b.toUpperCase(),c)})};jQuery.fn.removeHighlightWithClass=function(className){return this.find("span."+className).each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode){replaceChild(this.firstChild,this);normalize()}}).end()};(function(b){b("html").addClass("stylish-select");function a(e,f,g){for(var c=(g||0);c<e.length;c++){if(e[c]==f){return c}}}b.fn.extend({getSetSSValue:function(c){if(c){b(this).val(c).change();return this}else{return b(this).find(":selected").val()}},resetSS:function(){var c=b(this).data("ssOpts");$this=b(this);$this.next().remove();$this.unbind().sSelect(c)}});b.fn.sSelect=function(c){return this.each(function(){var l={defaultText:"Please select",animationSpeed:0,ddMaxHeight:""};var o=b.extend(l,c),g=b(this),m=b('<div class="selectedTxt"></div>'),u=b('<div class="newListSelected" tabindex="0"></div>'),C=b('<ul class="newList"></ul>'),w=-1,f=-1,p=[],z=false,y=false,A;b(this).data("ssOpts",c);u.insertAfter(g);m.prependTo(u);C.appendTo(u);g.hide();if(g.children("optgroup").length==0){g.children().each(function(E){var F=b(this).text();var D=b(this).val();p.push(F.charAt(0).toLowerCase());if(b(this).attr("selected")==true){o.defaultText=F;f=E}C.append(b('<li><a href="JavaScript:void(0);">'+F+"</a></li>").data("key",D))});A=C.children().children()}else{g.children("optgroup").each(function(){var D=b(this).attr("label"),F=b('<li class="newListOptionTitle">'+D+"</li>");F.appendTo(C);var E=b("<ul></ul>");E.appendTo(F);b(this).children().each(function(){++w;var H=b(this).text();var G=b(this).val();p.push(H.charAt(0).toLowerCase());if(b(this).attr("selected")==true){o.defaultText=H;f=w}E.append(b('<li><a href="JavaScript:void(0);">'+H+"</a></li>").data("key",G))})});A=C.find("ul li a")}var r=C.height(),q=u.height(),B=A.length;if(f!=-1){k(f,true)}else{m.text(o.defaultText)}function s(){var E=u.offset().top,D=jQuery(window).height(),F=jQuery(window).scrollTop();if(r>parseInt(o.ddMaxHeight)){r=parseInt(o.ddMaxHeight)}E=E-F;if(E+r>=D){C.css({top:"-"+r+"px",height:r});g.onTop=true}else{C.css({top:q+"px",height:r});g.onTop=false}}s();b(window).resize(function(){s()});b(window).scroll(function(){s()});function v(){u.css("position","relative")}function e(){u.css("position","static")}m.click(function(D){D.stopPropagation();b(".newList").not(b(this).next()).hide().parent().removeClass("newListSelFocus");C.toggle();v();A.eq(f).focus()});A.click(function(E){var D=b(E.target);f=A.index(D);y=true;k(f);C.hide();u.css("position","static")});A.hover(function(E){var D=b(E.target);D.addClass("newListHover")},function(E){var D=b(E.target);D.removeClass("newListHover")});function k(D,G){A.removeClass("hiLite").eq(D).addClass("hiLite");if(C.is(":visible")){A.eq(D).focus()}var F=A.eq(D).text();var E=A.eq(D).parent().data("key");if(G==true){g.val(E);m.text(F);return false}g.val(E);g.change();m.text(F)}g.change(function(D){$targetInput=b(D.target);if(y==true){y=false;return false}$currentOpt=$targetInput.find(":selected");f=$targetInput.find("option").index($currentOpt);k(f,true)});function t(D){D.onkeydown=function(G){var F;if(G==null){F=event.keyCode}else{F=G.which}y=true;switch(F){case 40:case 39:x();return false;break;case 38:case 37:n();return false;break;case 33:case 36:j();return false;break;case 34:case 35:h();return false;break;case 13:case 27:C.hide();e();return false;break}keyPressed=String.fromCharCode(F).toLowerCase();var E=a(p,keyPressed);if(typeof E!="undefined"){++f;f=a(p,keyPressed,f);if(f==-1||f==null||z!=keyPressed){f=p.indexOf(keyPressed)}k(f);z=keyPressed;return false}}}function x(){if(f<(B-1)){++f;k(f)}}function n(){if(f>0){--f;k(f)}}function j(){f=0;k(f)}function h(){f=B-1;k(f)}u.click(function(){t(this)});u.focus(function(){b(this).addClass("newListSelFocus");t(this)});u.blur(function(){b(this).removeClass("newListSelFocus")});b("body").click(function(){u.removeClass("newListSelFocus");C.hide();e()});m.hover(function(E){var D=b(E.target);D.parent().addClass("newListSelHover")},function(E){var D=b(E.target);D.parent().removeClass("newListSelHover")});C.css("left","0").hide()})}})(jQuery);(function(){var g={jQuery:"http://code.jquery.com/jquery-latest.min.js"};var j=function(){(function(k){k.fn.idTabs=function(){var n={};for(var m=0;m<arguments.length;++m){var l=arguments[m];switch(l.constructor){case Object:k.extend(n,l);break;case Boolean:n.change=l;break;case Number:n.start=l;break;case Function:n.click=l;break;case String:if(l.charAt(0)=="."){n.selected=l}else{if(l.charAt(0)=="!"){n.event=l}else{n.start=l}}break}}if(typeof n["return"]=="function"){n.change=n["return"]}return this.each(function(){k.idTabs(this,n)})};k.idTabs=function(n,m){var q=(k.metadata)?k(n).metadata():{};var o=k.extend({},k.idTabs.settings,q,m);if(o.selected.charAt(0)=="."){o.selected=o.selected.substr(1)}if(o.event.charAt(0)=="!"){o.event=o.event.substr(1)}if(o.start==null){o.start=-1}var l=function(){if(k(this).is("."+o.selected)){return o.change}var u="#"+this.href.split("#")[1];var s=[];var t=[];k("a",n).each(function(){if(this.href.match(/#/)){s.push(this);t.push("#"+this.href.split("#")[1])}});if(o.click&&!o.click.apply(this,[u,t,n,o])){return o.change}for(i in s){k(s[i]).parent().removeClass(o.selected)}for(i in t){k(t[i]).hide()}k(this).parent().addClass(o.selected);k(u).show();return o.change};var p=k("a[href*='#']",n).unbind(o.event,l).bind(o.event,l);p.each(function(){k("#"+this.href.split("#")[1]).hide()});var r=false;if((r=p.filter("."+o.selected)).length){}else{if(typeof o.start=="number"&&(r=p.eq(o.start)).length){}else{if(typeof o.start=="string"&&(r=p.filter("[href*='#"+o.start+"']")).length){}}}if(r){r.removeClass(o.selected);r.trigger(o.event)}return o};k.idTabs.settings={start:0,change:false,click:null,selected:".selected",event:"!click"};k.idTabs.version="2.2";k(function(){k(".idTabs").idTabs()})})(jQuery)};var a=function(l,k){k=k.split(".");while(l&&k.length){l=l[k.shift()]}return l};var c=document.getElementsByTagName("head")[0];var f=function(k){var l=document.createElement("script");l.type="text/javascript";l.src=k;c.appendChild(l)};var e=document.getElementsByTagName("script");var h=e[e.length-1].src;var b=true;for(d in g){if(a(this,d)){continue}b=false;f(g[d])}if(b){return j()}f(h)})();(function(a){a.event.special.mousewheel={setup:function(){var b=a.event.special.mousewheel.handler;if(a.browser.mozilla){a(this).bind("mousemove.mousewheel",function(c){a.data(this,"mwcursorposdata",{pageX:c.pageX,pageY:c.pageY,clientX:c.clientX,clientY:c.clientY})})}if(this.addEventListener){this.addEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false)}else{this.onmousewheel=b}},teardown:function(){var b=a.event.special.mousewheel.handler;a(this).unbind("mousemove.mousewheel");if(this.removeEventListener){this.removeEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false)}else{this.onmousewheel=function(){}}a.removeData(this,"mwcursorposdata")},handler:function(e){var b=Array.prototype.slice.call(arguments,1);e=a.event.fix(e||window.event);a.extend(e,a.data(this,"mwcursorposdata")||{});var f=0,c=true;if(e.wheelDelta){f=e.wheelDelta/120}if(e.detail){f=-e.detail/3}e.data=e.data||{};e.type="mousewheel";b.unshift(f);b.unshift(e);return a.event.handle.apply(this,b)}};a.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})})(jQuery);(function(a){a.jScrollPane={active:[]};a.fn.jScrollPane=function(c){c=a.extend({},a.fn.jScrollPane.defaults,c);var b=function(){return false};return this.each(function(){var v=a(this);var G=this;var ao=0;var N;var ap;var t;var ae=c.topCapHeight;if(a(this).parent().is(".jScrollPaneContainer")){ao=c.maintainPosition?v.position().top:0;var s=a(this).parent();N=s.innerWidth();ap=s.outerHeight();a(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown, >.jScrollCap",s).remove();v.css({top:0})}else{v.data("originalStyleTag",v.attr("style"));v.css("overflow","hidden");this.originalPadding=v.css("paddingTop")+" "+v.css("paddingRight")+" "+v.css("paddingBottom")+" "+v.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(v.css("paddingLeft"))||0)+(parseInt(v.css("paddingRight"))||0);N=v.innerWidth();ap=v.innerHeight();var l=a("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:ap+"px",width:N+"px"});if(c.enableKeyboardNavigation){l.attr("tabindex",c.tabIndex)}v.wrap(l);a(document).bind("emchange",function(aq,ar,p){v.jScrollPane(c)})}t=ap;if(c.reinitialiseOnImageLoad){var u=a.data(G,"jScrollPaneImagesToLoad")||a("img",v);var k=[];if(u.length){u.each(function(p,aq){a(this).bind("load readystatechange",function(){if(a.inArray(p,k)==-1){k.push(aq);u=a.grep(u,function(au,at){return au!=aq});a.data(G,"jScrollPaneImagesToLoad",u);var ar=a.extend(c,{reinitialiseOnImageLoad:false});v.jScrollPane(ar)}}).each(function(ar,at){if(this.complete||this.complete===undefined){this.src=this.src}})})}}var Z=this.originalSidePaddingTotal;var ak=N-c.scrollbarWidth-c.scrollbarMargin-Z;var W={height:"auto",width:ak+"px"};if(c.scrollbarOnLeft){W.paddingLeft=c.scrollbarMargin+c.scrollbarWidth+"px"}else{W.paddingRight=c.scrollbarMargin+"px"}v.css(W);var X=v.outerHeight();var T=ap/X;if(T<0.99){var l=v.parent();l.append(a("<div></div>").addClass("jScrollCap jScrollCapTop").css({height:c.topCapHeight}),a("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:c.scrollbarWidth+"px"}).append(a("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:c.scrollbarWidth+"px"}).append(a("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:c.scrollbarWidth+"px"}),a("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:c.scrollbarWidth+"px"}))),a("<div></div>").addClass("jScrollCap jScrollCapBottom").css({height:c.bottomCapHeight}));var al=a(">.jScrollPaneTrack",l);var w=a(">.jScrollPaneTrack .jScrollPaneDrag",l);var an;var h=[];var ab;var U=function(){if(ab>4||ab%4==0){aj(ag+an*K)}ab++};if(c.enableKeyboardNavigation){l.bind("keydown.jscrollpane",function(p){switch(p.keyCode){case 38:an=-1;ab=0;U();h[h.length]=setInterval(U,100);return false;case 40:an=1;ab=0;U();h[h.length]=setInterval(U,100);return false;case 33:case 34:return false;default:}}).bind("keyup.jscrollpane",function(aq){if(aq.keyCode==38||aq.keyCode==40){for(var p=0;p<h.length;p++){clearInterval(h[p])}return false}})}if(c.showArrows){var R;var A;var r=function(p){a("html").unbind("mouseup",r);R.removeClass("jScrollActiveArrowButton");clearInterval(A)};var J=function(){a("html").bind("mouseup",r);R.addClass("jScrollActiveArrowButton");ab=0;U();A=setInterval(U,100)};l.append(a("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp",tabindex:-1}).css({width:c.scrollbarWidth+"px",top:c.topCapHeight+"px"}).html("Scroll up").bind("mousedown",function(){R=a(this);an=-1;J();this.blur();return false}).bind("click",b),a("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown",tabindex:-1}).css({width:c.scrollbarWidth+"px",bottom:c.bottomCapHeight+"px"}).html("Scroll down").bind("mousedown",function(){R=a(this);an=1;J();this.blur();return false}).bind("click",b));var x=a(">.jScrollArrowUp",l);var o=a(">.jScrollArrowDown",l)}if(c.arrowSize){t=ap-c.arrowSize-c.arrowSize;ae+=c.arrowSize}else{if(x){var ac=x.height();c.arrowSize=ac;t=ap-ac-o.height();ae+=ac}}t-=c.topCapHeight+c.bottomCapHeight;al.css({height:t+"px",top:ae+"px"});var ah=a(this).css({position:"absolute",overflow:"visible"});var e;var H;var K;var ag=0;var E=T*ap/2;var I=function(aq,at){var ar=at=="X"?"Left":"Top";return aq["page"+at]||(aq["client"+at]+(document.documentElement["scroll"+ar]||document.body["scroll"+ar]))||0};var Q=function(){return false};var af=function(){Y();e=w.offset(false);e.top-=ag;H=t-w[0].offsetHeight;K=2*c.wheelSpeed*H/X};var f=function(p){af();E=I(p,"Y")-ag-e.top;a("html").bind("mouseup",B).bind("mousemove",S);if(a.browser.msie){a("html").bind("dragstart",Q).bind("selectstart",Q)}return false};var B=function(){a("html").unbind("mouseup",B).unbind("mousemove",S);E=T*ap/2;if(a.browser.msie){a("html").unbind("dragstart",Q).unbind("selectstart",Q)}};var aj=function(aq){l.scrollTop(0);aq=aq<0?0:(aq>H?H:aq);ag=aq;w.css({top:aq+"px"});var ar=aq/H;v.data("jScrollPanePosition",(ap-X)*-ar);ah.css({top:((ap-X)*ar)+"px"});v.trigger("scroll");if(c.showArrows){x[aq==0?"addClass":"removeClass"]("disabled");o[aq==H?"addClass":"removeClass"]("disabled")}};var S=function(p){aj(I(p,"Y")-e.top-E)};var aa=Math.max(Math.min(T*(ap-c.arrowSize*2),c.dragMaxHeight),c.dragMinHeight);w.css({height:aa+"px"}).bind("mousedown",f);var V;var y;var n;var ad=function(){if(y>8||y%4==0){aj((ag-((ag-n)/2)))}y++};var am=function(){clearInterval(V);a("html").unbind("mouseup",am).unbind("mousemove",P)};var P=function(p){n=I(p,"Y")-e.top-E};var C=function(p){af();P(p);y=0;a("html").bind("mouseup",am).bind("mousemove",P);V=setInterval(ad,100);ad();return false};al.bind("mousedown",C);l.bind("mousewheel",function(aq,at){at=at||(aq.wheelDelta?aq.wheelDelta/120:(aq.detail)?-aq.detail/3:0);af();Y();var ar=ag;aj(ag-at*K);var p=ar!=ag;return !p});var g;var F;function L(){var p=(g-ag)/c.animateStep;if(p>1||p<-1){aj(ag+p)}else{aj(g);Y()}}var Y=function(){if(F){clearInterval(F);delete g}};var ai=function(at,p){if(typeof at=="string"){$e=a(at,v);if(!$e.length){return}at=$e.offset().top-v.offset().top}Y();var ar=X-ap;at=at>ar?ar:at;v.data("jScrollPaneMaxScroll",ar);var aq=at/ar*H;if(p||!c.animateTo){aj(aq)}else{l.scrollTop(0);g=aq;F=setInterval(L,c.animateInterval)}};v[0].scrollTo=ai;v[0].scrollBy=function(aq){var p=-parseInt(ah.css("top"))||0;ai(p+aq)};af();ai(-ao,true);a("*",this).bind("focus",function(au){var at=a(this);var aw=0;while(at[0]!=v[0]){aw+=at.position().top;at=at.offsetParent()}var p=-parseInt(ah.css("top"))||0;var av=p+ap;var ar=aw>p&&aw<av;if(!ar){var aq=aw-c.scrollbarMargin;if(aw>p){aq+=a(this).height()+15+c.scrollbarMargin-ap}ai(aq)}});if(c.observeHash){if(location.hash&&location.hash.length>1){setTimeout(function(){ai(location.hash)},a.browser.safari?100:0)}a(document).bind("click",function(aq){$target=a(aq.target);if($target.is("a")){var p=$target.attr("href");if(p&&p.substr(0,1)=="#"&&p.length>1){setTimeout(function(){ai(p,!c.animateToInternalLinks)},a.browser.safari?100:0)}}})}function D(p){a(document).bind("mousemove.jScrollPaneDragging",z);a(document).bind("mouseup.jScrollPaneDragging",q)}var O;var j;function M(){direction=O<0?-1:1;v[0].scrollBy(O/2)}function m(){if(j){clearInterval(j);j=undefined}}function z(ar){var at=v.parent().offset().top;var p=at+ap;var aq=I(ar,"Y");O=aq<at?aq-at:(aq>p?aq-p:0);if(O==0){m()}else{if(!j){j=setInterval(M,100)}}}function q(p){a(document).unbind("mousemove.jScrollPaneDragging").unbind("mouseup.jScrollPaneDragging");m()}l.bind("mousedown.jScrollPane",D);a.jScrollPane.active.push(v[0])}else{v.css({height:ap+"px",width:N-this.originalSidePaddingTotal+"px",padding:this.originalPadding});v[0].scrollTo=v[0].scrollBy=function(){};v.parent().unbind("mousewheel").unbind("mousedown.jScrollPane").unbind("keydown.jscrollpane").unbind("keyup.jscrollpane")}})};a.fn.jScrollPaneRemove=function(){a(this).each(function(){$this=a(this);var b=$this.parent();if(b.is(".jScrollPaneContainer")){$this.css({top:"",height:"",width:"",padding:"",overflow:"",position:""});$this.attr("style",$this.data("originalStyleTag"));b.after($this).remove()}})};a.fn.jScrollPane.defaults={scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false,reinitialiseOnImageLoad:false,tabIndex:0,enableKeyboardNavigation:true,animateToInternalLinks:false,topCapHeight:0,bottomCapHeight:0,observeHash:true};a(window).bind("unload",function(){var c=a.jScrollPane.active;for(var b=0;b<c.length;b++){c[b].scrollTo=c[b].scrollBy=null}})})(jQuery);jQuery.cookie=function(b,k,n){if(typeof k!="undefined"){n=n||{};if(k===null){k="";n.expires=-1}var f="";if(n.expires&&(typeof n.expires=="number"||n.expires.toUTCString)){var g;if(typeof n.expires=="number"){g=new Date();g.setTime(g.getTime()+(n.expires*24*60*60*1000))}else{g=n.expires}f="; expires="+g.toUTCString()}var m=n.path?"; path="+(n.path):"";var h=n.domain?"; domain="+(n.domain):"";var a=n.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(k),f,m,h,a].join("")}else{var e=null;if(document.cookie&&document.cookie!=""){var l=document.cookie.split(";");for(var j=0;j<l.length;j++){var c=jQuery.trim(l[j]);if(c.substring(0,b.length+1)==(b+"=")){e=decodeURIComponent(c.substring(b.length+1));break}}}return e}};(function(a){a.anythingSlider=function(c,b){var e=this;e.$el=a(c);e.el=c;e.width=e.$el.width();e.height=e.$el.height();e.wrapperheight=e.height-22;e.$el.find(".wrapper").css("height",(e.wrapperheight-2)+"px").css("width",(e.width-2)+"px");e.$el.find(".wrapper li").css("height",(e.wrapperheight-2)+"px").css("width",e.width+"px");e.currentPage=1;e.timer=null;e.playing=false;e.$el.data("AnythingSlider",e);e.init=function(){e.options=a.extend({},a.anythingSlider.defaults,b);e.$wrapper=e.$el.find("> div").css("overflow","hidden");e.$slider=e.$wrapper.find("> ul");e.$items=e.$slider.find("> li");e.$single=e.$items.filter(":first");if(e.options.buildNavigation){e.buildNavigation()}e.singleWidth=e.$single.outerWidth();e.pages=e.$items.length;e.$items.each(function(h,j){var l=a(j).find("img");var m=l.attr("title");var k=l.attr("alt");a(j).prepend("<div class='galleria-top-title'><span>"+m+"</span></div><div class='galleria-info'><div class='galleria-info-link'></div><div class='galleria-info-text'>"+k+"</div><div class='galleria-info-close'></div></div>")});var f=e.$el.attr("id");var g=a("#"+f+" .galleria-info-close,#"+f+" .galleria-info-text");a("#"+f+" .galleria-info-link,#"+f+" .galleria-info-close,#"+f+" .galleria-info-text").click(function(){g.toggle()});e.$items.filter(":first").before(e.$items.filter(":last").clone().addClass("cloned"));e.$items.filter(":last").after(e.$items.filter(":first").clone().addClass("cloned"));e.$items=e.$slider.find("> li");e.buildNextBackButtons();if(e.options.autoPlay){e.playing=!e.options.startStopped;e.buildAutoPlay()}if(e.options.pauseOnHover){e.$el.hover(function(){e.clearTimer()},function(){e.startStop(e.playing)})}if((e.options.hashTags==true&&!e.gotoHash())||e.options.hashTags==false){e.setCurrentPage(1)}};e.gotoPage=function(h,g){if(g!==true){g=false}if(!g){e.startStop(false)}if(typeof(h)=="undefined"||h==null){h=1;e.setCurrentPage(1)}if(h>e.pages+1){h=e.pages}if(h<0){h=1}var f=h<e.currentPage?-1:1,k=Math.abs(e.currentPage-h),j=e.singleWidth*f*k;e.$wrapper.filter(":not(:animated)").animate({scrollLeft:"+="+j},e.options.animationTime,e.options.easing,function(){if(h==0){e.$wrapper.scrollLeft(e.singleWidth*e.pages);h=e.pages}else{if(h>e.pages){e.$wrapper.scrollLeft(e.singleWidth);h=1}}e.setCurrentPage(h)})};e.setCurrentPage=function(g,f){if(e.options.buildNavigation){e.$nav.find(".cur").removeClass("cur");a(e.$navLinks[g-1]).addClass("cur")}if(f!==false){e.$wrapper.scrollLeft(e.singleWidth*g)}e.currentPage=g};e.goForward=function(f){if(f!==true){f=false}e.gotoPage(e.currentPage+1,f)};e.goBack=function(){e.gotoPage(e.currentPage-1)};e.gotoHash=function(){if(/^#?panel-\d+$/.test(window.location.hash)){var g=parseInt(window.location.hash.substr(7));var f=e.$items.filter(":eq("+g+")");if(f.length!=0){e.setCurrentPage(g);return true}}return false};e.buildNavigation=function(){e.$nav=a("<div class='thumbNav' style='position:absolute;top:"+e.wrapperheight+"px;'></div>").appendTo(e.$el);e.$items.each(function(j,k){var h=j+1;var l=a("<a href='#'></a>");if(typeof(e.options.navigationFormatter)=="function"){l.html(e.options.navigationFormatter(h,a(this)))}else{l.text(h)}l.click(function(m){e.gotoPage(h);if(e.options.hashTags){e.setHash("panel-"+h)}m.preventDefault()});e.$nav.append(l)});e.$navLinks=e.$nav.find("> a");var g=e.$el.find(".thumbNav").height();var f=g+e.wrapperheight;if(f>e.height){e.$el.css("height",f+"px")}};e.buildNextBackButtons=function(){var f=a('<a class="arrow forward">&gt;</a>'),g=a('<a class="arrow back">&lt;</a>');g.click(function(h){e.goBack();h.preventDefault()});f.click(function(h){e.goForward();h.preventDefault()});e.$wrapper.after(g).after(f)};e.buildAutoPlay=function(){e.$startStop=a("<a href='#' id='start-stop'></a>").html(e.playing?e.options.stopText:e.options.startText);e.$el.append(e.$startStop);e.$startStop.click(function(f){e.startStop(!e.playing);f.preventDefault()});e.startStop(e.playing)};e.startStop=function(f){if(f!==true){f=false}e.playing=f;if(e.options.autoPlay){e.$startStop.toggleClass("playing",f).html(f?e.options.stopText:e.options.startText)}if(f){e.clearTimer();e.timer=window.setInterval(function(){e.goForward(true)},e.options.delay)}else{e.clearTimer()}};e.clearTimer=function(){if(e.timer){window.clearInterval(e.timer)}};e.setHash=function(f){if(typeof window.location.hash!=="undefined"){if(window.location.hash!==f){window.location.hash=f}}else{if(location.hash!==f){location.hash=f}}return f};e.init()};a.anythingSlider.defaults={easing:"swing",autoPlay:true,startStopped:false,delay:3000,animationTime:600,hashTags:true,buildNavigation:true,pauseOnHover:true,startText:"Start",stopText:"Stop",navigationFormatter:null};a.fn.anythingSlider=function(b){if(typeof(b)=="object"){return this.each(function(c){(new a.anythingSlider(this,b));b.hashTags=false})}else{if(typeof(b)=="number"){return this.each(function(c){var e=a(this).data("AnythingSlider");if(e){e.gotoPage(b)}})}}}})(jQuery);jQuery.extend(jQuery.easing,{easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e},easeOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return g*Math.pow(2,-10*h)*Math.sin((h*l-j)*(2*Math.PI)/k)+m+e},easeInOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l/2)==2){return e+m}if(!k){k=l*(0.3*1.5)}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k)*0.5+m+e},easeInBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return j/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&/6.0/.test(navigator.userAgent)){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var e=function(f){return f&&f.constructor==Number?f+"px":f},b='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":e(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":e(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":e(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":e(c.height))+';"/>';return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(b),this.firstChild)}})}return this}})(jQuery);(function(a){a.fn.autoResize=function(b){var c=a.extend({onResize:function(){},animate:true,animateDuration:150,autoResizeAnimateCallback:function(){},extraSpace:20,limit:1000},b);this.filter("textarea").each(function(){var f=a(this).css({resize:"none","overflow-y":"hidden"}),h=f.height(),j=(function(){var k=["height","width","lineHeight","textDecoration","letterSpacing"],l={};a.each(k,function(m,n){l[n]=f.css(n)});return f.clone().removeAttr("id").removeAttr("name").css({position:"absolute",top:0,left:-9999}).css(l).attr("tabIndex","-1").insertBefore(f)})(),g=null,e=function(){j.height(0).val(a(this).val()).scrollTop(10000);var l=Math.max(j.scrollTop(),h)+c.extraSpace,k=a(this).add(j);if(g===l){return}g=l;if(l>=c.limit){a(this).css("overflow-y","");return}c.onResize.call(this);c.animate&&f.css("display")==="block"?k.stop().animate({height:l},c.animateDuration,c.autoResizeAnimateCallback):k.height(l)};f.unbind(".dynSiz").bind("keyup.dynSiz",e).bind("keydown.dynSiz",e).bind("change.dynSiz",e)});return this}})(jQuery);jQuery.parseQuery=function(a,b){var c=(typeof a==="string"?a:window.location.search),f={f:function(g){return unescape(g).replace(/\+/g," ")}},b=(typeof a==="object"&&typeof b==="undefined")?a:b,f=jQuery.extend({},f,b),e={};jQuery.each(c.match(/^\??(.*)$/)[1].split("&"),function(g,h){h=h.split("=");h[1]=f.f(h[1]);e[h[0]]=e[h[0]]?((e[h[0]] instanceof Array)?(e[h[0]].push(h[1]),e[h[0]]):[e[h[0]],h[1]]):h[1]});return e};if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(o,b,p,f,l,m,j,g,e,n){if(!document.getElementById){return}this.DETECT_KEY=n?n:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(o){this.setAttribute("swf",o)}if(b){this.setAttribute("id",b)}if(p){this.setAttribute("width",p)}if(f){this.setAttribute("height",f)}if(l){this.setAttribute("version",new deconcept.PlayerVersion(l.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(m){this.addParam("bgcolor",m)}var a=j?j:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var k=(g)?g:window.location;this.setAttribute("xiRedirectUrl",k);this.setAttribute("redirectUrl","");if(e){this.setAttribute("redirectUrl",e)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var g=this.getParams();for(var f in g){b+=[f]+'="'+g[f]+'" '}var e=this.getVariablePairs().join("&");if(e.length>0){b+='flashvars="'+e+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var f in c){b+='<param name="'+f+'" value="'+c[f]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var g=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){g=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);g=new deconcept.PlayerVersion([c,0,0])}catch(f){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(f){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");g=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(f){if(g.major==6){return g}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){}}if(b!=null){g=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return g};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var e=document.location.search||document.location.hash;if(c==null){return e}if(e){var b=e.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
