$(document).ready(function()
{
	fixSelectedMenu();
	initHeaderMenu();
});

function fixSelectedMenu()
{
	var selected = $('#header li.selected');
		selected.next('li').addClass('post-selected');
		selected.prev('li').addClass('pre-selected');
}

function initHeaderMenu()
{
	$('#header div.menu-top li').hover(
		function()
		{
			$(this).addClass('hover');
			$(this).find('.right').addClass('right-hover');
			$(this).find('.left').addClass('left-hover');
		},
		function()
		{
			$(this).removeClass('hover');
			$(this).find('.right').removeClass('right-hover');
			$(this).find('.left').removeClass('left-hover');
		}
	)
	.click(function()
	{
		var url = $(this).find('a').eq(0).attr('href');
		window.location.replace(url);
	});
	
	$('#header div.shop').hover(
		function()
		{
			$(this).addClass('shop-hover');
		},
		function()
		{
			$(this).removeClass('shop-hover');
		}
	);
}


sIFR.replace(FSAlbert,
{
	selector: '#header .shop .label',
	wmode: 'transparent',
	fitExactly: true,
	css: [
	'.sIFR-root{ font-size: 20px; color: #FFFFFF; font-weight: bold; leading: 1}',
	'a {text-decoration:none; color: #FFFFFF; leading: 1}',
	'a:hover {text-decoration:none; color: #FFFFFF; leading: 1}'
	]
});

sIFR.replace(FSAlbert,
{
	selector: '#header .menu-bottom .label',
	wmode: 'transparent',
	fitExactly: true,
	css: [
		'.sIFR-root{ font-size: 26px; color: #FFFFFF; font-weight: bold; leading: 1;}'
	]
});


sIFR.replace(FSAlbert,
{
	selector: '#footer .content .text',
	wmode: 'transparent',
	fitExactly: true,
	thickness: 70,
	css: [
		'.sIFR-root{ font-size: 16px; color: #0081a8; leading: 4; letter-spacing: 1; }'
	]
});