/*
 * jQuery cookie to remember font size
 *
 * Copyright (c) 2011 ArchYves
 */

$(document).ready(function(){
	if($.cookie("TEXT_SIZE_PHILIPS")) {
		$("body").addClass($.cookie("TEXT_SIZE_PHILIPS"));
	}else{
		$("body").addClass("smallFont");
	}
	$(".resizeFont").click(function() {
		var textSize = $(this).attr("id");
		$("body").removeClass("smallFont largeFont").addClass(textSize);
		$.cookie("TEXT_SIZE_PHILIPS",textSize, { path: "/", expires: 10000 });
		return false;
	});
});
