var viewer;var slideshow;Event.onDOMReady(function(){var d=$$("a.herolink");viewer=new AC.ViewMaster.Viewer($$("div#herocontent div"),"herocontent","herolink",{silentTriggers:true}),galleryCount=5,activeId=1;
viewer.setDelegate({willShow:function(h,i,g){var k=g.id.match(/\d+/)[0];if(k<=galleryCount){var j=-parseInt($("heroimage"+k).getStyle("left"));
if(activeId<=galleryCount){if(AC.Detector._isWebKit){$("herogallery").style.webkitTransform="translate3d("+j+"px, 0, 0)";
if(f){f.translatePos=j}}else{new Effect.Move("herogallery",{x:j,duration:0.4,mode:"absolute"})
}}else{$("herogallery").setStyle({left:+j+"px"}).appear({duration:0.4})}}else{if(activeId<=galleryCount){$("herogallery").fade({duration:0.4})
}}activeId=k}});slideshow=new AC.ViewMaster.Slideshow(viewer,null,{autoplay:true,delay:3250});
d.each(function(g){g.observe("mousedown",function(h){slideshow.stop()})});if(AC.Detector.isiPad()){var f=new trackTouchMove($("herogallery"))
}$("overview").removeClassName("loading");var c=new Image();c.src="/blog/wp-content/themes/graffiti/scripts/slideshow/loading.gif";
var e=new AC.ViewMaster.Tracker("click");e.setDelegate({sectionDidChange:function(j,h,g,k,i){if(navigator.platform.match(/(iphone|ipod)/i)){platform="iphone"
}else{if(navigator.platform.match(/ipad/i)){platform="ipad"}else{platform="non-mobile"
}}if(h._currentTrigger.id!=""){i.prop8=platform;i.prop25=AC.Tracking.pageName()+" - arrow nav"
}else{i.prop8=platform;i.prop25=AC.Tracking.pageName()+" - bubble nav"}return i
}});});

