function PoTrackerConstructor() {

  /**
   * The default account ID - The pageonce at Google analytics
   */
  var _accountID = "UA-2393964-6";
  var sleuthTracker;

  init();

  /**
   * Report on page for tracking.
   *
   * @param page The virtual page to track. if empty report the caller page
   * @param clientInfo  Whether or not to track browser info (true to track otherwise false)
   */
  this.report = function(page, clientInfo) {
    try {

      var pageTracker = _gat._getTracker(_accountID);
      pageTracker._initData();

      if (typeof clientInfo != "undefined") {
        pageTracker._setClientInfo(clientInfo);
      }

      if (typeof page == "undefined") {
        pageTracker._trackPageview();
      }
      else {
        pageTracker._trackPageview(page);
      }
    }
    catch(err) {
    }
  }

  /**
   * Set the Google account id
   * @param value
   */
  this.setAccountID = function (value) {
    _accountID = value;
  }

  /**
   * Initiate this cass. dynamically resolve the google analytics demain name according to the protocol (http or https)
   */
  function init() {
    try {
      var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
      document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

      sleuthTracker = _gat._getTracker("UA-1");
      sleuthTracker._initData();
    }
    catch(err) {
    }
  }


  /*

  >>>> DO NOT EDIT THIS SCRIPT <<<<

  Name: Google Analytics Keyword Sleuth 2.0.4 - ga.js Version
  Author: Michael Harrison
  Created: 01/18/2008
  Description: If a visitor arrives from a search engine, grab their exact search query and store it in the user defined variable.

  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script src="http://www.[yoursitehere].com/path/to/ga_keyword2.js" type="text/javascript"></script>
  <script type="text/javascript">
  var pageTracker = _gat._getTracker("UA-XXXXXX-X");
  pageTracker._initData();
  pageTracker._trackPageview();
  </script>

  ~~~~~~
  ~~~~~~
  Last modified by Michael Harrison on 11/05/2008
  */

  function noPercent(x)
  {
    x = unescape(x);
    return x.replace(/\+/g, " ").replace(/^\s\s*/, '').replace(/\s\s*$/, '');
  }

  function getRef()
  {
    ref = document.referrer;
    re = /(\?|&)(q|p|query|encquery|qt|terms|rdata|qs|wd|text|szukaj|k|searchExpr|search_for|string|search_query|searchfor)=([^&]+)/;
    searchq = re.exec(ref);
    if (searchq) {
      searchq[3] = noPercent(searchq[3]);
      sleuthTracker._setVar(searchq[3]);
    }
    else {
      sleuthTracker._setVar('Referral: ' + document.referrer);
    }
  }

  this.sleuth = function() {
    if (document.location.search.indexOf("gclid") != -1 || document.location.search.indexOf("cpc") != -1) {
      getRef();
    }
  }
}

if (!window.PoTracker) {
  window.PoTracker = new PoTrackerConstructor()
}





