
/* ====================================================
General Site variables script
==================================================== */

pagelink		= document.location
pagename		= document.title
sitetitle		= 'Hunts Water Limited © '
siteurl			= 'http://www.huntswater.co.uk'
developer		= 'Peaknet LTD'
developerurl 	= 'htt p://www.peaknet.co.uk'
today		   	= new Date
today_time		= today.getHours()

/* ====================================================
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"; }


/* ====================================================
Left menu rollover script
==================================================== */

function menuON(slot)	{ slot.className='menuslotON';	}
function menuOFF(slot)	{ slot.className='menuslot';	}

/* ====================================================
HI-lite for form fields
==================================================== */

function hi(field)	{ field.className = 'formboxHI'; 	}
function lo(field)	{ field.className = 'formbox';		}

/* ====================================================
Send page to friend
==================================================== */

function sendlink() { window.location='mailto:?subject=Take a look at this!&body=' + pagename + ' : ' + pagelink }

/* ====================================================
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); }

defaultStatus	= sitetitle + year;


/* ======================================================
End of file
====================================================== */

