var dcm = document;
function gE(id) {return dcm.getElementById(id);};
function gT(id) {return dcm.getElementsByTagName(id);};
function cN(tx) {return dcm.createTextNode(tx);};
function eB(o,t,e) {var r = o.getElementsByTagName(t); return (e==null)?r:r[e];};
function aC(c,t) {c.appendChild(t);};
function cE(el) {return dcm.createElement(el);};
function sT(f,v) {return setTimeout(f,v);};
var ismsie = (!window.opera && navigator.userAgent.indexOf("MSIE") !=-1)?true:false;
var lcc = 0;
function setOnLoadCallback(obj, evType, fn, useCapture) {
  if (!obj) return;
  if (obj.addEventListener) {
    obj.addEventListener(evType, fn, useCapture); return true;
  } else if (obj.attachEvent) {
    return obj.attachEvent('on'+evType,fn);
  } else { obj['on'+evType] = fn; }
}

  function cL() {var b = gT("a");for (var i=0;i<b.length;i++) {if (b[i].href.match(/http:\/\/.*/)) {if (b[i].firstChild.data) b[i].href = "http://counter.cyberschnuffi.de/?_scndGuid="+escape(_pID)+"&_link_="+escape(b[i].href);}}}
  function executeCountIt(full) {
    var h = eB(dcm,"head",0); var s = cE("script"); s.type = "text/javascript"; s.charset = "iso-8859-1"; var d = new Date(); 
    var removeWhenDone=function() { var p = s.parentNode; p.removeChild(s); delete s; };
    var evHandler=function(ev) {
      var e = (ev?ev:window.event).target?(ev?ev:window.event).target:(ev?ev:window.event).srcElement;
      if (e.readyState=='loaded' || e.readyState =='complete') removeWhenDone();
    };
    if (navigator.product == 'Gecko') {
      s.onload = removeWhenDone;
    } else {
      s.onreadystatechange = evHandler;
    }
    var utf8encode=function(x) {
      var r = ""; 
      for (var n = 0; n < x.length; n++) {
        var c = x.charCodeAt(n);
	if (c < 128) {
	  r += String.fromCharCode(c);
	} else if ((c > 127) && (c < 2048)) {
	  r += String.fromCharCode((c >> 6) | 192);
	  r += String.fromCharCode((c & 63) | 128);
	} else {
	  r += String.fromCharCode((c >> 12) | 224);
  	  r += String.fromCharCode(((c >> 6) & 63) | 128);
	  r += String.fromCharCode((c & 63) | 128);
	}
      }
      return r;
    };
    var utf8decode=function(x) {
      var r = ""; var i = c = c1 = c2 = 0;
      while (i < x.length) {
        c = x.charCodeAt(i++);
        if (c < 128) {
	      r += String.fromCharCode(c);
	    } else if ((c > 191) && (c < 224)) {
          c2 = x.charCodeAt(i++);
          r += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
        } else {
          c2 = x.charCodeAt(i++); c3 = x.charCodeAt(i++);
          r += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
        }
      }
      return r;
    };
    var spref=function(f) {
      var s = f.indexOf("//");
      if (s == -1) return "&ro=&rh=&ru=&rp=&r=&";
      var r = new Array("","","","");
      r[0] = (f.substr(s-1,1)=='s')?1:0; s+=2; 
      while (s < f.length && f.substr(s,1)!='/') { r[1] += f.substr(s++,1); }
      while (s < f.length && f.substr(s,1)!='?') { r[2] += f.substr(s++,1); }
      if (s < f.length && f.substr(s,1)=='?') s++;
      r[3] = f.substr(s,f.length-s); 
      return "&r="+escape(f)+"&ro="+r[0]+"&rh="+escape(r[1])+"&ru="+escape(r[2])+"&rp="+escape(r[3].replace(/=/g,"%3D"));
    };
    var insz=function() {
      if (typeof(window.innerWidth)=='number') {
        return "&iw="+window.innerWidth+"&ih="+window.innerHeight;
      } else if (dcm.documentElement && (dcm.documentElement.clientWidth || dcm.documentElement.clientHeight)) {
        return "&iw="+dcm.documentElement.clientWidth+"&ih="+dcm.documentElement.clientHeight;
      } else if (dcm.body && (dcm.body.clientWidth || dcm.body.clientHeight)) {
        return "&iw="+dcm.body.clientWidth+"&ih="+dcm.body.clientHeight;
      }     
      return "&iw=&ih=";
    };
    if (full==true) {
      var lang = (ismsie)?navigator.browserLanguage:navigator.language;
      var uri = "id="+d.getTime()+spref(unescape(utf8decode(dcm.referrer)))+"&s="+screen.colorDepth+"&xw="+screen.width+"&xh="+screen.height+insz()+"&u="+escape(navigator.userAgent)+"&v="+escape(navigator.appVersion)+"&l="+escape(lang)+"&o="+escape(navigator.platform)+"&t="+escape(window.location.host)+"&a="+escape(dcm.URL)+"&q="+((gE("counterdata")==null)?0:1)+"&c="+((navigator.cookieEnabled==true)?1:(navigator.cookieEnabled==false)?0:2)+"&j="+((navigator.javaEnabled)?1:0)+"&_scndGuid="+escape(_pID)+"&dt="+escape(utf8encode(dcm.title));
    } else {
      var uri = "id="+d.getTime()+"&_scndGuid="+escape(_pID)+"&q="+((gE("counterdata")==null)?0:1);
    }
    s.src = "http://counter.cyberschnuffi.de/count.js?"+uri; aC(h,s);
  }
  function OnLoad() {cL(); sT('executeCountIt(true)',30);}  setOnLoadCallback(window,'load',OnLoad,false);



    
