function setBackground( colour )
{
	rgb = "#ddd";
	switch ( colour )
	{
		case "blue":
			rgb = "rgb(204,234,238)";
			break;

		case "pink":
			rgb = "rgb(251,216,224)";
			break;
	}

	//Set style
	$('body').css('background-color', rgb );

	//Store in a cookie for session
	$.cookie('style_bg', colour, { path: '/' } );

	//Set option style
	$('.set-background a').css('text-decoration', 'none' );
	$('#set-background-' + colour).css('text-decoration', 'underline' );
}

function setFont( face )
{
	switch ( face )
	{
		case "georgia":
			$('body').css('font-family', 'Georgia');
			$('body').css('font-size', '12px');
			$('h4').css('font-weight', 'normal');
			break;

		case "trebuchet":
			$('body').css('font-family', '"Trebuchet MS", Helvetica, sans-serif'); //"Lucida Console", Monaco, monospace
			$('body').css('font-size', '12px');
			$('h4').css('font-weight', 'bold');
			break;
			
		default:
			$('body').css('font-family', 'Arial');
			$('body').css('font-size', '12px');
			$('h4').css('font-weight', 'bold');
			break;
	}

	//Set option style
	$('.set-font a').css('text-decoration', 'none' );
	$('#set-font-' + face).css('text-decoration', 'underline' );

	//Store in a cookie for session
	$.cookie('style_font', face, { path: '/' } );
}

//Change style onload
$(document).ready(function(){

	if ( $.cookie('style_bg') != null )
	{
		setBackground( $.cookie('style_bg') );
	}
	else
	{
		setBackground( 'grey' );
	}
	if ( $.cookie('style_font') != null )
	{
		setFont( $.cookie('style_font') );
	}
	else
	{
		setFont( 'arial' );
	}

});
