 $(document).ready(function(){ $(".contactuslink").colorbox({height:"400px", opacity:".50", iframe:true, width:"820px"}); });
 $(document).ready(function(){ $(".appointment").colorbox({height:"600px", opacity:".50", iframe:true, width:"820px"}); });
 $(document).ready(function(){ $(".cb").colorbox({height:"400px", opacity:".50", iframe:true, width:"820px"}); });
 $(document).ready(function(){ $(".cb-map").colorbox({height:"400px", opacity:".50", iframe:true, width:"820px"}); });
 $(document).ready(function(){ $(".cb-register").colorbox({height:"620px", opacity:".50", iframe:true, width:"820px"}); });
 $(document).ready(function(){ $(".contactlink").colorbox({height:"400px", opacity:".50", iframe:true, width:"720px"}); });
 $(document).ready(function(){ $(".donatecb").colorbox({iframe:true, height:"650px", width:"900px"}); });
 $(document).ready(function(){ $("a[rel='lb']").colorbox({}); }); 

/*
 * jQuery Backstretch
 * Version 1.2.4
 * http://srobbin.com/jquery-plugins/jquery-backstretch/
 *
 * Add a dynamically-resized background image to the page
 *
 * Copyright (c) 2011 Scott Robbin (srobbin.com)
 * Dual licensed under the MIT and GPL licenses.
*/
(function(a){a.backstretch=function(l,b,j){function m(c){try{h={left:0,top:0},e=f.width(),d=e/k,d>=f.height()?(i=(d-f.height())/2,g.centeredY&&a.extend(h,{top:"-"+i+"px"})):(d=f.height(),e=d*k,i=(e-f.width())/2,g.centeredX&&a.extend(h,{left:"-"+i+"px"})),a("#backstretch, #backstretch img").width(e).height(d).filter("img").css(h)}catch(b){}typeof c=="function"&&c()}var n={centeredX:true,centeredY:true,speed:0},c=a("#backstretch"),g=c.data("settings")||n;c.data("settings");var f="onorientationchange"in window?a(document):a(window),k,e,d,i,h;b&&typeof b=="object"&&a.extend(g,b);b&&typeof b=="function"&&(j=b);a(document).ready(function(){if(l){var b;c.length==0?c=a("<div />").attr("id","backstretch").css({left:0,top:0,position:"fixed",overflow:"hidden",zIndex:-999999,margin:0,padding:0,height:"100%",width:"100%"}):c.find("img").addClass("deleteable");b=a("<img />").css({position:"absolute",display:"none",margin:0,padding:0,border:"none",zIndex:-999999}).bind("load",function(b){var d=a(this),e;d.css({width:"auto",height:"auto"});e=this.width||a(b.target).width();b=this.height||a(b.target).height();k=e/b;m(function(){d.fadeIn(g.speed,function(){c.find(".deleteable").remove();typeof j=="function"&&j()})})}).appendTo(c);a("body #backstretch").length==0&&a("body").append(c);c.data("settings",g);b.attr("src",l);a(window).resize(m)}});return this}})(jQuery);

    $.backstretch("/images/leebrantmain-bg.jpg");

$(function() {
       var zIndexNumber = 10000;
       // Put your target element(s) in the selector below!
       $("div#menu").each(function() {
               $(this).css('zIndex', zIndexNumber);
               zIndexNumber -= 10;
       });
});

