
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
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) );
  }
};
// make it safe to use console.log always
(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||{});

/**
 * Plugin to add Placeholder support to older browsers
 * Source: https://gist.github.com/921617
 *
 * *Usage*
 * HTML: 
 * <input placeholder="Please enter your name">
 * JS: 
 * $(function(){ 
 *   Site.addPlaceholders(); 
 * });
 */ 
var Site={addPlaceholders:function(a){var b={"class":"placeholder"};for(var c in a)b.hasOwnProperty(c)&&(b[c]=a[c]);var d=$('<form><input type="text"></form>');$.extend($.support,{placeHolder:$("input",d)[0].placeholder!==undefined||$("input",d)[0].placeHolder!==undefined}),$.support.placeHolder||$("input[placeholder]").each(function(){var a=$(this).attr("placeholder");$(this).bind({focus:function(){$(this).val()===a&&($(this).val(""),$(this).removeClass(b["class"])),$(this).attr("data-focused","yes")},blur:function(){$(this).val()===""&&($(this).val(a),$(this).addClass(b["class"])),$(this).removeAttr("data-focused")}}),($(this).val()===""||$(this).val()===a)&&!$(this).attr("data-focused")&&($(this).val(a),$(this).addClass(b["class"]))})}}

