/*
 * jquery.geekga.min.js - Minified jQuery plugin for Google Analytics
 * 
 * This plugin extends jQuery with two new functions:
 * 
 *   - $().geekGaTrackPage(account_id)
 *       Track a pageview.
 * 
 *   - $().geekGaTrackEvent(category, action, label, value)
 *       Track an event with a category, action, label and value.
 * 
 * 
 * This code is in the public domain.
 * 
 * Willem van Zyl
 * willem@geekology.co.za
 * http://www.geekology.co.za/blog/
 */

(function($){var pageTracker;$.fn.geekGaTrackPage=function(account_id){var host=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");var src=host+'google-analytics.com/ga.js';$.getScript(src,function(){if(typeof _gat!=undefined){pageTracker=_gat._getTracker(account_id);pageTracker._trackPageview();}
else{throw"Unable to load ga.js; _gat has not been defined.";}});};$.fn.geekGaTrackEvent=function(category,action,label,value){if(typeof pageTracker!=undefined){pageTracker._trackEvent(category,action,label,value);}else{throw"Unable to track event; pageTracker has not been defined";}};})(jQuery);
