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 = "100%";
    var medfont = "120%";
    var largefont = "140%";
    
    //builds the list of sizes
    $("#fontsize").append("<a id='fontsmall'>a</a><a id='fontmedium'>a</a><a id='fontlarge'>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(){
    $("p").css("font-size", smallfont);
	$.cookie(site_cookie, smallfont, { expires: 10 });                
    });
    $("#fontmedium").click(function(){
    $("p").css("font-size", medfont);             
       $.cookie(site_cookie, medfont, { expires: 10 });
    });
    $("#fontlarge").click(function(){
    $("p").css("font-size", largefont);             
       $.cookie(site_cookie, largefont, { expires: 10 });
    });

});