var pg_pfx = "Sky_";

var pgx = location.pathname.split('/');
var a = "&amp;&amp;";
var pf = navigator.platform + a; var lng = navigator.language + a;
var swh = screen.width + "x" + screen.height + a;
var cd = screen.colorDepth + a; var pd = screen.pixelDepth + a;
var rf = document.referrer;
var now = new Date();

var pg = "", i = 0;

if (location.href.match(/cache/i)) {
	pg = location.hostname + "_cache";
} else if (pgx.length < 4) {
	pg = 'top';
} else if (location.pathname.match(/archives/i)) {
	for (i = 0 ; (i < pgx.length) && (i < 3) ; i++) {
		if (!(pgx[pgx.length - (i + 1)].match(/archives/i))) {
			pg = pgx[pgx.length - (i + 1)] + pg;
		}
	}
} else {
	for (i = 0 ; (i < pgx.length) && (i < 2) ; i++) {
		pg = pgx[pgx.length - (i + 1)] + pg;
	}
}
pg = pg_pfx + pg;

document.write("<a href=\"http://tech.bayashi.net/st/\">");
document.write("<img src='/cgi-bin/star2/dsw.cgi?xx=",now.getSeconds(),"&amp;&amp;p=g&amp;&amp;md=j&amp;&amp;");
document.write("pg="+pg+a+"pf="+pf+"lng="+lng+"swh="+swh+"cd="+cd+"pd="+pd+"rf="+rf);
document.write("' width=1 height=1 border='0' alt='.'></a>");
