$(document).ready(function(){

	var current = "selected";

	$(".thumbnails li").fadeTo("slow", 1.0);
	
	$(".thumbnails li").hover(
      function () {
      
        $(this).fadeTo("slow", .3);
        
        thumbid = $(this).attr("id");
         if (current != thumbid) {
			$("div#container div."+current).fadeOut("slow");
			$("div#container div."+thumbid).fadeIn("slow");
			current = thumbid;
		}
      }, 
      function () {
        
        $(this).fadeTo("slow", 1.0);
        
      }
    );
    
    
});

