(function(a){a.fn.hoverIntent=function(l,k){var m={sensitivity:7,interval:100,timeout:0};m=a.extend(m,k?{over:l,out:k}:l);var o,n,h,d;var e=function(f){o=f.pageX;n=f.pageY;};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-o)+Math.abs(d-n))<m.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return m.over.apply(f,[g]);}else{h=o;d=n;f.hoverIntent_t=setTimeout(function(){c(g,f);},m.interval);}};var j=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return m.out.apply(f,[g]);};var b=function(r){var q=(r.type=="mouseover"?r.fromElement:r.toElement)||r.relatedTarget;while(q&&q!=this){try{q=q.parentNode;}catch(r){q=this;}}if(q==this){return false;}var g=jQuery.extend({},r);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);}if(r.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f);},m.interval);}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){j(g,f);},m.timeout);}}};return this.mouseover(b).mouseout(b);};})(jQuery);
/*
 * jQuery Form Plugin
 * version: 2.49 (18-OCT-2010)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(function(b){b.fn.ajaxSubmit=function(u){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this;}if(typeof u=="function"){u={success:u};}var d=b.trim(this.attr("action"));if(d){d=(d.match(/^([^#]+)/)||[])[1];}d=d||window.location.href||"";u=b.extend(true,{url:d,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},u);var w={};this.trigger("form-pre-serialize",[this,u,w]);if(w.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this;}if(u.beforeSerialize&&u.beforeSerialize(this,u)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this;}var f,r,m=this.formToArray(u.semantic);if(u.data){u.extraData=u.data;for(f in u.data){if(u.data[f] instanceof Array){for(var h in u.data[f]){m.push({name:f,value:u.data[f][h]});}}else{r=u.data[f];r=b.isFunction(r)?r():r;m.push({name:f,value:r});}}}if(u.beforeSubmit&&u.beforeSubmit(m,this,u)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this;}this.trigger("form-submit-validate",[m,this,u,w]);if(w.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this;}var c=b.param(m);if(u.type.toUpperCase()=="GET"){u.url+=(u.url.indexOf("?")>=0?"&":"?")+c;u.data=null;}else{u.data=c;}var t=this,l=[];if(u.resetForm){l.push(function(){t.resetForm();});}if(u.clearForm){l.push(function(){t.clearForm();});}if(!u.dataType&&u.target){var s=u.success||function(){};l.push(function(n){var k=u.replaceTarget?"replaceWith":"html";b(u.target)[k](n).each(s,arguments);});}else{if(u.success){l.push(u.success);}}u.success=function(x,n,y){var v=u.context||u;for(var q=0,k=l.length;q<k;q++){l[q].apply(v,[x,n,y||t,t]);}};var g=b("input:file",this).length>0;var e="multipart/form-data";var j=(t.attr("enctype")==e||t.attr("encoding")==e);if(u.iframe!==false&&(g||u.iframe||j)){if(u.closeKeepAlive){b.get(u.closeKeepAlive,o);}else{o();}}else{b.ajax(u);}this.trigger("form-submit-notify",[this,u]);return this;function o(){var k=t[0];if(b(":input[name=submit],:input[id=submit]",k).length){alert('Error: Form elements must not have name or id of "submit".');return;}var A=b.extend(true,{},b.ajaxSettings,u);A.context=A.context||A;var D="jqFormIO"+(new Date().getTime()),y="_"+D;window[y]=function(){var n=q.data("form-plugin-onload");if(n){n();window[y]=undefined;try{delete window[y];}catch(M){}}};var q=b('<iframe id="'+D+'" name="'+D+'" src="'+A.iframeSrc+'" onload="window[\'_\'+this.id]()" />');var z=q[0];q.css({position:"absolute",top:"-1000px",left:"-1000px"});var v={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;q.attr("src",A.iframeSrc);}};var I=A.global;if(I&&!b.active++){b.event.trigger("ajaxStart");}if(I){b.event.trigger("ajaxSend",[v,A]);}if(A.beforeSend&&A.beforeSend.call(A.context,v,A)===false){if(A.global){b.active--;}return;}if(v.aborted){return;}var E=false;var H=0;var x=k.clk;if(x){var F=x.name;if(F&&!x.disabled){A.extraData=A.extraData||{};A.extraData[F]=x.value;if(x.type=="image"){A.extraData[F+".x"]=k.clk_x;A.extraData[F+".y"]=k.clk_y;}}}function G(){var O=t.attr("target"),M=t.attr("action");k.setAttribute("target",D);if(k.getAttribute("method")!="POST"){k.setAttribute("method","POST");}if(k.getAttribute("action")!=A.url){k.setAttribute("action",A.url);}if(!A.skipEncodingOverride){t.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});}if(A.timeout){setTimeout(function(){H=true;C();},A.timeout);}var N=[];try{if(A.extraData){for(var P in A.extraData){N.push(b('<input type="hidden" name="'+P+'" value="'+A.extraData[P]+'" />').appendTo(k)[0]);}}q.appendTo("body");q.data("form-plugin-onload",C);k.submit();}finally{k.setAttribute("action",M);if(O){k.setAttribute("target",O);}else{t.removeAttr("target");}b(N).remove();}}if(A.forceSync){G();}else{setTimeout(G,10);}var K,L,J=50;function C(){if(E){return;}q.removeData("form-plugin-onload");var N=true;try{if(H){throw"timeout";}L=z.contentWindow?z.contentWindow.document:z.contentDocument?z.contentDocument:z.document;var R=A.dataType=="xml"||L.XMLDocument||b.isXMLDoc(L);a("isXml="+R);if(!R&&window.opera&&(L.body==null||L.body.innerHTML=="")){if(--J){a("requeing onLoad callback, DOM not available");setTimeout(C,250);return;}}E=true;v.responseText=L.documentElement?L.documentElement.innerHTML:null;v.responseXML=L.XMLDocument?L.XMLDocument:L;v.getResponseHeader=function(T){var S={"content-type":A.dataType};return S[T];};var Q=/(json|script)/.test(A.dataType);if(Q||A.textarea){var M=L.getElementsByTagName("textarea")[0];if(M){v.responseText=M.value;}else{if(Q){var P=L.getElementsByTagName("pre")[0];var n=L.getElementsByTagName("body")[0];if(P){v.responseText=P.innerHTML;}else{if(n){v.responseText=n.innerHTML;}}}}}else{if(A.dataType=="xml"&&!v.responseXML&&v.responseText!=null){v.responseXML=B(v.responseText);}}K=b.httpData(v,A.dataType);}catch(O){a("error caught:",O);N=false;v.error=O;b.handleError(A,v,"error",O);}if(N){A.success.call(A.context,K,"success",v);if(I){b.event.trigger("ajaxSuccess",[v,A]);}}if(I){b.event.trigger("ajaxComplete",[v,A]);}if(I&&!--b.active){b.event.trigger("ajaxStop");}if(A.complete){A.complete.call(A.context,v,N?"success":"error");}setTimeout(function(){q.removeData("form-plugin-onload");q.remove();v.responseXML=null;},100);}function B(n,M){if(window.ActiveXObject){M=new ActiveXObject("Microsoft.XMLDOM");M.async="false";M.loadXML(n);}else{M=(new DOMParser()).parseFromString(n,"text/xml");}return(M&&M.documentElement&&M.documentElement.tagName!="parsererror")?M:null;}}};b.fn.ajaxForm=function(c){if(this.length===0){var d={s:this.selector,c:this.context};if(!b.isReady&&d.s){a("DOM not ready, queuing ajaxForm");b(function(){b(d.s,d.c).ajaxForm(c);});return this;}a("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));return this;}return this.ajaxFormUnbind().bind("submit.form-plugin",function(f){if(!f.isDefaultPrevented()){f.preventDefault();b(this).ajaxSubmit(c);}}).bind("click.form-plugin",function(k){var j=k.target;var g=b(j);if(!(g.is(":submit,input:image"))){var f=g.closest(":submit");if(f.length==0){return;}j=f[0];}var h=this;h.clk=j;if(j.type=="image"){if(k.offsetX!=undefined){h.clk_x=k.offsetX;h.clk_y=k.offsetY;}else{if(typeof b.fn.offset=="function"){var l=g.offset();h.clk_x=k.pageX-l.left;h.clk_y=k.pageY-l.top;}else{h.clk_x=k.pageX-j.offsetLeft;h.clk_y=k.pageY-j.offsetTop;}}}setTimeout(function(){h.clk=h.clk_x=h.clk_y=null;},100);});};b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin");};b.fn.formToArray=function(r){var q=[];if(this.length===0){return q;}var d=this[0];var g=r?d.getElementsByTagName("*"):d.elements;if(!g){return q;}var k,h,f,s,e,m,c;for(k=0,m=g.length;k<m;k++){e=g[k];f=e.name;if(!f){continue;}if(r&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){q.push({name:f,value:b(e).val()});q.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y});}continue;}s=b.fieldValue(e,true);if(s&&s.constructor==Array){for(h=0,c=s.length;h<c;h++){q.push({name:f,value:s[h]});}}else{if(s!==null&&typeof s!="undefined"){q.push({name:f,value:s});}}}if(!r&&d.clk){var l=b(d.clk),o=l[0];f=o.name;if(f&&!o.disabled&&o.type=="image"){q.push({name:f,value:l.val()});q.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y});}}return q;};b.fn.formSerialize=function(c){return b.param(this.formToArray(c));};b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var h=this.name;if(!h){return;}var f=b.fieldValue(this,d);if(f&&f.constructor==Array){for(var g=0,e=f.length;g<e;g++){c.push({name:h,value:f[g]});}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f});}}});return b.param(c);};b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;e<c;e++){var f=this[e];var d=b.fieldValue(f,h);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue;}d.constructor==Array?b.merge(g,d):g.push(d);}return g;};b.fieldValue=function(c,j){var e=c.name,q=c.type,r=c.tagName.toLowerCase();if(j===undefined){j=true;}if(j&&(!e||c.disabled||q=="reset"||q=="button"||(q=="checkbox"||q=="radio")&&!c.checked||(q=="submit"||q=="image")&&c.form&&c.form.clk!=c||r=="select"&&c.selectedIndex==-1)){return null;}if(r=="select"){var k=c.selectedIndex;if(k<0){return null;}var m=[],d=c.options;var g=(q=="select-one");var l=(g?k+1:d.length);for(var f=(g?k:0);f<l;f++){var h=d[f];if(h.selected){var o=h.value;if(!o){o=(h.attributes&&h.attributes.value&&!(h.attributes.value.specified))?h.text:h.value;}if(g){return o;}m.push(o);}}return m;}return b(c).val();};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields();});};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();if(d=="text"||d=="password"||c=="textarea"){this.value="";}else{if(d=="checkbox"||d=="radio"){this.checked=false;}else{if(c=="select"){this.selectedIndex=-1;}}}});};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset();}});};b.fn.enable=function(c){if(c===undefined){c=true;}return this.each(function(){this.disabled=!c;});};b.fn.selected=function(c){if(c===undefined){c=true;}return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio"){this.checked=c;}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false);}this.selected=c;}}});};function a(){if(b.fn.ajaxSubmit.debug){var c="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(c);}else{if(window.opera&&window.opera.postError){window.opera.postError(c);}}}}})(jQuery);(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&parseInt(a.browser.version)<=6){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var d=function(e){return e&&e.constructor==Number?e+"px":e;},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')":d(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":d(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":d(c.height))+';"/>';return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(b),this.firstChild);}});}return this;};if(!a.browser.version){a.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1];}})(jQuery);jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyIframeSrc:undefined,historyInit:function(e,d){jQuery.historyCallback=e;if(d){jQuery.historyIframeSrc=d;}var c=location.hash.replace(/\?.*$/,"");jQuery.historyCurrentHash=c;if(jQuery.browser.msie){if(jQuery.historyCurrentHash==""){jQuery.historyCurrentHash="#";}jQuery("body").prepend('<iframe id="jQuery_history" style="display: none;"'+(jQuery.historyIframeSrc?' src="'+jQuery.historyIframeSrc+'"':"")+"></iframe>");var a=jQuery("#jQuery_history")[0];var b=a.contentWindow.document;b.open();b.close();b.location.hash=c;}else{if(jQuery.browser.safari){jQuery.historyBackStack=[];jQuery.historyBackStack.length=history.length;jQuery.historyForwardStack=[];jQuery.lastHistoryLength=history.length;jQuery.isFirst=true;}}if(c){jQuery.historyCallback(c.replace(/^#/,""));}setInterval(jQuery.historyCheck,100);},historyAddHistory:function(a){jQuery.historyBackStack.push(a);jQuery.historyForwardStack.length=0;this.isFirst=true;},historyCheck:function(){if(jQuery.browser.msie){var a=jQuery("#jQuery_history")[0];var d=a.contentDocument||a.contentWindow.document;var f=d.location.hash.replace(/\?.*$/,"");if(f!=jQuery.historyCurrentHash){location.hash=f;jQuery.historyCurrentHash=f;jQuery.historyCallback(f.replace(/^#/,""));}}else{if(jQuery.browser.safari){if(jQuery.lastHistoryLength==history.length&&jQuery.historyBackStack.length>jQuery.lastHistoryLength){jQuery.historyBackStack.shift();}if(!jQuery.dontCheck){var b=history.length-jQuery.historyBackStack.length;jQuery.lastHistoryLength=history.length;if(b){jQuery.isFirst=false;if(b<0){for(var c=0;c<Math.abs(b);c++){jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop());}}else{for(var c=0;c<b;c++){jQuery.historyBackStack.push(jQuery.historyForwardStack.shift());}}var e=jQuery.historyBackStack[jQuery.historyBackStack.length-1];if(e!=undefined){jQuery.historyCurrentHash=location.hash.replace(/\?.*$/,"");jQuery.historyCallback(e);}}else{if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){if(location.hash){var f=location.hash;jQuery.historyCallback(location.hash.replace(/^#/,""));}else{var f="";jQuery.historyCallback("");}jQuery.isFirst=true;}}}}else{var f=location.hash.replace(/\?.*$/,"");if(f!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=f;jQuery.historyCallback(f.replace(/^#/,""));}}}},historyLoad:function(d){var e;d=decodeURIComponent(d.replace(/\?.*$/,""));if(jQuery.browser.safari){e=d;}else{e="#"+d;location.hash=e;}jQuery.historyCurrentHash=e;if(jQuery.browser.msie){var a=jQuery("#jQuery_history")[0];var c=a.contentWindow.document;c.open();c.close();c.location.hash=e;jQuery.lastHistoryLength=history.length;jQuery.historyCallback(d);}else{if(jQuery.browser.safari){jQuery.dontCheck=true;this.historyAddHistory(d);var b=function(){jQuery.dontCheck=false;};window.setTimeout(b,200);jQuery.historyCallback(d);location.hash=e;}else{jQuery.historyCallback(d);}}}});(function(b){var d={};var a=0;b.galleriffic={version:"2.0.1",normalizeHash:function(e){return e.replace(/^.*#/,"").replace(/\?.*$/,"");},getImage:function(e){if(!e){return undefined;}e=b.galleriffic.normalizeHash(e);return d[e];},gotoImage:function(f){var g=b.galleriffic.getImage(f);if(!g){return false;}var e=g.gallery;e.gotoImage(g);return true;},removeImageByHash:function(g,f){var h=b.galleriffic.getImage(g);if(!h){return false;}var e=h.gallery;if(f&&f!=e){return false;}return e.removeImageByIndex(h.index);}};var c={delay:3000,numThumbs:20,preloadAhead:40,enableTopPager:false,enableBottomPager:true,maxPagesToShow:7,imageContainerSel:"",captionContainerSel:"",controlsContainerSel:"",loadingContainerSel:"",renderSSControls:true,renderNavControls:true,playLinkText:"Play",pauseLinkText:"Pause",prevLinkText:"Previous",nextLinkText:"Next",nextPageLinkText:"Next &rsaquo;",prevPageLinkText:"&lsaquo; Prev",enableHistory:false,enableKeyboardNavigation:true,autoStart:false,syncTransitions:false,defaultTransitionDuration:1000,onSlideChange:undefined,onTransitionOut:undefined,onTransitionIn:undefined,onPageTransitionOut:undefined,onPageTransitionIn:undefined,onImageAdded:undefined,onImageRemoved:undefined};b.fn.galleriffic=function(g){b.extend(this,{version:b.galleriffic.version,isSlideshowRunning:false,slideshowTimeout:undefined,clickHandler:function(m,k){this.pause();if(!this.enableHistory){var l=b.galleriffic.normalizeHash(b(k).attr("href"));b.galleriffic.gotoImage(l);m.preventDefault();}},appendImage:function(k){this.addImage(k,false,false);return this;},insertImage:function(l,k){this.addImage(l,false,true,k);return this;},addImage:function(l,r,v,s){var t=(typeof l==="string")?b(l):l;var m=t.find("a.thumb");var n=m.attr("href");var u=m.attr("title");var q=t.find(".caption").remove();var o=m.attr("name");a++;if(!o||d[""+o]){o=a;}if(!v){s=this.data.length;}var k={title:u,slideUrl:n,caption:q,hash:o,gallery:this,index:s};if(v){this.data.splice(s,0,k);this.updateIndices(s);}else{this.data.push(k);}var w=this;if(!r){this.updateThumbs(function(){var x=w.find("ul.thumbs");if(v){x.children(":eq("+s+")").before(t);}else{x.append(t);}if(w.onImageAdded){w.onImageAdded(k,t);}});}d[""+o]=k;m.attr("rel","history").attr("href","#"+o).removeAttr("name").click(function(x){w.clickHandler(x,this);});return this;},removeImageByIndex:function(k){if(k<0||k>=this.data.length){return false;}var l=this.data[k];if(!l){return false;}this.removeImage(l);return true;},removeImageByHash:function(k){return b.galleriffic.removeImageByHash(k,this);},removeImage:function(l){var k=l.index;this.data.splice(k,1);delete d[""+l.hash];this.updateThumbs(function(){var m=e.find("ul.thumbs").children(":eq("+k+")").remove();if(e.onImageRemoved){e.onImageRemoved(l,m);}});this.updateIndices(k);return this;},updateIndices:function(k){for(i=k;i<this.data.length;i++){this.data[i].index=i;}return this;},initializeThumbs:function(){this.data=[];var k=this;this.find("ul.thumbs > li").each(function(l){k.addImage(b(this),true,false);});return this;},isPreloadComplete:false,preloadInit:function(){if(this.preloadAhead==0){return this;}this.preloadStartIndex=this.currentImage.index;var k=this.getNextIndex(this.preloadStartIndex);return this.preloadRecursive(this.preloadStartIndex,k);},preloadRelocate:function(k){this.preloadStartIndex=k;return this;},preloadRecursive:function(q,m){if(q!=this.preloadStartIndex){var k=this.getNextIndex(this.preloadStartIndex);return this.preloadRecursive(this.preloadStartIndex,k);}var l=this;var n=m-q;if(n<0){n=this.data.length-1-q+m;}if(this.preloadAhead>=0&&n>this.preloadAhead){setTimeout(function(){l.preloadRecursive(q,m);},500);return this;}var r=this.data[m];if(!r){return this;}if(r.image){return this.preloadNext(q,m);}var o=new Image();o.onload=function(){r.image=this;l.preloadNext(q,m);};o.alt=r.title;o.src=r.slideUrl;return this;},preloadNext:function(n,m){var k=this.getNextIndex(m);if(k==n){this.isPreloadComplete=true;}else{var l=this;setTimeout(function(){l.preloadRecursive(n,k);},100);}return this;},getNextIndex:function(l){var k=l+1;if(k>=this.data.length){k=0;}return k;},getPrevIndex:function(k){var l=k-1;if(l<0){l=this.data.length-1;}return l;},pause:function(){this.isSlideshowRunning=false;if(this.slideshowTimeout){clearTimeout(this.slideshowTimeout);this.slideshowTimeout=undefined;}if(this.$controlsContainer){this.$controlsContainer.find("div.ss-controls a").removeClass().addClass("play").attr("title",this.playLinkText).attr("href","#play").html(this.playLinkText);}return this;},play:function(){this.isSlideshowRunning=true;if(this.$controlsContainer){this.$controlsContainer.find("div.ss-controls a").removeClass().addClass("pause").attr("title",this.pauseLinkText).attr("href","#pause").html(this.pauseLinkText);}if(!this.slideshowTimeout){var k=this;this.slideshowTimeout=setTimeout(function(){k.ssAdvance();},this.delay);}return this;},toggleSlideshow:function(){if(this.isSlideshowRunning){this.pause();}else{this.play();}return this;},ssAdvance:function(){if(this.isSlideshowRunning){this.next(true);}return this;},next:function(k,l){this.gotoIndex(this.getNextIndex(this.currentImage.index),k,l);return this;},previous:function(k,l){this.gotoIndex(this.getPrevIndex(this.currentImage.index),k,l);return this;},nextPage:function(l,q){var n=this.getCurrentPage();var m=this.getNumPages()-1;if(n<m){var o=n*this.numThumbs;var k=o+this.numThumbs;this.gotoIndex(k,l,q);}return this;},previousPage:function(k,o){var m=this.getCurrentPage();if(m>0){var n=m*this.numThumbs;var l=n-this.numThumbs;this.gotoIndex(l,k,o);}return this;},gotoIndex:function(l,k,m){if(!k){this.pause();}if(l<0){l=0;}else{if(l>=this.data.length){l=this.data.length-1;}}var n=this.data[l];if(!m&&this.enableHistory){b.historyLoad(String(n.hash));}else{this.gotoImage(n);}return this;},gotoImage:function(l){var k=l.index;if(this.onSlideChange){this.onSlideChange(this.currentImage.index,k);}this.currentImage=l;this.preloadRelocate(k);this.refresh();return this;},getDefaultTransitionDuration:function(k){if(k){return this.defaultTransitionDuration;}return this.defaultTransitionDuration/2;},refresh:function(){var k=this.currentImage;if(!k){return this;}var o=k.index;if(this.$controlsContainer){this.$controlsContainer.find("div.nav-controls a.prev").attr("href","#"+this.data[this.getPrevIndex(o)].hash).end().find("div.nav-controls a.next").attr("href","#"+this.data[this.getNextIndex(o)].hash);}var s=this.$imageContainer.find("span.current").addClass("previous").removeClass("current");var r=0;if(this.$captionContainer){r=this.$captionContainer.find("span.current").addClass("previous").removeClass("current");}var n=this.syncTransitions&&k.image;var l=true;var t=this;var q=function(){l=false;s.remove();if(r){r.remove();}if(!n){if(k.image&&k.hash==t.data[t.currentImage.index].hash){t.buildImage(k,n);}else{if(t.$loadingContainer){t.$loadingContainer.show();}}}};if(s.length==0){q();}else{if(this.onTransitionOut){this.onTransitionOut(s,r,n,q);}else{s.fadeTo(this.getDefaultTransitionDuration(n),0,q);if(r){r.fadeTo(this.getDefaultTransitionDuration(n),0);}}}if(n){this.buildImage(k,n);}if(!k.image){var m=new Image();m.onload=function(){k.image=this;if(!l&&k.hash==t.data[t.currentImage.index].hash){t.buildImage(k,n);}};m.alt=k.title;m.src=k.slideUrl;}this.relocatePreload=true;return this.syncThumbs();},buildImage:function(q,n){var m=this;var k=this.getNextIndex(q.index);var l=this.$imageContainer.append('<span class="image-wrapper current"><a class="advance-link" rel="history" href="#'+this.data[k].hash+'" title="'+q.title+'">&nbsp;</a></span>').find("span.current").css("opacity","0");l.find("a").append(q.image).click(function(r){m.clickHandler(r,this);});var o=0;if(this.$captionContainer){o=this.$captionContainer.append('<span class="image-caption current"></span>').find("span.current").css("opacity","0").append(q.caption);}if(this.$loadingContainer){this.$loadingContainer.hide();}if(this.onTransitionIn){this.onTransitionIn(l,o,n);}else{l.fadeTo(this.getDefaultTransitionDuration(n),1);if(o){o.fadeTo(this.getDefaultTransitionDuration(n),1);}}if(this.isSlideshowRunning){if(this.slideshowTimeout){clearTimeout(this.slideshowTimeout);}this.slideshowTimeout=setTimeout(function(){m.ssAdvance();},this.delay);}return this;},getCurrentPage:function(){return Math.floor(this.currentImage.index/this.numThumbs);},syncThumbs:function(){var l=this.getCurrentPage();if(l!=this.displayedPage){this.updateThumbs();}var k=this.find("ul.thumbs").children();k.filter(".selected").removeClass("selected");k.eq(this.currentImage.index).addClass("selected");return this;},updateThumbs:function(k){var l=this;var m=function(){if(k){k();}l.rebuildThumbs();if(l.onPageTransitionIn){l.onPageTransitionIn();}else{l.show();}};if(this.onPageTransitionOut){this.onPageTransitionOut(m);}else{this.hide();m();}return this;},rebuildThumbs:function(){var m=this.data.length>this.numThumbs;if(this.enableTopPager){var k=this.find("div.top");if(k.length==0){k=this.prepend('<div class="top pagination"></div>').find("div.top");}else{k.empty();}if(m){this.buildPager(k);}}if(this.enableBottomPager){var o=this.find("div.bottom");if(o.length==0){o=this.append('<div class="bottom pagination"></div>').find("div.bottom");}else{o.empty();}if(m){this.buildPager(o);}}var q=this.getCurrentPage();var r=q*this.numThumbs;var l=r+this.numThumbs-1;if(l>=this.data.length){l=this.data.length-1;}var n=this.find("ul.thumbs");n.find("li").each(function(s){var t=b(this);if(s>=r&&s<=l){t.show();}else{t.hide();}});this.displayedPage=q;n.removeClass("noscript");return this;},getNumPages:function(){return Math.ceil(this.data.length/this.numThumbs);},buildPager:function(m){var v=this;var l=this.getNumPages();var o=this.getCurrentPage();var t=o*this.numThumbs;var k=this.maxPagesToShow-1;var q=o-Math.floor((this.maxPagesToShow-1)/2)+1;if(q>0){var u=l-q;if(u<k){q=q-(k-u);}}if(q<0){q=0;}if(o>0){var n=t-this.numThumbs;m.append('<a rel="history" href="#'+this.data[n].hash+'" title="'+this.prevPageLinkText+'">'+this.prevPageLinkText+"</a>");}if(q>0){this.buildPageLink(m,0,l);if(q>1){m.append('<span class="ellipsis">&hellip;</span>');}k--;}while(k>0){this.buildPageLink(m,q,l);k--;q++;}if(q<l){var s=l-1;if(q<s){m.append('<span class="ellipsis">&hellip;</span>');}this.buildPageLink(m,s,l);}var r=t+this.numThumbs;if(r<this.data.length){m.append('<a rel="history" href="#'+this.data[r].hash+'" title="'+this.nextPageLinkText+'">'+this.nextPageLinkText+"</a>");}m.find("a").click(function(w){v.clickHandler(w,this);});return this;},buildPageLink:function(m,q,n){var l=q+1;var o=this.getCurrentPage();if(q==o){m.append('<span class="current">'+l+"</span>");}else{if(q<n){var k=q*this.numThumbs;m.append('<a rel="history" href="#'+this.data[k].hash+'" title="'+l+'">'+l+"</a>");}}return this;}});b.extend(this,c,g);if(this.enableHistory&&!b.historyInit){this.enableHistory=false;}if(this.imageContainerSel){this.$imageContainer=b(this.imageContainerSel);}if(this.captionContainerSel){this.$captionContainer=b(this.captionContainerSel);}if(this.loadingContainerSel){this.$loadingContainer=b(this.loadingContainerSel);}this.initializeThumbs();if(this.maxPagesToShow<3){this.maxPagesToShow=3;}this.displayedPage=-1;this.currentImage=this.data[0];var e=this;if(this.$loadingContainer){this.$loadingContainer.hide();}if(this.controlsContainerSel){this.$controlsContainer=b(this.controlsContainerSel).empty();if(this.renderSSControls){if(this.autoStart){this.$controlsContainer.append('<div class="ss-controls"><a href="#pause" class="pause" title="'+this.pauseLinkText+'">'+this.pauseLinkText+"</a></div>");}else{this.$controlsContainer.append('<div class="ss-controls"><a href="#play" class="play" title="'+this.playLinkText+'">'+this.playLinkText+"</a></div>");}this.$controlsContainer.find("div.ss-controls a").click(function(k){e.toggleSlideshow();k.preventDefault();return false;});}if(this.renderNavControls){this.$controlsContainer.append('<div class="nav-controls"><a class="prev" rel="history" title="'+this.prevLinkText+'">'+this.prevLinkText+'</a><a class="next" rel="history" title="'+this.nextLinkText+'">'+this.nextLinkText+"</a></div>").find("div.nav-controls a").click(function(k){e.clickHandler(k,this);});}}var f=!this.enableHistory||!location.hash;if(this.enableHistory&&location.hash){var h=b.galleriffic.normalizeHash(location.hash);var j=d[h];if(!j){f=true;}}if(f){this.gotoIndex(0,false,true);}if(this.enableKeyboardNavigation){b(document).keydown(function(l){var k=l.charCode?l.charCode:l.keyCode?l.keyCode:0;switch(k){case 32:e.next();l.preventDefault();break;case 33:e.previousPage();l.preventDefault();break;case 34:e.nextPage();l.preventDefault();break;case 35:e.gotoIndex(e.data.length-1);l.preventDefault();break;case 36:e.gotoIndex(0);l.preventDefault();break;case 37:e.previous();l.preventDefault();break;case 39:e.next();l.preventDefault();break;}});}if(this.autoStart){this.play();}setTimeout(function(){e.preloadInit();},1000);return this;};})(jQuery);(function(a){var b={mouseOutOpacity:0.67,mouseOverOpacity:1,fadeSpeed:"fast",exemptionSelector:".selected"};a.fn.opacityrollover=function(d){a.extend(this,b,d);var c=this;function e(h,g){var f=a(h);if(c.exemptionSelector){f=f.not(c.exemptionSelector);}f.fadeTo(c.fadeSpeed,g);}this.css("opacity",this.mouseOutOpacity).hover(function(){e(this,c.mouseOverOpacity);},function(){e(this,c.mouseOutOpacity);});return this;};})(jQuery);(function(j){var m="2.88";if(j.support==undefined){j.support={opacity:!(j.browser.msie)};}function a(t){if(j.fn.cycle.debug){f(t);}}function f(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}j.fn.cycle=function(t,s){var u={s:this.selector,c:this.context};if(this.length===0&&t!="stop"){if(!j.isReady&&u.s){f("DOM not ready, queuing slideshow");j(function(){j(u.s,u.c).cycle(t,s);});return this;}f("terminating; zero elements found by selector"+(j.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var y=n(this,t,s);if(y===false){return;}y.updateActivePagerLink=y.updateActivePagerLink||j.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var z=j(this);var A=y.slideExpr?j(y.slideExpr,this):z.children();var w=A.get();if(w.length<2){f("terminating; too few slides: "+w.length);return;}var v=l(z,A,w,y,u);if(v===false){return;}var x=v.continuous?10:h(w[v.currSlide],w[v.nextSlide],v,!v.rev);if(x){x+=(v.delay||0);if(x<10){x=10;}a("first timeout: "+x);this.cycleTimeout=setTimeout(function(){e(w,v,0,(!v.rev&&!y.backwards));},x);}});};function n(s,v,t){if(s.cycleStop==undefined){s.cycleStop=0;}if(v===undefined||v===null){v={};}if(v.constructor==String){switch(v){case"destroy":case"stop":var x=j(s).data("cycle.opts");if(!x){return false;}s.cycleStop++;if(s.cycleTimeout){clearTimeout(s.cycleTimeout);}s.cycleTimeout=0;j(s).removeData("cycle.opts");if(v=="destroy"){r(x);}return false;case"toggle":s.cyclePause=(s.cyclePause===1)?0:1;w(s.cyclePause,t,s);return false;case"pause":s.cyclePause=1;return false;case"resume":s.cyclePause=0;w(false,t,s);return false;case"prev":case"next":var x=j(s).data("cycle.opts");if(!x){f('options not found, "prev/next" ignored');return false;}j.fn.cycle[v](x);return false;default:v={fx:v};}return v;}else{if(v.constructor==Number){var u=v;v=j(s).data("cycle.opts");if(!v){f("options not found, can not advance slide");return false;}if(u<0||u>=v.elements.length){f("invalid slide index: "+u);return false;}v.nextSlide=u;if(s.cycleTimeout){clearTimeout(s.cycleTimeout);s.cycleTimeout=0;}if(typeof t=="string"){v.oneTimeFx=t;}e(v.elements,v,1,u>=v.currSlide);return false;}}return v;function w(z,A,y){if(!z&&A===true){var B=j(y).data("cycle.opts");if(!B){f("options not found, can not resume");return false;}if(y.cycleTimeout){clearTimeout(y.cycleTimeout);y.cycleTimeout=0;}e(B.elements,B,1,(!x.rev&&!x.backwards));}}}function b(s,t){if(!j.support.opacity&&t.cleartype&&s.style.filter){try{s.style.removeAttribute("filter");}catch(u){}}}function r(s){if(s.next){j(s.next).unbind(s.prevNextEvent);}if(s.prev){j(s.prev).unbind(s.prevNextEvent);}if(s.pager||s.pagerAnchorBuilder){j.each(s.pagerAnchors||[],function(){this.unbind().remove();});}s.pagerAnchors=null;if(s.destroy){s.destroy(s);}}function l(A,M,x,v,G){var E=j.extend({},j.fn.cycle.defaults,v||{},j.metadata?A.metadata():j.meta?A.data():{});if(E.autostop){E.countdown=E.autostopCount||x.length;}var t=A[0];A.data("cycle.opts",E);E.$cont=A;E.stopCount=t.cycleStop;E.elements=x;E.before=E.before?[E.before]:[];E.after=E.after?[E.after]:[];E.after.unshift(function(){E.busy=0;});if(!j.support.opacity&&E.cleartype){E.after.push(function(){b(this,E);});}if(E.continuous){E.after.push(function(){e(x,E,0,(!E.rev&&!E.backwards));});}o(E);if(!j.support.opacity&&E.cleartype&&!E.cleartypeNoBg){g(M);}if(A.css("position")=="static"){A.css("position","relative");}if(E.width){A.width(E.width);}if(E.height&&E.height!="auto"){A.height(E.height);}if(E.startingSlide){E.startingSlide=parseInt(E.startingSlide);}else{if(E.backwards){E.startingSlide=x.length-1;}}if(E.random){E.randomMap=[];for(var K=0;K<x.length;K++){E.randomMap.push(K);}E.randomMap.sort(function(O,w){return Math.random()-0.5;});E.randomIndex=1;E.startingSlide=E.randomMap[1];}else{if(E.startingSlide>=x.length){E.startingSlide=0;}}E.currSlide=E.startingSlide||0;var z=E.startingSlide;M.css({position:"absolute",top:0,left:0}).hide().each(function(w){var O;if(E.backwards){O=z?w<=z?x.length+(w-z):z-w:x.length-w;}else{O=z?w>=z?x.length-(w-z):z-w:x.length-w;}j(this).css("z-index",O);});j(x[z]).css("opacity",1).show();b(x[z],E);if(E.fit&&E.width){M.width(E.width);}if(E.fit&&E.height&&E.height!="auto"){M.height(E.height);}var F=E.containerResize&&!A.innerHeight();if(F){var y=0,D=0;for(var I=0;I<x.length;I++){var s=j(x[I]),N=s[0],C=s.outerWidth(),L=s.outerHeight();if(!C){C=N.offsetWidth||N.width||s.attr("width");}if(!L){L=N.offsetHeight||N.height||s.attr("height");}y=C>y?C:y;D=L>D?L:D;}if(y>0&&D>0){A.css({width:y+"px",height:D+"px"});}}if(E.pause){A.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(c(E)===false){return false;}var u=false;v.requeueAttempts=v.requeueAttempts||0;M.each(function(){var Q=j(this);this.cycleH=(E.fit&&E.height)?E.height:(Q.height()||this.offsetHeight||this.height||Q.attr("height")||0);this.cycleW=(E.fit&&E.width)?E.width:(Q.width()||this.offsetWidth||this.width||Q.attr("width")||0);if(Q.is("img")){var O=(j.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var R=(j.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var P=(j.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var w=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(O||R||P||w){if(G.s&&E.requeueOnImageNotLoaded&&++v.requeueAttempts<100){f(v.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){j(G.s,G.c).cycle(v);},E.requeueTimeout);u=true;return false;}else{f("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(u){return false;}E.cssBefore=E.cssBefore||{};E.animIn=E.animIn||{};E.animOut=E.animOut||{};M.not(":eq("+z+")").css(E.cssBefore);if(E.cssFirst){j(M[z]).css(E.cssFirst);}if(E.timeout){E.timeout=parseInt(E.timeout);if(E.speed.constructor==String){E.speed=j.fx.speeds[E.speed]||parseInt(E.speed);}if(!E.sync){E.speed=E.speed/2;}var H=E.fx=="shuffle"?500:250;while((E.timeout-E.speed)<H){E.timeout+=E.speed;}}if(E.easing){E.easeIn=E.easeOut=E.easing;}if(!E.speedIn){E.speedIn=E.speed;}if(!E.speedOut){E.speedOut=E.speed;}E.slideCount=x.length;E.currSlide=E.lastSlide=z;if(E.random){if(++E.randomIndex==x.length){E.randomIndex=0;}E.nextSlide=E.randomMap[E.randomIndex];}else{if(E.backwards){E.nextSlide=E.startingSlide==0?(x.length-1):E.startingSlide-1;}else{E.nextSlide=E.startingSlide>=(x.length-1)?0:E.startingSlide+1;}}if(!E.multiFx){var J=j.fn.cycle.transitions[E.fx];if(j.isFunction(J)){J(A,M,E);}else{if(E.fx!="custom"&&!E.multiFx){f("unknown transition: "+E.fx,"; slideshow terminating");return false;}}}var B=M[z];if(E.before.length){E.before[0].apply(B,[B,B,E,true]);}if(E.after.length>1){E.after[1].apply(B,[B,B,E,true]);}if(E.next){j(E.next).bind(E.prevNextEvent,function(){return q(E,E.rev?-1:1);});}if(E.prev){j(E.prev).bind(E.prevNextEvent,function(){return q(E,E.rev?1:-1);});}if(E.pager||E.pagerAnchorBuilder){d(x,E);}k(E,x);return E;}function o(s){s.original={before:[],after:[]};s.original.cssBefore=j.extend({},s.cssBefore);s.original.cssAfter=j.extend({},s.cssAfter);s.original.animIn=j.extend({},s.animIn);s.original.animOut=j.extend({},s.animOut);j.each(s.before,function(){s.original.before.push(this);});j.each(s.after,function(){s.original.after.push(this);});}function c(y){var w,u,t=j.fn.cycle.transitions;if(y.fx.indexOf(",")>0){y.multiFx=true;y.fxs=y.fx.replace(/\s*/g,"").split(",");for(w=0;w<y.fxs.length;w++){var x=y.fxs[w];u=t[x];if(!u||!t.hasOwnProperty(x)||!j.isFunction(u)){f("discarding unknown transition: ",x);y.fxs.splice(w,1);w--;}}if(!y.fxs.length){f("No valid transitions named; slideshow terminating.");return false;}}else{if(y.fx=="all"){y.multiFx=true;y.fxs=[];for(p in t){u=t[p];if(t.hasOwnProperty(p)&&j.isFunction(u)){y.fxs.push(p);}}}}if(y.multiFx&&y.randomizeEffects){var v=Math.floor(Math.random()*20)+30;for(w=0;w<v;w++){var s=Math.floor(Math.random()*y.fxs.length);y.fxs.push(y.fxs.splice(s,1)[0]);}a("randomized fx sequence: ",y.fxs);}return true;}function k(t,s){t.addSlide=function(v,w){var u=j(v),x=u[0];if(!t.autostopCount){t.countdown++;}s[w?"unshift":"push"](x);if(t.els){t.els[w?"unshift":"push"](x);}t.slideCount=s.length;u.css("position","absolute");u[w?"prependTo":"appendTo"](t.$cont);if(w){t.currSlide++;t.nextSlide++;}if(!j.support.opacity&&t.cleartype&&!t.cleartypeNoBg){g(u);}if(t.fit&&t.width){u.width(t.width);}if(t.fit&&t.height&&t.height!="auto"){$slides.height(t.height);}x.cycleH=(t.fit&&t.height)?t.height:u.height();x.cycleW=(t.fit&&t.width)?t.width:u.width();u.css(t.cssBefore);if(t.pager||t.pagerAnchorBuilder){j.fn.cycle.createPagerAnchor(s.length-1,x,j(t.pager),s,t);}if(j.isFunction(t.onAddSlide)){t.onAddSlide(u);}else{u.hide();}};}j.fn.cycle.resetState=function(t,s){s=s||t.fx;t.before=[];t.after=[];t.cssBefore=j.extend({},t.original.cssBefore);t.cssAfter=j.extend({},t.original.cssAfter);t.animIn=j.extend({},t.original.animIn);t.animOut=j.extend({},t.original.animOut);t.fxFn=null;j.each(t.original.before,function(){t.before.push(this);});j.each(t.original.after,function(){t.after.push(this);});var u=j.fn.cycle.transitions[s];if(j.isFunction(u)){u(t.$cont,j(t.elements),t);}};function e(z,s,y,B){if(y&&s.busy&&s.manualTrump){a("manualTrump in go(), stopping active transition");j(z).stop(true,true);s.busy=false;}if(s.busy){a("transition active, ignoring new tx request");return;}var w=s.$cont[0],D=z[s.currSlide],C=z[s.nextSlide];if(w.cycleStop!=s.stopCount||w.cycleTimeout===0&&!y){return;}if(!y&&!w.cyclePause&&!s.bounce&&((s.autostop&&(--s.countdown<=0))||(s.nowrap&&!s.random&&s.nextSlide<s.currSlide))){if(s.end){s.end(s);}return;}var A=false;if((y||!w.cyclePause)&&(s.nextSlide!=s.currSlide)){A=true;var x=s.fx;D.cycleH=D.cycleH||j(D).height();D.cycleW=D.cycleW||j(D).width();C.cycleH=C.cycleH||j(C).height();C.cycleW=C.cycleW||j(C).width();if(s.multiFx){if(s.lastFx==undefined||++s.lastFx>=s.fxs.length){s.lastFx=0;}x=s.fxs[s.lastFx];s.currFx=x;}if(s.oneTimeFx){x=s.oneTimeFx;s.oneTimeFx=null;}j.fn.cycle.resetState(s,x);if(s.before.length){j.each(s.before,function(E,F){if(w.cycleStop!=s.stopCount){return;}F.apply(C,[D,C,s,B]);});}var u=function(){j.each(s.after,function(E,F){if(w.cycleStop!=s.stopCount){return;}F.apply(C,[D,C,s,B]);});};a("tx firing; currSlide: "+s.currSlide+"; nextSlide: "+s.nextSlide);s.busy=1;if(s.fxFn){s.fxFn(D,C,s,u,B,y&&s.fastOnEvent);}else{if(j.isFunction(j.fn.cycle[s.fx])){j.fn.cycle[s.fx](D,C,s,u,B,y&&s.fastOnEvent);}else{j.fn.cycle.custom(D,C,s,u,B,y&&s.fastOnEvent);}}}if(A||s.nextSlide==s.currSlide){s.lastSlide=s.currSlide;if(s.random){s.currSlide=s.nextSlide;if(++s.randomIndex==z.length){s.randomIndex=0;}s.nextSlide=s.randomMap[s.randomIndex];if(s.nextSlide==s.currSlide){s.nextSlide=(s.currSlide==s.slideCount-1)?0:s.currSlide+1;}}else{if(s.backwards){var v=(s.nextSlide-1)<0;if(v&&s.bounce){s.backwards=!s.backwards;s.nextSlide=1;s.currSlide=0;}else{s.nextSlide=v?(z.length-1):s.nextSlide-1;s.currSlide=v?0:s.nextSlide+1;}}else{var v=(s.nextSlide+1)==z.length;if(v&&s.bounce){s.backwards=!s.backwards;s.nextSlide=z.length-2;s.currSlide=z.length-1;}else{s.nextSlide=v?0:s.nextSlide+1;s.currSlide=v?z.length-1:s.nextSlide-1;}}}}if(A&&s.pager){s.updateActivePagerLink(s.pager,s.currSlide,s.activePagerClass);}var t=0;if(s.timeout&&!s.continuous){t=h(z[s.currSlide],z[s.nextSlide],s,B);}else{if(s.continuous&&w.cyclePause){t=10;}}if(t>0){w.cycleTimeout=setTimeout(function(){e(z,s,0,(!s.rev&&!s.backwards));},t);}}j.fn.cycle.updateActivePagerLink=function(s,u,t){j(s).each(function(){j(this).children().removeClass(t).eq(u).addClass(t);});};function h(x,v,w,u){if(w.timeoutFn){var s=w.timeoutFn.call(x,x,v,w,u);while((s-w.speed)<250){s+=w.speed;}a("calculated timeout: "+s+"; speed: "+w.speed);if(s!==false){return s;}}return w.timeout;}j.fn.cycle.next=function(s){q(s,s.rev?-1:1);};j.fn.cycle.prev=function(s){q(s,s.rev?1:-1);};function q(u,x){var t=u.elements;var w=u.$cont[0],v=w.cycleTimeout;if(v){clearTimeout(v);w.cycleTimeout=0;}if(u.random&&x<0){u.randomIndex--;if(--u.randomIndex==-2){u.randomIndex=t.length-2;}else{if(u.randomIndex==-1){u.randomIndex=t.length-1;}}u.nextSlide=u.randomMap[u.randomIndex];}else{if(u.random){u.nextSlide=u.randomMap[u.randomIndex];}else{u.nextSlide=u.currSlide+x;if(u.nextSlide<0){if(u.nowrap){return false;}u.nextSlide=t.length-1;}else{if(u.nextSlide>=t.length){if(u.nowrap){return false;}u.nextSlide=0;}}}}var s=u.onPrevNextEvent||u.prevNextClick;if(j.isFunction(s)){s(x>0,u.nextSlide,t[u.nextSlide]);}e(t,u,1,x>=0);return false;}function d(t,u){var s=j(u.pager);j.each(t,function(v,w){j.fn.cycle.createPagerAnchor(v,w,s,t,u);});u.updateActivePagerLink(u.pager,u.startingSlide,u.activePagerClass);}j.fn.cycle.createPagerAnchor=function(w,x,u,v,y){var t;if(j.isFunction(y.pagerAnchorBuilder)){t=y.pagerAnchorBuilder(w,x);a("pagerAnchorBuilder("+w+", el) returned: "+t);}else{t='<a href="#">'+(w+1)+"</a>";}if(!t){return;}var z=j(t);if(z.parents("body").length===0){var s=[];if(u.length>1){u.each(function(){var A=z.clone(true);j(this).append(A);s.push(A[0]);});z=j(s);}else{z.appendTo(u);}}y.pagerAnchors=y.pagerAnchors||[];y.pagerAnchors.push(z);z.bind(y.pagerEvent,function(D){D.preventDefault();y.nextSlide=w;var C=y.$cont[0],B=C.cycleTimeout;if(B){clearTimeout(B);C.cycleTimeout=0;}var A=y.onPagerEvent||y.pagerClick;if(j.isFunction(A)){A(y.nextSlide,v[y.nextSlide]);}e(v,y,1,y.currSlide<w);});if(!/^click/.test(y.pagerEvent)&&!y.allowPagerClickBubble){z.bind("click.cycle",function(){return false;});}if(y.pauseOnPagerHover){z.hover(function(){y.$cont[0].cyclePause++;},function(){y.$cont[0].cyclePause--;});}};j.fn.cycle.hopsFromLast=function(v,u){var t,s=v.lastSlide,w=v.currSlide;if(u){t=w>s?w-s:v.slideCount-s;}else{t=w<s?s-w:s+v.slideCount-w;}return t;};function g(u){a("applying clearType background-color hack");function t(v){v=parseInt(v).toString(16);return v.length<2?"0"+v:v;}function s(y){for(;y&&y.nodeName.toLowerCase()!="html";y=y.parentNode){var w=j.css(y,"background-color");if(w.indexOf("rgb")>=0){var x=w.match(/\d+/g);return"#"+t(x[0])+t(x[1])+t(x[2]);}if(w&&w!="transparent"){return w;}}return"#ffffff";}u.each(function(){j(this).css("background-color",s(this));});}j.fn.cycle.commonReset=function(y,v,x,t,u,s){j(x.elements).not(y).hide();x.cssBefore.opacity=1;x.cssBefore.display="block";if(t!==false&&v.cycleW>0){x.cssBefore.width=v.cycleW;}if(u!==false&&v.cycleH>0){x.cssBefore.height=v.cycleH;}x.cssAfter=x.cssAfter||{};x.cssAfter.display="none";j(y).css("zIndex",x.slideCount+(s===true?1:0));j(v).css("zIndex",x.slideCount+(s===true?0:1));};j.fn.cycle.custom=function(E,y,s,v,x,t){var D=j(E),z=j(y);var u=s.speedIn,C=s.speedOut,w=s.easeIn,B=s.easeOut;z.css(s.cssBefore);if(t){if(typeof t=="number"){u=C=t;}else{u=C=1;}w=B=null;}var A=function(){z.animate(s.animIn,u,w,v);};D.animate(s.animOut,C,B,function(){if(s.cssAfter){D.css(s.cssAfter);}if(!s.sync){A();}});if(s.sync){A();}};j.fn.cycle.transitions={fade:function(t,u,s){u.not(":eq("+s.currSlide+")").css("opacity",0);s.before.push(function(x,v,w){j.fn.cycle.commonReset(x,v,w);w.cssBefore.opacity=0;});s.animIn={opacity:1};s.animOut={opacity:0};s.cssBefore={top:0,left:0};}};j.fn.cycle.ver=function(){return m;};j.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!j.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false};})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g);},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&&parseInt(a.browser.version)<=6){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var d=function(e){return e&&e.constructor==Number?e+"px":e;},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')":d(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":d(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":d(c.height))+';"/>';return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(b),this.firstChild);}});}return this;};if(!a.browser.version){a.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1];}})(jQuery);(function(a){a.fn.hoverIntent=function(l,k){var m={sensitivity:7,interval:100,timeout:0};m=a.extend(m,k?{over:l,out:k}:l);var o,n,h,d;var e=function(f){o=f.pageX;n=f.pageY;};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-o)+Math.abs(d-n))<m.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return m.over.apply(f,[g]);}else{h=o;d=n;f.hoverIntent_t=setTimeout(function(){c(g,f);},m.interval);}};var j=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return m.out.apply(f,[g]);};var b=function(r){var q=(r.type=="mouseover"?r.fromElement:r.toElement)||r.relatedTarget;while(q&&q!=this){try{q=q.parentNode;}catch(r){q=this;}}if(q==this){return false;}var g=jQuery.extend({},r);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);}if(r.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f);},m.interval);}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){j(g,f);},m.timeout);}}};return this.mouseover(b).mouseout(b);};})(jQuery);(function(a){a.fn.supersubs=function(b){var c=a.extend({},a.fn.supersubs.defaults,b);return this.each(function(){var d=a(this);var e=a.meta?a.extend({},c,d.data()):c;var f=a('<li id="menu-fontsize">&#8212;</li>').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(d).width();a("#menu-fontsize").remove();$ULs=d.find("ul");$ULs.each(function(l){var k=$ULs.eq(l);var j=k.children();var g=j.children("a");var m=j.css("white-space","nowrap").css("float");var h=k.add(j).add(g).css({"float":"none",width:"auto"}).end().end()[0].clientWidth/f;h+=e.extraWidth;if(h>e.maxWidth){h=e.maxWidth;}else{if(h<e.minWidth){h=e.minWidth;}}h+="em";k.css("width",h);j.css({"float":m,width:"100%","white-space":"normal"}).each(function(){var o=a(">ul",this);var n=o.css("left")!==undefined?"left":"right";o.css(n,h);});});});};a.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0};})(jQuery);(function(b){b.fn.superfish=function(l){var g=b.fn.superfish,k=g.c,f=b(['<span class="',k.arrowClass,'"> &#187;</span>'].join("")),j=function(){var c=b(this),m=d(c);clearTimeout(m.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl();},e=function(){var c=b(this),n=d(c),m=g.op;clearTimeout(n.sfTimer);n.sfTimer=setTimeout(function(){m.retainPath=(b.inArray(c[0],m.$path)>-1);c.hideSuperfishUl();if(m.$path.length&&c.parents(["li.",m.hoverClass].join("")).length<1){j.call(m.$path);}},m.delay);},d=function(c){var m=c.parents(["ul.",k.menuClass,":first"].join(""))[0];g.op=g.o[m.serial];return m;},h=function(c){c.addClass(k.anchorClass).append(f.clone());};return this.each(function(){var c=this.serial=g.o.length;var n=b.extend({},g.defaults,l);n.$path=b("li."+n.pathClass,this).slice(0,n.pathLevels).each(function(){b(this).addClass([n.hoverClass,k.bcClass].join(" ")).filter("li:has(ul)").removeClass(n.pathClass);});g.o[c]=g.op=n;b("li:has(ul)",this)[(b.fn.hoverIntent&&!n.disableHI)?"hoverIntent":"hover"](j,e).each(function(){if(n.autoArrows){h(b(">a:first-child",this));}}).not("."+k.bcClass).hideSuperfishUl();var m=b("a",this);m.each(function(o){var q=m.eq(o).parents("li");m.eq(o).focus(function(){j.call(q);}).blur(function(){e.call(q);});});n.onInit.call(this);}).each(function(){var c=[k.menuClass];if(g.op.dropShadows&&!(b.browser.msie&&b.browser.version<7)){c.push(k.shadowClass);}b(this).addClass(c.join(" "));});};var a=b.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var c=a.op;if(b.browser.msie&&b.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off");}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:350,animation:{opacity:"show"},speed:250,autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};b.fn.extend({hideSuperfishUl:function(){var e=a.op,d=(e.retainPath===true)?e.$path:"";e.retainPath=false;var c=b(["li.",e.hoverClass].join(""),this).add(this).not(d).removeClass(e.hoverClass).find(">ul").hide().css("visibility","hidden");e.onHide.call(c);return this;},showSuperfishUl:function(){var e=a.op,d=a.c.shadowClass+"-off",c=this.addClass(e.hoverClass).find(">ul:hidden").css("visibility","visible");a.IE7fix.call(c);e.onBeforeShow.call(c);c.animate(e.animation,e.speed,function(){a.IE7fix.call(c);e.onShow.call(c);});return this;}});})(jQuery);
