$(function(){
	$('#gallery1link').click(function(){
		 $('#gallery2').fadeIn('slow');
			  $('#gallery1').hide();
	
	});
	$('#gallery2link').click(function(){
		 $('#gallery1').fadeIn('slow');
			  $('#gallery2').hide();
	
	});	  
});

$(function() {
$(".homeimage").click(function() {
	var image1 = $(this).attr("rel");
	$('#homeimage').hide();
	$('#homeimage').fadeIn('slow');
	$('#homeimage').html('<img src="' + image1 + '"/>');
	return false;
	});

});

$(function() {
$(".image").click(function() {
	var image = $(this).attr("rel");
	$('#image').hide();
	$('#image').fadeIn('slow');
	$('#image').html('<img src="' + image + '"/>');
	return false;
	});

});
 
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
