function f_change_content(page)
{
	$('body').attr('id', 'page-' + page);
	$('#content').hide();
	var load_this = '_page/new_' + page + '.html';
	$('#content').load(load_this);
	$('#content').show();
	
	if( 'home' != page )
	{
		$('#header').css('height', '220px');
		$('#bottom-flash').attr('style', 'width:100%; position:absolute; bottom:-100px; height:400px; display:block;');
	}
	else
	{
		$('#header').css('height', '489px');
		$('#bottom-flash').css('display', 'none');	
	}
	$('body').attr('id', 'page-' + page);
	f_change_meta(page);
	track_google(page);
}

function f_change_meta(page)
{
	document.title = meta_data[page].title;
}

function track_google(page)
{
	pageTracker._trackPageview(page + '.php');
}

$(document).ready(
	
	function()
	{
		
		/* Navigation Links to load all the correct content */
		$('#nav li a, a.special-link, a.slinks').click(
		
			function()
			{
				
				var url = $(this).attr('href').replace('.php', '');
				
				if('index' == url)
				{
					url = 'home';
				}
				
				if('store' == url)
				{
					return true;
				}
				else
				{
					f_change_content(url);

					return false;
				}
				
			}
			
		);
		
		$('#media-flash-fish').media( { width: 300, height: 430, autoplay: true, bgColor: 'transparent', params: { wmode: 'transparent' } } );
		$('#media-flash-music-player').media( { width: 280, height: 40, autoplay: true, bgColor: 'transparent', params: { wmode: 'transparent' } } );
	}
	
);