﻿//TODO: store in a cookie and on document load set the size
var size = 0;
function largerText() {
    if(size==0){
        $('html').css('font-size', "1.1em");
        size++;
    }
    if (size < 0) {
//        var currentFontSize = $('html').css('font-size');
//        var currentFontSizeNum = parseFloat(currentFontSize, 10);
//        var newFontSize = currentFontSizeNum * 1.1;
        $('html').css('font-size', "1em");
        size++;
    }    
}

function smallerText() {
    if (size == 0) {
        $('html').css('font-size', "0.9em");
        size--;
    }
    if (size > 0) {
        //        var currentFontSize = $('html').css('font-size');
        //        var currentFontSizeNum = parseFloat(currentFontSize, 10);
        //        var newFontSize = currentFontSizeNum * 1.1;
        $('html').css('font-size', "1em");
        size--;
    }
}
