window.console || (window.console = { 'log': function() {} });

var Base = Base || {};

var Base = {
	options: {
		webroot: '/',
		phpThumbUrl: '/library/phpThumb/phpThumb.php',
		requireFlash: true,
		requiredFlashVersion: {
			major: 9,
			minor: 0,
			revision: 0
		}
	}
};

var Cookie = {
  set: function(name, value) {
    var expires = '', options = arguments[2] || {};
    if (options.duration) {
      var date = new Date();
      date.setTime(date.getTime() + options.duration * 1000 * 60 * 60 * 24);
      value += '; expires=' + date.toGMTString();
    }
    document.cookie = name + "=" + value + expires + "; path=/";
  },

  remove: function(name) { this.set(name, '', -1); },

  get: function(name) {
    var cookies = document.cookie.split(';'), nameEQ = name + "=";
    for (var i = 0, l = cookies.length; i < l; i++) {
      var c = cookies[i];
      while (c.charAt(0) == ' ')
        c = c.substring(1,c.length);
      if (c.indexOf(nameEQ) == 0)
        return c.substring(nameEQ.length, c.length);
    }
    return null;
  }
};

if (!!window.Cufon) {
	Cufon.replace(".HighTowerText", { fontFamily: 'HighTowerText' });
}
