(function(b){b.trackPage=function(d,f){b.gaq(["_setAccount",d]);if(b.isArray(f)){b.each(f,function(h,g){b.gaq(g)})}b.trackPageview();var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(e,c)};b.gaq=function(c){if(!window._gaq){window._gaq=[]}a("Queueing tracking event: ["+c.join(", ")+"]");window._gaq.push(c);return};b.trackEvent=function(d,f,c,e){b.gaq(["_trackEvent",d,f,c,e])};b.trackPageview=function(c){if(c){b.gaq(["_trackPageview",c])}else{b.gaq(["_trackPageview"])}};b.fn.track=function(c){var e=b(this);var d=b.extend({},b.fn.track.defaults,c);e.live(d.event_name,function(){var h=b(this);var i=f(h,d.category);var k=f(h,d.action);var g=f(h,d.label);var j=f(h,d.value);b.trackEvent(i,k,g,j);return true});function f(h,g){if(b.isFunction(g)){g=g(h)}return g}};function a(c){if(typeof console!="undefined"&&typeof console.debug!="undefined"&&b.fn.track.defaults.debug){console.debug(c)}}b.fn.track.defaults={category:function(c){return(c[0].hostname==location.hostname)?"internal":"external"},action:"click",label:function(c){return c.attr("href")},value:null,event_name:"click",debug:false}})(jQuery);

