$(document).ready(function () {
		$.easing.def = "easeOutExpo";


/* Header Nav */
$('.notselected').find('img').animate({ opacity: .5 }, 1);


$('.notselected').hover(function(){

		$(this).find('img').animate({ opacity: 1 }, 100);
		//$(this).animate({ backgroundColor: "#cc0000" }, 100);
		}, function(){
		$(this).find('img').animate({ opacity: .5 }, 100);
		//$(this).animate({ backgroundColor: "#fff" }, 100);

		

		});





/* Homepage: Project List */

$(this).find('.overlay').animate({ opacity: 0 }, 1);
$('#project_grid li').hover(function(){
		
		
		$(this).find('.overlay').animate({ opacity: 1 }, 300);
		Cufon.refresh();
		
		}, function(){
			$(this).find('.overlay').animate({ opacity: 0 }, 300);
   		Cufon.refresh();

		});
						
});


/* image loader */

$(".img_holder").each(function(i) {
		id = $(this).attr('id');
		$(this).html('<img src="img_thumb/'+ id +'.jpg" style="display:none;" class="ajaxLoad_'+ i +'" title="View this project" width="245" height="147" />');
		$(".ajaxLoad_"+i+"").load(function () {
			$(".ajaxLoad_"+i+"").delay(200).fadeIn(1000);
		});
	});



/* Project grid Hover 
$('#project_grid li').hover(function(){
		
		$(this).find('img').animate({ opacity: .7 }, 200);
		$(this).find('.info').animate({ backgroundColor: "#8a8a8a" }, 200);
		$(this).find('.name').css({color:'#fff'}, 200);
		$(this).find('.desc').css({color:'#454545'}, 200);
		Cufon.refresh();

		}, function(){
		$(this).find('img').animate({ opacity: 1 }, 200);
		$(this).find('.info').animate({ backgroundColor: "#fff" }, 200);
		$(this).find('.name').css({color:'#000'}, 200);
		$(this).find('.desc').css({color:'#808080'}, 200);
   		Cufon.refresh();

		});
						
});
*/
