var popupStatus=0;function loadPopup(){if(popupStatus==0){$("#backgroundPopup").css({opacity:"0.7"});$("#backgroundPopup").fadeIn("slow");$("#popupContact").fadeIn("slow");popupStatus=1}}function disablePopup(){if(popupStatus==1){$("#backgroundPopup").fadeOut("slow");$("#popupContact").fadeOut("slow");popupStatus=0}}function centerPopup(){var b=document.documentElement.clientWidth;var f=document.documentElement.clientHeight;var e=$("#popupContact").height();var d=$("#popupContact").width();var c=$(document).height();var a=$(document).width();$("#popupContact").css({position:"fixed",top:f/2-e/2,left:b/2-d/2});$("#backgroundPopup").css({height:f})}$(document).ready(function(){$(".contactMeLink").click(function(){centerPopup();loadPopup();return false});$("#popupContactClose").click(function(){disablePopup()});$("#backgroundPopup").click(function(){disablePopup()});$(document).keypress(function(a){if(a.keyCode==27&&popupStatus==1){disablePopup()}})});function generateSimpleSprites(a,c){var b=$(a).attr("class");$(a).children("span").each(function(){var d=($(this).attr("class"));attachNavEvents(a,d,c);$(this).children("a").css({backgroundImage:"none"})})}function attachNavEvents(b,a,d){var c=b.substr(1);$(b+" ."+a).mouseover(function(){$(this).append('<div class="'+c+"-"+a+'"></div>');$("div"+b+"-"+a).css({display:"none"}).fadeIn(d)}).mouseout(function(){$("div"+b+"-"+a+"-click").attr("class",c+"-"+a);$("div"+b+"-"+a).fadeOut(d*2,function(){$(this).remove()})})}var menu_timer={};var menu_hide_delay=300;get_position=function(a){var b=curtop=0;if(a.offsetParent){do{b+=a.offsetLeft;curtop+=a.offsetTop}while(a=a.offsetParent)}return[b,curtop]};menu_over=function(d,b,e){var c=d.parentNode;var g=get_position(d);var a=g[0],f=g[1];if(!b){f+=d.offsetHeight}if(e){a+=d.offsetWidth}menu_show(c.id.replace("-source",""),a,f,b,e)};menu_out=function(b){var a=b.parentNode;menu_set_timer(a.id.replace("-source",""))};menu_click=function(a){return false};menu_set_timer=function(a){menu_clear_timer(a);menu_timer[a]=window.setTimeout('menu_hide("'+a+'")',menu_hide_delay)};menu_clear_timer=function(a){if(menu_timer[a]){clearTimeout(menu_timer[a]);delete menu_timer[a]}};menu_clear_all=function(b){if(b){menu_clear_timer(b)}for(var a in menu_timer){if(a!=b){menu_hide(a)}}};menu_show=function(f,b,e,a,c){menu_clear_all(f);var d=document.getElementById(f);if(!d){return}d.style.display="block";d.style.visibility="hidden";d.style.top="";d.style.left="";if(c){b-=d.offsetWidth}if(a){e-=d.offsetHeight}d.style.left=""+b+"px";d.style.top=""+e+"px";d.style.visibility="visible";$(document.getElementById(f)).fadeIn("fast");d.onmouseover=function(){menu_clear_timer(f)};d.onmouseout=function(){menu_set_timer(f)}};menu_hide=function(b){menu_clear_timer(b);var a=document.getElementById(b);if(!a){return}$(document.getElementById(b)).fadeOut("fast")};function preloadMain(){MM_preloadImages("/common/close.png","/common/frame.png","/common/logo-dark.png","/Weddings/common/wMenu.png","/Weddings/common/wBottomMenu.png","/Weddings/common/wTitles.1.png","/Families/common/pMenu.png","/Families/common/pBottomMenu.png","/Families/common/pTitles.1.png","/common/logo-dark.png","/common/logo-dark.png","/common/menu-arrow-down.png","/common/misc.png","/common/arrows.png");preloadWeddings();preloadFamilies();preloadBlog()}function preloadWeddings(){MM_preloadImages("/common/arrows.png","/common/close.png","/Weddings/common/wMenu.png","/Weddings/common/wBottomMenu.png","/Weddings/common/wTitles.1.png","/Weddings/Amanda/peek1.jpg","/Weddings/Amanda/peek2.jpg","/Weddings/Amanda/peek3.jpg","/Weddings/Christiane/peek1.jpg","/Weddings/Christiane/peek2.jpg","/Weddings/Christiane/peek3.jpg","/Weddings/Courtney/peek1.jpg","/Weddings/Courtney/peek2.jpg","/Weddings/Courtney/peek3.jpg","/Weddings/Cristina/peek1.jpg","/Weddings/Cristina/peek2.jpg","/Weddings/Cristina/peek3.jpg","/Weddings/Dalida/peek1.jpg","/Weddings/Dalida/peek2.jpg","/Weddings/Dalida/peek3.jpg","/Weddings/Isabelle/peek1.jpg","/Weddings/Isabelle/peek2.jpg","/Weddings/Isabelle/peek3.jpg","/Weddings/Jessica/peek1.jpg","/Weddings/Jessica/peek2.jpg","/Weddings/Jessica/peek3.jpg","/Weddings/Engagements/peek1.jpg","/Weddings/Engagements/peek2.jpg","/Weddings/Engagements/peek3.jpg","/common/misc.png")}function preloadFamilies(){MM_preloadImages("/common/arrows.png","/common/close.png","/Families/common/pMenu.png","/Families/common/pBottomMenu.png","/Families/common/pTitles.1.png","/Families/Babies/peek1.jpg","/Families/Babies/peek2.jpg","/Families/Babies/peek3.jpg","/Families/Kids/peek1.jpg","/Families/Kids/peek2.jpg","/Families/Kids/peek3.jpg","/Families/Maternity/peek1.jpg","/Families/Maternity/peek2.jpg","/Families/Maternity/peek3.jpg","/Families/Together/peek1.jpg","/Families/Together/peek2.jpg","/Families/Together/peek3.jpg","/Families/Christian/peek1.jpg","/Families/Christian/peek2.jpg","/Families/Christian/peek3.jpg","/Families/Griffin/peek1.jpg","/Families/Griffin/peek2.jpg","/Families/Griffin/peek3.jpg","/Families/Huxley/peek1.jpg","/Families/Huxley/peek2.jpg","/Families/Huxley/peek3.jpg","/Families/Samantha/peek1.jpg","/Families/Samantha/peek2.jpg","/Families/Samantha/peek3.jpg","/common/misc.png")}function preloadBlog(){MM_preloadImages("/Blog/wp-content/themes/PhotosForLife-4.0/common/glyphs.png","/Blog/wp-content/themes/PhotosForLife-4.0/common/bg-header.png","/Blog/wp-content/themes/PhotosForLife-4.0/common/bg-blurb.png","/Blog/wp-content/themes/PhotosForLife-4.0/common/bg-bottombar.png","/Blog/wp-content/themes/PhotosForLife-4.0/common/bg-dkgreen.png","/Blog/wp-content/themes/PhotosForLife-4.0/common/bg-ltgreen.png","/Blog/wp-content/themes/PhotosForLife-4.0/common/bg-post.png","/Blog/wp-content/themes/PhotosForLife-4.0/common/bg-titleArea.png","/Blog/wp-content/themes/PhotosForLife-4.0/common/blogMenu.png","/Blog/wp-content/themes/PhotosForLife-4.0/common/bockquote.png")}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}(function(a){a.anythingSlider=function(c,b){var d=this;d.$el=a(c);d.el=c;d.currentPage=1;d.timer=null;d.playing=false;d.$el.data("AnythingSlider",d);d.init=function(){d.options=a.extend({},a.anythingSlider.defaults,b);d.$wrapper=d.$el.find("> div").css("overflow","hidden");d.$slider=d.$wrapper.find("> ul");d.$items=d.$slider.find("> li");d.$single=d.$items.filter(":first");d.singleWidth=d.$single.outerWidth();d.pages=d.$items.length;if(d.pages===1){d.options.autoPlay=false}d.buildNavigation();var e=d.$items.filter(":last").clone().addClass("cloned");if(e.attr("id")!=""){d.$items.filter(":first").before(e.attr("id",(e.attr("id")+"-cloned")))}else{d.$items.filter(":first").before(e)}e=d.$items.filter(":first").clone().addClass("cloned");if(e.attr("id")!=""){d.$items.filter(":last").after(e.attr("id",(e.attr("id")+"-cloned")))}else{d.$items.filter(":last").after(e)}d.$items=d.$slider.find("> li");if(d.pages>1){d.buildNextBackButtons()}if(d.options.autoPlay){d.playing=!d.options.startStopped;d.buildAutoPlay()}if(d.options.pauseOnHover){d.$el.hover(function(){d.clearTimer()},function(){d.startStop(d.playing)})}if((d.options.hashTags==true&&!d.gotoHash())||d.options.hashTags==false){d.setCurrentPage(1)}a(window).keyup(function(f){if(d.$wrapper.is(".activeSlider")){switch(f.which){case 39:d.goForward();break;case 37:d.goBack();break}}})};d.showNavigation=function(e){if(e){a("a.dot").css("visibility","visible");a("a.smalldot").css("visibility","visible");a("a.mediumdot").css("visibility","visible");a("a.section").css("visibility","visible")}else{a("a.dot").css("visibility","hidden");a("a.smalldot").css("visibility","hidden");a("a.mediumdot").css("visibility","hidden");a("a.section").css("visibility","hidden")}};d.gotoPage=function(g,f){if(f!==true){f=false}if(!f){d.startStop(false)}if(typeof(g)=="undefined"||g==null){g=1;d.setCurrentPage(1)}d.checkForFirstPage(g);if(g>d.pages+1){g=d.pages}if(g<0){g=1}var e=g<d.currentPage?-1:1,i=Math.abs(d.currentPage-g),h=d.singleWidth*e*i;d.$wrapper.filter(":not(:animated)").animate({scrollLeft:"+="+h},d.options.animationTime,d.options.easing,function(){if(g==0){d.$wrapper.scrollLeft(d.singleWidth*d.pages);g=d.pages}else{if(g>d.pages){d.$wrapper.scrollLeft(d.singleWidth);g=1}}d.setCurrentPage(g)})};d.setCurrentPage=function(f,e){if(d.options.buildNavigation){d.$nav.find(".cur").removeClass("cur");a(d.$navLinks[f-1]).addClass("cur")}if(e!==false){d.$wrapper.scrollLeft(d.singleWidth*f)}d.checkForFirstPage(f);d.currentPage=f;if(a(".activeSlider")==d.$wrapper){return}else{a(".activeSlider").removeClass("activeSlider");d.$wrapper.addClass("activeSlider")}};d.checkForFirstPage=function(e){if(e==1||e==d.pages+1){a("li.arrow.back").css("visibility","hidden");d.showNavigation(false)}else{a("li.arrow.back").css("visibility","visible");d.showNavigation(true)}};d.goForward=function(e){if(e!==true){e=false}d.gotoPage(d.currentPage+1,e)};d.goBack=function(){d.gotoPage(d.currentPage-1)};d.gotoHash=function(){if(/^#?panel-\d+$/.test(window.location.hash)){var f=parseInt(window.location.hash.substr(7));var e=d.$items.filter(":eq("+f+")");if(e.length!=0){d.setCurrentPage(f);return true}}return false};d.buildNavigation=function(){d.$nav=a("<div class='thumbNav'><ul/></div>").prependTo(d.$el);if(d.options.buildNavigation&&(d.pages>1)){d.$items.each(function(f,g){var e=f+1;var h=a("<a href='#' class='dot'></a>");if(typeof(d.options.navigationFormatter)=="function"){h.html(d.options.navigationFormatter(e,a(this)))}else{h.text(e)}h.click(function(i){d.gotoPage(e);if(d.options.hashTags){d.setHash("panel-"+e)}i.preventDefault()});a("ul",d.$nav).append(h);h.wrap("<li />")});d.$navLinks=d.$nav.find("li > a")}};d.buildNextBackButtons=function(){var e=a('<li class="arrow forward"><a href="#">'+d.options.forwardText+"</a></li>"),f=a('<li class="arrow back"><a href="#">'+d.options.backText+"</a></li>");f.click(function(g){d.goBack();g.preventDefault()});e.click(function(g){d.goForward();g.preventDefault()});a("ul",d.$nav).prepend(f).append(e)};d.buildAutoPlay=function(){d.$startStop=a("<a href='#' class='start-stop'></a>").html(d.playing?d.options.stopText:d.options.startText);d.$el.prepend(d.$startStop);d.$startStop.click(function(f){d.startStop(!d.playing);f.preventDefault()});d.startStop(d.playing)};d.startStop=function(e){if(e!==true){e=false}d.playing=e;if(d.options.autoPlay){d.$startStop.toggleClass("playing",e).html(e?d.options.stopText:d.options.startText)}if(e){d.clearTimer();d.timer=window.setInterval(function(){d.goForward(true)},d.options.delay)}else{d.clearTimer()}};d.clearTimer=function(){if(d.timer){window.clearInterval(d.timer)}};d.setHash=function(e){if(typeof window.location.hash!=="undefined"){if(window.location.hash!==e){window.location.hash=e}}else{if(location.hash!==e){location.hash=e}}return e};d.init()};a.anythingSlider.defaults={easing:"easeInOutExpo",autoPlay:true,startStopped:true,delay:3000,animationTime:600,hashTags:true,buildNavigation:true,pauseOnHover:true,startText:"Go",stopText:"Stop",};a.fn.anythingSlider=function(b){if(typeof(b)=="object"){return this.each(function(c){(new a.anythingSlider(this,b));b.hashTags=false})}else{if(typeof(b)=="number"){return this.each(function(c){var d=a(this).data("AnythingSlider");if(d){d.gotoPage(b)}})}}}})(jQuery);jQuery.extend(jQuery.easing,{easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},});
