/* ====================================================
General Site variables script
==================================================== */

pagelink		= document.location
pagename		= document.title
sitename		= 'Indulge Sandwich Bar Derby'
siteurl			= 'www.indulge-derby.co.uk'
developer		= 'Indulge Design'
developerurl	= 'http://www.indulgedesign.co.uk.com'
setupdomain		= 'http://localhost/indulge-derby.co.uk'
defaultStatus	= siteurl
software		= navigator.appName
version			= parseInt(navigator.appVersion);
loc			= location.protocol



/* ====================================================
NEW Detect for correct browser to determine CSS file
==================================================== */

if (document.all)					{ browser="ie"; }
else if	(document.layers)		 		{ browser="n4"; }   
else if (!document.all && document.getElementById && software=="Opera")	{ browser="Opera"; }
else if (!document.all && document.getElementById)	{ browser="n6"; }
else if (software=="")					{ browser="Mozilla"; }

/* ====================================================
Local or Live?
==================================================== */

if (loc == "http://localhost" || loc == "https:")
	{
	rootPath = '/';
	}

	else

	{
	rootPath = '';
	}

/* ====================================================
Print the year
==================================================== */

var now		= new Date
thisyear	= now.getYear()

if (thisyear <= 1900) { thisyear = thisyear + 1900 }

/* ====================================================
Things to do when page is loaded
==================================================== */

function loaded()
{
document.prodfind.search_text.focus();
// alert('page loaded!');
}

/* ====================================================
Generic Pop-Up Window function
==================================================== */

function popUp(url)
{
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
self.name = "mainWin";
}

/* =========================================================================================================================
End of file
========================================================================================================================= */

