// Please remove everything below the line of stars (*) from your own copy of this file, so its
// use will not trigger OUR site counters (or the dialog box which may have brought you here).

// All the primitives used below are core JavaScript 1.0. No need to test for availability!
//

document.write
('<font size="1" face="Geneva, Arial, Helvetica, Verdana, sans-serif">');

//
// Display a link to the 'official' URL of a numericana page, possibly retrieved from
// a search engine's (and/or translator's) complex URL, or from an allowed local path.
// Show 'Last' instead (to display 'Last updated') when in doubt.
//

address = document.location.toString();
address = address.toLowerCase();

if (address.indexOf('numericana') >= 0 || address.indexOf('~numer') >= 0)
 { address = address.substring(address.indexOf('numer'));

   address = "www.numericana.com" + address.substring(address.indexOf('\/'));

   if (address.indexOf('?')>=0) address = address.substring(0,address.indexOf('?'));
   if (address.indexOf('+')>=0) address = address.substring(0,address.indexOf('+'));
   if (address.indexOf('&')>=0) address = address.substring(0,address.indexOf('&'));
   if (address.indexOf('#')>=0) address = address.substring(0,address.indexOf('#'));
   if (address.indexOf('%')>=0) address = address.substring(0,address.indexOf('%'));

   if (address.substring(address.length-10) == '\/index.htm')
       address = address.substring(0,address.length-10);  // No trailing "/index.htm".
   while (address.substring(address.length-1) == '\/')
       address = address.substring(0,address.length-1);   // No trailing "/".

   document.write('<a href="http:\/\/',address,'">',address,'<\/a>\&nbsp; ');
 }

else document.write('Last ');

//
// Display date/time of last upload...
//

var modified = new Date(document.lastModified);
var yy = modified.getYear();    if (yy<1000) yy += 1900; // Valid for any date above 1000.
var mm = modified.getMonth()+1; if (mm<10) mm="0"+mm;
var dd = modified.getDate();    if (dd<10) dd="0"+dd;
var hh = modified.getHours();   if (hh<10) hh="0"+hh;
var nn = modified.getMinutes(); if (nn<10) nn="0"+nn;

// Time stamp in strict ISO 8601 format:
stamp = yy + "-" + mm + "-" + dd + "\&nbsp; " + hh + ":" + nn;

// Alternative would be an implementation-dependent UTC string:
// stamp = document.lastModified.toGMTString();

document.write('updated\&nbsp; ',stamp,'<\/font>');

// "Raw" date format of document.lastModified (if printed directly) may be UTC or local!
// (Raw strings shown below for various browsers, between '****' delimiters.
//
// NS-4    : ****Thursday, December 13, 2001 00:19:37**** (local time - Los Angeles)
// IE-5    : ****12/13/2001 00:19:37****                  (Local Time - Los Angeles)
// Opera 5 : ****Thu, 13 Dec 2001 08:19:37 GMT****        (UTC = GMT)
// IE-4    : ****12/13/01 08:19:37****                    (UTC = GMT)
//
// Check your own browser by visiting http://www.numericana.com/test.htm
// Please, let us know about the result: Cut, paste and e-mail as instructed on that page...

// ****************************************************************************************
// Please do NOT copy the code below!
// It's a counter to keep track of the traffic on OUR site. PLEASE remove this part! Thanks.
// By removing everything below the line of stars (above), you will also get rid of the
// annoying dialog box which may have brought you here to begin with.
//

// Counter hosted at http://www.web-stat.com:

// Our own streamlined naming scheme for "entry pages":
//
/*
if (address.indexOf('www.numericana.com')==0) {page_name = address.substring(18);}
else
{
*/
 page_name = document.location.pathname.toString();
 page_name = page_name.toLowerCase();

 if (page_name.indexOf('numericana') >= 0)
  {page_name = page_name.substring(10+page_name.indexOf('numericana'));

   while (page_name.indexOf('\\')>=0) // Replace "\" by "/" in JavaScript 1.0 or above.
     page_name = page_name.substring(0,page_name.indexOf('\\')) + "/" +
                 page_name.substring(page_name.indexOf('\\')+1);

   if (page_name.indexOf('/index.htm')>=0)
       page_name = page_name.substring(0,page_name.indexOf('/index.htm'));

   // Next line normally useless, but seems needed for some buggy JavaScript implementations:
   if (page_name.indexOf('#')>=0) page_name = page_name.substring(0,page_name.indexOf('#'));

   if (page_name.charAt(page_name.length-1) == '/')
      page_name = page_name.substring(0,page_name.length-1);  // No trailing slash.
  }
 else if (document.location.protocol == "file:")
  {page_name = '/unauthorized_local_copy';
   alert("See www.numericana.com for the latest version of this page.\n***\n"+
   "To permanently remove this dialog box, PLEASE read (and edit)\n"+
   "the file named 'updated.js' linked to your own copy of this page.\n");
  }
 else if (document.location.search.indexOf('numericana') >= 0) // Google cache or translation?
  {page_name = document.location.search.toString();            // Yes, use original URL instead.
   page_name = page_name.substring(10+page_name.indexOf('numericana'));                    
   if (page_name.indexOf('+')>=0) page_name = page_name.substring(0,page_name.indexOf('+'));
   if (page_name.indexOf('&')>=0) page_name = page_name.substring(0,page_name.indexOf('&'));
   if (page_name.indexOf('%')>=0) page_name = page_name.substring(0,page_name.indexOf('%'));
   if (page_name.indexOf('#')>=0) page_name = page_name.substring(0,page_name.indexOf('#'));
   if (page_name.charAt(page_name.length-1) == '/')
       page_name = page_name.substring(0,page_name.length-1);  // No trailing slash.
  }
 else page_name = ''; // Use this default identification only for an unrecognized location.
//}
//
// End of naming scheme.

function sE(){return true;}window.onError=sE;var lp=0;
function clr(){lp++;if(lp==1){document.ctr.src="http://64.49.222.57/0.gif";}
else {clearTimeout(myT);return true;}}

var myT=setTimeout('clr()',120000);var rn=0;

document.write('<a href="http://www.web-stat.com/stats.shtml?Numericana">');
document.write('<img width="46" height="13" border="1" hspace="15" align="middle" name="ctr"');
document.write(' src="http://www.web-stat.com/count.cgi?');
document.write('Numericana::'+document.referrer);
if (window.screen){
document.write('::'+screen.width+'x'+screen.height+'::');
document.write(screen.colorDepth+'::'+page_name+'::::'+rn);
}else{document.write('::::::page_name::::'+rn);}
document.write('" onError="clr();" onAbort="clr();"');
document.write(' onLoad="clearTimeout(myT);"');
document.write('border=0 alt=" Visits to this site, since March 31, 2000. "></a>');

// Display Ads from Google's AdSense, except for French pages or pages stored offline:
//
if (document.location.pathname.indexOf('refleu') < 0)
if (document.location.protocol != "file:")
{ document.write('<BR CLEAR=all>');

  google_ad_client = "pub-3442133819666076";
  google_ad_width = 728;
  google_ad_height = 90;
  google_ad_format = "728x90_as";
  google_ad_type = "text_image";
  //2006-11-21: Footer
  google_ad_channel = "5173583295";

  google_color_bg = document.bgColor.toString();
  google_color_bg = google_color_bg.toUpperCase();
  if (google_color_bg.length == 7) google_color_bg = google_color_bg.substring(1);
  google_color_border = google_color_bg;

  google_color_link = "0000CC";
  google_color_text = "000000";
  google_color_url = "008000";

  document.write('<'+'SCR'+'IPT type="text\/javascript" '+
  'SRC="http://pagead2.googlesyndication.com/pagead/show_ads.js"><\/SCR'+'IPT>');
/*
  document.write
    ('<font size="1" face="Geneva, Arial, Helvetica, Verdana, sans-serif">');
  document.write('<a href="http:\/\/home.att.net\/\~numericana\/about.htm\#donate">Donate<\/a>');

  if (address.indexOf('www.numericana.com')==0)
  { document.write(' \&nbsp\; | \&nbsp\; '+
    '<a href="https:\/\/adwords.google.com\/select\/OnsiteSignupLandingPage?client='+
    'ca-pub-3442133819666076\&referringUrl='+
    'http:\/\/home.att.net\/\~numericana' + address.substring(18)
    +'">Advertise on this page<\/a>');
  }

  document.write('<\/font>');
*/
}

// "Google Analytics" tracking code (signed-up 2007-04-16)
//
/*
document.write('<'+'SCR'+'IPT type="text\/javascript" '+
'SRC="http:\/\/www.google-analytics.com\/urchin.js"><\/SCR'+'IPT>');

_uacct = "UA-1676423-1";
urchinTracker();
*/