// JavaScript Document
    $(document).ready(function() {
		
		
		
		
		        jQuery('.imghome').each(function() {
            $(this).hover(function() {
				//Hover out
                $(this).stop().animate({ opacity: 0.5 }, 500)
            },
           function() {
			   //Hover on
			   $(this).stop().animate({ opacity: 1.0 }, 500);
               ;
           });
        });
		
		
		jQuery('.imgindex').each(function() {
            $(this).hover(function() {
				//Hover out
                $(this).stop().animate({ opacity: 0.5 }, 500)
            },
           function() {
			   //Hover on
			   $(this).stop().animate({ opacity: 1.0 }, 500);
               ;
           });
        })
		
		
		
		
		
		$(function() {
    var thumbs = $('.gallerythumb').click(function() {
        thumbs.removeClass('galleryactivethumb').addClass('galleryinactivethumb');
		thumbs.stop().animate({ opacity: 0.5 }, 500);
		$(this).stop().animate({ opacity: 1.0 }, 500)
        $(this).removeClass('galleryinactivethumb').addClass('galleryactivethumb');
    }).hover(function() { //Hover over
            $(this).stop().animate({ opacity: 1.0 }, 500)
        },
        function() { //Hover out
            if ($(this).hasClass('galleryinactivethumb')) {
                $(this).stop().animate({ opacity: 0.5 }, 500);
            }
        });	
	});
	
});

		

	

function GalleryChangeImage(path,description){
	$("#galleryimage").animate({ opacity: 0.0 }, 250,
	function() {
    // Animation complete.
 	$("#galleryimage").attr("src", path);
	$("#galleryimage").animate({ opacity: 1.0 }, 250);
	
	$("#gallerytitle").text(description);
	
	
	
  });
  
 
	
}

	


  

