$(document).ready(function(){  	
  	
  	var fontsizec  = $.cookie("fontsize");
  	$('body').css('font-size', fontsizec+"%");
  	

 	$(".med").click(function(event){ 
 		event.preventDefault();
  	$('body').css('font-size', "81.3%"	
  );
  	$.cookie("fontsize",null);
  });
  
  // Increase Font Size
  $(".lrg").click(function(event){ 
  	event.preventDefault();
    var newFontSize = 90;
		$('body').css('font-size', newFontSize+'%'
	);
		$.cookie("fontsize",newFontSize);
		return false;
  });
  
  // Decrease Font Size
  $(".small").click(function(event) {
  	event.preventDefault();
    var newFontSize = 78;
		$('body').css('font-size', '78%'
	);
		$.cookie("fontsize",newFontSize);
		return false;
  });
  
			
	$('.hideshow').hide();
	$('.readmore').click(function() {
		$(this).parent().next('.hideshow').slideToggle();
	});


/* 	$('#amount').attr('disabled','disabled');	 */
	
	$('#friendssubs').change(function() {
	
		$("#friendssubs option:selected").each(function () {
			var amt = $(this).attr("data-amt");
				if (amt == 'N') {
					$('#famount').removeAttr('disabled');	
					$('#famount').val('');
				} else {
/* 					$('#famount').attr('disabled','disabled');	 */
					$('#famount').val(amt);
					
				}		

			console.log(amt);
    });
	
	});

	
});
