window.addEvent('domready', function(){
	
	$$('a.js').each(function(item){
		
		var img = item.getElement('img');
		img.set({'opacity': 0});
		img.style.visibility = '';
		
		if (item.className.indexOf('_nojs')>-1) {
			item.className = item.className.replace(/_nojs/gi, '');
		}
		
		item.addEvents({
			mouseenter: function(){
				this.getElement('img').morph({
					duration: 100,
					'opacity': 1
				});
			},
			mouseleave: function(){
				this.getElement('img').morph({
					duration: 100,
					opacity: 0
				});
			}
		});
	});
});