	$(document).ready(function(){
	
		// image galleries (with thumbnails)
		$('ul.photoGallery').galleria({
			history: false,
			clickNext : true,
			onImage: function(image,caption){ 
				image.css('display','none').fadeIn();
			}
		});
		
		// image slideshows
		$('.photoSlideshow .slideshowImages').cycle({ 
		    fx:     'fade', 
		    speed:  1000, 
		    timeout: 4000, 
		    pager:  '.photoSlideshow .slideshowNav .numbers' 
		});
		
		// dropdowns for IE
		if (window.attachEvent){
			window.attachEvent("onload", sfHover);
		};

	});		
	
	// dropdowns for IE
	sfHover = function() {
		var sfEls = document.getElementById("mainNav").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
