﻿/*!
 * jQuery Form Plugin
 * version: 2.85 (23-SEP-2011)
 * @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(n){function t(){if(!n.fn.ajaxSubmit.debug)return;var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}n.fn.ajaxSubmit=function(i){function p(u){function ut(n){return n.contentWindow?n.contentWindow.document:n.contentDocument?n.contentDocument:n.document}function ft(){function a(){try{var n=ut(l).readyState;t("state = "+n),n.toLowerCase()=="uninitialized"&&setTimeout(a,50)}catch(i){t("Server abort: ",i," (",i.name,")"),p(d),b&&clearTimeout(b),b=undefined}}var e=r.attr("target"),o=r.attr("action"),i,u;h.setAttribute("target",k),s||h.setAttribute("method","POST"),o!=f.url&&h.setAttribute("action",f.url),f.skipEncodingOverride||s&&!/post/i.test(s)||r.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),f.timeout&&(b=setTimeout(function(){nt=!0,p(tt)},f.timeout)),i=[];try{if(f.extraData)for(u in f.extraData)i.push(n('<input type="hidden" name="'+u+'" />').attr("value",f.extraData[u]).appendTo(h)[0]);f.iframeTarget||(c.appendTo("body"),l.attachEvent?l.attachEvent("onload",p):l.addEventListener("load",p,!1)),setTimeout(a,15),h.submit()}finally{h.setAttribute("action",o),e?h.setAttribute("target",e):r.removeAttr("target"),n(i).remove()}}function p(i){var r,s,w,u,k,g,h,a,v;if(e.aborted||it)return;try{o=ut(l)}catch(ft){t("cannot access response document: ",ft),i=d}if(i===tt&&e){e.abort("timeout");return}if(i==d&&e){e.abort("server abort");return}if(!o||o.location.href==f.iframeSrc)if(!nt)return;l.detachEvent?l.detachEvent("onload",p):l.removeEventListener("load",p,!1),r="success";try{if(nt)throw"timeout";w=f.dataType=="xml"||o.XMLDocument||n.isXMLDoc(o),t("isXml="+w);if(!w&&window.opera&&(o.body==null||o.body.innerHTML==""))if(--rt){t("requeing onLoad callback, DOM not available"),setTimeout(p,250);return}u=o.body?o.body:o.documentElement,e.responseText=u?u.innerHTML:null,e.responseXML=o.XMLDocument?o.XMLDocument:o,w&&(f.dataType="xml"),e.getResponseHeader=function(n){var t={"content-type":f.dataType};return t[n]},u&&(e.status=Number(u.getAttribute("status"))||e.status,e.statusText=u.getAttribute("statusText")||e.statusText),k=(f.dataType||"").toLowerCase(),g=/(json|script|text)/.test(k),g||f.textarea?(h=o.getElementsByTagName("textarea")[0],h?(e.responseText=h.value,e.status=Number(h.getAttribute("status"))||e.status,e.statusText=h.getAttribute("statusText")||e.statusText):g&&(a=o.getElementsByTagName("pre")[0],v=o.getElementsByTagName("body")[0],a?e.responseText=a.textContent?a.textContent:a.innerText:v&&(e.responseText=v.textContent?v.textContent:v.innerText))):k!="xml"||e.responseXML||e.responseText==null||(e.responseXML=ct(e.responseText));try{et=st(e,k,f)}catch(i){r="parsererror",e.error=s=i||r}}catch(i){t("error caught: ",i),r="error",e.error=s=i||r}e.aborted&&(t("upload aborted"),r=null),e.status&&(r=e.status>=200&&e.status<300||e.status===304?"success":"error"),r==="success"?(f.success&&f.success.call(f.context,et,"success",e),y&&n.event.trigger("ajaxSuccess",[e,f])):r&&(s==undefined&&(s=e.statusText),f.error&&f.error.call(f.context,e,r,s),y&&n.event.trigger("ajaxError",[e,f,s])),y&&n.event.trigger("ajaxComplete",[e,f]),y&&!--n.active&&n.event.trigger("ajaxStop"),f.complete&&f.complete.call(f.context,e,r),it=!0,f.timeout&&clearTimeout(b),setTimeout(function(){f.iframeTarget||c.remove(),e.responseXML=null},100)}var h=r[0],g,v,f,y,k,c,l,e,w,a,nt,b,ht=!!n.fn.prop,tt,d,et,o,rt,it;if(u)if(ht)for(v=0;v<u.length;v++)g=n(h[u[v].name]),g.prop("disabled",!1);else for(v=0;v<u.length;v++)g=n(h[u[v].name]),g.removeAttr("disabled");if(n(":input[name=submit],:input[id=submit]",h).length){alert('Error: Form elements must not have name or id of "submit".');return}f=n.extend(!0,{},n.ajaxSettings,i),f.context=f.context||f,k="jqFormIO"+ +new Date,f.iframeTarget?(c=n(f.iframeTarget),a=c.attr("name"),a==null?c.attr("name",k):k=a):(c=n('<iframe name="'+k+'" src="'+f.iframeSrc+'" />'),c.css({position:"absolute",top:"-1000px",left:"-1000px"})),l=c[0],e={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(i){var r=i==="timeout"?"timeout":"aborted";t("aborting upload... "+r),this.aborted=1,c.attr("src",f.iframeSrc),e.error=r,f.error&&f.error.call(f.context,e,r,i),y&&n.event.trigger("ajaxError",[e,f,r]),f.complete&&f.complete.call(f.context,e,r)}},y=f.global,y&&!n.active++&&n.event.trigger("ajaxStart"),y&&n.event.trigger("ajaxSend",[e,f]);if(f.beforeSend&&f.beforeSend.call(f.context,e,f)===!1){f.global&&n.active--;return}if(e.aborted)return;w=h.clk,w&&(a=w.name,a&&!w.disabled&&(f.extraData=f.extraData||{},f.extraData[a]=w.value,w.type=="image"&&(f.extraData[a+".x"]=h.clk_x,f.extraData[a+".y"]=h.clk_y))),tt=1,d=2,f.forceSync?ft():setTimeout(ft,10),rt=50;var ct=n.parseXML||function(n,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(n)):t=(new DOMParser).parseFromString(n,"text/xml"),t&&t.documentElement&&t.documentElement.nodeName!="parsererror"?t:null},ot=n.parseJSON||function(n){return window.eval("("+n+")")},st=function(t,i,r){var f=t.getResponseHeader("content-type")||"",e=i==="xml"||!i&&f.indexOf("xml")>=0,u=e?t.responseXML:t.responseText;return e&&u.documentElement.nodeName==="parsererror"&&n.error&&n.error("parsererror"),r&&r.dataFilter&&(u=r.dataFilter(u,i)),typeof u=="string"&&(i!=="json"&&(i||f.indexOf("json")<0)?i!=="script"&&(i||f.indexOf("javascript")<0)||n.globalEval(u):u=ot(u)),u}}var s,v,o,r,c,f,h,u,b,a,e,w,l;if(!this.length)return t("ajaxSubmit: skipping submit process - no element selected"),this;r=this,typeof i=="function"&&(i={success:i}),s=this.attr("method"),v=this.attr("action"),o=typeof v=="string"?n.trim(v):"",o=o||window.location.href||"",o&&(o=(o.match(/^([^#]+)/)||[])[1]),i=n.extend(!0,{url:o,success:n.ajaxSettings.success,type:s||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},i),c={},this.trigger("form-pre-serialize",[this,i,c]);if(c.veto)return t("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(i.beforeSerialize&&i.beforeSerialize(this,i)===!1)return t("ajaxSubmit: submit aborted via beforeSerialize callback"),this;u=this.formToArray(i.semantic);if(i.data){i.extraData=i.data;for(f in i.data)if(n.isArray(i.data[f]))for(b in i.data[f])u.push({name:f,value:i.data[f][b]});else h=i.data[f],h=n.isFunction(h)?h():h,u.push({name:f,value:h})}if(i.beforeSubmit&&i.beforeSubmit(u,this,i)===!1)return t("ajaxSubmit: submit aborted via beforeSubmit callback"),this;this.trigger("form-submit-validate",[u,this,i,c]);if(c.veto)return t("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;a=n.param(u),i.type.toUpperCase()=="GET"?(i.url+=(i.url.indexOf("?")>=0?"&":"?")+a,i.data=null):i.data=a,e=[],i.resetForm&&e.push(function(){r.resetForm()}),i.clearForm&&e.push(function(){r.clearForm()}),!i.dataType&&i.target?(w=i.success||function(){},e.push(function(t){var r=i.replaceTarget?"replaceWith":"html";n(i.target)[r](t).each(w,arguments)})):i.success&&e.push(i.success),i.success=function(n,t,u){for(var s=i.context||i,f=0,o=e.length;f<o;f++)e[f].apply(s,[n,t,u||r,r])};var k=n("input:file",this).length>0,y="multipart/form-data",d=r.attr("enctype")==y||r.attr("encoding")==y;return i.iframe!==!1&&(k||i.iframe||d)?i.closeKeepAlive?n.get(i.closeKeepAlive,function(){p(u)}):p(u):(n.browser.msie&&s=="get"&&typeof i.type=="undefined"&&(l=r[0].getAttribute("method"),typeof l=="string"&&(i.type=l)),n.ajax(i)),this.trigger("form-submit-notify",[this,i]),this},n.fn.ajaxForm=function(i){if(this.length===0){var r={s:this.selector,c:this.context};return!n.isReady&&r.s?(t("DOM not ready, queuing ajaxForm"),n(function(){n(r.s,r.c).ajaxForm(i)}),this):(t("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this)}return this.ajaxFormUnbind().bind("submit.form-plugin",function(t){t.isDefaultPrevented()||(t.preventDefault(),n(this).ajaxSubmit(i))}).bind("click.form-plugin",function(t){var r=t.target,f=n(r),e,i,u;if(!f.is(":submit,input:image")){e=f.closest(":submit");if(e.length==0)return;r=e[0]}i=this,i.clk=r,r.type=="image"&&(t.offsetX!=undefined?(i.clk_x=t.offsetX,i.clk_y=t.offsetY):typeof n.fn.offset=="function"?(u=f.offset(),i.clk_x=t.pageX-u.left,i.clk_y=t.pageY-u.top):(i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop)),setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)})},n.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},n.fn.formToArray=function(t){var u=[],r,c,h,o,i,f,e,v,a,l,s;if(this.length===0)return u;r=this[0],c=t?r.getElementsByTagName("*"):r.elements;if(!c)return u;for(h=0,v=c.length;h<v;h++){e=c[h],i=e.name;if(!i)continue;if(t&&r.clk&&e.type=="image"){e.disabled||r.clk!=e||(u.push({name:i,value:n(e).val()}),u.push({name:i+".x",value:r.clk_x},{name:i+".y",value:r.clk_y}));continue}f=n.fieldValue(e,!0);if(f&&f.constructor==Array)for(o=0,a=f.length;o<a;o++)u.push({name:i,value:f[o]});else f!==null&&typeof f!="undefined"&&u.push({name:i,value:f})}return!t&&r.clk&&(l=n(r.clk),s=l[0],i=s.name,i&&!s.disabled&&s.type=="image"&&(u.push({name:i,value:l.val()}),u.push({name:i+".x",value:r.clk_x},{name:i+".y",value:r.clk_y}))),u},n.fn.formSerialize=function(t){return n.param(this.formToArray(t))},n.fn.fieldSerialize=function(t){var i=[];return this.each(function(){var e=this.name,r,u,f;if(!e)return;r=n.fieldValue(this,t);if(r&&r.constructor==Array)for(u=0,f=r.length;u<f;u++)i.push({name:e,value:r[u]});else r!==null&&typeof r!="undefined"&&i.push({name:this.name,value:r})}),n.param(i)},n.fn.fieldValue=function(t){for(var f,i,u=[],r=0,e=this.length;r<e;r++){f=this[r],i=n.fieldValue(f,t);if(i===null||typeof i=="undefined"||i.constructor==Array&&!i.length)continue;i.constructor==Array?n.merge(u,i):u.push(i)}return u},n.fieldValue=function(t,i){var v=t.name,u=t.type,h=t.tagName.toLowerCase(),o,e,r,f;i===undefined&&(i=!0);if(i&&(!v||t.disabled||u=="reset"||u=="button"||(u=="checkbox"||u=="radio")&&!t.checked||(u=="submit"||u=="image")&&t.form&&t.form.clk!=t||h=="select"&&t.selectedIndex==-1))return null;if(h=="select"){o=t.selectedIndex;if(o<0)return null;var c=[],l=t.options,s=u=="select-one",a=s?o+1:l.length;for(e=s?o:0;e<a;e++){r=l[e];if(r.selected){f=r.value,f||(f=r.attributes&&r.attributes.value&&!r.attributes.value.specified?r.text:r.value);if(s)return f;c.push(f)}}return c}return n(t).val()},n.fn.clearForm=function(){return this.each(function(){n("input,select,textarea",this).clearFields()})},n.fn.clearFields=n.fn.clearInputs=function(){var n=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,i=this.tagName.toLowerCase();n.test(t)||i=="textarea"?this.value="":t=="checkbox"||t=="radio"?this.checked=!1:i=="select"&&(this.selectedIndex=-1)})},n.fn.resetForm=function(){return this.each(function(){typeof this.reset!="function"&&(typeof this.reset!="object"||this.reset.nodeType)||this.reset()})},n.fn.enable=function(n){return n===undefined&&(n=!0),this.each(function(){this.disabled=!n})},n.fn.selected=function(t){return t===undefined&&(t=!0),this.each(function(){var r=this.type,i;r=="checkbox"||r=="radio"?this.checked=t:this.tagName.toLowerCase()=="option"&&(i=n(this).parent("select"),t&&i[0]&&i[0].type=="select-one"&&i.find("option").selected(!1),this.selected=t)})},n.fn.ajaxSubmit.debug=!1})(jQuery);
/*!
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.9995 (09-AUG-2011)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.3.2 or later
 */
(function(n){function i(i){n.fn.cycle.debug&&t(i)}function t(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function u(t,i,r){var u=n(t).data("cycle.opts"),f=!!t.cyclePause;f&&u.paused?u.paused(t,u,i,r):!f&&u.resumed&&u.resumed(t,u,i,r)}function c(i,f,e){function h(i,u,f){if(!i&&u===!0){var e=n(f).data("cycle.opts");if(!e)return t("options not found, can not resume"),!1;f.cycleTimeout&&(clearTimeout(f.cycleTimeout),f.cycleTimeout=0),r(e.elements,e,1,!e.backwards)}}var o,s;i.cycleStop==undefined&&(i.cycleStop=0),(f===undefined||f===null)&&(f={});if(f.constructor==String){switch(f){case"destroy":case"stop":return o=n(i).data("cycle.opts"),o?(i.cycleStop++,i.cycleTimeout&&clearTimeout(i.cycleTimeout),i.cycleTimeout=0,o.elements&&n(o.elements).stop(),n(i).removeData("cycle.opts"),f=="destroy"&&w(o),!1):!1;case"toggle":return i.cyclePause=i.cyclePause===1?0:1,h(i.cyclePause,e,i),u(i),!1;case"pause":return i.cyclePause=1,u(i),!1;case"resume":return i.cyclePause=0,h(!1,e,i),u(i),!1;case"prev":case"next":return o=n(i).data("cycle.opts"),o?(n.fn.cycle[f](o),!1):(t('options not found, "prev/next" ignored'),!1);default:f={fx:f}}return f}return f.constructor==Number?(s=f,f=n(i).data("cycle.opts"),f?s<0||s>=f.elements.length?(t("invalid slide index: "+s),!1):(f.nextSlide=s,i.cycleTimeout&&(clearTimeout(i.cycleTimeout),i.cycleTimeout=0),typeof e=="string"&&(f.oneTimeFx=e),r(f.elements,f,1,s>=f.currSlide),!1):(t("options not found, can not advance slide"),!1)):f}function s(t,i){if(!n.support.opacity&&i.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(r){}}function w(t){t.next&&n(t.next).unbind(t.prevNextEvent),t.prev&&n(t.prev).unbind(t.prevNextEvent),(t.pager||t.pagerAnchorBuilder)&&n.each(t.pagerAnchors||[],function(){this.unbind().remove()}),t.pagerAnchors=null,t.destroy&&t.destroy(t)}function l(i,o,h,c,l){var p=n.extend({},n.fn.cycle.defaults,c||{},n.metadata?i.metadata():n.meta?i.data():{}),ct=n.isFunction(i.data)?i.data(p.metaAttr):null,ft,ut,w,lt,g,d,et,st,ht,at,ot,k;ct&&(p=n.extend(p,ct)),p.autostop&&(p.countdown=p.autostopCount||h.length),ft=i[0],i.data("cycle.opts",p),p.$cont=i,p.stopCount=ft.cycleStop,p.elements=h,p.before=p.before?[p.before]:[],p.after=p.after?[p.after]:[],!n.support.opacity&&p.cleartype&&p.after.push(function(){s(this,p)}),p.continuous&&p.after.push(function(){r(h,p,0,!p.backwards)}),y(p),n.support.opacity||!p.cleartype||p.cleartypeNoBg||e(o),i.css("position")=="static"&&i.css("position","relative"),p.width&&i.width(p.width),p.height&&p.height!="auto"&&i.height(p.height),p.startingSlide?p.startingSlide=parseInt(p.startingSlide,10):p.backwards&&(p.startingSlide=h.length-1);if(p.random){for(p.randomMap=[],ut=0;ut<h.length;ut++)p.randomMap.push(ut);p.randomMap.sort(function(){return Math.random()-.5}),p.randomIndex=1,p.startingSlide=p.randomMap[1]}else p.startingSlide<h.length||(p.startingSlide=0);p.currSlide=p.startingSlide||0,w=p.startingSlide,o.css({position:"absolute",top:0,left:0}).hide().each(function(t){var i;i=p.backwards?w?t<=w?h.length+(t-w):w-t:h.length-t:w?t>=w?h.length-(t-w):w-t:h.length-t,n(this).css("z-index",i)}),n(h[w]).css("opacity",1).show(),s(h[w],p),p.fit&&(p.aspect?o.each(function(){var t=n(this),i=p.aspect===!0?t.width()/t.height():p.aspect;p.width&&t.width()!=p.width&&(t.width(p.width),t.height(p.width/i)),p.height&&t.height()<p.height&&(t.height(p.height),t.width(p.height*i))}):(p.width&&o.width(p.width),p.height&&p.height!="auto"&&o.height(p.height))),p.center&&(!p.fit||p.aspect)&&o.each(function(){var t=n(this);t.css({"margin-left":p.width?(p.width-t.width())/2+"px":0,"margin-top":p.height?(p.height-t.height())/2+"px":0})}),!p.center||p.fit||p.slideResize||o.each(function(){var t=n(this);t.css({"margin-left":p.width?(p.width-t.width())/2+"px":0,"margin-top":p.height?(p.height-t.height())/2+"px":0})}),lt=p.containerResize&&!i.innerHeight();if(lt){for(g=0,d=0,et=0;et<h.length;et++){var nt=n(h[et]),tt=nt[0],it=nt.outerWidth(),rt=nt.outerHeight();it||(it=tt.offsetWidth||tt.width||nt.attr("width")),rt||(rt=tt.offsetHeight||tt.height||nt.attr("height")),g=it>g?it:g,d=rt>d?rt:d}g>0&&d>0&&i.css({width:g+"px",height:d+"px"})}st=!1,p.pause&&i.hover(function(){st=!0,this.cyclePause++,u(ft,!0)},function(){st&&this.cyclePause--,u(ft,!0)});if(v(p)===!1)return!1;ht=!1,c.requeueAttempts=c.requeueAttempts||0,o.each(function(){var i=n(this);this.cycleH=p.fit&&p.height?p.height:i.height()||this.offsetHeight||this.height||i.attr("height")||0,this.cycleW=p.fit&&p.width?p.width:i.width()||this.offsetWidth||this.width||i.attr("width")||0;if(i.is("img")){var f=n.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete,e=n.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete,r=n.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,u=this.cycleH==0&&this.cycleW==0&&!this.complete;if(f||e||r||u){if(l.s&&p.requeueOnImageNotLoaded&&++c.requeueAttempts<100)return t(c.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){n(l.s,l.c).cycle(c)},p.requeueTimeout),ht=!0,!1;t("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0});if(ht)return!1;p.cssBefore=p.cssBefore||{},p.cssAfter=p.cssAfter||{},p.cssFirst=p.cssFirst||{},p.animIn=p.animIn||{},p.animOut=p.animOut||{},o.not(":eq("+w+")").css(p.cssBefore),n(o[w]).css(p.cssFirst);if(p.timeout){p.timeout=parseInt(p.timeout,10),p.speed.constructor==String&&(p.speed=n.fx.speeds[p.speed]||parseInt(p.speed,10)),p.sync||(p.speed=p.speed/2),at=p.fx=="none"?0:p.fx=="shuffle"?500:250;while(p.timeout-p.speed<at)p.timeout+=p.speed}p.easing&&(p.easeIn=p.easeOut=p.easing),p.speedIn||(p.speedIn=p.speed),p.speedOut||(p.speedOut=p.speed),p.slideCount=h.length,p.currSlide=p.lastSlide=w,p.random?(++p.randomIndex==h.length&&(p.randomIndex=0),p.nextSlide=p.randomMap[p.randomIndex]):p.nextSlide=p.backwards?p.startingSlide==0?h.length-1:p.startingSlide-1:p.startingSlide>=h.length-1?0:p.startingSlide+1;if(!p.multiFx){ot=n.fn.cycle.transitions[p.fx];if(n.isFunction(ot))ot(i,o,p);else if(p.fx!="custom"&&!p.multiFx)return t("unknown transition: "+p.fx,"; slideshow terminating"),!1}return k=o[w],p.skipInitializationCallbacks||(p.before.length&&p.before[0].apply(k,[k,k,p,!0]),p.after.length&&p.after[0].apply(k,[k,k,p,!0])),p.next&&n(p.next).bind(p.prevNextEvent,function(){return f(p,1)}),p.prev&&n(p.prev).bind(p.prevNextEvent,function(){return f(p,0)}),(p.pager||p.pagerAnchorBuilder)&&a(h,p),b(p,h),p}function y(t){t.original={before:[],after:[]},t.original.cssBefore=n.extend({},t.cssBefore),t.original.cssAfter=n.extend({},t.cssAfter),t.original.animIn=n.extend({},t.animIn),t.original.animOut=n.extend({},t.animOut),n.each(t.before,function(){t.original.before.push(this)}),n.each(t.after,function(){t.original.after.push(this)})}function v(r){var u,e,f=n.fn.cycle.transitions,o,h,s;if(r.fx.indexOf(",")>0){for(r.multiFx=!0,r.fxs=r.fx.replace(/\s*/g,"").split(","),u=0;u<r.fxs.length;u++)o=r.fxs[u],e=f[o],e&&f.hasOwnProperty(o)&&n.isFunction(e)||(t("discarding unknown transition: ",o),r.fxs.splice(u,1),u--);if(!r.fxs.length)return t("No valid transitions named; slideshow terminating."),!1}else if(r.fx=="all"){r.multiFx=!0,r.fxs=[];for(p in f)e=f[p],f.hasOwnProperty(p)&&n.isFunction(e)&&r.fxs.push(p)}if(r.multiFx&&r.randomizeEffects){for(h=Math.floor(Math.random()*20)+30,u=0;u<h;u++)s=Math.floor(Math.random()*r.fxs.length),r.fxs.push(r.fxs.splice(s,1)[0]);i("randomized fx sequence: ",r.fxs)}return!0}function b(t,i){t.addSlide=function(r,u){var f=n(r),o=f[0];t.autostopCount||t.countdown++,i[u?"unshift":"push"](o),t.els&&t.els[u?"unshift":"push"](o),t.slideCount=i.length,f.css("position","absolute"),f[u?"prependTo":"appendTo"](t.$cont),u&&(t.currSlide++,t.nextSlide++),n.support.opacity||!t.cleartype||t.cleartypeNoBg||e(f),t.fit&&t.width&&f.width(t.width),t.fit&&t.height&&t.height!="auto"&&f.height(t.height),o.cycleH=t.fit&&t.height?t.height:f.height(),o.cycleW=t.fit&&t.width?t.width:f.width(),f.css(t.cssBefore),(t.pager||t.pagerAnchorBuilder)&&n.fn.cycle.createPagerAnchor(i.length-1,o,n(t.pager),i,t);if(n.isFunction(t.onAddSlide))t.onAddSlide(f);else f.hide()}}function r(t,u,f,e){var y,v,p,c,a;f&&u.busy&&u.manualTrump&&(i("manualTrump in go(), stopping active transition"),n(t).stop(!0,!0),u.busy=0);if(u.busy){i("transition active, ignoring new tx request");return}var l=u.$cont[0],h=t[u.currSlide],s=t[u.nextSlide];if(l.cycleStop!=u.stopCount||l.cycleTimeout===0&&!f)return;if(!f&&!l.cyclePause&&!u.bounce&&(u.autostop&&--u.countdown<=0||u.nowrap&&!u.random&&u.nextSlide<u.currSlide)){u.end&&u.end(u);return}y=!1,(f||!l.cyclePause)&&u.nextSlide!=u.currSlide&&(y=!0,v=u.fx,h.cycleH=h.cycleH||n(h).height(),h.cycleW=h.cycleW||n(h).width(),s.cycleH=s.cycleH||n(s).height(),s.cycleW=s.cycleW||n(s).width(),u.multiFx&&(e&&(u.lastFx==undefined||++u.lastFx>=u.fxs.length)?u.lastFx=0:!e&&(u.lastFx==undefined||--u.lastFx<0)&&(u.lastFx=u.fxs.length-1),v=u.fxs[u.lastFx]),u.oneTimeFx&&(v=u.oneTimeFx,u.oneTimeFx=null),n.fn.cycle.resetState(u,v),u.before.length&&n.each(u.before,function(n,t){if(l.cycleStop!=u.stopCount)return;t.apply(s,[h,s,u,e])}),p=function(){u.busy=0,n.each(u.after,function(n,t){if(l.cycleStop!=u.stopCount)return;t.apply(s,[h,s,u,e])})},i("tx firing("+v+"); currSlide: "+u.currSlide+"; nextSlide: "+u.nextSlide),u.busy=1,u.fxFn?u.fxFn(h,s,u,p,e,f&&u.fastOnEvent):n.isFunction(n.fn.cycle[u.fx])?n.fn.cycle[u.fx](h,s,u,p,e,f&&u.fastOnEvent):n.fn.cycle.custom(h,s,u,p,e,f&&u.fastOnEvent)),(y||u.nextSlide==u.currSlide)&&(u.lastSlide=u.currSlide,u.random?(u.currSlide=u.nextSlide,++u.randomIndex==t.length&&(u.randomIndex=0),u.nextSlide=u.randomMap[u.randomIndex],u.nextSlide==u.currSlide&&(u.nextSlide=u.currSlide==u.slideCount-1?0:u.currSlide+1)):u.backwards?(c=u.nextSlide-1<0,c&&u.bounce?(u.backwards=!u.backwards,u.nextSlide=1,u.currSlide=0):(u.nextSlide=c?t.length-1:u.nextSlide-1,u.currSlide=c?0:u.nextSlide+1)):(c=u.nextSlide+1==t.length,c&&u.bounce?(u.backwards=!u.backwards,u.nextSlide=t.length-2,u.currSlide=t.length-1):(u.nextSlide=c?0:u.nextSlide+1,u.currSlide=c?t.length-1:u.nextSlide-1))),y&&u.pager&&u.updateActivePagerLink(u.pager,u.currSlide,u.activePagerClass),a=0,u.timeout&&!u.continuous?a=o(t[u.currSlide],t[u.nextSlide],u,e):u.continuous&&l.cyclePause&&(a=10),a>0&&(l.cycleTimeout=setTimeout(function(){r(t,u,0,!u.backwards)},a))}function o(n,t,r,u){if(r.timeoutFn){var f=r.timeoutFn.call(n,n,t,r,u);while(r.fx!="none"&&f-r.speed<250)f+=r.speed;i("calculated timeout: "+f+"; speed: "+r.speed);if(f!==!1)return f}return r.timeout}function f(t,i){var e=i?1:-1,u=t.elements,o=t.$cont[0],s=o.cycleTimeout,f;s&&(clearTimeout(s),o.cycleTimeout=0);if(t.random&&e<0)t.randomIndex--,--t.randomIndex==-2?t.randomIndex=u.length-2:t.randomIndex==-1&&(t.randomIndex=u.length-1),t.nextSlide=t.randomMap[t.randomIndex];else if(t.random)t.nextSlide=t.randomMap[t.randomIndex];else{t.nextSlide=t.currSlide+e;if(t.nextSlide<0){if(t.nowrap)return!1;t.nextSlide=u.length-1}else if(t.nextSlide>=u.length){if(t.nowrap)return!1;t.nextSlide=0}}return f=t.onPrevNextEvent||t.prevNextClick,n.isFunction(f)&&f(e>0,t.nextSlide,u[t.nextSlide]),r(u,t,1,i),!1}function a(t,i){var r=n(i.pager);n.each(t,function(u,f){n.fn.cycle.createPagerAnchor(u,f,r,t,i)}),i.updateActivePagerLink(i.pager,i.startingSlide,i.activePagerClass)}function e(t){function r(n){return n=parseInt(n,10).toString(16),n.length<2?"0"+n:n}function u(t){for(var i,u;t&&t.nodeName.toLowerCase()!="html";t=t.parentNode){i=n.css(t,"background-color");if(i&&i.indexOf("rgb")>=0)return u=i.match(/\d+/g),"#"+r(u[0])+r(u[1])+r(u[2]);if(i&&i!="transparent")return i}return"#ffffff"}i("applying clearType background-color hack"),t.each(function(){n(this).css("background-color",u(this))})}var h="2.9995";n.support==undefined&&(n.support={opacity:!n.browser.msie}),n.expr[":"].paused=function(n){return n.cyclePause},n.fn.cycle=function(u,f){var e={s:this.selector,c:this.context};return this.length===0&&u!="stop"?!n.isReady&&e.s?(t("DOM not ready, queuing slideshow"),n(function(){n(e.s,e.c).cycle(u,f)}),this):(t("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this):this.each(function(){var a=c(this,u,f),h;if(a===!1)return;a.updateActivePagerLink=a.updateActivePagerLink||n.fn.cycle.updateActivePagerLink,this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=this.cyclePause=0;var p=n(this),y=a.slideExpr?n(a.slideExpr,this):p.children(),v=y.get(),s=l(p,y,v,a,e);if(s===!1)return;if(v.length<2){t("terminating; too few slides: "+v.length);return}h=s.continuous?10:o(v[s.currSlide],v[s.nextSlide],s,!s.backwards),h&&(h+=s.delay||0,h<10&&(h=10),i("first timeout: "+h),this.cycleTimeout=setTimeout(function(){r(v,s,0,!a.backwards)},h))})},n.fn.cycle.resetState=function(t,i){i=i||t.fx,t.before=[],t.after=[],t.cssBefore=n.extend({},t.original.cssBefore),t.cssAfter=n.extend({},t.original.cssAfter),t.animIn=n.extend({},t.original.animIn),t.animOut=n.extend({},t.original.animOut),t.fxFn=null,n.each(t.original.before,function(){t.before.push(this)}),n.each(t.original.after,function(){t.after.push(this)});var r=n.fn.cycle.transitions[i];n.isFunction(r)&&r(t.$cont,n(t.elements),t)},n.fn.cycle.updateActivePagerLink=function(t,i,r){n(t).each(function(){n(this).children().removeClass(r).eq(i).addClass(r)})},n.fn.cycle.next=function(n){f(n,1)},n.fn.cycle.prev=function(n){f(n,0)},n.fn.cycle.createPagerAnchor=function(t,f,e,o,s){var l,h,v,y,c,a;n.isFunction(s.pagerAnchorBuilder)?(l=s.pagerAnchorBuilder(t,f),i("pagerAnchorBuilder("+t+", el) returned: "+l)):l='<a href="#">'+(t+1)+"</a>";if(!l)return;h=n(l),h.parents("body").length===0&&(v=[],e.length>1?(e.each(function(){var t=h.clone(!0);n(this).append(t),v.push(t[0])}),h=n(v)):h.appendTo(e)),s.pagerAnchors=s.pagerAnchors||[],s.pagerAnchors.push(h),y=function(i){var e,f,u;i.preventDefault(),s.nextSlide=t,e=s.$cont[0],f=e.cycleTimeout,f&&(clearTimeout(f),e.cycleTimeout=0),u=s.onPagerEvent||s.pagerClick,n.isFunction(u)&&u(s.nextSlide,o[s.nextSlide]),r(o,s,1,s.currSlide<t)},/mouseenter|mouseover/i.test(s.pagerEvent)?h.hover(y,function(){}):h.bind(s.pagerEvent,y),/^click/.test(s.pagerEvent)||s.allowPagerClickBubble||h.bind("click.cycle",function(){return!1}),c=s.$cont[0],a=!1,s.pauseOnPagerHover&&h.hover(function(){a=!0,c.cyclePause++,u(c,!0,!0)},function(){a&&c.cyclePause--,u(c,!0,!0)})},n.fn.cycle.hopsFromLast=function(n,t){var u,i=n.lastSlide,r=n.currSlide;return u=t?r>i?r-i:n.slideCount-i:r<i?i-r:i+n.slideCount-r},n.fn.cycle.commonReset=function(t,i,r,u,f,e){n(r.elements).not(t).hide(),typeof r.cssBefore.opacity=="undefined"&&(r.cssBefore.opacity=1),r.cssBefore.display="block",r.slideResize&&u!==!1&&i.cycleW>0&&(r.cssBefore.width=i.cycleW),r.slideResize&&f!==!1&&i.cycleH>0&&(r.cssBefore.height=i.cycleH),r.cssAfter=r.cssAfter||{},r.cssAfter.display="none",n(t).css("zIndex",r.slideCount+(e===!0?1:0)),n(i).css("zIndex",r.slideCount+(e===!0?0:1))},n.fn.cycle.custom=function(t,i,r,u,f,e){var l=n(t),a=n(i),o=r.speedIn,s=r.speedOut,v=r.easeIn,c=r.easeOut,h;a.css(r.cssBefore),e&&(o=typeof e=="number"?s=e:s=1,v=c=null),h=function(){a.animate(r.animIn,o,v,function(){u()})},l.animate(r.animOut,s,c,function(){l.css(r.cssAfter),r.sync||h()}),r.sync&&h()},n.fn.cycle.transitions={fade:function(t,i,r){i.not(":eq("+r.currSlide+")").css("opacity",0),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.cssBefore.opacity=0}),r.animIn={opacity:1},r.animOut={opacity:0},r.cssBefore={top:0,left:0}}},n.fn.cycle.ver=function(){return h},n.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animOut:null,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!n.support.opacity,cleartypeNoBg:!1,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!0,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}})(jQuery);
/*!
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version:	 2.73
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function(n){n.fn.cycle.transitions.none=function(t,i,r){r.fxFn=function(t,i,r,u){n(i).show(),n(t).hide(),u()}},n.fn.cycle.transitions.fadeout=function(t,i,r){i.not(":eq("+r.currSlide+")").css({display:"block",opacity:1}),r.before.push(function(t,i,r,u,f,e){n(t).css("zIndex",r.slideCount+(!e==!0?1:0)),n(i).css("zIndex",r.slideCount+(!e==!0?0:1))}),r.animIn.opacity=1,r.animOut.opacity=0,r.cssBefore.opacity=1,r.cssBefore.display="block",r.cssAfter.zIndex=0},n.fn.cycle.transitions.scrollUp=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssBefore.top=u,r.cssBefore.left=0,r.cssFirst.top=0,r.animIn.top=0,r.animOut.top=-u},n.fn.cycle.transitions.scrollDown=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssFirst.top=0,r.cssBefore.top=-u,r.cssBefore.left=0,r.animIn.top=0,r.animOut.top=u},n.fn.cycle.transitions.scrollLeft=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0,r.cssBefore.left=u,r.cssBefore.top=0,r.animIn.left=0,r.animOut.left=0-u},n.fn.cycle.transitions.scrollRight=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0,r.cssBefore.left=-u,r.cssBefore.top=0,r.animIn.left=0,r.animOut.left=u},n.fn.cycle.transitions.scrollHorz=function(t,i,r){t.css("overflow","hidden").width(),r.before.push(function(t,i,r,u){r.rev&&(u=!u),n.fn.cycle.commonReset(t,i,r),r.cssBefore.left=u?i.cycleW-1:1-i.cycleW,r.animOut.left=u?-t.cycleW:t.cycleW}),r.cssFirst.left=0,r.cssBefore.top=0,r.animIn.left=0,r.animOut.top=0},n.fn.cycle.transitions.scrollVert=function(t,i,r){t.css("overflow","hidden"),r.before.push(function(t,i,r,u){r.rev&&(u=!u),n.fn.cycle.commonReset(t,i,r),r.cssBefore.top=u?1-i.cycleH:i.cycleH-1,r.animOut.top=u?t.cycleH:-t.cycleH}),r.cssFirst.top=0,r.cssBefore.left=0,r.animIn.top=0,r.animOut.left=0},n.fn.cycle.transitions.slideX=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide(),n.fn.cycle.commonReset(t,i,r,!1,!0),r.animIn.width=i.cycleW}),r.cssBefore.left=0,r.cssBefore.top=0,r.cssBefore.width=0,r.animIn.width="show",r.animOut.width=0},n.fn.cycle.transitions.slideY=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide(),n.fn.cycle.commonReset(t,i,r,!0,!1),r.animIn.height=i.cycleH}),r.cssBefore.left=0,r.cssBefore.top=0,r.cssBefore.height=0,r.animIn.height="show",r.animOut.height=0},n.fn.cycle.transitions.shuffle=function(t,i,r){var u,f=t.css("overflow","visible").width();for(i.css({left:0,top:0}),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0)}),r.speedAdjusted||(r.speed=r.speed/2,r.speedAdjusted=!0),r.random=0,r.shuffle=r.shuffle||{left:-f,top:15},r.els=[],u=0;u<i.length;u++)r.els.push(i[u]);for(u=0;u<r.currSlide;u++)r.els.push(r.els.shift());r.fxFn=function(t,i,r,u,f){var e,o;r.rev&&(f=!f),e=f?n(t):n(i),n(i).css(r.cssBefore),o=r.slideCount,e.animate(r.shuffle,r.speedIn,r.easeIn,function(){for(var l=n.fn.cycle.hopsFromLast(r,f),i,s,c,h=0;h<l;h++)f?r.els.push(r.els.shift()):r.els.unshift(r.els.pop());if(f)for(i=0,s=r.els.length;i<s;i++)n(r.els[i]).css("z-index",s-i+o);else c=n(t).css("z-index"),e.css("z-index",parseInt(c,10)+1+o);e.animate({left:0,top:0},r.speedOut,r.easeOut,function(){n(f?this:t).hide(),u&&u()})})},n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0})},n.fn.cycle.transitions.turnUp=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1),r.cssBefore.top=i.cycleH,r.animIn.height=i.cycleH,r.animOut.width=i.cycleW}),r.cssFirst.top=0,r.cssBefore.left=0,r.cssBefore.height=0,r.animIn.top=0,r.animOut.height=0},n.fn.cycle.transitions.turnDown=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1),r.animIn.height=i.cycleH,r.animOut.top=t.cycleH}),r.cssFirst.top=0,r.cssBefore.left=0,r.cssBefore.top=0,r.cssBefore.height=0,r.animOut.height=0},n.fn.cycle.transitions.turnLeft=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0),r.cssBefore.left=i.cycleW,r.animIn.width=i.cycleW}),r.cssBefore.top=0,r.cssBefore.width=0,r.animIn.left=0,r.animOut.width=0},n.fn.cycle.transitions.turnRight=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0),r.animIn.width=i.cycleW,r.animOut.left=t.cycleW}),n.extend(r.cssBefore,{top:0,left:0,width:0}),r.animIn.left=0,r.animOut.width=0},n.fn.cycle.transitions.zoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1,!0),r.cssBefore.top=i.cycleH/2,r.cssBefore.left=i.cycleW/2,n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH}),n.extend(r.animOut,{width:0,height:0,top:t.cycleH/2,left:t.cycleW/2})}),r.cssFirst.top=0,r.cssFirst.left=0,r.cssBefore.width=0,r.cssBefore.height=0},n.fn.cycle.transitions.fadeZoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1),r.cssBefore.left=i.cycleW/2,r.cssBefore.top=i.cycleH/2,n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH})}),r.cssBefore.width=0,r.cssBefore.height=0,r.animOut.opacity=0},n.fn.cycle.transitions.blindX=function(t,i,r){var u=t.css("overflow","hidden").width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.animIn.width=i.cycleW,r.animOut.left=t.cycleW}),r.cssBefore.left=u,r.cssBefore.top=0,r.animIn.left=0,r.animOut.left=u},n.fn.cycle.transitions.blindY=function(t,i,r){var u=t.css("overflow","hidden").height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.animIn.height=i.cycleH,r.animOut.top=t.cycleH}),r.cssBefore.top=u,r.cssBefore.left=0,r.animIn.top=0,r.animOut.top=u},n.fn.cycle.transitions.blindZ=function(t,i,r){var f=t.css("overflow","hidden").height(),u=t.width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.animIn.height=i.cycleH,r.animOut.top=t.cycleH}),r.cssBefore.top=f,r.cssBefore.left=u,r.animIn.top=0,r.animIn.left=0,r.animOut.top=f,r.animOut.left=u},n.fn.cycle.transitions.growX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0),r.cssBefore.left=this.cycleW/2,r.animIn.left=0,r.animIn.width=this.cycleW,r.animOut.left=0}),r.cssBefore.top=0,r.cssBefore.width=0},n.fn.cycle.transitions.growY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1),r.cssBefore.top=this.cycleH/2,r.animIn.top=0,r.animIn.height=this.cycleH,r.animOut.top=0}),r.cssBefore.height=0,r.cssBefore.left=0},n.fn.cycle.transitions.curtainX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0,!0),r.cssBefore.left=i.cycleW/2,r.animIn.left=0,r.animIn.width=this.cycleW,r.animOut.left=t.cycleW/2,r.animOut.width=0}),r.cssBefore.top=0,r.cssBefore.width=0},n.fn.cycle.transitions.curtainY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1,!0),r.cssBefore.top=i.cycleH/2,r.animIn.top=0,r.animIn.height=i.cycleH,r.animOut.top=t.cycleH/2,r.animOut.height=0}),r.cssBefore.height=0,r.cssBefore.left=0},n.fn.cycle.transitions.cover=function(t,i,r){var u=r.direction||"left",e=t.css("overflow","hidden").width(),f=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),u=="right"?r.cssBefore.left=-e:u=="up"?r.cssBefore.top=f:u=="down"?r.cssBefore.top=-f:r.cssBefore.left=e}),r.animIn.left=0,r.animIn.top=0,r.cssBefore.top=0,r.cssBefore.left=0},n.fn.cycle.transitions.uncover=function(t,i,r){var u=r.direction||"left",e=t.css("overflow","hidden").width(),f=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0),u=="right"?r.animOut.left=e:u=="up"?r.animOut.top=-f:u=="down"?r.animOut.top=f:r.animOut.left=-e}),r.animIn.left=0,r.animIn.top=0,r.cssBefore.top=0,r.cssBefore.left=0},n.fn.cycle.transitions.toss=function(t,i,r){var f=t.css("overflow","visible").width(),u=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0),r.animOut.left||r.animOut.top?r.animOut.opacity=0:n.extend(r.animOut,{left:f*2,top:-u/2,opacity:0})}),r.cssBefore.left=0,r.cssBefore.top=0,r.animIn.left=0},n.fn.cycle.transitions.wipe=function(t,i,r){var f=t.css("overflow","hidden").width(),u=t.height(),e,l,a;r.cssBefore=r.cssBefore||{},r.clip&&(/l2r/.test(r.clip)?e="rect(0px 0px "+u+"px 0px)":/r2l/.test(r.clip)?e="rect(0px "+f+"px "+u+"px "+f+"px)":/t2b/.test(r.clip)?e="rect(0px "+f+"px 0px 0px)":/b2t/.test(r.clip)?e="rect("+u+"px "+f+"px "+u+"px 0px)":/zoom/.test(r.clip)&&(l=parseInt(u/2,10),a=parseInt(f/2,10),e="rect("+l+"px "+a+"px "+l+"px "+a+"px)")),r.cssBefore.clip=r.cssBefore.clip||e||"rect(0px 0px 0px 0px)";var o=r.cssBefore.clip.match(/(\d+)/g),v=parseInt(o[0],10),s=parseInt(o[1],10),c=parseInt(o[2],10),h=parseInt(o[3],10);r.before.push(function(t,i,r){var l,a,e,o;if(t==i)return;l=n(t),a=n(i),n.fn.cycle.commonReset(t,i,r,!0,!0,!1),r.cssAfter.display="block",e=1,o=parseInt(r.speedIn/13,10)-1,(function y(){var i=v?v-parseInt(e*(v/o),10):0,r=h?h-parseInt(e*(h/o),10):0,n=c<u?c+parseInt(e*((u-c)/o||1),10):u,t=s<f?s+parseInt(e*((f-s)/o||1),10):f;a.css({clip:"rect("+i+"px "+t+"px "+n+"px "+r+"px)"}),e++<=o?setTimeout(y,13):l.css("display","none")})()}),n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0}),r.animIn={left:0},r.animOut={left:0}}})(jQuery),(function(n){n.fn.jflickrfeed=function(t,i){var r,f,u;t=n.extend(!0,{flickrbase:"http://api.flickr.com/services/feeds/",feedapi:"photos_public.gne",limit:20,qstrings:{lang:"en-us",format:"json",jsoncallback:"?"},cleanDescription:!0,useTemplate:!0,itemTemplate:"",itemCallback:function(){}},t),r=t.flickrbase+t.feedapi+"?",f=!0;for(u in t.qstrings)f||(r+="&"),r+=u+"="+t.qstrings[u],f=!1;return n(this).each(function(){var f=n(this),u=this;n.getJSON(r,function(r){n.each(r.items,function(n,i){var o,s,r,e,h;if(n<t.limit){t.cleanDescription&&(o=/<p>(.*?)<\/p>/g,s=i.description,o.test(s)&&(i.description=s.match(o)[2],i.description!=undefined&&(i.description=i.description.replace("<p>","").replace("</p>","")))),i.image_s=i.media.m.replace("_m","_s"),i.image_t=i.media.m.replace("_m","_t"),i.image_m=i.media.m.replace("_m","_m"),i.image=i.media.m.replace("_m",""),i.image_b=i.media.m.replace("_m","_b"),delete i.media;if(t.useTemplate){r=t.itemTemplate;for(e in i)h=new RegExp("{{"+e+"}}","g"),r=r.replace(h,i[e]);f.append(r)}t.itemCallback.call(u,i)}}),n.isFunction(i)&&i.call(u,r)})})}})(jQuery),(function(n){var s,w,b,r,it,e,tt,h,g,nt,a=0,i={},c=[],l=0,t={},o=[],ft=null,p=new Image,lt=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,dt=/[^\.]\.(swf)\s*$/i,at,vt=1,k=0,y="",v,f,u=!1,d=n.extend(n("<div/>")[0],{prop:0}),pt=n.browser.msie&&n.browser.version<7&&!window.XMLHttpRequest,yt=function(){w.hide(),p.onerror=p.onload=null,ft&&ft.abort(),s.empty()},ct=function(){!1===i.onError(c,a,i)?(w.hide(),u=!1):(i.titleShow=!1,i.width="auto",i.height="auto",s.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),rt())},ut=function(){var r=c[a],t,o,h,l,v,f;yt(),i=n.extend({},n.fn.fancybox.defaults,typeof n(r).data("fancybox")=="undefined"?i:n(r).data("fancybox")),f=i.onStart(c,a,i);if(f===!1)u=!1;else{typeof f=="object"&&(i=n.extend(i,f)),h=i.title||(r.nodeName?n(r).attr("title"):r.title)||"",r.nodeName&&!i.orig&&(i.orig=n(r).children("img:first").length?n(r).children("img:first"):n(r)),h===""&&i.orig&&i.titleFromAlt&&(h=i.orig.attr("alt")),t=i.href||(r.nodeName?n(r).attr("href"):r.href)||null,(/^(?:javascript)/i.test(t)||t=="#")&&(t=null),i.type?(o=i.type,t||(t=i.content)):i.content?o="html":t&&(o=t.match(lt)?"image":t.match(dt)?"swf":n(r).hasClass("iframe")?"iframe":t.indexOf("#")===0?"inline":"ajax");if(o){o=="inline"&&(r=t.substr(t.indexOf("#")),o=n(r).length>0?"inline":"ajax"),i.type=o,i.href=t,i.title=h,i.autoDimensions&&(i.type=="html"||i.type=="inline"||i.type=="ajax"?(i.width="auto",i.height="auto"):i.autoDimensions=!1),i.modal&&(i.overlayShow=!0,i.hideOnOverlayClick=!1,i.hideOnContentClick=!1,i.enableEscapeButton=!1,i.showCloseButton=!1),i.padding=parseInt(i.padding,10),i.margin=parseInt(i.margin,10),s.css("padding",i.padding+i.margin),n(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){n(this).replaceWith(e.children())});switch(o){case"html":s.html(i.content),rt();break;case"inline":if(n(r).parent().is("#fancybox-content")===!0){u=!1;break}n('<div class="fancybox-inline-tmp" />').hide().insertBefore(n(r)).bind("fancybox-cleanup",function(){n(this).replaceWith(e.children())}).bind("fancybox-cancel",function(){n(this).replaceWith(s.children())}),n(r).appendTo(s),rt();break;case"image":u=!1,n.fancybox.showActivity(),p=new Image,p.onerror=function(){ct()},p.onload=function(){u=!0,p.onerror=p.onload=null,i.width=p.width,i.height=p.height,n("<img />").attr({id:"fancybox-img",src:p.src,alt:i.title}).appendTo(s),st()},p.src=t;break;case"swf":i.scrolling="no",l='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+i.width+'" height="'+i.height+'"><param name="movie" value="'+t+'"></param>',v="",n.each(i.swf,function(n,t){l+='<param name="'+n+'" value="'+t+'"></param>',v+=" "+n+'="'+t+'"'}),l+='<embed src="'+t+'" type="application/x-shockwave-flash" width="'+i.width+'" height="'+i.height+'"'+v+"></embed></object>",s.html(l),rt();break;case"ajax":u=!1,n.fancybox.showActivity(),i.ajax.win=i.ajax.success,ft=n.ajax(n.extend({},i.ajax,{url:t,data:i.ajax.data||{},error:function(n){n.status>0&&ct()},success:function(n,r,u){if((typeof u=="object"?u:ft).status==200){if(typeof i.ajax.win=="function"){f=i.ajax.win(t,n,r,u);if(f===!1){w.hide();return}(typeof f=="string"||typeof f=="object")&&(n=f)}s.html(n),rt()}}}));break;case"iframe":st()}}else ct()}},rt=function(){var r=i.width,t=i.height;r=r.toString().indexOf("%")>-1?parseInt((n(window).width()-i.margin*2)*parseFloat(r)/100,10)+"px":r=="auto"?"auto":r+"px",t=t.toString().indexOf("%")>-1?parseInt((n(window).height()-i.margin*2)*parseFloat(t)/100,10)+"px":t=="auto"?"auto":t+"px",s.wrapInner('<div style="width:'+r+";height:"+t+";overflow: "+(i.scrolling=="auto"?"auto":i.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>'),i.width=s.width(),i.height=s.height(),st()},st=function(){var p,rt;w.hide();if(r.is(":visible")&&!1===t.onCleanup(o,l,t))n.event.trigger("fancybox-cancel"),u=!1;else{u=!0,n(e.add(b)).unbind(),n(window).unbind("resize.fb scroll.fb"),n(document).unbind("keydown.fb"),r.is(":visible")&&t.titlePosition!=="outside"&&r.css("height",r.height()),o=c,l=a,t=i,t.overlayShow?(b.css({"background-color":t.overlayColor,opacity:t.overlayOpacity,cursor:t.hideOnOverlayClick?"pointer":"auto",height:n(document).height()}),b.is(":visible")||(pt&&n("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}),b.show())):b.hide(),f=kt(),y=t.title||"",k=0,h.empty().removeAttr("style").removeClass();if(t.titleShow!==!1){p=n.isFunction(t.titleFormat)?t.titleFormat(y,o,l,t):y&&y.length?t.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+y+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+t.titlePosition+'">'+y+"</div>":!1,y=p;if(!(!y||y==="")){h.addClass("fancybox-title-"+t.titlePosition).html(y).appendTo("body").show();switch(t.titlePosition){case"inside":h.css({width:f.width-t.padding*2,marginLeft:t.padding,marginRight:t.padding}),k=h.outerHeight(!0),h.appendTo(it),f.height+=k;break;case"over":h.css({marginLeft:t.padding,width:f.width-t.padding*2,bottom:t.padding}).appendTo(it);break;case"float":h.css("left",parseInt((h.width()-f.width-40)/2,10)*-1).appendTo(r);break;default:h.css({width:f.width-t.padding*2,paddingLeft:t.padding,paddingRight:t.padding}).appendTo(r)}}}h.hide(),r.is(":visible")?(n(tt.add(g).add(nt)).hide(),p=r.position(),v={top:p.top,left:p.left,width:r.width(),height:r.height()},rt=v.width==f.width&&v.height==f.height,e.fadeTo(t.changeFade,.3,function(){var r=function(){e.html(s.contents()).fadeTo(t.changeFade,1,ht)};n.event.trigger("fancybox-change"),e.empty().removeAttr("filter").css({"border-width":t.padding,width:f.width-t.padding*2,height:i.autoDimensions?"auto":f.height-k-t.padding*2}),rt?r():(d.prop=0,n(d).animate({prop:1},{duration:t.changeSpeed,easing:t.easingChange,step:et,complete:r}))})):(r.removeAttr("style"),e.css("border-width",t.padding),t.transitionIn=="elastic"?(v=wt(),e.html(s.contents()),r.show(),t.opacity&&(f.opacity=0),d.prop=0,n(d).animate({prop:1},{duration:t.speedIn,easing:t.easingIn,step:et,complete:ht})):(t.titlePosition=="inside"&&k>0&&h.show(),e.css({width:f.width-t.padding*2,height:i.autoDimensions?"auto":f.height-k-t.padding*2}).html(s.contents()),r.css(f).fadeIn(t.transitionIn=="none"?0:t.speedIn,ht)))}},gt=function(){(t.enableEscapeButton||t.enableKeyboardNav)&&n(document).bind("keydown.fb",function(i){i.keyCode==27&&t.enableEscapeButton?(i.preventDefault(),n.fancybox.close()):(i.keyCode==37||i.keyCode==39)&&t.enableKeyboardNav&&i.target.tagName!=="INPUT"&&i.target.tagName!=="TEXTAREA"&&i.target.tagName!=="SELECT"&&(i.preventDefault(),n.fancybox[i.keyCode==37?"prev":"next"]())}),t.showNavArrows?((t.cyclic&&o.length>1||l!==0)&&g.show(),(t.cyclic&&o.length>1||l!=o.length-1)&&nt.show()):(g.hide(),nt.hide())},ht=function(){n.support.opacity||(e.get(0).style.removeAttribute("filter"),r.get(0).style.removeAttribute("filter")),i.autoDimensions&&e.css("height","auto"),r.css("height","auto"),y&&y.length&&h.show(),t.showCloseButton&&tt.show(),gt(),t.hideOnContentClick&&e.bind("click",n.fancybox.close),t.hideOnOverlayClick&&b.bind("click",n.fancybox.close),n(window).bind("resize.fb",n.fancybox.resize),t.centerOnScroll&&n(window).bind("scroll.fb",n.fancybox.center),t.type=="iframe"&&n('<iframe id="fancybox-frame" name="fancybox-frame'+ +new Date+'" frameborder="0" hspace="0" '+(n.browser.msie?'allowtransparency="true""':"")+' scrolling="'+i.scrolling+'" src="'+t.href+'"></iframe>').appendTo(e),r.show(),u=!1,n.fancybox.center();t.onComplete(o,l,t);var f,s;o.length-1>l&&(f=o[l+1].href,typeof f!="undefined"&&f.match(lt)&&(s=new Image,s.src=f)),l>0&&(f=o[l-1].href,typeof f!="undefined"&&f.match(lt)&&(s=new Image,s.src=f))},et=function(n){var i={width:parseInt(v.width+(f.width-v.width)*n,10),height:parseInt(v.height+(f.height-v.height)*n,10),top:parseInt(v.top+(f.top-v.top)*n,10),left:parseInt(v.left+(f.left-v.left)*n,10)};typeof f.opacity!="undefined"&&(i.opacity=n<.5?.5:n),r.css(i),e.css({width:i.width-t.padding*2,height:i.height-k*n-t.padding*2})},ot=function(){return[n(window).width()-t.margin*2,n(window).height()-t.margin*2,n(document).scrollLeft()+t.margin,n(document).scrollTop()+t.margin]},kt=function(){var r=ot(),n={},f=t.autoScale,u=t.padding*2;return n.width=t.width.toString().indexOf("%")>-1?parseInt(r[0]*parseFloat(t.width)/100,10):t.width+u,n.height=t.height.toString().indexOf("%")>-1?parseInt(r[1]*parseFloat(t.height)/100,10):t.height+u,f&&(n.width>r[0]||n.height>r[1])&&(i.type=="image"||i.type=="swf"?(f=t.width/t.height,n.width>r[0]&&(n.width=r[0],n.height=parseInt((n.width-u)/f+u,10)),n.height>r[1]&&(n.height=r[1],n.width=parseInt((n.height-u)*f+u,10))):(n.width=Math.min(n.width,r[0]),n.height=Math.min(n.height,r[1]))),n.top=parseInt(Math.max(r[3]-20,r[3]+(r[1]-n.height-40)*.5),10),n.left=parseInt(Math.max(r[2]-20,r[2]+(r[0]-n.width-40)*.5),10),n},wt=function(){var u=i.orig?n(i.orig):!1,r={};return u&&u.length?(r=u.offset(),r.top+=parseInt(u.css("paddingTop"),10)||0,r.left+=parseInt(u.css("paddingLeft"),10)||0,r.top+=parseInt(u.css("border-top-width"),10)||0,r.left+=parseInt(u.css("border-left-width"),10)||0,r.width=u.width(),r.height=u.height(),r={width:r.width+t.padding*2,height:r.height+t.padding*2,top:r.top-t.padding-20,left:r.left-t.padding-20}):(u=ot(),r={width:t.padding*2,height:t.padding*2,top:parseInt(u[3]+u[1]*.5,10),left:parseInt(u[2]+u[0]*.5,10)}),r},bt=function(){w.is(":visible")?(n("div",w).css("top",vt*-40+"px"),vt=(vt+1)%12):clearInterval(at)};n.fn.fancybox=function(t){return n(this).length?(n(this).data("fancybox",n.extend({},t,n.metadata?n(this).metadata():{})).unbind("click.fb").bind("click.fb",function(t){t.preventDefault(),u||(u=!0,n(this).blur(),c=[],a=0,t=n(this).attr("rel")||"",t&&t!=""&&t!=="nofollow"?(c=n("a[rel="+t+"], area[rel="+t+"]"),a=c.index(this)):c.push(this),ut())}),this):this},n.fancybox=function(t,i){var f,r,e;if(!u){u=!0,f=typeof i!="undefined"?i:{},c=[],a=parseInt(f.index,10)||0;if(n.isArray(t)){for(r=0,e=t.length;r<e;r++)typeof t[r]=="object"?n(t[r]).data("fancybox",n.extend({},f,t[r])):t[r]=n({}).data("fancybox",n.extend({content:t[r]},f));c=jQuery.merge(c,t)}else typeof t=="object"?n(t).data("fancybox",n.extend({},f,t)):t=n({}).data("fancybox",n.extend({content:t},f)),c.push(t);(a>c.length||a<0)&&(a=0),ut()}},n.fancybox.showActivity=function(){clearInterval(at),w.show(),at=setInterval(bt,66)},n.fancybox.hideActivity=function(){w.hide()},n.fancybox.next=function(){return n.fancybox.pos(l+1)},n.fancybox.prev=function(){return n.fancybox.pos(l-1)},n.fancybox.pos=function(n){u||(n=parseInt(n),c=o,n>-1&&n<o.length?(a=n,ut()):t.cyclic&&o.length>1&&(a=n>=o.length?0:o.length-1,ut()))},n.fancybox.cancel=function(){if(!u){u=!0,n.event.trigger("fancybox-cancel"),yt();i.onCancel(c,a,i);u=!1}},n.fancybox.close=function(){function c(){b.fadeOut("fast"),h.empty().hide(),r.hide(),n.event.trigger("fancybox-cleanup"),e.empty();t.onClosed(o,l,t);o=i=[],l=a=0,t=i={},u=!1}if(!(u||r.is(":hidden"))){u=!0;if(t&&!1===t.onCleanup(o,l,t))u=!1;else{yt(),n(tt.add(g).add(nt)).hide(),n(e.add(b)).unbind(),n(window).unbind("resize.fb scroll.fb"),n(document).unbind("keydown.fb"),e.find("iframe").attr("src",pt&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank"),t.titlePosition!=="inside"&&h.empty(),r.stop();if(t.transitionOut=="elastic"){v=wt();var s=r.position();f={top:s.top,left:s.left,width:r.width(),height:r.height()},t.opacity&&(f.opacity=1),h.empty().hide(),d.prop=1,n(d).animate({prop:0},{duration:t.speedOut,easing:t.easingOut,step:et,complete:c})}else r.fadeOut(t.transitionOut=="none"?0:t.speedOut,c)}}},n.fancybox.resize=function(){b.is(":visible")&&b.css("height",n(document).height()),n.fancybox.center(!0)},n.fancybox.center=function(n){var i,f;u||(f=n===!0?1:0,i=ot(),!f&&(r.width()>i[0]||r.height()>i[1])||r.stop().animate({top:parseInt(Math.max(i[3]-20,i[3]+(i[1]-e.height()-40)*.5-t.padding)),left:parseInt(Math.max(i[2]-20,i[2]+(i[0]-e.width()-40)*.5-t.padding))},typeof n=="number"?n:200))},n.fancybox.init=function(){n("#fancybox-wrap").length||(n("body").append(s=n('<div id="fancybox-tmp"></div>'),w=n('<div id="fancybox-loading"><div></div></div>'),b=n('<div id="fancybox-overlay"></div>'),r=n('<div id="fancybox-wrap"></div>')),it=n('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(r),it.append(e=n('<div id="fancybox-content"></div>'),tt=n('<a id="fancybox-close"></a>'),h=n('<div id="fancybox-title"></div>'),g=n('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),nt=n('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),tt.click(n.fancybox.close),w.click(n.fancybox.cancel),g.click(function(t){t.preventDefault(),n.fancybox.prev()}),nt.click(function(t){t.preventDefault(),n.fancybox.next()}),n.fn.mousewheel&&r.bind("mousewheel.fb",function(t,i){u?t.preventDefault():(n(t.target).get(0).clientHeight==0||n(t.target).get(0).scrollHeight===n(t.target).get(0).clientHeight)&&(t.preventDefault(),n.fancybox[i>0?"prev":"next"]())}),n.support.opacity||r.addClass("fancybox-ie"),pt&&(w.addClass("fancybox-ie6"),r.addClass("fancybox-ie6"),n('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(it)))},n.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},n(document).ready(function(){n.fancybox.init()})})(jQuery),$(document).ready(function(){var t=function(){var n,t;n=$("body").hasClass("bjorkliden")?"bjorkliden.fjallby":"riksgransen",t="https://graph.facebook.com/"+n+"&callback=?",$(document).ready(function(){$.ajax({url:t,dataType:"json",success:function(t){$("#fbLikes").text(t.likes),n=="riksgransen"&&Cufon.replace("#fbLikes",{fontFamily:"DINSchrift",hover:!0})}})})}(),n;$("#bigPush").length>0&&(n=$("#bigPush").find(".push").index(),n>0&&$("#bigPush .pushContent").after('<ul class="pushNav"></ul>'),$("#bigPush .pushContent").cycle({fx:"fade",timeout:5e3,speed:1e3,cleartype:!1,pager:"#bigPush .pushNav",activePagerClass:"active",pagerAnchorBuilder:function(){return'<li><a href="#"></a></li>'}})),$(function(){window.PIE&&$(".minipush, .pushOffer, .signupBox, #article").each(function(){PIE.attach(this)})}),$(".tabContent").hide(),$(".tabContent").parent().find(".tabContent:first").show(),$(".tabs li:first-child a").each(function(){$(this).addClass("active").show()}),$(".tabs li a").click(function(){$(this).parents(".tabs").find("a").removeClass("active"),$(this).addClass("active"),$(this).parents("div").find(".tabContent").hide();var n=$(this).attr("href");return $(n).fadeIn(),!1}),$(".topbar a.cufon, .zoom").fancybox({transitionIn:"fade",transitionOut:"fade",speedIn:600,speedOut:200,overlayColor:"#fff"}),$(".fancyIframe").fancybox({type:"inline",height:280,centerOnScroll:!0,transitionIn:"fade",transitionOut:"fade",speedIn:600,speedOut:200,overlayColor:"#fff"}),$(".fancyWebCams").fancybox({type:"inline",width:704,height:576,centerOnScroll:!0,transitionIn:"fade",transitionOut:"fade",speedIn:600,speedOut:200,overlayColor:"#fff"}),$(".fancyIframe2").fancybox({type:"iframe",width:800,height:600,scrolling:"no",centerOnScroll:!1,transitionIn:"fade",transitionOut:"fade",speedIn:600,speedOut:200,overlayColor:"#fff"}),$.browser.msie||$(".destination a").fadeTo(0,.5).hover(function(){$(this).fadeTo("fast",1)},function(){$(this).fadeTo("slow",.5)}),$("#flickrSocial").prepend('<ul class="flickrContent"></ul>'),$(".flickrContent").jflickrfeed({feedapi:"groups_pool.gne",limit:9,qstrings:{id:"1091701@N25"},itemTemplate:'<li><a href="{{image_b}}" class="flickrBox" rel="flickrGroup"><img src="{{image_s}}" alt="{{title}}" /></a></li>'},function(){$(".flickrBox").fancybox({transitionIn:"fade",transitionOut:"fade",speedIn:600,speedOut:200,overlayColor:"#fff",centerOnScroll:!0})})});var nav=$("#headnav");nav.find("li").each(function(){$(this).find("ul").length>0&&($("<span>").text("^").appendTo($(this).children(":first")),$(this).mouseenter(function(){$(this).find("ul").stop(!0,!0).slideDown()}),$(this).mouseleave(function(){$(this).find("ul").stop(!0,!0).slideUp()}))})
