window.addEvent('domready',function(){	
	
	var overFx = [];
	var underoverFx = [];
	var Mosmargin = 18;
	
	$$('.tile-effect .item div.over').each(function(el,i){  				    overFx[i] = new Fx.Morph(el, {duration:400, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0})});
	$$('.tile-effect .item div.underover').each(function(el,i){ el.addEvent('click',function(e){ document.location.href=el.getNext().get('href'); }); underoverFx[i] = new Fx.Morph(el, {duration:500, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0,'margin-top':Mosmargin}) });
	
		$$('.tile-effect .item').each(function(el,i){
			el.addEvents({
			'mouseover':function(e){  overFx[i].start({'opacity':0.8}); underoverFx[i].start({'opacity':1,'margin-top':0});  },
			'mouseleave':function(e){  overFx[i].start({'opacity':0}); underoverFx[i].start({'opacity':0,'margin-top':Mosmargin}); }			
			
			});
		});
});
