var _tc={key:false,protocol:document.location.protocol=="https:"?"http":"http",host:"www.trendcounter.com",version:1,lang:"en",params:{},track:function(a){this.key=a;this.host=this.protocol+"://"+this.host;a=navigator.language?navigator.language.toLowerCase():navigator.userLanguage.toLowerCase();a=a.split("-")[0];if(a=="de")this.lang="de";this.add_param("v",this.version);this.add_param("l",a);this.set_resolution();this.set_referer();this.add_param("z",Math.round(Math.random()*2147483647))},add_param:function(a,
b){this.params[a]=b},get_params:function(){var a="";for(var b in this.params)a+=encodeURIComponent(b)+"="+encodeURIComponent(this.params[b])+"&";return a.substr(0,a.length-1)},set_referer:function(){var a;try{if(document.referrer)a=document.referrer;if(typeof top.document=="object")a=top.document.referrer;a.length>200&&a.substr(0,200)}catch(b){}this.add_param("r",top.document.referrer)},set_resolution:function(){var a=0,b=0;if(screen.width>0&&screen.height>0){a=screen.width;b=screen.height}this.add_param("w",
a);this.add_param("h",b)}};
function tc_sidebar(a,b,c,f,d){if(a===undefined||a=="")return false;try{_tc.track(a)}catch(i){}a=c.split("-");c=a[0];a=a[1];var g=b=0;if(c=="left"||c=="right"){b=45;g=94}else if(c=="top"||c=="bottom"){b=94;g=45}else return false;var h="/w/sidebar";if(f!==undefined&&f!=""&&d!==undefined&&d!="")h+="/"+f+"_"+d;h+="/"+c;f=_tc.host+h+"/"+_tc.key+".png?"+_tc.get_params();d="display:block !important;width: "+b+"px !important;height: "+g+"px !important;padding: 0 !important;margin: 0;z-index: 20000 !important;cursor: pointer !important;bottom: 0;";if(a==
"top")d+="top: 15% !important;"+c+": -10px;";else if(a=="bottom")d+="bottom: 15% !important;"+c+": -10px;";else if(a=="middle")d+="top: 40% !important;"+c+": -10px;";else if(a=="center")d+="margin-left: -47px !important;left: 50% !important;"+c+": -10px;";else if(a=="right")d+="right: 15% !important;"+c+": -10px;";else if(a=="left")d+="left: 15% !important;"+c+": -10px;";else return false;b=a=false;if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){g=new Number(RegExp.$1);if(g==6)a=true;if(g>=6)b=true}var e=
document.createElement("div");e.title={de:"Klicke hier, um mehr Statistiken zu sehen!",en:"Click here to see more stats!"}[_tc.lang];d+=a==true?"position: absolute !important;background-image:url("+f+') !important;progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+f+'", sizingMethod="scale");':"position: fixed !important;background-image:url("+f+") !important;background-repeat:no-repeat !important;";e.style.setAttribute?e.style.setAttribute("cssText",d):e.setAttribute("style",d);e.onmouseover=
function(){this.style[c]="0px"};e.onmouseout=function(){this.style[c]="-10px"};e.onclick=function(){window.open(_tc.host+"/live/"+_tc.key+".htm")};try{b==false&&document.body?document.body.appendChild(e):tc_addonload(function(){document.body&&document.body.appendChild(e)})}catch(j){tc_addonload(function(){document.body&&document.body.appendChild(e)})}}function tc_addonload(a){var b=window.onload;window.onload=typeof window.onload!="function"?a:function(){b();a()}};

