function show(id) {
  if (document.all) {
    document.all.item(id).style.visibility = "visible";
  }
  else if (document.layers) {
    document.layers[id].visibility = "show";
  }
  else if (document.getElementById) {
    document.getElementById(id).style.visibility = "visible";
  }
}
function hide(id) {
  if (document.all) {
    document.all.item(id).style.visibility = "hidden";
  }
  else if (document.layers) {
    document.layers[id].visibility = "hide";
  }
  else if (document.getElementById) {
    document.getElementById(id).style.visibility = "hidden";
  }
}

// -------------------------------------------------
//  ACCESS LOG  LOG4E
// -------------------------------------------------
function log4e(filename) {
	var ref = document.referrer;
	document.write('<img src="http://cgi.m-use.net/log4e/log4.cgi?' + filename + '@' + ref + '" width="1" height="1">');
}

BIRD_L = new Array("images/counter/set-birdleft1_.gif", "images/counter/set-birdleft2_.gif");
BIRD_R = new Array("images/counter/set-birdright1_.gif","images/counter/set-birdright2_.gif");
BIRD_W = 74;
BIRD_H = 45;

function chgImg() {
	n1 = Math.floor(Math.random()*BIRD_L.length);
	n2 = Math.floor(Math.random()*BIRD_R.length);
	document.bird_left.src  = BIRD_L[n1];
	document.bird_left.width = BIRD_W;
	document.bird_left.height= BIRD_H;
	document.bird_right.src = BIRD_R[n2];
	document.bird_right.width = BIRD_W;
	document.bird_right.height= BIRD_H;
}


// -------------------------------------------------
//  efStat -- Counter Analysis
//    from YugenKoubou (http://www.skipup.com/~fuka/)
// -------------------------------------------------
var BIRD_COUNT;
var scr = screen.width+","+screen.height+","+screen.colorDepth;
var buf = escape(document.referrer);
function loadEfStat(logname, mode, digit, font, alt, w, h) {
	ref = "";
	for (i = 0; i < buf.length; i++) {
		str = buf.charAt(i);
		ref += (str == "+") ? "%2B" : str;
	}

	FC_SRC  = "http://cgi.m-use.net/fstat/fcount.cgi?LOG=" + logname;
	FC_SRC += "&MODE=" + mode;
	FC_SRC += "&DIGIT="+ digit;
	FC_SRC += "&FONT=" + font;
	FC_SRC += "&REF="  + ref;
	FC_SRC += "&SCR="  + scr;

	document.bird_count.src = FC_SRC;
//	document.write('<IMG SRC="', FC_SRC, '" name="cnt_img" alt="',alt,'" border="0" width="',w,'" height="',h,'">');
}

