
// usage: log('inside coolFunc', this, arguments);
window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if(this.console) {
      arguments.callee = arguments.callee.caller;
      console.log( Array.prototype.slice.call(arguments) );
  }
};
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});


var Detector=function(){var h=document.getElementsByTagName("BODY")[0];var d=document.createElement("DIV");var s=document.createElement("SPAN");d.appendChild(s);d.style.fontFamily="sans";s.style.fontFamily="sans";s.style.fontSize="72px";s.innerHTML="mmmmmmmmmmlil";h.appendChild(d);var defaultWidth=s.offsetWidth;var defaultHeight=s.offsetHeight;h.removeChild(d);function debug(font){h.appendChild(d);var f=[];f[0]=s.style.fontFamily=font;f[1]=s.offsetWidth;f[2]=s.offsetHeight;h.removeChild(d);font=font.toLowerCase();if(font=="serif"){f[3]=true;}else{f[3]=(f[1]!=defaultWidth||f[2]!=defaultHeight);}
return f;}
function test(font){f=debug(font);return f[3];}
this.detailedTest=debug;this.test=test;}

