$(function(){$(".menuhover").hover(function(){$(this).animate({opacity:0},20)},function(){$(this).animate({opacity:1},450)})});$(function(){$(".menuhover").click(function(){$("#menu input").each(function(){$(this).attr("src",$(this).attr("down")+".png")});$(this).attr("src",$(this).attr("down")+"_f3.png");var a=$(this).attr("id");switch(a){case"ctl00_btnHome":if($(this).attr("imgloaded")=="false"){$.preLoadImages(["http://www.jctchildrensfoundation.org/images/home/home_2.jpg","http://www.jctchildrensfoundation.org/images/home/home_3.jpg","http://www.jctchildrensfoundation.org/images/home/home_4.jpg","http://www.jctchildrensfoundation.org/images/home/home_5.jpg","http://www.jctchildrensfoundation.org/images/home/home_6.jpg"],function(){});$(this).attr("imgloaded","true")}break;case"ctl00_btnOurStory":if($(this).attr("imgloaded")=="false"){$.preLoadImages(["http://www.jctchildrensfoundation.org/images/our_story/os_2_opt.jpg","http://www.jctchildrensfoundation.org/images/our_story/os_3_opt.jpg","http://www.jctchildrensfoundation.org/images/our_story/os_4_opt.jpg","http://www.jctchildrensfoundation.org/images/our_story/os_5_opt.jpg","http://www.jctchildrensfoundation.org/images/our_story/os_6_opt.jpg"],function(){});$(this).attr("imgloaded","true")}break;case"ctl00_btnSchools":if($(this).attr("imgloaded")=="false"){$.preLoadImages(["http://www.jctchildrensfoundation.org/images/schools/sch_2_opt.jpg","http://www.jctchildrensfoundation.org/images/schools/sch_3_opt.jpg","http://www.jctchildrensfoundation.org/images/schools/sch_4_opt.jpg","http://www.jctchildrensfoundation.org/images/schools/sch_5_opt.jpg","http://www.jctchildrensfoundation.org/images/schools/sch_6_opt.jpg"],function(){});$(this).attr("imgloaded","true")}break;case"ctl00_btnProjects":if($(this).attr("imgloaded")=="false"){$.preLoadImages(["http://www.jctchildrensfoundation.org/images/projects/pr_2_opt.jpg","http://www.jctchildrensfoundation.org/images/projects/pr_3_opt.jpg","http://www.jctchildrensfoundation.org/images/projects/pr_4_opt.jpg","http://www.jctchildrensfoundation.org/images/projects/pr_5_opt.jpg","http://www.jctchildrensfoundation.org/images/projects/pr_6_opt.jpg","http://www.jctchildrensfoundation.org/images/projects/pr_7_opt.jpg","http://www.jctchildrensfoundation.org/images/projects/pr_8_opt.jpg","http://www.jctchildrensfoundation.org/images/projects/pr_9_opt.jpg"],function(){});$(this).attr("imgloaded","true")}break;case"ctl00_btnHIV":if($(this).attr("imgloaded")=="false"){$.preLoadImages(["http://www.jctchildrensfoundation.org/images/hiv/hiv_2_opt.jpg","http://www.jctchildrensfoundation.org/images/hiv/hiv_3_opt.jpg","http://www.jctchildrensfoundation.org/images/hiv/hiv_4_opt.jpg","http://www.jctchildrensfoundation.org/images/hiv/hiv_5_opt.jpg","http://www.jctchildrensfoundation.org/images/hiv/hiv_6_opt.jpg","http://www.jctchildrensfoundation.org/images/hiv/hiv_7_opt.jpg"],function(){});$(this).attr("imgloaded","true")}break;case"ctl00_btnFundraising":if($(this).attr("imgloaded")=="false"){$.preLoadImages(["http://www.jctchildrensfoundation.org/images/fundraising/fu_2_opt.jpg","http://www.jctchildrensfoundation.org/images/fundraising/fu_3_opt.jpg","http://www.jctchildrensfoundation.org/images/fundraising/fu_4_opt.jpg","http://www.jctchildrensfoundation.org/images/fundraising/fu_5_opt.jpg","http://www.jctchildrensfoundation.org/images/fundraising/fu_6_opt.jpg","http://www.jctchildrensfoundation.org/images/fundraising/fu_7_opt.jpg","http://www.jctchildrensfoundation.org/images/fundraising/fu_8_opt.jpg"],function(){});$(this).attr("imgloaded","true")}break;case"ctl00_btnMalawi":if($(this).attr("imgloaded")=="false"){$.preLoadImages(["http://www.jctchildrensfoundation.org/images/malawi/mal_2_opt.jpg","http://www.jctchildrensfoundation.org/images/malawi/mal_3_opt.jpg","http://www.jctchildrensfoundation.org/images/malawi/mal_4_opt.jpg","http://www.jctchildrensfoundation.org/images/malawi/mal_5_opt.jpg","http://www.jctchildrensfoundation.org/images/malawi/mal_6_opt.jpg","http://www.jctchildrensfoundation.org/images/malawi/mal_7_opt.jpg"],function(){});$(this).attr("imgloaded","true")}break;case"ctl00_btnDonate":if($(this).attr("imgloaded")=="false"){$.preLoadImages(["http://www.jctchildrensfoundation.org/images/donate/do_2_opt.jpg","http://www.jctchildrensfoundation.org/images/donate/do_3_opt.jpg","http://www.jctchildrensfoundation.org/images/donate/do_4_opt.jpg","http://www.jctchildrensfoundation.org/images/donate/do_5_opt.jpg"],function(){});$(this).attr("imgloaded","true")}break;case"ctl00_btnContact":$(this).attr("imgloaded")=="false"&&$(this).attr("imgloaded","true")}})});$(function(){$(".sch_click").click(function(){$("#menu input").each(function(){$(this).attr("src",$(this).attr("down")+".png")});$("#ctl00_btnSchools").attr("src",$("#ctl00_btnSchools").attr("down")+"_f3.png")})});$(function(){$(".don_click").click(function(){$("#menu input").each(function(){$(this).attr("src",$(this).attr("down")+".png")});$("#ctl00_btnDonate").attr("src",$("#ctl00_btnDonate").attr("down")+"_f3.png");$.preLoadImages(["http://www.jctchildrensfoundation.org/images/donate/do_2_opt.jpg","http://www.jctchildrensfoundation.org/images/donate/do_3_opt.jpg","http://www.jctchildrensfoundation.org/images/donate/do_4_opt.jpg","http://www.jctchildrensfoundation.org/images/donate/do_5_opt.jpg"],function(){})})});$(function(){$(".fun_click").click(function(){$("#menu input").each(function(){$(this).attr("src",$(this).attr("down")+".png")});$("#ctl00_btnFundraising").attr("src",$("#ctl00_btnFundraising").attr("down")+"_f3.png")})});$(document).ready(function(){$.ajaxSetup({url:"/xmlhttp/",global:false,type:"POST",async:false});$.preLoadImages(["http://www.jctchildrensfoundation.org/images/tabs/tab-active-left.png","http://www.jctchildrensfoundation.org/images/tabs/tab-active-right.png","http://www.jctchildrensfoundation.org/images/tabs/tab-active.png","http://www.jctchildrensfoundation.org/images/tabs/tab-left.png","http://www.jctchildrensfoundation.org/images/tabs/tab-right.png","http://www.jctchildrensfoundation.org/images/tabs/tab.png","http://www.jctchildrensfoundation.org/images/tabs/txt_container_bg.png","http://www.jctchildrensfoundation.org/images/donate/do_1_opt.jpg","http://www.jctchildrensfoundation.org/images/fundraising/fu_1_opt.jpg","http://www.jctchildrensfoundation.org/images/hiv/hiv_1_opt.jpg","http://www.jctchildrensfoundation.org/images/malawi/mal_1_opt.jpg","http://www.jctchildrensfoundation.org/images/malawi/malawi_map_opt.jpg","http://www.jctchildrensfoundation.org/images/malawi/malawi_thm.jpg","http://www.jctchildrensfoundation.org/images/our_story/em1_thm_opt.jpg","http://www.jctchildrensfoundation.org/images/our_story/em2_thm_opt.jpg","http://www.jctchildrensfoundation.org/images/our_story/os_1_opt.jpg","http://www.jctchildrensfoundation.org/images/projects/pr_1_opt.jpg","http://www.jctchildrensfoundation.org/images/schools/bricks_thm.jpg","http://www.jctchildrensfoundation.org/images/schools/sch_1_opt.jpg","http://www.jctchildrensfoundation.org/images/schools/sch_build_thm.jpg","http://www.jctchildrensfoundation.org/images/schools/sch_hall_kids_thm.jpg","http://www.jctchildrensfoundation.org/images/schools/sch_mic_kids_thm.jpg","http://www.jctchildrensfoundation.org/images/contact/co_1_opt.jpg","http://www.jctchildrensfoundation.org/images/home/home_1.jpg"],function(){})})
