(function(d,x,f){function l(c,r){var h=(c[0]||0)-(r[0]||0);return h>0||!h&&c.length>0&&l(c.slice(1),r.slice(1))}function K(c){if(typeof c!=A)return c;var r=[],h="";for(var p in c){h=typeof c[p]==A?K(c[p]):[p,P?encodeURI(c[p]):c[p]].join("=");r.push(h)}return r.join("&")}var A="object",P=true;try{var L=f.description||(new f("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(v){L="Unavailable"}var i=L.match(/\d+/g)||[0];d[x]={available:i[0]>0,activeX:f&&!f.name,version:{original:L,array:i,
string:i.join("."),major:parseInt(i[0],10)||0,minor:parseInt(i[1],10)||0,release:parseInt(i[2],10)||0},hasVersion:function(c){c=/string|number/.test(typeof c)?c.toString().split("."):/object/.test(typeof c)?[c.major,c.minor]:c||[0,0];return l(i,c)},encodeParams:true,expressInstall:"expressInstall.swf",expressInstallIsActive:false,create:function(c){if(!c.swf||this.expressInstallIsActive||!this.available&&!c.hasVersionFail)return false;if(!this.hasVersion(c.hasVersion||1)){this.expressInstallIsActive=
true;if(typeof c.hasVersionFail=="function")if(!c.hasVersionFail.apply(c))return false;c={swf:c.expressInstall||this.expressInstall,height:137,width:214,flashvars:{MMredirectURL:location.href,MMplayerType:this.activeX?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}attrs={data:c.swf,type:"application/x-shockwave-flash",id:c.id||"flash_"+Math.floor(Math.random()*999999999),width:c.width||320,height:c.height||180,style:c.style||""};P=typeof c.useEncode!=="undefined"?
c.useEncode:this.encodeParams;c.movie=c.swf;c.wmode=c.wmode||"opaque";delete c.fallback;delete c.hasVersion;delete c.hasVersionFail;delete c.height;delete c.id;delete c.swf;delete c.useEncode;delete c.width;var r=document.createElement("div"),h=attrs,p=[];for(var M in h)h[M]&&p.push([M,'="',h[M],'"'].join(""));h=p.join(" ");var t;c=c;p=[];for(t in c)p.push(['<param name="',t,'" value="',K(c[t]),'" />'].join(""));t=p.join("");t=["<object ",h,">",t,"</object>"];r.innerHTML=t.join.call(t,"");return r.firstChild}};
d.fn[x]=function(c){var r=this.find(A).andSelf().filter(A);/string|object/.test(typeof c)&&this.each(function(){var h=d(this),p;c=typeof c==A?c:{swf:c};c.fallback=this;if(p=d[x].create(c)){h.children().remove();h.html(p)}});typeof c=="function"&&r.each(function(){var h=this;h.jsInteractionTimeoutMs=h.jsInteractionTimeoutMs||0;if(h.jsInteractionTimeoutMs<660)h.clientWidth||h.clientHeight?c.call(h):setTimeout(function(){d(h)[x](c)},h.jsInteractionTimeoutMs+66)});return r}})(jQuery,"flash",navigator.plugins["Shockwave Flash"]||
window.ActiveXObject);(function(d,x){function f(b,e){b=b?' id="'+i+b+'"':"";return d("<div"+b+(e?' style="'+e+'"':"")+"/>")}function l(b,e){e=e==="x"?u.width():u.height();return typeof b==="string"?Math.round(b.match(/%/)?e/100*parseInt(b,10):parseInt(b,10)):b}function K(b){b=d.isFunction(b)?b.call(m):b;return a.photo||b.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function A(){for(var b in a)if(d.isFunction(a[b])&&b.substring(0,2)!=="on")a[b]=a[b].call(m);a.rel=a.rel||m.rel||"nofollow";a.href=a.href||
d(m).attr("href");a.title=a.title||m.title}function P(b){m=b;a=d.extend({},d(m).data(v));A();if(a.rel!=="nofollow"){n=d("."+Q).filter(function(){return(d(this).data(v).rel||this.rel)===a.rel});k=n.index(m);if(k===-1){n=n.add(m);k=n.length-1}}else{n=d(m);k=0}if(!y){y=N=true;W=m;try{W.blur()}catch(e){}d.event.trigger(c);a.onOpen&&a.onOpen.call(m);B.css({opacity:+a.opacity,cursor:a.overlayClose?"pointer":"auto"}).show();a.w=l(a.initialWidth,"x");a.h=l(a.initialHeight,"y");g.position(0);X&&u.bind("resize."+
V+" scroll."+V,function(){B.css({width:u.width(),height:u.height(),top:u.scrollTop(),left:u.scrollLeft()})}).trigger("scroll."+V)}Y.add(R).add(S).add(C).add(Z).hide();$.html(a.close).show();g.slideshow();g.load()}var L={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,
preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},v="colorbox",i="cbox",c=i+"_open",r=i+"_load",h=i+"_complete",p=i+"_cleanup",M=i+"_closed",t=d.browser.msie&&!d.support.opacity,X=t&&d.browser.version<
7,V=i+"_IE6",B,q,G,w,aa,ba,ca,da,n,u,s,T,U,Z,Y,C,S,R,$,H,I,D,E,m,W,k,a,y,N,g,Q=i+"Element";g=d.fn[v]=d[v]=function(b,e){var j=this;if(!j[0]&&j.selector)return j;b=b||{};if(e)b.onComplete=e;if(!j[0]||j.selector===undefined){j=d("<a/>");b.open=true}j.each(function(){d(this).data(v,d.extend({},d(this).data(v)||L,b)).addClass(Q)});b.open&&P(j[0]);return j};g.init=function(){u=d(x);q=f().attr({id:v,"class":t?i+"IE":""});B=f("Overlay",X?"position:absolute":"").hide();G=f("Wrapper");w=f("Content").append(s=
f("LoadedContent","width:0; height:0"),U=f("LoadingOverlay").add(f("LoadingGraphic")),Z=f("Title"),Y=f("Current"),S=f("Next"),R=f("Previous"),C=f("Slideshow"),$=f("Close"));G.append(f().append(f("TopLeft"),aa=f("TopCenter"),f("TopRight")),f().append(ba=f("MiddleLeft"),w,ca=f("MiddleRight")),f().append(f("BottomLeft"),da=f("BottomCenter"),f("BottomRight"))).children().children().css({"float":"left"});T=f(false,"position:absolute; width:9999px; visibility:hidden; display:none");d("body").prepend(B,
q.append(G,T));w.children().hover(function(){d(this).addClass("hover")},function(){d(this).removeClass("hover")}).addClass("hover");H=aa.height()+da.height()+w.outerHeight(true)-w.height();I=ba.width()+ca.width()+w.outerWidth(true)-w.width();D=s.outerHeight(true);E=s.outerWidth(true);q.css({"padding-bottom":H,"padding-right":I}).hide();S.click(g.next);R.click(g.prev);$.click(g.close);w.children().removeClass("hover");d("."+Q).live("click",function(b){if(b.button!==0&&typeof b.button!=="undefined"||
b.ctrlKey||b.shiftKey||b.altKey)return true;else{P(this);return false}});B.click(function(){a.overlayClose&&g.close()});d(document).bind("keydown",function(b){if(y&&a.escKey&&b.keyCode===27){b.preventDefault();g.close()}if(y&&a.arrowKey&&!N&&n[1])if(b.keyCode===37&&(k||a.loop)){b.preventDefault();R.click()}else if(b.keyCode===39&&(k<n.length-1||a.loop)){b.preventDefault();S.click()}})};g.remove=function(){q.add(B).remove();d("."+Q).die("click").removeData(v).removeClass(Q)};g.position=function(b,
e){function j(F){aa[0].style.width=da[0].style.width=w[0].style.width=F.style.width;U[0].style.height=U[1].style.height=w[0].style.height=ba[0].style.height=ca[0].style.height=F.style.height}var o,z=Math.max(u.height()-a.h-D-H,0)/2+u.scrollTop(),J=Math.max(u.width()-a.w-E-I,0)/2+u.scrollLeft();o=q.width()===a.w+E&&q.height()===a.h+D?0:b;G[0].style.width=G[0].style.height="9999px";q.dequeue().animate({width:a.w+E,height:a.h+D,top:z,left:J},{duration:o,complete:function(){j(this);N=false;G[0].style.width=
a.w+E+I+"px";G[0].style.height=a.h+D+H+"px";e&&e()},step:function(){j(this)}})};g.resize=function(b){if(y){b=b||{};if(b.width)a.w=l(b.width,"x")-E-I;if(b.innerWidth)a.w=l(b.innerWidth,"x");s.css({width:a.w});if(b.height)a.h=l(b.height,"y")-D-H;if(b.innerHeight)a.h=l(b.innerHeight,"y");if(!b.innerHeight&&!b.height){b=s.wrapInner("<div style='overflow:auto'></div>").children();a.h=b.height();b.replaceWith(b.children())}s.css({height:a.h});g.position(a.transition==="none"?0:a.speed)}};g.prep=function(b){function e(z){var J,
F,ea,fa,O=n.length,ga=a.loop;g.position(z,function(){function ha(){t&&q[0].style.removeAttribute("filter")}if(y){t&&j&&s.fadeIn(100);if(a.iframe)d("<iframe frameborder=0"+(a.scrolling?"":" scrolling='no'")+(t?" allowtransparency='true'":"")+"/>").attr({src:a.href,name:(new Date).getTime()}).appendTo(s);s.show();Z.show().html(a.title);if(O>1){Y.html(a.current.replace(/\{current\}/,k+1).replace(/\{total\}/,O)).show();S[ga||k<O-1?"show":"hide"]().html(a.next);R[ga||k?"show":"hide"]().html(a.previous);
J=k?n[k-1]:n[O-1];ea=k<O-1?n[k+1]:n[0];if(a.slideshow){C.show();k===O-1&&!ga&&q.is("."+i+"Slideshow_on")&&C.click()}if(a.preloading){fa=d(ea).data(v).href||ea.href;F=d(J).data(v).href||J.href;if(K(fa))d("<img/>")[0].src=fa;if(K(F))d("<img/>")[0].src=F}}U.hide();a.transition==="fade"?q.fadeTo(o,1,function(){ha()}):ha();u.bind("resize."+i,function(){g.position(0)});d.event.trigger(h);a.onComplete&&a.onComplete.call(m)}})}if(y){var j,o=a.transition==="none"?0:a.speed;u.unbind("resize."+i);s.remove();
s=f("LoadedContent").html(b);s.hide().appendTo(T.show()).css({width:function(){a.w=a.w||s.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w}(),overflow:a.scrolling?"auto":"hidden"}).css({height:function(){a.h=a.h||s.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h}()}).prependTo(w);T.hide();d("#"+i+"Photo").css({cssFloat:"none"});X&&d("select").not(q.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(p,function(){this.style.visibility="inherit"});
a.transition==="fade"?q.fadeTo(o,0,function(){e(0)}):e(o)}};g.load=function(){var b,e,j,o=g.prep;N=true;m=n[k];a=d.extend({},d(m).data(v));A();d.event.trigger(r);a.onLoad&&a.onLoad.call(m);a.h=a.height?l(a.height,"y")-D-H:a.innerHeight&&l(a.innerHeight,"y");a.w=a.width?l(a.width,"x")-E-I:a.innerWidth&&l(a.innerWidth,"x");a.mw=a.w;a.mh=a.h;if(a.maxWidth){a.mw=l(a.maxWidth,"x")-E-I;a.mw=a.w&&a.w<a.mw?a.w:a.mw}if(a.maxHeight){a.mh=l(a.maxHeight,"y")-D-H;a.mh=a.h&&a.h<a.mh?a.h:a.mh}b=a.href;U.show();
if(a.inline){f("InlineTemp").hide().insertBefore(d(b)[0]).bind(r+" "+p,function(){d(this).replaceWith(s.children())});o(d(b))}else if(a.iframe)o(" ");else if(a.html)o(a.html);else if(K(b)){e=new Image;e.onload=function(){var z;e.onload=null;e.id=i+"Photo";d(e).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(a.scalePhotos){j=function(){e.height-=e.height*z;e.width-=e.width*z};if(a.mw&&e.width>a.mw){z=(e.width-a.mw)/e.width;j()}if(a.mh&&e.height>a.mh){z=(e.height-a.mh)/e.height;
j()}}if(a.h)e.style.marginTop=Math.max(a.h-e.height,0)/2+"px";setTimeout(function(){o(e)},1);if(n[1]&&(k<n.length-1||a.loop))d(e).css({cursor:"pointer"}).click(g.next);if(t)e.style.msInterpolationMode="bicubic"};e.src=b}else f().appendTo(T).load(b,function(z,J,F){o(J==="error"?"Request unsuccessful: "+F.statusText:this)})};g.next=function(){if(!N){k=k<n.length-1?k+1:0;g.load()}};g.prev=function(){if(!N){k=k?k-1:n.length-1;g.load()}};g.slideshow=function(){function b(){C.text(a.slideshowStop).bind(h,
function(){j=setTimeout(g.next,a.slideshowSpeed)}).bind(r,function(){clearTimeout(j)}).one("click",function(){e()});q.removeClass(o+"off").addClass(o+"on")}var e,j,o=i+"Slideshow_";C.bind(M,function(){C.unbind();clearTimeout(j);q.removeClass(o+"off "+o+"on")});e=function(){clearTimeout(j);C.text(a.slideshowStart).unbind(h+" "+r).one("click",function(){b();j=setTimeout(g.next,a.slideshowSpeed)});q.removeClass(o+"on").addClass(o+"off")};if(a.slideshow&&n[1])a.slideshowAuto?b():e()};g.close=function(){if(y){y=
false;d.event.trigger(p);a.onCleanup&&a.onCleanup.call(m);u.unbind("."+i+" ."+V);B.fadeTo("fast",0);q.stop().fadeTo("fast",0,function(){q.find("iframe").attr("src","about:blank");s.remove();q.add(B).css({opacity:1,cursor:"auto"}).hide();try{W.focus()}catch(b){}setTimeout(function(){d.event.trigger(M);a.onClosed&&a.onClosed.call(m)},1)})}};g.element=function(){return d(m)};g.settings=L;d(g.init)})(jQuery,this);var pageTracker=_gat._getTracker("UA-15473493-1"),CDSA={};pageTracker._trackPageview();CDSA.downloads=["school-aged-enrollment","pre-k-enrollment","summer-camp-enrollment","employment-application","pre-k-registration-form","school-aged-registration-form"];CDSA.videoTrackPageViewComplete=false;CDSA.videoTrackPageview=function(){if(!CDSA.videoTrackPageViewComplete){CDSA.videoTrackPageViewComplete=true;pageTracker._trackPageview("/downloads/promo_video")}};
(function(d){d(function(){d.each(CDSA.downloads,function(){var l=this;d("."+l).click(function(){pageTracker._trackPageview("/downloads/"+l)})});d("#payForm").submit(function(){var l=d("#os0");if(l.val()===""){alert("Please enter at least your student's name.");l.focus();return false}return true});d("a[rel^='lightbox']").colorbox();if(d.flash.available){d("#promo-video").html(d.flash.create({swf:"/wp-content/themes/azul/player.swf",width:600,height:348,id:"promo-video-player",name:"promo-video-player",
params:{allowfullscreen:"true",allowscriptaccess:"always",wmode:"opaque"},flashvars:{file:"http://communitydayschool.org/wp-content/uploads/videos/promo_video.flv",image:"http://communitydayschool.org/wp-content/uploads/videos/promo_video.jpg"}}));var x=d("#promo-video-player").get()[0],f=function(){x.addViewListener===undefined?window.setTimeout(f,100):x.addViewListener("PLAY","CDSA.videoTrackPageview")};x&&f()}})})(jQuery);

