function p(x){console.log(x)}; google.load('search','1'); google.load("jquery", "1.3.2"); var urls = document.referrer; //var slowo = decodeURI(parseUri(urls).queryKey.q); var slowo = parseUri(urls).queryKey.q; var jezyk = parseUri(urls).queryKey.lr; //p(decodeURI(urls)); var adres = window.location.toString(); function init(){ jQuery(document).ready(function() { jQuery('a').each(function() { try { var $a = jQuery(this); var hrefs = $a.attr('href'); if (hrefs != "undefined") { if ((hrefs.match(/^http/)) && (! hrefs.match(document.domain)) ) { $a.click(function(){ if (hrefs != "undefined"){ var postTitle = document.title; postTitle = postTitle.replace('Flex 2:', ''); href = hrefs.replace('http://',''); href = (postTitle.length > 0) ? postTitle + '/' + href : href; pageTracker._trackPageview('/outgoing/' + href); var outgoing = href; var currentTime = new Date(); var month = currentTime.getMonth()+1; var timeStamp =' ' + currentTime.getFullYear() + '-' + month + '-' + currentTime.getDate() + ' ' + currentTime.getHours() +":" + currentTime.getMinutes() + ":" + currentTime.getSeconds() + ' , ' + outgoing + ' , ' + pageTracker._visitCode(); pageTracker._addTrans(timeStamp, "", "1", "", "", "", "", ""); pageTracker._addItem(timeStamp, pageTracker._visitCode(), outgoing, document.location.href,"1", "1" ); pageTracker._trackTrans(); } }) } } } catch(err) { p(err.description) } }) }); // kod za sprawdzenie pozycji na podstawie odpytywania serwera window.gs = new google.search.WebSearch(); gs.setResultSetSize(google.search.Search.LARGE_RESULTSET); gs.setNoHtmlGeneration(); if(jezyk){gs.setRestriction(google.search.Search.RESTRICT_EXTENDED_ARGS,{"lr":jezyk})}; gs.setSearchCompleteCallback(gs,function(){ var cursor = this.cursor; if(!this.allResults || cursor.currentPageIndex==0){this.allResults = [];} for(var i=0;icursor.currentPageIndex+1){ this.gotoPage(cursor.currentPageIndex+1); } else { for(var i=0; i