var bn=navigator.appName;var vn=navigator.appVersion;
var blnNN = (bn=="Netscape") ? true:false;
var ver4 = (vn.charAt(0)>="4") ? true:false;
var gunners = ((bn=="Netscape") || (bn=="Microsoft Internet Explorer")) ? true:false;
var winwidth = (bn=="Netscape") ? window.innerWidth:window.screen.availWidth;
var winwidth2;
var oldNetscape = (bn=="Netscape") && (ver4);
var gblCols;

if (winwidth >=1024)
	{
	winwidth2=888;
	gblCols=3;
	}
else
	{
	winwidth2=winwidth-148;
	gblCols=2;
	}

var winheight = (bn=="Netscape") ? window.innerHeight:window.screen.availHeight;
var winheight2 = (winheight-400) < 0 ? 10:(winheight-400);
var redlight = !(ver4 || gunners);
var maisy = winwidth-600;
var janet = ((maisy % 2) > 0) ? ((maisy-1)/3):(maisy/3);
var amy= (maisy/2)-10;
var col3rd = winwidth-100;
var gum1=ConvertDate(document.lastModified)+".  ";
var gum2="<a href=support/privacy.htm>Online Privacy Policy</a> and <a href=support/termsofuse.htm>Terms of Use</a> apply.  Copyright 2002 TeaZone.  ";
var gum3="<a href=privacy.htm>Online Privacy Policy</a> and <a href=termsofuse.htm>Terms of Use</a> apply.  Copyright 2002 TeaZone.  ";
var gum4="<a href=../support/privacy.htm>Online Privacy Policy</a> and <a href=../support/termsofuse.htm>Terms of Use</a> apply.  Copyright 2002 TeaZone.  ";
var gum5="<a href=../../support/privacy.htm>Online Privacy Policy</a> and <a href=../../support/termsofuse.htm>Terms of Use</a> apply.  Copyright 2002 TeaZone.  ";
var ref1color="#222222";	
var ref2color="#555555";	


function JustMe ()
{
	if (redlight)
		{window.alert("you have landed at this page without the proper web browsers. Please note that TeaZone will only support ver 4 and above of IE or Netscape Navigator. You may crash your system if you proceed.")}
	window.moveTo(0,0);

	if (document.all)
	{
	  top.window.resizeTo(screen.availWidth,screen.availHeight);
	}

	else if (document.layers||document.getElementById)
	{
	  if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
	  {
	    top.window.outerHeight = screen.availHeight;
	    top.window.outerWidth = screen.availWidth;
	  }
	}	
}

function tin(akina)
{
akina = "" + akina + "";
document.write(akina);
}

function DayIs(intDay)
{
var strDay="";
switch (intDay)
	{
	case 0: strDay="Sunday";break;
	case 1: strDay="Monday";break;
	case 2: strDay="Tuesday";break;
	case 3: strDay="Wednesday";break;
	case 4: strDay="Thursday";break;
	case 5: strDay="Friday";break;
	case 6: strDay="Saturday";break;
	}

return strDay;
}

function MonthIs(intMonth)
{
var strMonth="";
switch (intMonth)
	{
	case 0: strMonth="Jan";break;
	case 1: strMonth="Feb";break;
	case 2: strMonth="Mar";break;
	case 3: strMonth="April";break;
	case 4: strMonth="May";break;
	case 5: strMonth="Jun";break;
	case 6: strMonth="Jul";break;
	case 7: strMonth="Aug";break;
	case 8: strMonth="Sep";break;
	case 9: strMonth="Oct";break;
	case 10: strMonth="Nov";break;
	case 11: strMonth="Dec";break;
	}

return strMonth;
}

var strTemp;
var intMonth;
function ConvertDate(strDate)
{
if (strDate.charAt(8)==" ")
	{
	if (strDate.charAt(6)=="0")
		{strDate = strDate.slice(0,6) + "200" + strDate.slice(7)}
	else
		{strDate = strDate.slice(0,6) + "19" + strDate.slice(6)}
	}

strDate =  new Date(strDate);
strTemp = DayIs(strDate.getUTCDay()) + " ";
strTemp += MonthIs(strDate.getMonth()) + " ";
strTemp += strDate.getDate() + ", ";
strTemp += strDate.getUTCFullYear();

if (strDate.getUTCFullYear() < 1995)
{return "";}
else
{return strTemp;}
}

/**
defn of bgcolors defined independently in style.css for IE's sake
defn of bgcolors also in main.js for use in Navigator
use of bgcolors by ref1color and ref2color in main html
**/