/* Copyright (C) 2007 fcounter */
var fc_rc;
function fcounter(){
	var uk='d',lv='',ce='n',tz='';
	if(location.protocol=="file:")
		return false;
	if(fc_rc>0)
		return false;
	if(!fc_id||fc_id=='')
		return false;
	if(navigator.cookieEnabled){
		var d=new Date();
		uk=fc_rc("fcui");
		if(!uk||uk==''){
			uk=Math.round(d.getTime())+''+Math.round(Math.random()*999);
			fc_cc("fcui",uk);
		}
		lv=fc_rc("fcud");
		if (!lv)
			lv='';
		tz = d.getTimezoneOffset()*60;
		fc_cc("fcud",Math.round(d.getTime()/1000));
		ce='y';
	}
	var ua=fc_pd();
	var ub=fc_ud();
	var uf="id="+fc_id+"&amp;uk=x"+uk+"&amp;lv="+lv+"&amp;"+ua+"&amp;"+ub+"&amp;ce="+ce+"&amp;tz="+tz;
	document.write('<img src="http://www.wavestats.com/stats.php?'+uf+'" width="1px" height="1px" alt="." />');
	fc_rc=1;
}
function fc_ud(){
	var s=screen,se='n',je='n',fv='n',ul='d',cd='d',sw='d',sh='d';
	if(s){sw=s.width;sh=s.height;cd=s.colorDepth;}
	var n=navigator;
	if(n.language)ul=n.language.toLowerCase();
	else if(n.browserLanguage)ul=n.browserLanguage.toLowerCase();
	if(n.javaEnabled())je='y';
	var p=n.plugins;
	if(p&&p.length){
		for(var i=0;i<p.length;i++){
			if(p[i].name.indexOf('Shockwave Flash')!=-1){
				fv=fc_enc(p[i].description.split('Shockwave Flash ')[1]);
				break;
			}
		}
		var ua=n.userAgent;
		if(n.product=="Gecko"){
			if(ua.indexOf("rv:1.8.1")!=-1)se='gck2';
			else if(ua.indexOf("rv:1.8")!=-1)se='gck15';
			else if(ua.indexOf("rv:1.9")!=-1)se='gck3';
		}else if(n.appName=='Opera')se='opr';
		else{
			var m=ua.match(/AppleWebKit\/(\d+)/);
			if(m)if(m[1]>520)
				se='saf3';
		}
	}else if(window.ActiveXObject){
		for (var i=10;i>=2;i--){
			try{
				if(eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+i+"');")){
					fv=i+".0";
					break;
				}
			}catch(e){}
		}
		try{if(new ActiveXObject("Adobe.SVGCtl"))se='asv';}catch(e){}
		try{if(new ActiveXObject("RenesisX.RenesisCtrl"))se='ren';}catch(e){}
		try{if(new ActiveXObject("Corel.SVGCtl"))se='csv';}catch(e){}
	}
	return "ul="+ul+"&amp;sw="+sw+"&amp;sh="+sh+"&amp;cd="+cd+"&amp;je="+je+"&amp;se="+se+"&amp;fv="+fv;
}
function fc_pd(){
	var pt,pu,rl,pp,d=document;
	pt=fc_enc(d.title);
	pu=fc_enc(d.URL);
	pp=fc_enc(location.pathname);
	rl=fc_enc(d.referrer);
	return "pt="+pt+"&amp;pu="+pu+"&amp;pp="+pp+"&amp;re="+rl;
}
function fc_enc(v,a){
	if(typeof(encodeURIComponent)=="function")
		if(a)return encodeURI(v);
		else return encodeURIComponent(v);
	else return escape(v);
}
function fc_cc(nam,val){
	var exp='',days=15,da=new Date();
	da.setTime(da.getTime()+(days*86400000));
	exp="; expires="+da.toGMTString();
	document.cookie=nam+'='+val+exp+"; path=/";
}
function fc_rc(nam){
	var cneq=nam+'=';
	var ca=document.cookie.split(';');
	for (var i=0;i<ca.length;i++){
		var ci=ca[i];
		while (ci.charAt(0)==' ')ci=ci.substring(1,ci.length);
		if(ci.indexOf(cneq)==0)return ci.substring(cneq.length,ci.length);
	}return null;
}