function updateNav(which,navID){
	var src;	var id;
	$children	=	$('#'+which+'NavContainer').find('img');
	
	$($children).each(function(){
		src	=	$(this).attr("src");
		id	=	$(this).attr("id");
		if(id==(""+which+"SlideshowButton"+navID+""))	$(this).attr("src",src.replace("off","on"));
		else 											$(this).attr("src",src.replace("on","off"));
	});
}function showEmailBulletins(){
	$("#emailBulletinsFormContainer").show();
}function registerEmailBulletinForm(){
	//jquery ajaxForm plugin : http://malsup.com/jquery/form/
	_target			=	'#emailBulletinsFormResults';
	_success		=	function(data,textStatus){$("#emailBulletinsFormResults").text(data); if(data.indexOf("Thank you")>=0) $("#emailBulletinsForm").hide()};
	_type			=	'post';
	_url			=	"php/submitEmailBulletinForm.php";
	_formId			=	'emailBulletinsForm';
	
	var options = { 
		target:        _target,   // target element(s) to be updated with server response 
		success:       _success,  // post-submit callback 	//orig value: showResponse	
		type:          _type,
		url:           _url
	}; 					
	$('#'+_formId).ajaxForm(options); // bind form using 'ajaxForm' 
}
