// JavaScript Document

$.ui.accordion.animations.euroaccordion = function(options) {
	this.slide(options, {
		easing: "easeOutBounce",
		duration: 500
	});
};

$(document).ready(function() {
	$('#euro-accordion').accordion({
		active: 0,								   
		autoHeight: true,
		animated: 'euroaccordion',
		//fillSpace: true,
		event: 'click'
	});

	var active = document.location.hash.replace("#", "#navigation_");
	$active = $(active);
	if ($active.attr('id') == active.replace('#', ''))
	{
		$(active).click();
	}
	
	$('div.layout-header div.menu a').hover(
		function() {
			$(this).animate( {
				color: '#ffcc00'
			});
		},
		function() {
			$(this).animate( {
				color: '#ffffff'
			});
		}
	);

	$('div.layout-header div.slogan').hover(
		function() {
			$(this).animate( {
				color: '#ffffff'
			});
		},
		function() {
			$(this).animate( {
				color: '#aaaadd'
			});
		}
	);

});