/* brauchen wir für die fehlermeldungen */
//var formErrors = new Array();

function setup(){

	$$('a.footer_info').each(function(el){//änderung wegen mootloos
		el.addEvent('click',function(evt){
			new Event(evt).stop();
			popupWindowNew(650,600,"scrollbars=yes",el);
		});
	});
	$$('a.profile').each(function(el){//änderung wegen mootloos
		el.addEvent('click',function(evt){
			new Event(evt).stop();
			popupWindowNew(470,400,"scrollbars=yes",el);
		});
	});
	$$("a.opener").each(function(el){//änderung wegen mootloos
		el.addEvent('click',loadOpener);
	});
	$$("a.settings").each(function(el){//änderung wegen mootloos
		el.addEvent('click',function(evt){
			new Event(evt).stop();
			popupWindowNew(470,400,"scrollbars=yes",el);
		});
	});;
}



window.addEvent('domready',function(){
		
		
	/*currency dings*/
	if($('currencyContainer') && $('status')){
	
	$('currencyContainer').injectInside('status');
	
		var currMenu = new Fx.Styles('currencyContainer', {duration:400, wait:false, transition: Fx.Transitions.Cubic.easeInOut});
	
		$('amountOfMoney').addEvent('mouseenter', function(){
			currMenu.start({
				'height': $('currency').getSize().size.y
			});
		});
		
		$('status').addEvent('mouseleave', function(){
			currMenu.start({
				'height': 0
			});
		});	
	}
});


