// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log=function(){log.history=log.history||[],log.history.push(arguments),arguments.callee=arguments.callee.caller,this.console&&console.log(Array.prototype.slice.call(arguments))},function(a){function b(){}for(var c="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),d;d=c.pop();)a[d]=a[d]||b}(window.console=window.console||{}),function(a){function c(){var a=!1;return window.getSelection?a=window.getSelection().toString():document.getSelection?a=document.getSelection():document.selection&&(a=document.selection.createRange().text),a}var b="2.0";a.fn.bigTarget=function(b){var d=a.extend({},a.fn.bigTarget.defaults,b);return this.each(function(b){var e=a(this),f=this.href||!1,g=this.title||!1;if(!f)return;var h=a.metadata?a.extend({},d,e.metadata()):d;e.addClass(h.anchorClass).hover(function(){e.toggleClass(h.anchorHoverClass)}).parents(h.clickZone).each(function(b){var d=a(this);g&&h.copyTitleToClickZone&&d.attr("title",g),d.addClass(h.clickZoneClass).hover(function(){d.toggleClass(h.clickZoneHoverClass)}).click(function(){c()==""&&(e.is("[rel*=external]")&&h.openRelExternalInNewWindow?window.open(f):window.location=f)})})})},a.fn.bigTarget.ver=function(){return b},a.fn.bigTarget.defaults={clickZone:"div:eq(0)",clickZoneClass:"big-target-click-zone",clickZoneHoverClass:"big-target-click-zone-hover",anchorClass:"big-target-anchor",anchorHoverClass:"big-target-anchor-hover",copyTitleToClickZone:!0,openRelExternalInNewWindow:!0}}(jQuery)
