/*
var prefs = {
    data: {},
    load: function () {
        var the_cookie = document.cookie.split(';');
        if (the_cookie[0]) {
            this.data = JSON.parse(unescape(the_cookie[the_cookie.length-1]));
        }
        return this.data;
    },
    save: function (expires, path) {
        var d = expires || new Date(2030, 02, 02);
        var p = path || '/';
//        console.log(this.data);
        var cookieData = escape(JSON.stringify(this.data))
        + ';path=' + p
        + ';expires=' + d.toUTCString();
        document.cookie = cookieData;
    }
}
*/
