// Image Preloader

	jQuery.preloadImages = function()
	{
	  for(var i = 0; i<arguments.length; i++)
	  {
		jQuery("<img>").attr("src", arguments[i]);
	  }
	}

	$.preloadImages("Images/Load.gif", "Images/Portfolio/Blank.jpg");


// Shiny

	$(document).ready(function() {
		$('.Thumb img').css('opacity',0.5);
		$(".Thumb img").hover(
      		function () {
        		$(this).css('opacity',1.0);
      		}, 
      		function () {
        		$(this).css('opacity',0.5);
      	});
	});


// Accordian

	$(document).ready(function() {
		$('div.Accordian:eq(0)> div.Content:gt(0)').hide();
	  	$('div.Accordian:eq(0)> div.Section').click(function() {
    		$(this).next('div.Content:hidden').slideDown('fast').siblings('div.Content:visible').slideUp('fast');
		});
	});
	
	
// Image Change

	$(document).ready(function(){
		$(".Thumb img").click(function(){
			var fullImage = $(this).attr("alt");
			var newImage = new Image();

			$("#FullImage").fadeOut("fast");
			
			newImage.src = fullImage;
			$(newImage).load(function() {
					  
				$("#FullImage").hide();
				$("#FullImage").attr({ src: fullImage }); 					  
				$("#FullImage").fadeIn("fast");					  
			});
		});
	});
