Slimbox.scanPage = function() {
		$$(document.links).filter(function(el) {
			return el.href && el.href.test(/\.(jpg|png|gif)$/i);
		}).slimbox({loop:true}, null, function(el) {
			return (this == el) || (this.parentNode && (this.parentNode == el.parentNode));
		});
	};
	if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
		window.addEvent("domready", Slimbox.scanPage);
	}

window.addEvent('domready',function() {
	/*
	if($$('.Moognify')[0]) {
		$$(".Moognify").each(function(e) {
			e.addEvent('click',function() {
				new Moognify(e,{source: e.get('rel')});
			});
		})
	}
	*/
	$$(".hover").each(function(e) {
		var show = new Fx.Tween(e,{duration: 300});
		e.addEvent('mouseover',function() {
			show.cancel();
			show.start('opacity',0.01);
		});
		e.addEvent('mouseleave',function() {
			show.cancel();
			show.start('opacity',1);
		});
	})

	
});
