/* ====================================================
General Site variables script
==================================================== */

pagelink		= document.location
pagename		= document.title
sitetitle		= 'Trusteal Ltd'
siteurl			= 'http://www.trustseal.co.uk'
developer		= 'Peaknet LTD'
developerurl 	= 'http://www.peaknet.co.uk'
today		    = new Date
today_time		= today.getHours()
defaultStatus	= siteurl
software		= navigator.appName
version			= parseInt(navigator.appVersion);
cpu		      	= navigator.platform


/* ====================================================
Detect for correct browser to determine CSS file
==================================================== */

if	     (document.layers)		                  		{ browser="n4"; }
else if  (document.all)		 			                    { browser="ie"; }
else if  (!document.all && document.getElementById)	{ browser="n6"; }

if	     (browser == "n4") { document.write('<LINK REL="STYLESHEET" HREF="/text.css">');	}
else                       { document.write('<LINK REL="STYLESHEET" HREF="/text.css">');	}


/* ====================================================
Left menu rollover script
==================================================== */

function menuON(slot)	{ slot.className='menuslotON';	}
function menuOFF(slot)	{ slot.className='menuslot';	}
function mainmenuON(slot)	{ slot.className='mainmenuslotON'; }
function mainmenuOFF(slot)	{ slot.className='mainmenuslot'; }

/* ====================================================
HI-lite for form fields
==================================================== */

function hi(field)	{ field.className = 'formboxHI'; 	}
function lo(field)	{ field.className = 'formbox';		}


/* ====================================================
Previous Page
==================================================== */

function previous() { history.go(-1); }


/* ====================================================
Print Today's DATE function - Y2K + Netscape friendly
==================================================== */

var months=new Array(13);

months[1]	= "January";
months[2]	= "February";
months[3]	= "March";
months[4]	= "April";
months[5]	= "May";
months[6]	= "June";
months[7]	= "July";
months[8]	= "August";
months[9]	= "September";
months[10]	= "October";
months[11]	= "November";
months[12]	= "December";

var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;

function year() { document.write(year); }


/* =========================================================================================================================
End of file
========================================================================================================================= */
