$(document).ready(function(){if(navigator.platform=="iPad"||navigator.platform=="iPhone"||navigator.platform=="iPod"){document.ontouchmove=function(t){t.preventDefault()}}$("#home-gallery li").css({opacity:0});$(".gallery-title, .gallery-category").hide();var b=function(){$("#home-gallery li").hover(function(){$(this).stop().fadeTo("fast",1);$(this).find(".gallery-title, .gallery-category").fadeIn("fast")},function(){$(this).find(".gallery-title, .gallery-category").fadeOut("fast");$(this).fadeTo("fast",0.3)})};var s=$("#gallery1").delay(8000).fadeTo("slow",0.3);var r=$("#gallery2").delay(3500).fadeTo("slow",0.3);var q=$("#gallery3").delay(5500).fadeTo("slow",0.3);var p=$("#gallery4").delay(2000).fadeTo("slow",0.3);var n=$("#gallery5").delay(3000).fadeTo("slow",0.3);var m=$("#gallery6").delay(7000).fadeTo("slow",0.3);var l=$("#gallery7").delay(2500).fadeTo("slow",0.3);var k=$("#gallery8").delay(1000).fadeTo("slow",0.3);var i=$("#gallery9").delay(5000).fadeTo("slow",0.3);var j=$("#gallery10").delay(7500).fadeTo("slow",0.3);var h=$("#gallery11").delay(4000).fadeTo("slow",0.3);var g=$("#gallery12").delay(6500).fadeTo("slow",0.3);var f=$("#gallery13").delay(6000).fadeTo("slow",0.3);var e=$("#gallery14").delay(1500).fadeTo("slow",0.3);var d=$("#gallery15").delay(4500).fadeTo("slow",0.3);$.when(s,r,q,p,n,m,l,k,i,j,h,g,f,e,d).done(b);$(".album-desc-wrapper").hide();$(".album-wrapper").hover(function(){$(this).find(".album-desc-wrapper").fadeIn();$(this).find(".record").animate({left:"+=32px"},"fast")},function(){$(this).find(".record").animate({left:"-=32px"},"fast");$(this).find(".album-desc-wrapper").fadeOut()});$("#slideshow-websites").cycle({fx:"scrollHorz",timeout:0,next:"#arrow-right-websites",prev:"#arrow-left-websites",pager:"#dots-websites",pagerAnchorBuilder:function(u,t){return'<a href="#"><img src="images/blank.png" width="9" height="9" /></a>'}});$("#slideshow-graphics").cycle({fx:"scrollHorz",timeout:0,next:"#arrow-right-graphics",prev:"#arrow-left-graphics",pager:"#dots-graphics",pagerAnchorBuilder:function(u,t){return'<a href="#"><img src="images/blank.png" width="9" height="9" /></a>'}});$("#slideshow-freebies").cycle({fx:"scrollHorz",timeout:0,next:"#arrow-right-freebies",prev:"#arrow-left-freebies",pager:"#dots-freebies",pagerAnchorBuilder:function(u,t){return'<a href="#"><img src="images/blank.png" width="9" height="9" /></a>'}});$("#slideshow-websites").touchwipe({wipeLeft:function(){$("#slideshow-websites").cycle("next")},wipeRight:function(){$("#slideshow-websites").cycle("prev")}});$("#slideshow-graphics").touchwipe({wipeLeft:function(){$("#slideshow-graphics").cycle("next")},wipeRight:function(){$("#slideshow-graphics").cycle("prev")}});$("#slideshow-freebies").touchwipe({wipeLeft:function(){$("#slideshow-freebies").cycle("next")},wipeRight:function(){$("#slideshow-freebies").cycle("prev")}});function o(){var u=$("#websites");if(u.length){var t=u.offset().top;$("html,body").animate({scrollTop:t},1000);return false}}function a(){var u=$("#graphics");if(u.length){var t=u.offset().top;$("html,body").animate({scrollTop:t},1000);return false}}function c(){var u=$("#freebies");if(u.length){var t=u.offset().top;$("html,body").animate({scrollTop:t},1000);return false}}$("a[href='#home']").click(function(){$("html, body").animate({scrollTop:0},"slow");return false});$("a[href=#websites]").click(function(){o();return false});$("a[href=#graphics]").click(function(){a();return false});$("a[href=#freebies]").click(function(){c();return false});$("#gallery1").click(function(){setTimeout(function(){setSlideFreebies(0)},1000);c();return false});$("#gallery2").click(function(){setTimeout(function(){setSlideFreebies(1)},1000);c();return false});$("#gallery3").click(function(){setTimeout(function(){setSlideFreebies(2)},1000);c();return false});$("#gallery4").click(function(){setTimeout(function(){setSlideWebsites(0)},1000);o();return false});$("#gallery5").click(function(){setTimeout(function(){setSlideGraphics(0)},1000);a();return false});$("#gallery6").click(function(){setTimeout(function(){setSlideFreebies(3)},1000);c();return false});$("#gallery7").click(function(){setTimeout(function(){setSlideFreebies(4)},1000);c();return false});$("#gallery8").click(function(){setTimeout(function(){setSlideGraphics(1)},1000);a();return false});$("#gallery9").click(function(){setTimeout(function(){setSlideFreebies(5)},1000);c();return false});$("#gallery10").click(function(){setTimeout(function(){setSlideFreebies(6)},1000);c();return false});$("#gallery11").click(function(){setTimeout(function(){setSlideFreebies(7)},1000);c();return false});$("#gallery12").click(function(){setTimeout(function(){setSlideFreebies(8)},1000);c();return false});$("#gallery13").click(function(){setTimeout(function(){setSlideWebsites(1)},1000);o();return false});$("#gallery14").click(function(){setTimeout(function(){setSlideGraphics(2)},1000);a();return false});$("#gallery15").click(function(){setTimeout(function(){setSlideGraphics(3)},1000);a();return false});$(".contact-link").fancybox({padding:0,overlayColor:"#000",width:380,height:361,autoScale:false,showCloseButton:false,overlayColor:"#c7ccd7",overlayOpacity:0.8,type:"iframe"})});function setSlideWebsites(a){$("#slideshow-websites").cycle(a)}function setSlideGraphics(a){$("#slideshow-graphics").cycle(a)}function setSlideFreebies(a){$("#slideshow-freebies").cycle(a)};
