var cddha_splashpageObj = new Class({
	initialize: function(div, options) {
		this.setOptions(this.getOptions(), options);
		this.bindLinks();
	},
	
	bindLinks: function() {
		$('menu').getElements('a').each(function(item){
			item.addEvent('mouseover', function(e){	
				new Event(e).stop();
				$('divSpashtop').set('html',this.get('title'));
			});	
			item.addEvent('mouseout', function(e){	
				new Event(e).stop();
				$('divSpashtop').set('html','');
			});	
		}.bind(this));
	},
	
	getOptions: function() {
		return {
			transition: Fx.Transitions.sineInOut,
			duration: 500, wait: false
		};
	}
	
});
cddha_splashpageObj.implement(new Options);

window.addEvent('domready', function() {
	if($('divMain'))
		cddha = new cddha_splashpageObj(
			$('divMain'), 
			{
				transition: Fx.Transitions.sineInOut, 
				duration: 700
			}
		);
}); 