/*
	Polyester anti-spam script. Free to use, mention source.
	www.polyester.se
*/
function polyMailto (prefix, suffix){ location.href = "mailto:"+prefix+"@"+suffix; }
function polyWriteMail(prefix, suffix) { document.write(prefix+"@"+suffix); }
function polyReturnMail(prefix, suffix) { return prefix+"@"+suffix; }
function polyCreateMailto(prefix, suffix, linkname) {

	polyMailTag = "<a href=\"javascript: polyMailto('"+prefix+"','"+suffix+"');\"";
	polyMailTag = polyMailTag + " onMouseOut=\"window.status='';return true\"";
	polyMailTag = polyMailTag + " onMouseOver=\"window.status='mailto:"+prefix+"@"+suffix+"';return true\"";
	polyMailTag = polyMailTag + ">";
	if(linkname) {
		polyMailTag = polyMailTag + linkname;
	} else {
		polyMailTag = polyMailTag + polyReturnMail(prefix,suffix);
	}
	polyMailTag = polyMailTag + "</a>";
	document.write(polyMailTag);
}

function w3counter() {
	var data, p;
	var agt=navigator.userAgent.toLowerCase();
	p='http';
	if((location.href.substr(0,6)=='https:')||(location.href.substr(0,6)=='HTTPS:')) {p='https';} data = '&r=' + escape(document.referrer) + '&n=' + escape(navigator.userAgent) + '&p=' + escape(navigator.userAgent)
	if(navigator.userAgent.substring(0,1)>'3') {data = data + '&sd=' + screen.colorDepth + '&sw=' + escape(screen.width+ 'x'+screen.height)};
	document.write('<a href="/go/http://www.w3counter.com" title="Free Counter" target="_blank" >');
	document.write('<img border=0 align=right hspace=0 '+'vspace=0 src="http://www.w3counter.com/counter.php?i=3036' + data + '" alt="Free Counter"></a>');
}

function countersCC() {
	var data, p;
	var agt=navigator.userAgent.toLowerCase();
	p='http';
	if((location.href.substr(0,6)=='https:')||(location.href.substr(0,6)=='HTTPS:')) {p='https';} data = '&r=' + escape(document.referrer) + '&n=' + escape(navigator.userAgent) + '&p=' + escape(navigator.userAgent)
	if(navigator.userAgent.substring(0,1)>'3') {data = data + '&sd=' + screen.colorDepth + '&sw=' + escape(screen.width+ 'x'+screen.height)};
	document.write('<a href="/go/http://www.counters.cc" target="_blank" >');
	document.write('<img border=0 hspace=0 '+'vspace=0 src="http://www.counters.cc/counter.php?i=1844' + data + '"> </a>');
}


function hitsLog() {
	d=document;n=navigator;a=n.appName;
	i=d.URL.indexOf('?',0);if(i==-1) z=d.URL; else z=d.URL.substring(0,i);
	j="0";e=(new Date());e.setTime(e.getTime()+((24-e.getHours())*60-e.getMinutes())*60000);
	l=Math.random()+"&v="+escape(parseInt(n.appVersion))+"&u=1225&r="+escape(d.referrer)+"&s="+escape(window.location.href);
	l=Math.random()+"&v="+escape(parseInt(n.appVersion))+"&u=1225&r="+escape(d.referrer)+"&s="+escape(window.location.href);
	if(d.cookie.search(z)==-1) l=l+"&h=1"; else l=l+"&h=0";
	d.cookie=z+"=1; expires="+e.toGMTString();
	l=l+"&c="+(d.cookie?"1":"0");l=l+"&t="+(new Date()).getTimezoneOffset();
}

function openWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

