$(document).ready(function(){function a(a,b,c,d){return'<div id="imageTitleBox">'+(a&&a.length?a:"")+" <span>Project "+(c+1)+" of "+b.length+"</span></div>"}if($(".thumb").length){$(".thumb").hoverIntent(function(){$(this).children(".view").stop(true,true).slideDown(300)},function(){$(this).children(".view").stop(true,true).slideUp(500)})}if($("ul.services").length){$("ul.services li").hoverIntent(function(){if(!$(this).hasClass("disabled")){$(this).children("span").stop(true,true).animate({top:"-50px",opacity:"show"},200)}},function(){$(this).children("span").stop(true,true).animate({top:"-40px",opacity:"hide"},500)})}$(".showMore").click(function(){$("body").animate({scrollTop:$(document).height()},1500);var a=3;var b=0;(function c(d){d.fadeIn("slow",function(){$(this).removeClass("hidden");b++;if(b<a)$(this).next().length&&c($(this).next());if(!$("li.hidden").length)$(".showMore").slideUp(500)})})($("li.hidden:first"))});$("header nav ul li").hoverIntent(function(){$(this).children("ul").css("display","none");$(this).children("ul").fadeIn(200)},function(){$(this).children("ul").css("display","none")});if($("#featured").length){$("#featured ul").cycle({fx:"scrollHorz",speed:1e3,timeout:12e3,next:"#homeNext",prev:"#homePrev"})}$(".project .thumb a").fancybox({imageScale:true,transitionIn:"fade",transitionOut:"fade",speedIn:600,speedOut:200,overlayColor:"#000000",overlayOpacity:.9,enableEscapeButton:true,centerOnScroll:true,titlePosition:"inside",titleFormat:a});$(".fancyBox").fancybox({imageScale:true,transitionIn:"fade",transitionOut:"fade",speedIn:600,speedOut:200,overlayColor:"#000000",overlayOpacity:.9,enableEscapeButton:true,centerOnScroll:true,titlePosition:"inside",titleFormat:a});if($("form#contactMe").length){$("form#contactMe").validate({rules:{contactMeName:"required",contactMeEmail:{required:true,email:true},contactMeHuman:{required:true,number:true},contactMeNeed:{required:true}}})}if($("ul.services").length){$("ul.services .link").click(function(a){a.preventDefault();if($(this).hasClass("disabled")){}else{window.open($(this).find("a").attr("href"),"_blank")}})}})
