// oomph global.js file
var OOMPH = {
	init: function(){
		var twits = $$('.oomph-twit');
		if (twits.length > 0){
			twits.each(function(twit){
				twit.up('li').observe('mouseover',function(event){
					var item = Event.element(event).up('li').select('.oomph-twit')[0];
					if (!item.visible()) {
						new Effect.Appear(item,{duration: 0.3});
					}
				});
				twit.select('.oomph-twit-close>a')[0].observe('click',function(event){
					var item = Event.element(event).up('div.oomph-twit');
					if (item.visible()) {
						new Effect.Fade(item,{duration: 0.5});
					}
				});
			});
		}
	}
}
document.observe('dom:loaded',OOMPH.init);
