//fValidator
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('b U=H 1d({f:{1N:"2f",1L:"U-c",1e:{"1g-n":"#2g","1u-n":"#2h"},1O:{"1g-n":"#2e","1u-n":"#2b"},1S:{"1g-n":"#2c","1u-n":"#2d"},10:{7:"10",e:/[^.*]/,c:"1i 1l 2i 10."},1P:{7:"1P",e:/^[a-z.N-]+$/i,c:"1i 1l 1X 2n 1y 1B."},22:{7:"22",e:/^[a-x-9.N-]+$/i,c:"1i 1l 1X 2o 1y 1B."},1a:{7:"1a",e:/^[-+]?\\d+$/,c:"u q a t 1a."},1H:{7:"1H",e:/^[-+]?\\d*\\.?\\d+$/,c:"u q a t 2p."},1x:{7:"1x",e:/^((((0[1D])|([1D])|(1[1G]))[\\/](([1-9])|([0-2][0-9])|(3[2m])))|(((0[1F])|([1F])|(11))[\\/](([1-9])|([0-2][0-9])|(30)))|((2|1G)[\\/](([1-9])|([0-2][0-9]))))[\\/]\\d{4}$|^\\d{4}$/,c:"u q a t 1x (2j/2k/2l)."},1o:{7:"1o",e:/^[a-x-9.N%-]+@[a-x-9.-]+\\.[a-z]{2,4}$/i,c:"u q a t 1o."},1r:{7:"1r",e:/^[\\d\\s().-]+$/,c:"u q a t 1r."},1c:{7:"1c",e:/^(2a|28|27)\\:\\/\\/[a-x-9\\-\\.]+\\.[a-z]{2,3}(:[a-x-9]*)?\\/?([a-x-9\\-\\.N\\?\\,\\\'\\/\\\\\\+&29;%\\$#\\=~])*$/i,c:"u q a t 1c."},V:{7:"V",c:"2X 1M 2Q 2T 1p 2S 1M."},1R:1d.1K,26:1d.1K},2R:8(1E,1z){5.T=$(1E);5.2U(1z);5.1C=5.T.2O("*[1w^=1v]");5.K=[];5.1C.M(8(j){6(!5.L(j)){j.1Q(5.f.1e)}j.v=0;b 1I=j.o("1w").2N(" ");1I.M(8(1n){6(1n.1p(/^1v(\\[.+\\])$/)){b r=2P(1n.1p(/^1v(\\[.+\\])$/)[1]);21(b i=0;i<r.1Z;i++){6(5.f[r[i]]){5.1m(j,5.f[r[i]])}6(r[i].2Z(0)=="="){5.1m(j,$31(5.f.V,{25:r[i].2W(1)}))}}}}.k(5))}.k(5));5.T.2V({"2Y":5.24.k(5),"2x":5.1U.k(5)})},1m:8(w,1j){w=$(w);5.K.2w([w,1j]);w.2y("2A",8(){5.1h(w,1j)}.k(5))},L:8(D){b 1f=D.7.2z();6((1f=="2v")||(1f=="2r")){1q S}1q F},1h:8(l,g){2q(g.7){2s"V":6($(g.25).Z()==l.Z()){5.G(l,g)}I{5.R(l,g)}1W;2u:6(g.e.1Y(l.Z())){5.G(l,g)}I{5.R(l,g)}}},1J:8(Y,E){b W=5.T[Y.o("2t")];b 1b=0;b X=S;21(b i=0;i<W.1Z;i++){6(W[i].2B){1b++;6(!E.e.1Y(W[i].Z())){X=F;1W}}}6(1b==0&&E.7=="10"){X=F}6(X){5.G(Y,E)}I{5.R(Y,E)}},R:8(m,C){6(!$(m.o("B")+C.7+"P")){b 2J=H 2I(5.f.1N,{"B":m.o("B")+C.7+"P","1w":5.f.1L}).2K(C.c).2M("1t",0).2L(m).1T("1t",{14:13,12:15.16.17}).18(0,1);m.v++;5.1s(m,C)}},G:8(A,19,O){O=O||F;6($(A.o("B")+19.7+"P")){b D=$(A.o("B")+19.7+"P");D.1T("1t",{14:13,12:15.16.17,2H:8(){D.2D()}}).18(1,0);6(!O){A.v--;5.1s(A,19)}}},1s:8(p,1k){6(p.v==0){p.1V({14:13,12:15.16.17}).18(5.f.1S);5.23("1R",[p,1k],20)}I{p.1V({14:13,12:15.16.17}).18(5.f.1O);5.23("26",[p,1k],20)}},24:8(Q){Q=H 2C(Q);b J=S;5.K.M(8(h){6(5.L(h[0])){5.1J(h[0],h[1])}I{5.1h(h[0],h[1])}6(h[0].v>0){J=F}}.k(5));6(!J){Q.2E()}1q J},1U:8(){5.K.M(8(y){6(!5.L(y[0])){y[0].1Q(5.f.1e)}y[0].v=0;5.G(y[0],y[1],S)}.k(5))}});U.1A(H 2G);U.1A(H 2F);',62,188,'|||||this|if|type|function|||var|msg||re|options|_d|_1f||_3|bind|_c|_14|color|getProperty|_1b|enter|_6||valid|Please|cbErr|_8|z0|_20||_17|id|_15|el|_f|false|_msgRemove|new|else|_1e|validations|_isChildType|each|_|_19|_msg|_1d|_msgInject|true|form|fValidator|confirm|_10|_12|_e|getValue|required||transition|500|duration|Fx|Transitions|linear|start|_18|integer|_11|url|Class|styleNeutral|_b|background|_validate|This|_9|_1c|field|register|_5|email|match|return|phone|_chkStatus|opacity|border|fValidate|class|date|characters|_2|implement|only|fields|13578|_1|469|02|real|_4|_validateChild|empty|msgClass|Password|msgContainerTag|styleInvalid|alpha|setStyles|onValid|styleValid|effect|_onReset|effects|break|accepts|test|length|50|for|alphanum|fireEvent|_onSubmit|idField|onInvalid|ftp|https|amp|http|c00|cfc|0c0|fcc|div|ffc|cc0|is|mm|dd|yyyy|01|alphabetic|alphanumeric|number|switch|checkbox|case|name|default|radio|push|reset|addEvent|toLowerCase|blur|checked|Event|remove|stop|Options|Events|onComplete|Element|_16|setHTML|injectAfter|setStyle|split|getElements|eval|does|initialize|original|not|setOptions|addEvents|substr|Confirm|submit|charAt||extend'.split('|'),0,{}))


//Ajax error handling 

	window.onerror = function(msg, err_url, line) {
		//var POSTData = 'msg=' + msg + '&err_url=' + err_url + '&line=' + line + '&browser=' + navigator.userAgent;
		//new Ajax(BASE_URL +'log/js-log', {method: 'post', data : POSTData}).request();
		//alert("There has been a Javascript error on my page");
	};
	
	window.addEvent("domready", function() {  
										
		SqueezeBox.initialize({
			size: {x: 600, y: 450}
		});
	
		SqueezeBox.assign($$('a.lightbox'));
		
		 $$('.hover-me').each(function(el){
			el.addEvents({
				'mouseover' : function(){
					$(el).addClass('hover');
				}.pass(el),
				'mouseout' : function(){
					$(el).removeClass('hover');
				}.pass(el)
			});
		 });
			
		//Make all outbound links report to Google Analytics
		$$('a').each(function(el){
			href = el.getProperty('href');
			if(href.search(BASE_URL) == -1 && href.search('http') == 0){
				href = href.replace('http://', '');
				el.addEvent('click', function(href){
					pageTracker._trackPageview('/outgoing/' + href);
				}.pass(href));
			}
		});
		
		if($('watchVideosMenu')){
			var watchVideosMenu = $('watchVideosMenu');
			watchVideosMenu.set('morph', {duration:500});
			watchVideosMenu.set('styles', {opacity : 0});
			 
			
			var watchVideos = $('watchVideos');
			watchVideos.set('styles', {overflow: 'visible'});
			
			watchVideos.addEvents(
				{
					'mouseenter' : function(el){
						watchVideosMenu.morph({opacity : 1});
					},
					'mouseleave' : function(el){
						watchVideosMenu.morph({opacity : 0});
					}
				}		
			);	
		}
			
		 $$('.prefilledBox').each(function(el){
			el.addEvents({
				'blur' : function(){
					
					if($(el).value == "")
					{
						$(el).addClass('grey');
						$(el).value = "(optional)";
					}
					
				}.pass(el),
				'focus' : function(){
					$(el).removeClass('grey');
					if($(el).value == "(optional)")
					{
						$(el).value = "";
					}
				}.pass(el)
			});
		 });
		
		//Find a church page
		if($('contentBoxExpand')) {
			SqueezeBox.setOptions({size: {x: 700, y: 500}}); //Doesn't work FIXME:
			SqueezeBox.assign($('contentBoxExpand'), {
				handler: 'clone' // we set a handler to disable handler/parser detection
			});
		}
	});  //End onload code
