function image_caption(){		
	$('img.credit').jcaption({
		imageAttr: 'title',
		copyStyle: false,
		autoWidth: true,
		animate: true,
		show: {height: "show"},
		hide: {height: "hide"}
	});
};

function slideshow(){
	$('#slideshow').crossSlide({
	  sleep: 4,
	  fade: 1
	}, [
	  {src: '/images/homepage_header_outlooknearCloisterLawn_1935.jpg'}, 
	  {src: '/images/homepage_header_outlooknearCloisterLawn_2009.jpg'},
	  {src: '/images/homepage_header_linden_terrace_1935.jpg'},
	  {src: '/images/homepage_header_linden_terrace_2009.jpg'}, 
	  {src: '/images/homepage_header_heather_garden_1935.jpg'},
	  {src: '/images/homepage_header_heather_garden_2009.jpg'}
	]);

};
function menu_hover(){	
	var bodyClass = $('body').attr('class'); //determine what class the body has applied to it
	bodyClass = bodyClass.split(" ",1);
	$('ul#navigation > li:not(#'+ bodyClass + ')').addClass('top_level');
	$('li.top_level').hover(
		function() { $('ul', this).css('display', 'block'); },
		function() { $('ul', this).css('display', 'none'); 
	});
};

function replace_me(){
	var bits1 = new Array(12);
	bits1[0]="pa@"; bits1[1]="v"; bits1[2]="jen"; bits1[3]="lto:"; bits1[4]="hop"; bits1[5]="par"; bits1[6]="er."; bits1[7]="nyc"; bits1[8]="nif"; bits1[9]=".go"; bits1[10]="ks."; bits1[11]="mai";
	
	var bits2 = new Array(11);
	bits2[0]="try"; bits2[1]="st."; bits2[2]="o@f"; bits2[3]="mai"; bits2[4]="tru"; bits2[5]="inf"; bits2[6]="org"; bits2[7]="ort"; bits2[8]="ark"; bits2[9]="lto:"; bits2[10]="onp";
	
	var bits3 = new Array(9);
	bits3[0]="wri"; bits3[1]="mai"; bits3[2]="2@a"; bits3[3]="hea"; bits3[4]="com"; bits3[5]="lto:"; bits3[6]="ol."; bits3[7]="lth"; bits3[8]="ter";
	
	var bits3 = new Array(9);
	bits3[0]="wri"; bits3[1]="mai"; bits3[2]="2@a"; bits3[3]="hea"; bits3[4]="com"; bits3[5]="lto:"; bits3[6]="ol."; bits3[7]="lth"; bits3[8]="ter";
	
	var bits4 = new Array(12);
	bits4[0]="ks."; bits4[1]="iel"; bits4[2]=".go"; bits4[3]="rca"; bits4[4]="par"; bits4[5]="mai"; bits4[6]=".me"; bits4[7]="nyc"; bits4[8]="lto:"; bits4[9]="do@"; bits4[10]="dan"; bits4[11]="v";
	
	var bits5 = new Array(17);
	bits5[0]="nyc";bits5[1]="mar";bits5[2]="lun";bits5[3]="bro";bits5[4]="ubj";bits5[5]="teer";bits5[6]="wn@";bits5[7]=".go";bits5[8]="ech";bits5[9]="ect";bits5[10]="mai";bits5[11]="v?s";bits5[12]="par";bits5[13]="=Vo";bits5[14]="al.";bits5[15]="lto:";bits5[16]="ks.";
	var replace_me2_text = $('span.replace_me2').text();
	
	$('span.replace_me1').html("<a href='"+bits1[11]+bits1[3]+bits1[2]+bits1[8]+bits1[6]+bits1[4]+bits1[0]+bits1[5]+bits1[10]+bits1[7]+bits1[9]+bits1[1]+"'>Jennifer Hoppa</a>");
	
	$('span.replace_me2').html("<a href='"+bits2[3]+bits2[9]+bits2[5]+bits2[2]+bits2[7]+bits2[0]+bits2[10]+bits2[8]+bits2[4]+bits2[1]+bits2[6]+"'>"+replace_me2_text+"</a>");
	
	$('span.replace_me3').html("send an <a href='"+bits2[3]+bits2[9]+bits2[5]+bits2[2]+bits2[7]+bits2[0]+bits2[10]+bits2[8]+bits2[4]+bits2[1]+bits2[6]+"'>email</a> with Beautification RSVP in the subject line");
	
	$('span.replace_me4').html("please email <a href='"+bits1[11]+bits1[3]+bits1[2]+bits1[8]+bits1[6]+bits1[4]+bits1[0]+bits1[5]+bits1[10]+bits1[7]+bits1[9]+bits1[1]+"'>Jennifer Hoppa</a>, Administrator for Northern Manhattan Parks, or call (212) 795&ndash;1388 x300.");
	
	$('span.replace_me5').html("<a href='"+bits3[1]+bits3[5]+bits3[3]+bits3[7]+bits3[0]+bits3[8]+bits3[2]+bits3[6]+bits3[4]+"'>email Healthwriter2</a> or call Linda Huntington at (212) 795&ndash;1388 ext. 304.");
	
	$('span.replace_me6').html("<a href='"+bits4[1]+bits4[5]+bits4[3]+bits4[7]+bits4[0]+bits4[8]+bits4[2]+bits4[6]+bits4[4]+"'>email</a> or by fax at (212) 927&ndash;9737.");
	
	$('span.replace_me7').html("<a href='"+bits5[10]+bits5[15]+bits5[1]+bits5[8]+bits5[14]+bits5[3]+bits5[6]+bits5[12]+bits5[16]+bits5[0]+bits5[7]+bits5[11]+bits5[4]+bits5[9]+bits5[13]+bits5[2]+bits5[5]+"'>email the Director of Horticulture</a>");
	
	$('span.replace_me8').html("You may also email <a href='"+bits1[11]+bits1[3]+bits1[2]+bits1[8]+bits1[6]+bits1[4]+bits1[0]+bits1[5]+bits1[10]+bits1[7]+bits1[9]+bits1[1]+"'>Jennifer Hoppa</a>");
};