// JavaScript Document
function setbgColor(color)
{
	if(color == 1){
		document.getElementById('right-container').style.backgroundColor = "#ffffff";
		document.getElementById('right-container').style.color = "#333333";
	}else if(color == 2){
		document.getElementById('right-container').style.backgroundColor = "#000000";
		document.getElementById('right-container').style.color = "#ffffff";
	}else if(color == 3){
		document.getElementById('right-container').style.backgroundColor = "#ffff00";
		document.getElementById('right-container').style.color = "#32b16c";
	}
}
function savebgColor(color) {
	jQuery.cookie('bg', color, {expire: 30, path: '/'});
}
function setFontSize(size)
{
	if(size == 1){
		document.body.style.fontSize = "0.8em";
	}else if(size == 2){
		document.body.style.fontSize = "1em";
	}else if(size == 3){
		document.body.style.fontSize = "1.2em";
	}
}
function saveFontSize(size) {
	jQuery.cookie('sz', size, {expire: 30, path: '/'});
}
jQuery(function(){
    var bg = jQuery.cookie('bg');
    if(bg == "1" || bg == "2" || bg == "3") {
    	setbgColor(bg);
    }
    var sz = jQuery.cookie('sz');
    if(sz == "1" || sz == "2" || sz == "3") {
    	setFontSize(sz);
    }
 });

