/* WPJSlib v0.29.3.b (c) 2007-2009 Wirtualna Polska  www.wp.pl */
/* dodane na czas migracji statystyk */ if (typeof(pp_gemius_identifier)!='undefined'&&typeof(gemius_hit)=='undefined') {


function gemius_parameters() {
	var d=document;
	var href=new String(d.location.href);
	var ref;
	var f=0;
	var fv='-';
	if (d.referrer) { ref=new String(d.referrer); } else { ref=''; }
	if (typeof Error!='undefined') {
		var fo;
		eval('try { f=(d==top.document)?1:2; if (typeof top.document.referrer=="string") { ref=top.document.referrer } } catch(e) {f=3;}');
		eval('try { fv=navigator.plugins["Shockwave Flash"].description; } catch (e) {}');
		eval('if (typeof ActiveXObject!="undefined") { try { fo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); } catch(e) { try { fo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); fv="X"; fo.AllowScriptAccess="always"; } catch(e) { if (fv=="X") { fv="WIN 6,0,20,0"; }} try { fo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); } catch(e) {} } if ((fv=="-" || fv=="X") && fo) { fv=fo.GetVariable("$version"); }}');
	}
	var url='&fr='+f+'&fv='+escape(fv)+'&tz='+(new Date()).getTimezoneOffset()+'&href='+escape(href.substring(0,499))+'&ref='+escape(ref.substring(0,499));
	if (screen) {
		var s=screen;
		if (s.width) url+='&screen='+s.width+'x'+s.height;
		if (s.colorDepth) url+='&col='+s.colorDepth;
	}
	return url;
}

window.pp_gemius_params = gemius_parameters();

function gemius_add_onload_event(obj,fn) {
	if (obj.attachEvent) {
		obj.attachEvent('onload', fn);
	} else if(obj.addEventListener) {
		obj.addEventListener('load', fn, false);
	}

}

function gemius_append_script(xp_url) {
	if (typeof Error!='undefined') {
		eval('try { xp_javascript=document.createElement("script"); xp_javascript.src=xp_url; xp_javascript.type="text/javascript"; xp_javascript.defer=true; document.body.appendChild(xp_javascript); } catch(e) {}');
	}
}

function gemius_obj_loaded() {
	window.pp_gemius_loaded+=1;
	if (window.pp_gemius_loaded==2 && window.pp_gemius_image.width && window.pp_gemius_image.width>1) {
		gemius_append_script(window.pp_gemius_script);
	}
}

function pp_gemius_timer() {
	window.pp_gemius_timer_image = new Image();
	window.pp_gemius_timer_image.src = window.pp_gemius_host+(new Date()).getTime()+'/dot.gif?l=36'+window.pp_gemius_time_id+window.pp_gemius_params;
}

var pp_gemius_proto = (document.location && document.location.protocol && document.location.protocol=='https:')?'https://':'http://';
if (typeof pp_gemius_hitcollector == 'undefined') {
	if (typeof gemius_hitcollector != 'undefined') {
		pp_gemius_hitcollector = gemius_hitcollector;
	} else {
		pp_gemius_hitcollector = 'wp.hit.gemius.pl';
	}
}
var pp_gemius_host = pp_gemius_proto+pp_gemius_hitcollector+'/_';
var pp_gemius_sv;

if (typeof pp_gemius_nhit == 'undefined') {
	if (typeof pp_gemius_identifier == 'undefined') {
		if (typeof gemius_identifier != 'undefined') {
			pp_gemius_identifier = gemius_identifier;
			gemius_identifier = 'USED_'+gemius_identifier;
		} else {
			pp_gemius_identifier = '';
		}
	}


	if (typeof window.pp_gemius_cnt != 'undefined') {
		if (typeof window.pp_gemius_images == 'undefined') {
			window.pp_gemius_images = new Array();
		}
		var gemius_l = window.pp_gemius_images.length;
		window.pp_gemius_images[gemius_l]=new Image();
		window.pp_gemius_images[gemius_l].src = pp_gemius_host+(new Date()).getTime()+'/redot.gif?l=33&id=ERR_'+pp_gemius_identifier.replace(/id=/,'id=ERR_')+window.pp_gemius_params;
	} else {
		if (typeof pp_gemius_time_identifier != 'undefined' && typeof window.pp_gemius_time_id == 'undefined') {
			window.pp_gemius_time_id = '&id='+pp_gemius_time_identifier;
			window.pp_gemius_host = pp_gemius_host;
			setInterval('pp_gemius_timer()',60*1000);
			pp_gemius_sv=35;
		} else {
			window.pp_gemius_time_id = '';
			pp_gemius_sv=31;
		}
		window.pp_gemius_image = new Image();
		if (typeof pp_gemius_mode == 'undefined') {
			window.pp_gemius_loaded = 0;
			window.pp_gemius_script = pp_gemius_host+(new Date()).getTime()+'/pp.js?id='+pp_gemius_identifier;
			gemius_add_onload_event(window,gemius_obj_loaded);
			gemius_add_onload_event(window.pp_gemius_image,gemius_obj_loaded);
			pp_gemius_sv-=1;
		}
		window.pp_gemius_image.src = pp_gemius_host+(new Date()).getTime()+'/rexdot.gif?l='+pp_gemius_sv.toString()+'&id='+pp_gemius_identifier+window.pp_gemius_time_id+window.pp_gemius_params;
		window.pp_gemius_cnt = 1;
	}
	pp_gemius_identifier = 'USED_'+pp_gemius_identifier;
}

function pp_gemius_hit_int(list,rfrom,rto) {
	var gu = pp_gemius_host+(new Date()).getTime()+'/redot.gif?l=32';
	if (typeof window.xgemius_prot_cnt == 'undefined') {
		window.xgemius_prot_cnt=0;
	}
	if (typeof xgemius_prot_cnt == 'undefined') {
		xgemius_prot_cnt=0;
	}
	if (window.xgemius_prot_cnt<=xgemius_prot_cnt) {
		go=1;
		window.xgemius_prot_cnt++;
	} else {
		go=0;
	}
	xgemius_prot_cnt++;
	for (var i=rfrom ; i<rto ; i++) {
		gu += '&id='+list[i];
	}
	gu += window.pp_gemius_params;
	if (typeof window.gemius_hit_images == 'undefined') {
		window.gemius_hit_images = new Array();
	}
	var gl = window.gemius_hit_images.length;
	window.gemius_hit_images[gl]=new Image();
	if (go) {
		window.gemius_hit_images[gl].src = gu;
	} else {
		window.gemius_hit_images[gl].src = gu.replace(/id=/,'id=DBL_');
	}
}

function pp_gemius_hit() {
	for (i=0 ; i<arguments.length ; i+=5) {
		if (i+5<arguments.length) {
			pp_gemius_hit_int(arguments,i,i+5);
		} else {
			pp_gemius_hit_int(arguments,i,arguments.length);
		}
	}
}

if (typeof gemius_hit != 'function') {
	gemius_hit=pp_gemius_hit;
}

};

if(self!=top)top.location.href=self.location.href;var d=window.document;if(typeof($)=='undefined'){var $=function(id){if(!id)id=window.document;else if(typeof(id)!='object'){if(d.getElementById(id))id=d.getElementById(id);}return WP.extend(id,{hide:function(){try{id.style.display='none';}catch(e){}},show:function(){try{id.style.display='block';}catch(e){}},addClass:function(n){if(!this.hasClass(n))id.className+=' '+n;},deleteClass:function(n){if(this.hasClass(n)){var w=new RegExp("(^"+n+"$|"+n+"\\s|\\s"+n+")");id.className=id.className.replace(w,'');}},hasClass:function(n){var w=new RegExp("(^"+n+"$|\\s"+n+"\\s|^"+n+"\\s|\\s"+n+"$)");return w.test(id.className);}});}};if(typeof(WP)=='undefined'){window.ID=function(id){if(typeof(id)!='string')return;if(d.getElementById(id))return d.getElementById(id);else return;};window.CSS=function(e){};var WP={ver:'0.29.3',UA:navigator.userAgent.toLowerCase(),extend:function(t,s){for(var w in s)t[w]=s[w];return t;},TS:new Date(),SSL:d.location.href.substr(4,1)=='s'?'s':''};WP.extend(WP,{isOpera:!!window.opera,isIE:!!(d.all&&!window.opera),isSafari:/safari/.test(WP.UA)&&!/chrome/.test(WP.UA),isGecko:(navigator.product=='Gecko'&&!/(compatible|webkit)/.test(WP.UA)),isChrome:/chrome/.test(WP.UA),isWebkit:/khtml/.test(WP.UA),isWin:navigator.platform.indexOf('Win')>-1,isLinux:navigator.platform.indexOf('Linux')>-1,isMac:navigator.platform.indexOf('Mac')>-1});WP.extend(WP,{'$':function(id){return id;},'event':{_domReady:false,_ondomloadList:[],_ondomloadSet:function(f){this._ondomloadList.push(f);if(this._ondomloadList.length>1)return;if(WP.isIE){document.write("<sc"+"ript id=__ie_onload defer src=javascript:void(0)><\/sc"+"ript>");var script=document.getElementById("__ie_onload");script.onreadystatechange=function(){if(this.readyState=="complete"){WP.event._ondomloadStart();}};}else if(WP.isWebkit){var t=setInterval(function(){if(/loaded|complete/.test(d.readyState)){WP.event._ondomloadStart();}},10);}else{WP.event.set('onload',WP.event._ondomloadStart());}},_ondomloadStart:function(){if(this._domReady)return;this._domReady=true;for(var i in this._ondomloadList)this._ondomloadList[i]();},set:function(o,t,f){if(arguments.length==3){if(typeof(o)=='string'&&o.length==0)return null;o=typeof(o)!='object'?$(o):o;}else if(arguments.length==2){f=t;t=o;o=window;}else return false;if(typeof(f)!='function')return false;if(t=='ondomload'){if((WP.isGecko||WP.isOpera)&&!WP.isWebkit)document.addEventListener('DOMContentLoaded',f,false);else this._ondomloadSet(f);}else if(o.attachEvent)o.attachEvent(t,f);else if(o.addEventListener)o.addEventListener(t.substr(2),f,false);},unset:function(o,t,fn){if(arguments.length==3){o=typeof(o)=='object'?o:$(o);}else if(arguments.length==2){f=t;t=o;o=window;}else return false;o=typeof(o)=='object'?o:$(o);if(o.detachEvent)o.detachEvent(t,fn);else if(o.removeEventListener)o.removeEventListener(t.substr(2),fn,false);},getNode:function(t){var n;t=typeof(t)!='undefined'?t:window.event;if(t.target)n=t.target;else if(t.srcElement)n=t.srcElement;if(n.nodeType==3)n=targ.parentNode;return n;}},getEventNode:function(t){var n;if(!t)var t=window.event;if(t.target)n=t.target;else if(t.srcElement)n=t.srcElement;if(n.nodeType==3)n=targ.parentNode;return n;},getEventParentId:function(t){},tab:{activate:function(id,t){new WP.tabs(id)}},'mouse':{trace:function(){},x:0,y:0},isArray:function(o){if(!o||o.constructor.toString().indexOf("Array")==-1)return false;else
return true;},cloud:{},'window':{width:function(){var w;if(window.innerWidth){w=window.innerWidth;}else if(d.documentElement&&d.documentElement.clientWidth){w=d.documentElement.clientWidth;}else if(d.body){w=d.body.clientWidth;}return w;},height:function(){var h;if(window.innerHeight){h=window.innerHeight;}else if(d.documentElement&&d.documentElement.clientHeight){h=d.documentElement.clientHeight;}else if(d.body){h=d.body.clientHeight;}return h;}}});WP.ajax={_ao:function(){if(window.XMLHttpRequest)return new XMLHttpRequest();else if(window.ActiveXObject)try{return new ActiveXObject('Msxml2.XMLHTTP');}catch(e){try{return new ActiveXObject('Microsoft.XMLHTTP');}catch(e){return null;}}},_de:function(d){if(WP.isIE&&typeof(d.request['onreadystatechange'])!=null)delete d.request['onreadystatechange'];if(typeof(d.request)!='null')d.request=null;},_df:function(){var d={url:'',timeout:1E4,encoding:'utf-8',cache:false,params:[],form:null,onSuccess:null,onError:null,onTimeout:null,text:null,xml:null,done:false,abort:false,doTimeout:function(){if(d==null||d.request==null||d.done)return false;d.abort=true;d.request.abort();WP.ajax._de(d);if(typeof(d.onTimeout)=='function')d.onTimeout(d);}};return d;},serialize:function(n){if(!n)return'';var S='';if(typeof(n)=='object'){for(var i in n)S+='&'+encodeURIComponent(i)+'='+encodeURIComponent(n[i]);}else if($(n).nodeName&&$(n).nodeName.toLowerCase()=='form'){var e=$(n).elements;for(var i=0;i<e.length;i++)switch(e[i].type){case'checkbox':case'radio':if(e[i].checked)S+=this.serialize(this._pArray(e[i].name,e[i].value));break;case'select-one':if(e[i].selectedIndex>-1)S+=this.serialize(this._pArray(e[i].name,e[i].options[e[i].selectedIndex].value));break;case'select-multiple':for(var j=0;j<e[i].options.length;j++)if(e[i].options[j].selected)S+=this.serialize(this._pArray(e[i].name,e[i].options[j].value));break;default:S+=this.serialize(this._pArray(e[i].name,e[i].value));}}return S;},_pArray:function(p1,p2){if(typeof(p1)=='undefined')return null;var a=new Array();a[p1]=p2;return a;},doRequest:function(m,o){if(typeof(o)!='object'||o==null)return false;var r=new this._df();m=m.toLowerCase();WP.extend(r,o);if(r.url.length<3&&r.params.length<1&&!r.form)return false;r.request=this._ao();r.request.onreadystatechange=function(){if(r==null||r.request==null)return false;if(r.request.readyState==4&&!r.abort){r.done=true;r.text=r.request.responseText;r.xml=r.request.responseXML;if(r.request.status==200&&typeof(r.onSuccess)=='function'){r.onSuccess(r);}else if(typeof(r.onError)=='function')r.onError(r);WP.ajax._de(r);}};var pStr=new String(this.serialize(r.form)+this.serialize(r.params));if(m=='get'){r.url+=pStr;if(r.url.indexOf('?')<0)r.url=r.url.replace('&','?');r.request.open(m,r.url,true);r.request.setRequestHeader("If-Modified-Since","Sat, 11 Jan 1977 00:00:00 GMT");r.request.send('');}else{pStr=pStr.replace('&','');r.request.open(m,r.url,true);r.request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"+(r.encoding?'; charset='+r.encoding:''));r.request.setRequestHeader("If-Modified-Since","Sat, 11 Jan 1977 00:00:00 GMT");r.request.send(pStr);}if(r.timeout)setTimeout(r.doTimeout,r.timeout);},get:function(o){this.doRequest('get',o);},post:function(o){this.doRequest('post',o);}};WP.cookie={set:function(name,value,expires,path,domain){var cStr=name+"="+escape(value)+((expires)?";expires="+expires.toGMTString():"")+((path)?";path="+path:"")+((domain)?";domain="+domain:"");document.cookie=cStr;},get:function(name,escaped){var dc=document.cookie;var start=dc.indexOf(name+"=");var len=start+name.length+1;if(((!start)&&(name!=dc.substring(0,name.length)))||(start==-1))return null;var end=dc.indexOf(";",len);if(end==-1)end=dc.length;if(escaped)return dc.substring(len,end);else return unescape(dc.substring(len,end));},erase:function(name){var d=new Date();d.setYear(0);this.set(name,'',d);},noexpire:function(){return this.expire(60*24*365*2);},expire:function(m){var t=new Date();t.setTime(t.getTime());var cE=new Date(t.getTime()+m*1000*60);return cE;}};WP.mcookie={name:".WP",set:function(name,value,expire){name=escape(name);expire=(!expire?WP.cookie.noexpire():expire);var c=WP.cookie.get(this.name);if(c){var r=new RegExp("(^|&)"+name+"=[^&]*");c=c.replace(r,"");}else{c="&";}c='&'+name+'='+escape(value)+c;WP.cookie.set(this.name,c,expire);},get:function(name){name=escape(name);var c=WP.cookie.get(this.name);var r=new RegExp("\\b"+name+"=([^|&]*)");cV=r.exec(c);if(cV!=null&&cV[1]!=null)return unescape(cV[1]);else
return null;},erase:function(name){name=escape(name);var c=WP.cookie.get(this.name);if(c){var r=new RegExp("(^|&)"+name+"=[^&]*");c=c.replace(r,"");if(c.length!=0)WP.cookie.set(this.name,c);else WP.cookie.erase(this.name);}},unset:function(name){WP.mcookie.erase(name);},destroy:function(){WP.cookie.erase(this.name);}};WP.flash={version:-1,versionMinor:-1,versionRelease:-1,counter:0,getVersion:function(){if(this.version<0){if(WP.ie)try{var t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");t=t.GetVariable('$version').split(' ');t=t[1].split(',');this.version=t[0];this.versionMinor=t[1];this.versionRelease=t[2];}catch(e){this.version=0;}else try{var t=navigator.plugins['Shockwave Flash'].description;t=t.split(' ');if(t[3])b=t[3].split('r');else b=t[4].split('r');t=t[2].split('.');this.version=t[0];this.versionMinor=t[1];this.versionRelease=b[1];}catch(e){this.version=0;}}return this.version;},getFullVersion:function(){if(this.version<0)this.getVersion();return this.version+'.'+this.versionMinor+'.'+this.versionRelease;},embed:function(file,width,height,flashvars,o,id,zid){o=o?o:{};o.quality=o.quality?o.quality:'autohigh';o.wmode=o.wmode?o.wmode:'opaque';o.allowscriptaccess=o.allowscriptaccess?o.allowscriptaccess:'always';this.counter++;id=id?id:'flashNr'+this.counter;if(!zid){var zid='flashEmbed'+this.counter;document.write('<span id="'+zid+'" class="flashEmbed"></span>');}if(typeof(HTMLElement)!='undefined'){var b=document.createElement('object');b.setAttribute('data',file);b.setAttribute('type','application/x-shockwave-flash');b.setAttribute('width',width);b.setAttribute('height',height);b.setAttribute('id',id);var p=document.createElement('param');p.setAttribute('name','pluginspage');p.setAttribute('value','http'+WP.SSL+'://www.macromedia.com/go/getflashplayer');b.appendChild(p);p=document.createElement('param');p.setAttribute('name','FlashVars');p.setAttribute('value',flashvars);b.appendChild(p);for(var w in o){p=document.createElement('param');p.setAttribute('name',w);p.setAttribute('value',o[w]);b.appendChild(p);}ID(zid).appendChild(b);}else{h='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http'+WP.SSL+'://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+width+'" height="'+height+'" id="'+id+'">'+'<param name="movie" value="'+file+'" /><param name="flashvars" value="'+flashvars+'" />';for(var w in o){h+='<param name="'+w+'" value="'+o[w]+'" />';}h+='</object>';ID(zid).insertAdjacentHTML('beforeEnd',h);}},ID:function(id){if(WP.isIE||WP.isOpera)return window[movieName];else return document[movieName];}};WP.tabs=function(id,o){if(!$(id)){alert('Podaj ID do WP.tabs!');return false;}if(typeof(o)=='object'){}var P=function(e){var e=WP.event.getNode(e);var i=0;while(typeof(e.index)!='string'||i==9){e=e.parentNode;i++;}press(e.index);return false;};this.id=id;var active=1;var over=false;var overTimeout=250;var rotate=false;var rotateCount=0;var ile=(function(){var ile=0;var r=new RegExp("(.*)D([0-9]{1,3})");var t=d.getElementsByTagName('*');for(var i=0;i<t.length;i++){if(t[i].id.indexOf(id+'D')==0){ile++;var c=r.exec(t[i].id);if($(id+'T'+c[2])){this.m=c[2];WP.event.set($(id+'T'+c[2]),'onclick',P);$(id+'T'+c[2]).index=c[2];}}}return ile;})();this.ile=function(){return ile;};this.active=function(){return active;};this.over=function(e){if(e==null)over=true;else over=false;for(var i=1;i<=ile;i++){if($(id+'T'+i)){if(over){WP.event.set($(id+'T'+i),'onmouseover',P);}else{WP.event.unset($(id+'T'+i),'onmouseover',P);}}}};this.isOver=function(){return over};var press=function(t){if(t<1)t=1;if(t>ile)t=ile;for(var i=1;i<=ile;i++){if(i==t){if(ID(id+'T'+i))$(id+'T'+i).addClass('on');$(id+'D'+i).show();active=i;}else{if(ID(id+'T'+i))$(id+'T'+i).deleteClass('on');$(id+'D'+i).hide();}}return false;};this.press=press;press(1);var next=function(e){return press(ile>active?active+1:1);};this.next=next;var previous=function(e){return press(active>1?active-1:ile);};this.previous=previous;var _rts=-1;var TO=function(){if(_rts>-1)clearTimeout(_rts);_rts=-1;};var TU=function(){if(_rts>-1)clearTimeout(_rts);_rts=setInterval(next,_rt);};var rotate=function(t){if(typeof(t)=='undefined')t=6E3;if(t==false){if(_rts>0){clearTimeout(_rts);var t=d.getElementsByTagName('*');for(var i=0;i<t.length;i++){if(t[i].id.indexOf(id+'T')==0||t[i].id.indexOf(id+'D')==0||t[i].id.indexOf(id+'N')==0){WP.event.unset(t[i],'onmouseover',TO);WP.event.unset(t[i],'onmouseout',TU);}}}_rts=-1;}else{if(typeof(t)=='number')_rt=t;rotate(false);_rts=setInterval(this.next,_rt);var t=d.getElementsByTagName('*');for(var i=0;i<t.length;i++){if(t[i].id.indexOf(id+'T')==0||t[i].id.indexOf(id+'D')==0||t[i].id.indexOf(id+'N')==0){WP.event.set(t[i],'onmouseover',TO);WP.event.set(t[i],'onmouseout',TU);}}}};this.rotate=rotate;return this;};WP.string={strip:function(s){return s.replace(/^\s+/,'').replace(/\s+$/,'');},stripTags:function(s){return s.replace(/<\/?[^>]+>/gi,'');}};WP.onReady=function(fn){WP.event.set('ondomload',fn);};WP.onLoad=function(fn){WP.event.set('onload',fn);};WP.JSON={decode:function(txt,filter){var m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};var j;function walk(k,v){var i;if(v&&typeof v==='object'){for(i in v){if(Object.prototype.hasOwnProperty.apply(v,[i])){v[i]=walk(i,v[i]);}}}return filter(k,v);}if(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/.test(txt.replace(/\\./g,'@').replace(/"[^"\\\n\r]*"/g,''))){try{j=eval('('+txt+')');}catch(e){throw new SyntaxError('syntax error in WP.JSON.decode');}return typeof filter==='function'?walk('',j):j;}throw new SyntaxError('error in WP.JSON.decode');},encode:function(s){if(/["\\\x00-\x1f]/.test(s)){return'"'+s.replace(/[\x00-\x1f\\"]/g,function(a){var c=m[a];if(c){return c;}c=a.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+(c%16).toString(16);})+'"';}return'"'+s+'"';}};WP.parseJSON=WP.JSON.decode;WP.toJSON=WP.JSON.encode;WP.stat={gemius:function(id,td){this._gemiusId=id;window.gemiusImg=new Image();if(td){this._gemiusTimeId=td;this._gemiusTimer(1);}else{window.gemiusImg.src=WP.stat.gemiusHost()+'/rexdot.gif?l=11&id='+id+this.gemiusParams();WP.event.set('onload',WP.stat.gemiusScr);}},_gemiusId:'',_gemiusTimeId:'',gemiusHost:function(){return'http'+WP.SSL+'://wp.hit.gemius.pl/_'+(new Date()).getTime();},gemiusParams:function(){var d=document;var s=screen;var h=new String(d.location.href);var r=new String(d.referrer?d.referrer:'');var f=Number(0);if(typeof(Error)=='function'){eval("try{if(typeof(top.document.referrer)=='string')r=top.document.referrer;} catch(e){}");eval("try{f=(d==top.document)?1:2; if(typeof(top.document.referrer)=='string'){ref=top.document.referrer;}} catch(e) {f=3;}");}var url='&fr='+f+'&tz='+(new Date()).getTimezoneOffset()+'&href='+escape(h.substring(0,299))+'&ref='+escape(r.substring(0,299));url+=(s.width?'&screen='+s.width+'x'+s.height:'')+(s.colorDepth?'&col='+s.colorDepth:'');return url;},gemiusScr:function(){if(window.gemiusImg.width&&window.gemiusImg.width>1&&typeof(Error)=='function')eval("var d=document;try{xj=d.createElement('script');xj.src=WP.stat.gemiusHost()+'/pp.js?id='+WP.stat._gemiusId;xj.type='text/javascript';d.body.appendChild(xj);} catch(e){}");},_gemiusTimer:function(n){window.gemiusImg.src=this.gemiusHost()+'/redot.gif?'+(n?'id='+this._gemiusId+"/id="+this._gemiusTimeId+this.gemiusParams():"id="+this._gemiusTimeId);setTimeout('WP.stat._gemiusTimer()',60*1000);},TIMER:600,dot:function(sn,fb,tp){if(!!this._SN){if(!sn)sn=this._SN;this._sendDot('top',sn);return true;}else if(!sn){return false;}this._SN=sn;this._FB=fb;this._ID=Math.round(Math.random()*1E10);this._dotStd();if(typeof(WP.isGecko)!='undefined')window.onunload=function(){return true};if(!tp)return;if(/time/.test(tp)){WP.event.set('onunload',WP.stat._dotTimeEnd);setTimeout('WP.stat._dotTime()',this.TIMER*1000);}if(/click/.test(tp)){WP.event.set(window,'ondomload',WP.stat._clickDotActivate);}if(/bottom/.test(tp)){WP.event.set(window,'onload',WP.stat._clickDotActivate);}},eventDot:function(n,p){if(!WP.stat._SN||!n)return false;if(!p)p='';var D=new Date();window.WP_DOTB=new Image(1,1),PG=new String(document.location);WP_DOTB.src='http'+WP.SSL+'://dot.wp.pl/r'+Math.round(Math.random()*1E10)+'/clk.gif?xd='+this._SN+'&yd='+escape(n)+'&pg='+escape(PG.substring(0,250))+'&dt='+(D-WP.TS)+'&tt='+escape(p);},clickDot:function(e,n){var o=n;while(o&&(o.tagName!='DIV'||!o.id)){o=o.parentNode;}var D=new Date();var PG=new String(document.location);var ID=o?o.id:'';var withCtrl=false;try{withCtrl=(!!e.ctrlKey||!!e.metaKey||e.button==1);}catch(x){};if(!withCtrl)withCtrl=(n.target=='_blank'||n.target=='_new');window.WP_CDOT=new Image(1,1);if(!withCtrl)window.WP_CDOT.onload=function(){WP.stat._clickDotGo(n.href);};window.WP_CDOT.src="http"+WP.SSL+"://dot.wp.pl/r"+Math.round(Math.random()*1E10)+"/clk.gif?xd="+this._SN+"&yd="+escape(ID)+"&pg="+escape(PG.substring(0,250))+"&tg="+escape(n.href.substring(0,250))+"&dt="+(D-WP.TS)+"&tt="+escape(n.title);if(!withCtrl)setTimeout("WP.stat._clickDotGo('"+n.href+"')",500);return withCtrl;},clickDotMiddle:function(e,n){var button=WP.stat._clickWhichButton(e);if(button!='m'){return false;}var o=n;while(o&&(o.tagName!='DIV'||!o.id)){o=o.parentNode;}var D=new Date();var PG=new String(document.location);var ID=o?o.id:'';window.WP_CDOT=new Image(1,1);window.WP_CDOT.src="http"+WP.SSL+"://dot.wp.pl/r"+Math.round(Math.random()*1E10)+"/clk.gif?xd="+this._SN+"&yd="+escape(ID)+"&pg="+escape(PG.substring(0,250))+"&tg="+escape(n.href.substring(0,250))+"&dt="+(D-WP.TS)+"&tt="+escape(n.title);return false;},clickDotUrl:function(targetUrl,boxId,title){var D=new Date();var PG=new String(document.location);window.WP_CDOT=new Image(1,1);window.WP_CDOT.onload=function(){WP.stat._clickDotGo(targetUrl);};window.WP_CDOT.src="http"+WP.SSL+"://dot.wp.pl/r"+Math.round(Math.random()*1E10)+"/clk.gif?xd="+this._SN+"&yd="+escape(boxId)+"&pg="+escape(PG.substring(0,250))+"&tg="+escape(targetUrl.substring(0,250))+"&dt="+(D-WP.TS)+"&tt="+escape(title);setTimeout("WP.stat._clickDotGo('"+targetUrl+"')",500);return false;},getPlayerStatus:function(mediaUrl,mediaAction,mediaTime,mediaName,mediaMid,mediaChannel,mediaTags,mediaType,mediaSize){if(mediaAction=='NetStream.Play.Start'){WP.stat._dotMediaTimer('e',WP.stat._MU,WP.stat._ML);WP.stat._dotMediaTimer('i',mediaUrl,mediaMid);WP.stat._MO=0;WP.stat._MI='';WP.stat._dotMediaSend('s',mediaUrl,mediaMid,mediaTime,mediaTags,mediaName,mediaChannel,mediaType,mediaSize,0,-1,0);WP.stat._MU=mediaUrl;WP.stat._ML=mediaMid;WP.stat._MS=new Date();WP.stat._ME=0;}if(mediaAction=='NetStream.Play.Stop'){WP.stat._dotMediaTimer('e',mediaUrl,mediaMid);}if(mediaAction=='NetStream.loaded'&&WP.stat._ME==0){WP.stat._ME=new Date();}if(mediaAction=='NetStream.Buffer.Empty'){WP.stat._MB++;}},getPlayerIntervalStatus:function(c,u,t,l){WP.stat._MI=c;WP.stat._MO=l;WP.stat._MC++;},_SN:null,_FB:null,_ID:null,_DD:null,_DL:null,_MC:0,_MU:'',_ML:'',_MI:'',_MO:0,_MT:null,_MS:0,_ME:0,_MB:0,_dotStd:function(){this._sendDot('top');WP.event.set('onload',WP.stat._dotOnLoad);},_dotOnLoad:function(){if(typeof(ENTRY_HIT)=='undefined')return false;var D=new Date();WP.stat._DL=D-WP.TS;WP.stat._sendDot('bottom');},_dotDLoad:function(){WP.stat._DD=new Date();},_dotTime:function(){this._sendDot('time');setTimeout('WP.stat._dotTime()',this.TIMER*1000);},_dotTimeEnd:function(){WP.stat._sendDot('timeend');},_sendDot:function(typ){if(!WP.stat._ID&&!typ)return false;var H=typeof(ENTRY_HIT)!='undefined'?ENTRY_HIT:'';window.WP_DOTB=new Image(1,1),PG=new String(document.location),RF=new String(document.referrer);var DT='';if(typ=='bottom'){DT='&dt='+WP.stat._DL;}WP_DOTB.src='http'+WP.SSL+'://dot.wp.pl/r'+Math.round(Math.random()*1E10)+'/dot.gif?SN='+this._SN+'&Pos='+typ+'&pg='+escape(PG.substring(0,250))+'&rf='+escape(RF.substring(0,250))+'&vid='+this._ID+DT+'&fba='+(this._FB?this._FB:'0')+H;},_CU:null,_sendClickDot:function(){if(WP.stat._CU){var dot=new Image(1,1);dot.src=WP.stat._CU;}},_clickDotActivate:function(){WP.stat._clickDotActivateElement(d.getElementsByTagName('a'));WP.stat._clickDotActivateElement(d.getElementsByTagName('area'));},_clickDotActivateElement:function(object){for(var i=0;i<object.length;i++){if(!object[i].onclick&&object[i].href.indexOf('javascript:')!=0&&object[i].href.lastIndexOf("#")!=object[i].href.length-1){object[i].onclick=function(e){return WP.stat.clickDot(e,this);};object[i].onmouseup=function(e){return WP.stat.clickDotMiddle(e,this);};}}},_clickDotLock:0,_clickDotGo:function(n){if(!WP.stat._clickDotLock){WP.stat._clickDotLock=1;document.location.href=n;}else{WP.stat._clickDotLock=0;}},_clickWhichButton:function(e){var button;if(!e)var e=window.event;if(e.which==null){button=(e.button<2)?"l":((e.button==4)?"m":"r");}else{button=(e.which<2)?"l":((e.which==2)?"m":"r");}return button;},_dotMediaSend:function(dotType,mediaUrl,mediaMid,mediaTime,mediaTags,mediaName,mediaChannel,mediaType,mediaSize,mediaCounter,mediaLoadedTime,mediaBufferEmpty){var PG=new String(document.location);var sourcePage=PG.substring(0,250);var dotUrl="http"+WP.SSL+"://dot.wp.pl/r"+Math.round(Math.random()*1E10)+"/media.gif?SN="+this._SN+"&pg="+escape(sourcePage)+'&vid='+this._ID+"&dt="+escape(dotType)+"&mu="+escape(mediaUrl)+"&mt="+escape(mediaTags)+"&mp="+escape(mediaType)+"&ms="+escape(mediaSize)+"&mn="+escape(mediaName)+"&mid="+escape(mediaMid)+"&mh="+escape(mediaChannel)+"&mc="+escape(mediaCounter)+"&mlt="+escape(mediaLoadedTime)+"&mlb="+escape(WP.stat._MO)+"&me="+escape(mediaBufferEmpty)+"&mtm="+escape(WP.stat._MI)+"&ts="+escape(new Date().getTime());var dot=new Image(1,1);dot.src=dotUrl;},_dotMediaTimer:function(dotType,mediaUrl,mediaMid){if(WP.stat._MC>0){var loadTime=-1;if(WP.stat._ME!=0){loadTime=WP.stat._ME.getTime()-WP.stat._MS.getTime();}WP.stat._dotMediaSend(dotType,mediaUrl,mediaMid,'','','','','','',WP.stat._MC,loadTime,WP.stat._MB);WP.stat._MC=0;WP.stat._MB=0;}clearTimeout(WP.stat._MT);WP.stat._MT=setTimeout("WP.stat._dotMediaTimer('m', '"+mediaUrl+"', '"+mediaMid+"')",60000);}};WP.opera=WP.isOpera;WP.ie=WP.isIE;WP.gecko=WP.isGecko;WP.browser=WP.isIE?'ie':WP.isGecko?'gecko':WP.isOpera?'opera':WP.isSafari?'safari':WP.isChrome?'chrome':'other';WP.os=WP.isWin?'win':WP.isMac?'mac':WP.isLinux?'linux':'other';}