window.addEvent('domready',function(){
	var TipsPublic = new Tips($$('.Tips'));
	var oMenu = $('main_menu');
	if (oMenu != null) {
		var dropdownElement = $('main_menu').getElement('ul');
		var DropDownMenu = new DropDown({
			'element': dropdownElement
		});
	}
	$$('div#newsletterbox input.text').each(function(input){
		input.addEvent('focus',function(){
			this.setProperty('value','');
		});
	});
});
var DropDown = new Class({
	initialize: function(options){
		this.setOptions(options);
		var firstItems = this.options.element.getChildren();
		firstItems.each(function(firstItem){
			var subItem = firstItem.getElement('ul');
			if(subItem !== null){
				firstItem.addEvents({
					'mouseover': function(){
						subItem.setStyle('display','block');
					},
					'mouseout': function(){
						subItem.setStyle('display','none');
					}
				});
			}
		});
	}
});
DropDown.implement(new Options());
DropDown.implement(new Events());