function showSitemap()
{
	var height = $('#sitemap-area').height();
	if ($('#sitemap-area').is(':visible'))
	{
		$('#sitemap-area').animate({ top: -height }, 'normal', function() {
			$(this).hide();
		});
		$('#page').animate({ top: 0 });
	}
	else
	{
		$('#sitemap-area').css('top', -height);
		$('#sitemap-area').show().animate({ top: 0 });
		$('#page').animate({ top: height });
	}
}

$(function(){
	$('.hhrotate').fader({ length: 1500, delay: 10000 });
		   
	var h = $('#sitemap-area').height();
	$('#sitemap-area').css('top', -h);
	
	$('#navigation > li > a.top').each(function(){
		var text = $(this).text();
		var span = $('<span/>');
		span.text(text);
		$(this).parent().prepend(span);
	});
	
	$('#navigation li').hover(
		function(){ $(this).find('ul.flyout:first').stop(true,true).fadeIn('fast'); },
		function(){ $(this).find('ul.flyout:first').stop(true,true).fadeOut(); }
	);

	$('.recmenu li').hover(
		function(){ $(this).find('ul.recflyout:first').stop(true,true).fadeIn('fast'); },
		function(){ $(this).find('ul.recflyout:first').stop(true,true).fadeOut(); }
	);
	
	$('a[href$=#_print]').each(function(){
		var href = location.href + '?useTemplateId=13';
		$(this).attr('href', href);
	});
	
	$('img').bind('contextmenu',function(){ return false; });
});

