$(window).load(function(){
	$("#preloader").fadeOut('slow',function(){$(this).remove();});
});



$(document).ready(function(){

	//LARGE BGS
	$(function(){
		jQuery('#large_bgs img').maxImage({
			maxFollows:'both',
			verticalOffset:(0),
			horizontalOffset:(0),
			leftSpace:(0),
			topSpace:(0),
			rightSpace:(0),
			bottomSpace:(0),
			overflow:'auto',
			position:'absolute',
			isBackground: true,
			zIndex:(-10),
			verticalAlign: 'top',
			horizontalAlign: 'center',
			maxAtOrigImageSize: false,
			slideShow: false
		});
	});

	
	$(".equal_one").equalHeight();
	$(".equal_two").equalHeight();
	$(".equal_three").equalHeight();
	
	
	
	
	//ANIM PADDING
	var animDuration = 150; //time in milliseconds
      
      $("a.more").hover(function() {
        $(this).animate({ paddingLeft: "10px" }, animDuration);
      }, function() {
        $(this).animate({ paddingLeft: "0px" }, animDuration);
      });
      
	$("div.project_entry .content span.overlay").fadeTo("fast", 0.0);
	$("div.project_entry .content span.overlay").hover(function(){
	$(this).fadeTo(250, 0.6);},

	function(){
		$(this).fadeTo(400, 0.0);
	});
	
	
	$("img.fade").fadeTo("fast", 0.4);
	$("img.fade").hover(function(){
	$(this).fadeTo(250, 1.0);},

	function(){
		$(this).fadeTo(400, 0.4);
	});


	
	
});
