function loadContacts(){$.ajax({url:"json/contacts.json",dataType:"json",success:function(n){alert(n)}})}$(document).ready(function(){$("#slide-show").cycle({fx:"fade",timeout:3e3})}),function(n){"use strict";function t(r,u,f,e){function a(n){n.timeout&&(s.cycleTimeout=setTimeout(function(){t(r,n,0,!n.rev)},n.timeout))}var l,c;if(!u.busy){var s=r[0].parentNode,h=r[u.currSlide],o=r[u.nextSlide];(s.cycleTimeout!==0||f)&&(f||!s.cyclePause?(u.before.length&&n.each(u.before,function(n,t){t.apply(o,[h,o,u,e])}),l=function(){i&&this.style.removeAttribute("filter"),n.each(u.after,function(n,t){t.apply(o,[h,o,u,e])}),a(u)},u.nextSlide!=u.currSlide&&(u.busy=1,n.fn.cycle.custom(h,o,u,l)),c=u.nextSlide+1==r.length,u.nextSlide=c?0:u.nextSlide+1,u.currSlide=c?r.length-1:u.nextSlide-1):a(u))}}function r(n,i,r){var u=n[0].parentNode,f=u.cycleTimeout;return f&&(clearTimeout(f),u.cycleTimeout=0),i.nextSlide=i.currSlide+r,i.nextSlide<0?i.nextSlide=n.length-1:i.nextSlide>=n.length&&(i.nextSlide=0),t(n,i,1,r>=0),!1}var u="Lite-1.6",i=/MSIE/.test(navigator.userAgent);n.fn.cycle=function(u){return this.each(function(){var f,a,l,c,v,h;u=u||{},this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=0,this.cyclePause=0;var e=n(this),s=u.slideExpr?n(u.slideExpr,this):e.children(),o=s.get();if(o.length<2){window.console&&console.log("terminating; too few slides: "+o.length);return}if(f=n.extend({},n.fn.cycle.defaults,u||{},n.metadata?e.metadata():n.meta?e.data():{}),a=n.isFunction(e.data)?e.data(f.metaAttr):null,a&&(f=n.extend(f,a)),f.before=f.before?[f.before]:[],f.after=f.after?[f.after]:[],f.after.unshift(function(){f.busy=0}),l=this.className,f.width=parseInt((l.match(/w:(\d+)/)||[])[1],10)||f.width,f.height=parseInt((l.match(/h:(\d+)/)||[])[1],10)||f.height,f.timeout=parseInt((l.match(/t:(\d+)/)||[])[1],10)||f.timeout,e.css("position")=="static"&&e.css("position","relative"),f.width&&e.width(f.width),f.height&&f.height!="auto"&&e.height(f.height),c=0,s.css({position:"absolute",top:0}).each(function(t){n(this).css("z-index",o.length-t)}),n(o[c]).css("opacity",1).show(),i&&o[c].style.removeAttribute("filter"),f.fit&&f.width&&s.width(f.width),f.fit&&f.height&&f.height!="auto"&&s.height(f.height),f.pause&&e.hover(function(){this.cyclePause=1},function(){this.cyclePause=0}),v=n.fn.cycle.transitions[f.fx],v&&v(e,s,f),s.each(function(){var t=n(this);this.cycleH=f.fit&&f.height?f.height:t.height(),this.cycleW=f.fit&&f.width?f.width:t.width()}),f.cssFirst&&n(s[c]).css(f.cssFirst),f.timeout)for(f.speed.constructor==String&&(f.speed={slow:600,fast:200}[f.speed]||400),f.sync||(f.speed=f.speed/2);f.timeout-f.speed<250;)f.timeout+=f.speed;f.speedIn=f.speed,f.speedOut=f.speed,f.slideCount=o.length,f.currSlide=c,f.nextSlide=1,h=s[c],f.before.length&&f.before[0].apply(h,[h,h,f,!0]),f.after.length>1&&f.after[1].apply(h,[h,h,f,!0]),f.click&&!f.next&&(f.next=f.click),f.next&&n(f.next).unbind("click.cycle").bind("click.cycle",function(){return r(o,f,f.rev?-1:1)}),f.prev&&n(f.prev).unbind("click.cycle").bind("click.cycle",function(){return r(o,f,f.rev?1:-1)}),f.timeout&&(this.cycleTimeout=setTimeout(function(){t(o,f,0,!f.rev)},f.timeout+(f.delay||0)))})},n.fn.cycle.custom=function(t,i,r,u){var e=n(t),o=n(i),f;o.css(r.cssBefore),f=function(){o.animate(r.animIn,r.speedIn,r.easeIn,u)},e.animate(r.animOut,r.speedOut,r.easeOut,function(){e.css(r.cssAfter),r.sync||f()}),r.sync&&f()},n.fn.cycle.transitions={fade:function(n,t,i){t.not(":eq(0)").hide(),i.cssBefore={opacity:0,display:"block"},i.cssAfter={display:"none"},i.animOut={opacity:0},i.animIn={opacity:1}},fadeout:function(t,i,r){r.before.push(function(t,i,r,u){n(t).css("zIndex",r.slideCount+(u===!0?1:0)),n(i).css("zIndex",r.slideCount+(u===!0?0:1))}),i.not(":eq(0)").hide(),r.cssBefore={opacity:1,display:"block",zIndex:1},r.cssAfter={display:"none",zIndex:0},r.animOut={opacity:0},r.animIn={opacity:1}}},n.fn.cycle.ver=function(){return u},n.fn.cycle.defaults={animIn:{},animOut:{},fx:"fade",after:null,before:null,cssBefore:{},cssAfter:{},delay:0,fit:0,height:"auto",metaAttr:"cycle",next:null,pause:!1,prev:null,speed:1e3,slideExpr:null,sync:!0,timeout:4e3}}(jQuery)