﻿   <!-- Slideshow script -->
	    sfHover = function() 
    {
     var sfEls = document.getElementById("nav").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"), "");                     
        }     
      } 
    } 
    if (window.attachEvent) window.attachEvent("onload", sfHover);   

    function showPic(whichpic) 
	{
		$("#placeholder").attr("src", whichpic.href);
		$(whichpic).parent().siblings().removeClass("selected");
		$(whichpic).parent().addClass("selected");
		
		return false;
    }
	function showNext()
	{
		if($("#galleryNext").hasClass("disabled"))
			return;
	
		var selector = "ul.galleryControls li.selected";
		$(selector).next().children("a:not(#galleryNext)").click();
		
		$("#galleryPrev").removeClass("disabled");
		if($(selector).next().children("a:not(#galleryNext)").length == 0)
			$("#galleryNext").addClass("disabled");	
	}
	function showPrev()
	{
		if($("#galleryPrev").hasClass("disabled"))
			return;
	
		var selector = "ul.galleryControls li.selected";
		$(selector).prev().children("a:not(#galleryPrev)").click();
		
		$("#galleryNext").removeClass("disabled");
		if($(selector).prev().children("a:not(#galleryPrev)").length == 0)
			$("#galleryPrev").addClass("disabled");	
	}
	
	
	<!-- Slideshow script end -->
