/**
 * nbga.js - Non-Blocking Google Analytics
 * http://925html.com/code/non-blocking-google-analytics-integration/
 *
 * Copyright (c) 2008 Eric Ferraiuolo - http://925html.com
 * MIT License - http://www.opensource.org/licenses/mit-license.php
 *
 * $Date$
 * $Rev$
 */

var ga=function(A){var E,G,C,B;E={yahoo:{merge:function(I,H){return YAHOO.lang.merge(I,H);},getScript:function(H,I){YAHOO.util.Get.script(H,{onSuccess:I});}},jquery:{merge:function(I,H){return jQuery.extend({},I,H);},getScript:function(H,I){jQuery.getScript(H,I);}}};if(typeof A!="undefined"){A=A;}else{if(typeof YAHOO!="undefined"){A=E.yahoo;}else{if(typeof jQuery!="undefined"){A=E.jquery;}}}G={url:{http:"http://www.google-analytics.com/ga.js",https:"https://ssl.google-analytics.com/ga.js"}};C=null;B=false;function F(){var H,I;H=(document.location.protocol=="https:");I=(H&&C.url.https)?(C.url.https||C.url):(C.url.http||C.url);A.getScript(I,function(){C.tracker=_gat._getTracker(C.id);B=true;while(C.queue.length>0){D.track(C.queue.shift());}});}var D={config:function(H){H=A.merge(G,(H||{}));if(!C&&H.id){C=H;C.queue=[];F();}return this;},track:function(H){if(B){if(H){C.tracker._trackPageview(H);}else{C.tracker._trackPageview();}}else{if(C){C.queue.push(H||null);}}return this;}};return D;}();