function goenCheckBrowser() {
 var appName = navigator.appName.toUpperCase();
 var appVer  = navigator.appVersion.toUpperCase();
 var version = 0;
 if (appName.indexOf("NETSCAPE")>=0)
 {
  var n = appVer.indexOf(" ",0);
  version = eval(appVer.substring(0,n));
  if (version<4) return false;
 }
 if (appName.indexOf("EXPLORER")>=0)
 {
  var n = appVer.indexOf("MSIE ",0) + 5;
  var m = appVer.indexOf(";",n);
  var strVer = appVer.substring(n,m);
  if (strVer=="7.0B") { return true; }
  version = eval(strVer);
  if (version<4) return false;
 }
 return true;
}

function goenGetDoc() {
 var n = goenGetDocDepth();
 if (n==2) { return parent.parent.document; }
 if (n==1) { return parent.document; }
 return document;
}

function goenGetDocDepth() {
 if (goenGetDocParent(2)!="") { return 2; }
 if (goenGetDocParent(1)!="") { return 1; }
 return 0;
}

function goenGetDocParent(depth)
{
 try {
 if (depth==0) {return document.domain;}
 if (depth==1) {return parent.document.domain;}
 if (depth==2) {return parent.parent.document.domain;}
 } catch(e) {}
 return "";
}

function goenGetColorDepth()
{
 if (goenCheckBrowser()) {
  return screen.colorDepth;
 } else {
  return 0;
 }
}

function goenGetMonitorSize()
{
 if (goenCheckBrowser()) {
  return screen.width + "-" + screen.height;
 } else {
  return 0;
 }
}

function goenGetReferrer()
{
 try {
 return goenGetDoc().referrer;
 } catch(e) {}
}

function goenGetCookie(cookieName)
{
 var strReturn = "";
 var nLoop = 0; var nLength = 0; var strName = cookieName + "="; var strTemp = "";
 while (nLoop < goenGetDoc().cookie.length) {
  nLength = nLoop + strName.length;
  if (goenGetDoc().cookie.substring(nLoop, nLength) == strName) {
   strTemp = goenGetDoc().cookie.indexOf(";", nLength);
   if (strTemp == -1) {
    strReturn = goenGetDoc().cookie.substring(nLength, goenGetDoc().cookie.length);
   } else {
    strReturn = goenGetDoc().cookie.substring(nLength, strTemp);
   }
   break;
  }
  nLoop = goenGetDoc().cookie.indexOf(" ", nLoop) + 1;
  if (nLoop == 0) { break; }
 }
 return strReturn;
}

function goenSetCookie(cookieName, cookieValue)
{
 var maxAge = new Date();
 maxAge.setTime(maxAge.getTime() + (365*24*60*60*1000));
 goenGetDoc().cookie = cookieName + "=" + cookieValue + "; expires=" + maxAge.toGMTString();
}

var strLock = "";
var nTm=0, nTf=0, nTc=0, nA=0, nM=0, nW=0, nD=0;

function goenGetVisitCode()
{
 var strCode = goenGetCookie("goen.a3.cd");
 if (strCode=="") {
  strCode = "web1c1264110422960297";
  goenSetCookie("goen.a3.cd", strCode);
 }
 return strCode;
}

function goenGetVisitCount()
{
 var str = goenGetCookie("goen.a3.20975");
 if (str!="") {
  var s, e;
  e = str.indexOf("-",0);
  nTm = eval(str.substring(0,e));
  s = e + 1; e = str.indexOf("-",s);
  nTf = eval(str.substring(s,e));
  s = e + 1; e = str.indexOf("-",s);
  nTc = eval(str.substring(s,e));
  s = e + 1; e = str.indexOf("-",s);
  nA = eval(str.substring(s,e));
  s = e + 1; e = str.indexOf("-",s);
  nM = eval(str.substring(s,e));
  s = e + 1; e = str.indexOf("-",s);
  nW = eval(str.substring(s,e));
  s = e + 1;
  nD = eval(str.substring(s));
 }
}

function goenSetVisitCount()
{
 if (strLock=="") {
  nTm = 1265730070;
  nTc = 1265676920;
  if (nTf==0) { nTf = nTm; }
  goenSetCookie("goen.a3.20975", goenGetVisitCountList());
 }
}

function goenVisitCount()
{
 //check
 if ((strLock=="")&&(false)&&(1265730070-nTm<600)&&(nTm>0)) {
  strLock = "double";
 }
 if ((strLock=="")&&(1265730070-nTm==0)&&(nA>0)) {
  strLock = "again";
 }
 //countup
 if (strLock=="") {
  if (nTm<1265727600) { nD=1; } else { nD++; }
  if (nTm<1265468400) { nW=1; } else { nW++; }
  if (nTm<1264950000) { nM=1; } else { nM++; }
  nA++;
 }
}

function goenGetVisitCountList() {
 return nTm+"-"+nTf+"-"+nTc+"-"+nA+"-"+nM+"-"+nW+"-"+nD;
}

function counter0() {
 var strCode = goenGetVisitCode();
 goenGetVisitCount();
 goenVisitCount();
 var str = "&no=104271&ct=0&jsv=202.021000" + "" +
  "&lock=" + strLock +
  "&sc=" + goenGetColorDepth() +
  "&ms=" + goenGetMonitorSize() +
  "&vcd=" + strCode +
  "&vcl=" + goenGetVisitCountList() +
  "&an=" + escape(navigator.appName) +
  "&av=" + escape(navigator.appVersion) +
  "&r=" + goenGetReferrer();
 goenSetVisitCount();
 return str;
}





document.write("<IMG src=http://work.goen.ne.jp/analyzer3/fs/scount?u=kff&p=ocnk-setA"+counter0()+"  border=0 >");

