function buttonFade()
{
	jQuery("span.button").each(function(){
			jQuery(this).css({"opacity" : ".6"});								
	});
	jQuery("span.button").each(function(){
			jQuery(this).hover(
      		function () {
        		jQuery(this).fadeTo(600, 1);
      		}, 
      		function () {
        		jQuery(this).fadeTo(600, .6);
      		});
	});
	jQuery("input#searchsubmit, #submit").each(function(){
			jQuery(this).hover(
      		function () {
        		jQuery(this).fadeTo(600, .6);
      		}, 
      		function () {
        		jQuery(this).fadeTo(600, 1);
      		});
	});
	jQuery(".galleryButton").css( { "opacity" : "0" } );
	jQuery(".viewBtn").css( { "right" : "-108px" } );
	jQuery(".zoomBtn").css( { "left" : "-108px" } );
	jQuery("#gallery .imgWrapper, #main .singleImgWrapper").each(function(){
			jQuery(this).hover(
      		function () {
        		jQuery(this).children(".viewBtn").animate({ "right" : "11px" }, { queue: false, duration: 600}).animate({ "opacity" : "1" }, { queue: false, duration: 600});
      		}, 
      		function () {
        		jQuery(this).children(".viewBtn").animate({ "right" : "-108px" }, { queue: false, duration: 600}).animate({ "opacity" : "0" }, { queue: false, duration: 600}).parent(this).children(".zoomBtn").animate({ "left" : "11px" }, { queue: false, duration: 600}).animate({ "opacity" : "1" }, { queue: false, duration: 600});
      		});
			jQuery(this).hover(
      		function () {
        		jQuery(this).children(".zoomBtn").animate({ "left" : "11px" }, { queue: false, duration: 600}).animate({ "opacity" : "1" }, { queue: false, duration: 600});
      		}, 
      		function () {
        		jQuery(this).children(".zoomBtn").animate({ "left" : "-108px" }, { queue: false, duration: 600}).animate({ "opacity" : "0" }, { queue: false, duration: 600});
      		});
	});
	
}
jQuery(document).ready(function(){
	buttonFade();
});
