	    $(window).ready(
	    
			function() {
				/*
				if(document.location.hash) {
					$('#events').before("<div id='selectedevent'><a id='showmoreevents' href='#' onclick='return false;'>Show more...</a></div>");
					$(document.location.hash).prependTo("#selectedevent");
					$('#events').hide();
					$('#showmoreevents').click(function() {
						if($('#showmoreevents').html() == "Show more...") {
							$('#showmoreevents').html("Hide...");
							$('#events').slideDown();
						} else {
							$('#showmoreevents').html("Show more...");
							$('#events').slideUp();
						}
					});
				}*/
				
			    $('img').fullsize();

                /* Captioned images */
                /* Wrap them in a div so there is something to hang the drop
                   shadows from */
                
			   	$('img.leftcaption').wrap("<div class='ldwrap'></div>");
			   	$('img.rightcaption').wrap("<div class='rdwrap'></div>");
			   	
			   	$('img.leftcaption').map(function() {
			   	    var parent = $(this).parents('a')[0];
			   	    if(parent) {
			   	        /* Make the image clickable in IE */
			   	        $(this).click(function() {
			   	            window.location.href = parent.href; 
			   	        });
			   	        /* Also make the caption clickable */
			   	        $(this).after("<div style='width: " + 
			   	            $(this).attr("width") + "px;'>" + 
			   	            "<a href='" + parent.href +"'>" +
			   	            $(this).attr("alt") + "</a></div>");
			   	    } else {
		   	            $(this).after("<div style='width: " + $(this).attr("width") + "px;'>" + $(this).attr("alt") + "</div>");
			   	    }
			   	});

			   	$('img.rightcaption').map(function() {
			   	    var parent = $(this).parents('a')[0];
			   	    if(parent) {
			   	        /* Make the image clickable in IE */
			   	        $(this).click(function() {
			   	            window.location.href = parent.href; 
			   	        });
			   	        /* Also make the caption clickable */
			   	        $(this).after("<div style='width: " + 
			   	            $(this).attr("width") + "px;'>" + 
			   	            "<a href='" + parent.href +"'>" +
			   	            $(this).attr("alt") + "</a></div>");
			   	    } else {
		   	            $(this).after("<div style='width: " + $(this).attr("width") + "px;'>" + $(this).attr("alt") + "</div>");
			   	    }
			   	});
		   	
			    $('div.ldwrap').wrap("<div class='ldwrap1'><div class='ldwrap2'>" +
          			"<div class='ldwrap3'></div></div></div>");
          		
          		$('div.rdwrap').wrap("<div class='rdwrap1'><div class='rdwrap2'>" +
              		"<div class='rdwrap3'></div></div></div>");
              	
              	/* Normal drop shdows */
              	/* Wrap them in a div so there is something to hang the drop
                   shadows from */
			    $('img.imageleft').wrap("<div class='lwrap1'><div class='lwrap2'>" +
          			"<div class='lwrap3'></div></div></div>");
                $('img.imageright').wrap("<div class='rwrap1'><div class='rwrap2'>" +
                	"<div class='rwrap3'></div></div></div>");
    		}
		);
