
//--  GoogleAnalytics SuperCode - ver. 0.2 beta
//--  eStorm.pl - Profesjonalne Rozwi±zania Informatyczne
//--  Copyright 2007 Grupa eStorm Internet Technologies, All Rights Reserved.

//--  tel : +48 42 296 02 57                   fax : +48 42 296 02 58
//--  www : http://wwww.estorm.pl              www : http://www.sqx.pl
//--  e-mail : biuro(at)estorm(dot).pl

//--  InterAuthor : Szymon Kapturkiewicz
//--  tel : +48 605 36 36 43                   e-mail : szymonk(at)estorm(dot).pl


function addGoogleStats(GAID) {
  //var GAID = ""; //twój identyfikator GA - UA-xxxxxx-x
  var head = document.getElementsByTagName('head')[0];
  var scr = document.createElement('script');
  scr.type = 'text/javascript';
  scr.src = (location.protocol == 'http:' ? 'http://www.' : 'https://ssl.') + 'google-analytics.com/'+'urchin.js';
  var once = 0;
    function runMe() { 
      if (scr.readyState == 'loading' || urchinTracker == undefined || once) { return; }
      clearInterval(timer);
      once++;
      _uacct = GAID;
        _uOsr[_uOsr.length]="szukaj.onet.pl";       _uOkw[_uOkw.length]="qt";
        _uOsr[_uOsr.length]='onet.pl';              _uOkw[_uOkw.length]='qt';
        _uOsr[_uOsr.length]="szukaj.wp.pl";         _uOkw[_uOkw.length]="szukaj";
        _uOsr[_uOsr.length]='wp.pl';                _uOkw[_uOkw.length]='szukaj';
        _uOsr[_uOsr.length]="netsprint.pl";         _uOkw[_uOkw.length]="q";
        _uOsr[_uOsr.length]="gooru.pl";             _uOkw[_uOkw.length]="PHRASE";
        _uOsr[_uOsr.length]="szukaj.gazeta.pl";     _uOkw[_uOkw.length]="slowo";
        _uOsr[_uOsr.length]="szukaj2.o2.pl";        _uOkw[_uOkw.length]="qt";
        _uOsr[_uOsr.length]="szukacz.pl";           _uOkw[_uOkw.length]="q";
        _uOsr[_uOsr.length]="szukaj.wow.pl";        _uOkw[_uOkw.length]="q";
        _uOsr[_uOsr.length]="szukaj.gery.pl";       _uOkw[_uOkw.length]="q";
        _uOsr[_uOsr.length]="emulti.pl";            _uOkw[_uOkw.length]="wyr";
        _uOsr[_uOsr.length]="katalog.interia.pl";   _uOkw[_uOkw.length]="q";
        _uOsr[_uOsr.length]="katalog.onet.pl";      _uOkw[_uOkw.length]="qt";
        _uOsr[_uOsr.length]="search.live.com";      _uOkw[_uOkw.length]="q";
        _uOsr[_uOsr.length]="google.interia.pl";    _uOkw[_uOkw.length]="q";
        _uOsr[_uOsr.length]="google.pl";            _uOkw[_uOkw.length]="q";
        _uOsr[_uOsr.length]="google.com";           _uOkw[_uOkw.length]="q";      
      urchinTracker();
    }
  var timer = setInterval(runMe, 3000);
  scr['onload'] = runMe;
  scr['onreadystatechange'] = runMe;
  head.appendChild(scr); 
}


// HowToDO??? ----------------------------------------------------------------------------->>
// Funkcja odpowiedzialna jest za prawid³owe ³adowanie kodu do statystyk GoogleAnalytics
// Je¿eli serwer GoogleAnalytics jest zajêty i nie mo¿e przyj±æ zapytania - nie wp³ywa to 
// na opó¼nienia w prawid³owym wy¶wietlaniu strony. Dodatkowo do skryptu zosta³y za³adowane 
// polskie wyszukiwarki, a tak¿e google zosta³o podzielone na wersje polsk± i ogóln±

// Skrypt uruchamia siê za pomoc± wywo³ania funkcji addGoogleStats(GAID) w dowolnym miejscu
// strony (najlepiej przed </body>). GAID - oznacza twój unikalny identyfikator GoogleAnalytics
// dla przyk³adu podam, ¿e chodzi o GAID = 'UA-xxxxxx-x'