// JavaScript Document
function initfolio(){
	// Lowering the opacity of all slide in divs
	$('.folio div').css('opacity',0);
	$('.folio div').css('opacity',0);
	// Using the hover method 
	$('.folio').hover(function(){	
		var el = $(this);
		
		el.find('div.overlay').stop(true,true).animate({opacity:1},0);
		el.find('div.tblack').stop(true,true).animate({opacity:.75},0);

	},function(){
		// Executed on moseleave
		var el = $(this);
		
		// Hiding the text
		el.find('div.overlay').stop(true,true).animate({opacity:0},0);
		el.find('div.tblack').stop(true,true).animate({opacity:0},0);
		
	}).click(function(){		
		// When clicked, open a tab with the address of the hyperlink
		window.open($(this).find('a').attr('href'),'_self');
		
	});
}
