var cookie_name_textsize = 'pronema_textsize';

var options = { path: '/', expires: 10 };
var url = document.URL;


$(document).ready(
    function () {
        // Font size
        if (($.cookie(cookie_name_textsize)) != null) {
            if ($.cookie(cookie_name_textsize) == "Pronema_small") {
                // Set Small Text
                Pronema_small();
            } else if ($.cookie(cookie_name_textsize) == "Pronema_big") {
                // Set Big Text
                Pronema_big();
            }
        } else {
            // Set Cookie Small Text Default
            $.cookie(cookie_name_textsize, 'Pronema_small', options);
            // Set Small Text
            Pronema_small();
        }




    });

// Get Function
function Pronema_small() {
    var link = "<link rel=\"stylesheet\" href=\"" + sGlobalPath + "/Styles/pronema_txtSmall.css\" type=\"text/css\" />";
    $('head').append(link);
}


function Pronema_big() {
    var link = "<link rel=\"stylesheet\" href=\"" + sGlobalPath + "/Styles/pronema_txtBig.css\" type=\"text/css\" />";
    $('head').append(link);
}


// Set Function
function set_Pronema_small() {
    // Set Cookie
    $.cookie(cookie_name_textsize, 'Pronema_small', options);
    reloadPage();
}

function set_Pronema_big() {
    // Set Cookie
    $.cookie(cookie_name_textsize, 'Pronema_big', options);
    reloadPage();
}


function reloadPage() {
    document.location.reload();
}
