function fontSize(container, target, defSize, midSize, maxSize) {
           
    var f = readCookie('fontsize');
	if (f) updatefontCookie(target, f);
	
	//on clicking default font size button, font size is reset
	$(container + " .normal").click(function(){
		updatefontCookie(target, defSize);
	});
	
	//on clicking mid font size button, font size is increased
	$(container + " .large").click(function(){
		updatefontCookie(target, midSize);
	});
	
	//on clicking max font size button, font size is increased
	$(container + " .largest").click(function(){
		updatefontCookie(target, maxSize);
	});

	function updatefontCookie(target, size) {
                $(target).css('font-size', size);
                createCookie('fontsize', size, 365);
	}
}
