// 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||{});

/*
* jQuery Center
* Copyright 2011, Ben Lin (http://dreamerslab.com/)
* Licensed under the MIT License (LICENSE.txt).
*
* Version: 1.0.1
*
* Requires: jQuery 1.2.6+
*/
;(function(b,a){b.fn.center=function(c){var d,e;d=b(a);e=d.scrollTop();return this.each(function(){var h,g,f;h=b(this);g=b.extend({against:"window",top:false,topPercentage:0.5},c);f=function(){var j,i,k;if(g.against==="window"){j=d;}else{if(g.against==="parent"){j=h.parent();e=0;}else{j=h.parents(against);e=0;}}i=((j.width())-(h.outerWidth()))*0.5;k=((j.height())-(h.outerHeight()))*g.topPercentage+e;if(g.top){k=g.top+e;}h.css({left:i,top:k});};f();d.resize(f);});};})(jQuery,window);
