		function updateDayLink(link) {
			// Update the href
			var str = $(link).attr("href");
			str = str.replace("/index.php/calendar/day", "/get_event_day_main_content.php?day=");
			$(link).attr("href", str);
	
			// Add the onclick function
			$(link).click(function(){
				return hs.htmlExpand(this, { objectType: 'iframe' } );
			});
	
			// Add the highslide class
			$(link).addClass("highslide");
		}
		function updateEventLink(link) {
			// Update the href
			var str = $(link).attr("href");
			str = str.replace("/index.php/calendar/events/", "/get_main_content.php?params=");
			$(link).attr("href", str);
	
			// Add the onclick function
			$(link).click(function(){
				return hs.htmlExpand(this, { objectType: 'iframe' } );
			});
	
			// Add the highslide class
			$(link).addClass("highslide");
		}
		$(document).ready(function(){
			// Change the href of the link to the Marina Cam
			var str = $('#marinaCamLink').attr("href");
			if(str) {
				str = str.replace("/images/site/marina/marinaCam/", "/images/site/marina/marinaCam/get_most_recent_image.php");
			}
			$('#marinaCamLink').attr("href", str);

			// Add the onclick function
			$('#marinaCamLink').click(function(){
					return hs.expand(this);
			});
	
				// Add the highslide class
			$('#marinaCamLink').addClass("highslide");

			$('#eventsList a').each(function(){updateEventLink(this);});
			$('#meetings .entry h3 a').each(function(){updateEventLink(this);});
			$('.meeting_details_link').each(function(){updateEventLink(this);});
			$('#mini_calendar tbody a').each(function(){updateDayLink(this);});
		});
