I am developing a blog where the visitor can change the background color by clicking on one of the 5 buttons.

$(function(){
//Verificando se já existe algum esquema de cor selecionado
var esquemaCor = parseInt(getCookie("cor_de_fundo"));
switch(esquemaCor){
case 1:
$('body').css('background-color','#0A0A0A');
break;
case 2:
$('body').css('background-color','#766777');
break;
case 3:
$('body').css('background-color','#EEE6EE');
break;
case 4:
$('body').css('background-color','#9F00A9');
break;
case 5:
$('body').css('background-color','#420668');
break;
default:
$('body').css('background-color','#9F00A9');
}
$('#cor_01').click(function(){
setCookie('cor_de_fundo', 1);
$('body').css('background-color','#0A0A0A');
});
$('#cor_02').click(function(){
setCookie('cor_de_fundo', 2);
$('body').css('background-color','#766777');
});
$('#cor_03').click(function(){
setCookie('cor_de_fundo', 3);
$('body').css('background-color','#EEE6EE');
});
$('#cor_04').click(function(){
setCookie('cor_de_fundo', 4);
$('body').css('background-color','#9F00A9');
});
$('#cor_05').click(function(){
setCookie('cor_de_fundo', 5);
$('body').css('background-color','#420668');
});
});
The standard color is purple blog.
background: # 9F00A9
When the user changes the background color of the button event works perfectly. The problem is by the time he navigates between pages of the blog. Before charging the color he has selected, for example the black background color is first loaded after the purple to black. (Take the test blog: www.obovio.com.br) How do I always carry first color that the user selected?