// JavaScript Document

$(document).ready(function(){						  
	$("#thumbs li").fadeTo("slow", 0.7); //Sets opacity of the thumbs to fade down to 70% when page loads
	$("#thumbs li").hover(function(){
		$(this).fadeTo("fast", 1.0); // Sets the opacity to 100% on hover
			},function(){
				$(this).fadeTo("slow", 0.7); // This should set the opacity back on mouseout
	});	
	
	$(".gallThumbs li").fadeTo("slow", 0.7); //Sets opacity of the thumbs to fade down to 70% when page loads
	$(".gallThumbs li").hover(function(){
		$(this).fadeTo("fast", 1.0); // Sets the opacity to 100% on hover
			},function(){
				$(this).fadeTo("slow", 0.7); // This should set the opacity back on mouseout
	});	

	 $('#galleryInternal').show();
	 $('#galleryCooler').hide();
	 $('#galleryRam').hide();
	 $('#galleryPsu').hide();
	 $('#galleryMobo').hide();
	 $('#galleryHds').hide();
	 
	$('#internalBtn a').click(function(){
		$('#galleryInternal').show();
		$('#galleryCooler').hide();
		$('#galleryRam').hide();
		$('#galleryPsu').hide();
		$('#galleryMobo').hide();
		$('#galleryHds').hide();
		return false;
	});

	$('#fanBtn a').click(function(){
		$('#galleryInternal').hide();
		$('#galleryCooler').show();
		$('#galleryRam').hide();
		$('#galleryPsu').hide();
		$('#galleryMobo').hide();
		$('#galleryHds').hide();
		return false;
	});
	
	$('#ramBtn a').click(function(){
		$('#galleryInternal').hide();
		$('#galleryCooler').hide();
		$('#galleryRam').show();
		$('#galleryPsu').hide();
		$('#galleryMobo').hide();
		$('#galleryHds').hide();
		return false;
	});
	
	$('#psuBtn a').click(function(){
		$('#galleryInternal').hide();
		$('#galleryCooler').hide();
		$('#galleryRam').hide();
		$('#galleryPsu').show();
		$('#galleryMobo').hide();
		$('#galleryHds').hide();
		return false;
	});

	$('#moboBtn a').click(function(){
		$('#galleryInternal').hide();
		$('#galleryCooler').hide();
		$('#galleryRam').hide();
		$('#galleryPsu').hide();
		$('#galleryMobo').show();
		$('#galleryHds').hide();
		return false;
	});

	$('#hdBtn a').click(function(){
		$('#galleryInternal').hide();
		$('#galleryCooler').hide();
		$('#galleryRam').hide();
		$('#galleryPsu').hide();
		$('#galleryMobo').hide();
		$('#galleryHds').show();
		return false;
	});	 
});
