function BrowserCheck() {
	var b = navigator.appName;
	if (b=="Netscape") 
		this.b = "ns";
	else if (b=="Microsoft Internet Explorer") 
		this.b = "ie";
	else 
		this.b = b;
	this.version = navigator.appVersion;
	this.v = parseInt(this.version);
	this.ns = (this.b=="ns" && this.v>=4);
	this.ns4 = (this.b=="ns" && this.v==4);
	this.ns5 = (this.b=="ns" && this.v==5);
	this.ie = (this.b=="ie" && this.v>=4);
	this.ie4 = (this.version.indexOf('MSIE 4')>0);
	this.ie5 = (this.version.indexOf('MSIE 5')>0);
	this.min = (this.ns||this.ie);
	this.mac = ((navigator.userAgent.toLowerCase()).indexOf("mac")!=-1);
}
is = new BrowserCheck();

// This writes a CSS <LINK> tag to the document to pull in the stylesheet
// appropriate for the client operating system
var _WriteThis  = '<LINK rel="stylesheet" href="includes/';
    _WriteThis += ((is.mac&&(!is.ie5))?"mac":"general");
    _WriteThis += '.css" type="text/css">';
document.write(_WriteThis);

// Strings for input fields (capture browser and platform sizing differences)
standardSize = 17;  // ie on pc, and netscape on mac!!
if (is.mac) {
	if (is.ie) {
		// ie mac input fields are shorter
		standardSize = 21;
	}
}
else if (is.ns) {
	// netscape input fields always longer!!
	standardSize = 10;
}
usernameSize = standardSize;
passwordSize = standardSize;
suggestSize = standardSize;
var usernameInput = "<INPUT TYPE='Text' CLASS='INPUT' NAME='fuser' SIZE="+usernameSize+" MAXLENGTH=15>";
var passwordInput = "<INPUT TYPE='password' CLASS='PASSWORD' NAME='fpass' SIZE="+passwordSize+" MAXLENGTH=15>";
var suggestInput = "<INPUT TYPE='Text' CLASS='INPUT' NAME='suggest' SIZE="+suggestSize+" MAXLENGTH=60>";

var imagesLoaded = false
if (document.images) 
{
	// pre-load general images into an array
	// if you want to add to these, add them at the END of the list!
	arImLoad = new Array (
		"26_submitarrow_23",
		"26_submitarrow_23-over",
		"36_home_11",
		"36_home_11-over",
		"68_what_new_11",
		"68_what_new_11-over",
		"34_help_11",
		"34_help_11-over",
		"65_yclub_11",
		"65_yclub_11-over",
		"52_sitemap_11",
		"52_sitemap_11-over",
		"52_yupinfo_11",
		"52_yupinfo_11-over",
		"56_register_11",
		"56_register_11-over",
		"80_whyreg_11",
		"80_whyreg_11-over",
		"OutonthetownOff",
		"OutonthetownOn",
		"84_needgift_15",
		"84_needgift_15-over",
		"75_fooddrink_15",
		"75_fooddrink_15-over",
		"77_getaway_15",
		"77_getaway_15-over",
		"115_computers_15",
		"83_getalife_15",
		"88_healthfit_14",
		"84_homefam_14",
		"75_getbusy_14",
		"77_ratrace_14",
		"115_homeent_14",
		"83_kittedout_14",
		"26_submitgrey_23",
		"26_submitgrey_23-over",
		"86_editmyd_11",
		"86_editmyd_11-over",
		"115_recommend_11",
		"115_recommend_11_over",
		"forgotpassword1",
		"forgotpassword_roll1",
		"motoringmattersOn",
		"motoringmattersOff",
		"jobscoursesOn",
		"jobscoursesOff",
		"healthfitnessOn",
		"healthfitnessOff",
		"moneymattersOn",
		"moneymattersOff",
		"shoppingOn",
		"shoppingOff",
		"homeentertainmentOn",
		"homeentertainmentOff",
		"lifeeventsOn",
		"lifeeventsOff",
		"propertymattersOn",
		"propertymattersOff",
		"helpdots",
		"fooddots",
		"propertydots",
		"personaldots",
		"awaydots",
		"towndots",
		"motoringdots",
		"otherdots",
		"helpdotsb",
		"fooddotsb",
		"propertydotsb",
		"personaldotsb",
		"awaydotsb",
		"towndotsb",
		"motoringdotsb",
		"otherdotsb"
		);
		
	arImList = new Array ();
	for (counter in arImLoad) 
	{
		arImList[counter] = new Image();
		arImList[counter].src = "images/" + arImLoad[counter] + ".gif";
	
	}
	imagesLoaded = true;
}