<!-- You were here NN Times. last time was = Date. -->
<!-- Original:  Mattias Sjoberg -->
<!-- Begin
var expDays = 720;
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function MakeArray(n) { this.length = n; return this; }

monthNames = new MakeArray(12);
monthNames[1] = "Jan";
monthNames[2] = "Feb";
monthNames[3] = "Mar";
monthNames[4] = "Apr";
monthNames[5] = "May";
monthNames[6] = "Jun";
monthNames[7] = "Jul";
monthNames[8] = "Aug";
monthNames[9] = "Sep";
monthNames[10]= "Oct";
monthNames[11]= "Nov";
monthNames[12]= "Dec";

dayNames = new MakeArray(7);
dayNames[0] = "Sun";
dayNames[1] = "Mon";
dayNames[2] = "Tue";
dayNames[3] = "Wed";
dayNames[4] = "Thu";
dayNames[5] = "Fri";
dayNames[6] = "Sat";

function RhyneCats_When(info) {
	var rightNow = new Date();
	var CookTime = new Date( GetCookie('RhyneCatsWhen') );
	var WWHText  = "";

	mon	= CookTime.getMonth()+1;
	day	= CookTime.getDate();
	yer	= CookTime.getYear();
	if ( yer < 1000 ) { yer += 1900; }
	if ( day < 10 ) { day = "0" + day; }
	hrs	= CookTime.getHours();
	min	= CookTime.getMinutes();
	sec	= CookTime.getSeconds();
	dowy	= CookTime.getDay();
	adow	= "  " + dayNames[dowy] ;
	if ( hrs < 10 ) { hrs = "0" + hrs; }

	if ( hrs > 12 ) { hrs = hrs - 12; am = "pm"; }
	else	{ am = "am"; }
	if ( min < 10 ) { min = "0" + min; }
	if ( sec < 10 ) { sec = "0" + sec; }
	atime	= hrs +":"+ min +":"+ sec ;

	WWHText	= monthNames[mon]+" "+ day +", "+ yer + "  " + adow +" "+ atime + " " + am;

	SetCookie ("RhyneCatsWhen", rightNow, exp)
	return WWHText
}
function RhyneCats_Count(info) {
	var RhyneCatsCount = GetCookie('RhyneCatsCount')
	if (RhyneCatsCount == null) { RhyneCatsCount = 0; }
	else{ RhyneCatsCount++; }
	SetCookie ('RhyneCatsCount', RhyneCatsCount, exp);
	return RhyneCatsCount;
}
function RhyneCats_EnterName(info) {
	var RhyneCatsName = GetCookie('RhyneCatsName')
	RhyneCatsName = prompt("    You can enter your Name if you like?    ");
	if (RhyneCatsName != null) {
		if (RhyneCatsName != "undefined" ) {
			SetCookie ('RhyneCatsName', RhyneCatsName, exp);
		}
	}
	history.go(0);
	return RhyneCatsName;
}
function RhyneCats_Name(info) {
	var RhyneCatsName = GetCookie('RhyneCatsName')
	if (RhyneCatsName == null) { RhyneCatsName = '--!-Click-Here-!--'; }
	return RhyneCatsName;
}
function set() {
	SetCookie ('RhyneCatsCount', 0, exp);
	SetCookie ('RhyneCatsWhen', 0, exp);
	SetCookie ('RhyneCatsName', '!!', exp);
}
function getCookieVal (offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
			return getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
	}
	return null;
}
function SetCookie (name, value) {
	var argv = SetCookie.arguments;
	var argc = SetCookie.arguments.length;
	var expires = (argc > 2) ? argv[2] : null;
	document.cookie = name + "=" + escape (value) +
	((expires == null) ? "" : ("; expires=" + expires.toGMTString()));
}
function DeleteCookie (name) {
	var exp = new Date();
	exp.setTime (exp.getTime() - 1);
	var cval = GetCookie (name);
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
//  End -->
