jQuery().ready(function(){  
    var site_cookie = "HelpdeskKnowledgeBase"; //change this to reflect your site
    
    //specify these in whichever units you want best to make the small the same as your existing font
    var smallfont = "90%";
    var medfont = "100%";
    var largefont = "110%";
    
    //builds the list of sizes
    $("#fontsize").append("<a id='fontsmall' tabindex='5'>A</a><a id='fontmedium' tabindex='6'>A</a><a id='fontlarge' tabindex='7'>A</a>");
    
    var currentfont = $.cookie(site_cookie); //get the cookie value

    $("body").css("font-size",currentfont); //set the body to the font size of the cookie

    $("#fontsmall").click(function(){
	$("body").css("font-size",smallfont);
	$.cookie(site_cookie, smallfont, { expires: 10 });                
    });
    $("#fontmedium").click(function(){
       $("body").css("font-size",medfont);             
       $.cookie(site_cookie, medfont, { expires: 10 });
    });
    $("#fontlarge").click(function(){
       $("body").css("font-size",largefont);             
       $.cookie(site_cookie, largefont, { expires: 10 });
    });

});