﻿///<reference path="jquery-1.4.2-vsdoc.js"/>
(function($){

})(window.jQuery);

window.log = function(){
  log.history = log.history || [];
  log.history.push(arguments);
  if(this.console){
    console.log( Array.prototype.slice.call(arguments) );
  }
};

(function(doc){
  var write = doc.write;
  doc.write = function(q){ 
    log('document.write(): ',arguments); 
    if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments);  
  };
})(document);

String.prototype.trim = function() {
    return this.replace(/^\s+|\s+$/g, '');
};
