var borderColor="";var captchaDir="/atf/cf/{84649513-0f80-42be-ab73-e2a9135e2bfa}";var randomCaptchaValue44=Math.floor(Math.random()*5);var formId="contactForm";var items=Array("pencil","scissors","clock","heart","note");$(document).ready(function(){$("#translateBlock").append('<div style="font-size:16px;width:65px;margin:27px 0 0 0;cursor:pointer;float:right;color:#FEFDFD" id="transPageHeader">Translate</div><div id="transDrop" style="display:none;float:right;"></div>').after('<div id="disclaimer" style="display:none;float:right;height:40px;width:166px;margin-top:8px;">This translation is not completely accurate as it was automatically generated by a computer.</div>');$("#transPageHeader").click(function(){$(this).animate({marginTop:"8px",width:"125px",fontSize:"12px"},500,function(){$(this).text("Translate This Page");$.getScript("http://jquery-translate.googlecode.com/files/jquery.translate-1.3.7.min.js",function(){$.translate(function(){$.translate.ui("select","option").change(function(){$("#disclaimer").show();$("#mainContent,#headerPhrase,#disclaimer,.homeText").translate("english",$(this).val(),{not:".option, .jq-translate-ui,#source,pre,#demo",fromOriginal:true,start:function(){$("#disclaimer").after('<div class="loaderTrans" style="float:right;margin-top:12px;display:none"><img src="../../../../atf/cf/{84649513-0f80-42be-ab73-e2a9135e2bfa}/AJAX-LOADER2.GIF"></div>');$(".loaderTrans").fadeIn("slow")},complete:function(){$(".loaderTrans").fadeOut("slow",function(){$(this).remove()})}})}).val("English").appendTo("#transDrop")})});$("#transDrop").show("slow")})});$("a.guidedTourOverview").click(function(f){f.preventDefault();pageTracker._trackPageview("/home_overview_vid/");$("#content").append('<div id="dialog" title="Guided Tour" style="padding10px;"><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/3pQaV3e_3GM&hl=en_US&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/3pQaV3e_3GM&hl=en_US&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></div>');$("#dialog").dialog({height:500,width:680,bgiframe:true,modal:true,buttons:{Close:function(){$(this).dialog("close");setTimeout('$("#dialog").dialog("destroy");$("#dialog").remove()',500)}}})});function a(h,f,g){this.startTime=new Date();this.startTime.setTime(Date.parse(h));this.endTime=new Date();this.endTime.setTime(Date.parse(f));this.currentDate=new Date();this.url=g;this.compareDates=function(){if((this.startTime.getTime()<this.currentDate.getTime())&&(this.endTime.getTime()>this.currentDate.getTime())){window.location=this.url}};this.compareDates()}jQuery.each(jQuery.browser,function(f,g){if(f=="msie"&&jQuery.browser.version.substr(0,1)=="6"&&typeof document.body.style.maxHeight==="undefined"){if($("body").attr("id")=="home"){$("#content").append('<div id="dialog"  title="Unsupported Browser"><br /><h2>Unsupported Browser</H2><div width="70%" style="margin-top:-5px;">This site is best viewed on a newer browser. Try one of these out:<br /><br /><a href="http://www.mozilla.com/" target="_blank">Mozilla Firefox 3</a><br /><a href="http://www.microsoft.com/windows/downloads/ie/getitnow.mspx" target="_blank">Internet Explorer 7</a><br /><a href="http://www.google.com/chrome/" target="_blank">Google Chrome</a><br /><br />If you are stuck on an older browswer please feel free to browse the rest of the website...just know that it might be slightly buggy. This dialogue will only show on the home page.</div>');$("#dialog").dialog({show:"fold",hide:"fold",height:325,width:425,bgiframe:true,modal:true,buttons:{Ok:function(){$(this).dialog("close");setTimeout('$("#dialog").dialog("destroy");$("#dialog").remove()',500)}}})}jQuery("#translateBlock").hide();jQuery("#home #content").css("width","1050px")}});$("#content").hide();$("#content").fadeIn("slow");DD_roundies.addRule(".rounded","5px");if($("body").attr("id")=="goDo"){$("#universalSearch").hide();$("#questionMark").hide()}$(".ui-widget-overlay").live("click",function(){$("#dialog").dialog("close");setTimeout('$("#dialog").dialog("destroy");$("#dialog").remove()',500)});var c=$(window).width();var d=(c-1000)/2;if(c<1000){d=0}$("#helpTabContainer").css({left:(d+100)});$(window).resize(function(){var f=$(window).width();var g=(f-1000)/2;if(f<1000){g=0}$("#helpTabContainer").css({left:(g+100)})});$(".openNavDoor").hide();$(".leftNav a").click(function(){$("div#mainContent").hide();$("#mainContent").before('<div class="loader" style="text-align:center; padding-top:100px;"><img src="../../../../atf/cf/{84649513-0f80-42be-ab73-e2a9135e2bfa}/AJAX-LOADER2.GIF"></div>')});$(".navItem img").fadeTo(0,0.65);$(".openNavDoor").hide();var b=$("body").attr("id");$("#"+b+"NavLink .navDoor img").fadeTo(0,1);setTimeout(function(){$("#"+b+"NavLink .openNavDoor").show();$("#"+b+"NavLink .navDoor").fadeTo(1000,0)},1250);$(".navItem").hover(function(){$("#"+this.id+" img").fadeTo("fast",1)},function(){$("#"+this.id+" img").fadeTo("fast",0.65)});$("#faqTabs").hide();$("#faqTabs").tabs().removeClass("ui-widget-content");var e="hidden";$("#faqTabsBackground").fadeTo(0,0.95);$("#helpBehind").hide();$("#helpBehind").click(function(){if(e=="show"){e="hidden";$("#helpBehind").hide();$("#helpTabContainer").animate({top:"-420px"},500,function(){})}});$("#helpTab,#questionMark").click(function(){var f=$("#faqTabs").css("display");if(f=="none"){$("#faqTabs").show()}switch(e){case"show":e="hidden";$("#helpBehind").hide();$("#helpTabContainer").animate({top:"-420px"},500,function(){});break;case"hidden":e="show";pageTracker._trackPageview("/help_tabs_question_mark/");$("#helpBehind").show();$("#helpTabContainer").animate({top:"-3px"},500,function(){});break}});$(".launchContactForm").click(function(){contactUs()})});var ap_instances=new Array();var playerC0="playerC0";var playerC1="playerC1";var playerC2="playerC2";var playerC3="playerC3";var playerD0="playerD0";var playerD1="playerD1";var playerD2="playerD2";var playerD3="playerD3";function ap_stopAll(a){}function contactUs(){$("#content").append('<div id="dialog"  title="CONTACT US"><div class="loader"><img src="../../../../atf/cf/{84649513-0f80-42be-ab73-e2a9135e2bfa}/AJAX-LOADER2.GIF" ></div></div>');$("#dialog").load("http://www.10thousanddoors.org/site/c.ruI4KbMRIvF/b.5075771/k.732A/Contact_Form__Custom/apps/ka/ct/contactcustom.asp #contactForm",function(){$(".loader").remove();$("#contactForm").validate({rules:{first_name:"required",last_name:"required",email_address:{required:true,email:true},zip:{required:true,digits:true,minlength:5},country:"required",Field2180641:"required"},errorClass:"invalidLabel",messages:{first_name:"Required",last_name:"Required",email_address:{required:"Required",email:"Invalid Email"},zip:{required:"Required",digits:"Invalid Zip",minlength:"Invalid Zip"},country:"Required",Field2180641:"Required"},highlight:function(b,a){$(b).addClass("invalidField");$(b.form).find("label[for="+b.id+"]").addClass(a)},unhighlight:function(b,a){$(b).removeClass("invalidField");$(b.form).find("label[for="+b.id+"]").removeClass(a)}});$("#bottomForm").before('<div class="ajax-fc-container"></div>');$(".ajax-fc-container").captcha();$("#dialog").css("position","relative")});$("#dialog").dialog({show:"fold",hide:"fold",height:595,width:430,zIndex:200000,bgiframe:true,modal:true,buttons:{Submit:function(){if($("#contactForm").valid()){if($("input[name='captcha']").attr("value")!=randomCaptchaValue44){$(".ajax-fc-container").css("border","1px solid red").before('<div id="captchaVerify" style="color:#ff0000;text-align:center;font-weight:bold;">Please verify</div>');return false}ajaxSubmit();$("#contactForm").remove();$("#dialog").append('<div class="loader"><img src="../../../../atf/cf/{84649513-0f80-42be-ab73-e2a9135e2bfa}/AJAX-LOADER2.GIF" ></div>');$("#dialog").dialog("option","buttons",{});$("#dialog").one("ajaxStop",function(){$(".loader").remove();$("#dialog").dialog("option","buttons",{Ok:function(){$(this).dialog("close")}}).append("Thank you! Your question has been forwarded to InfoServ.<br /><br />InfoServ is the official The United Methodist information service. A representative from InfoServ will respond to you in a timely manner during regular business hours.<br /><br />If you need further assistance, please call 1-800-251-8140.")})}},Cancel:function(){$(this).dialog("close");setTimeout('$("#dialog").dialog("destroy");$("#dialog").remove();',500)}}})}function ajaxSubmit(){$.ajax({type:"POST",url:"http://www.10thousanddoors.org/AutoGen/Contact/ContactAdd.asp?ievent=311081&en=otKPIXOMIeIKI5MSLfJKI7ORKoLYK2OGJaITI7OPLtI9G",cache:false,data:{Field2180641:$("#Field2180641").attr("value"),Field2180642:$("#Field2180642").val(),country:$("#country").attr("value"),phone_number:$("#phone_number").attr("value"),zip:$("#contactForm #zip").attr("value"),email_address:$("#email_address").attr("value"),last_name:$("#last_name").attr("value"),first_name:$("#first_name").attr("value"),Reload:$("#Reload").attr("value"),MngEmail:$("#MngEmail").attr("value"),Caller:"http://www.10thousanddoors.org/AutoGen/Contact/ContactAdd.asp?ievent=311081&en=otKPIXOMIeIKI5MSLfJKI7ORKoLYK2OGJaITI7OPLtI9G",Source:$("#Source").attr("value"),Individual:$("#Individual").attr("value"),LoginID:$("#LoginID").attr("value"),ActionID:$("#ActionID").attr("value"),ParticipantSupporterID:$("#ParticipantSupporterID").attr("value"),CreditTeamID:$("#CreditTeamID").attr("value"),RelationSupporterID:$("#RelationSupporterID").attr("value"),volunteerPositionIDList:$("#volunteerPositionIDList").attr("value"),MarketingSourceID:$("#MarketingSourceID").attr("value")},complete:function(){}})};