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

pagelink		= document.location
pagename		= document.title
sitename		= 'ellis-brigham.com'
siteurl			= 'http://www.ellis-brigham.com'
developer		= 'Peaknet LTD'
developerurl	= 'http://www.peaknet.ltd.uk'
setupdomain		= 'http://test.'
defaultStatus	= siteurl
software		= navigator.appName
version			= parseInt(navigator.appVersion);
loc			= location.protocol

bolFooterMenu = false;
bolFooterDate = false;



/* ====================================================
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:" || 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";
}

/* ====================================================
Output footer menu options + Date area
==================================================== */

function footMenu()
{
	if(bolFooterMenu == false)
	{
		document.write('<A href="/" target="_top">Home</a> | <a href="#back" onclick="history.go(-1);">Back</A> | <a href="#top">Top</A> | <a href="/search.htm">Search</A> | <a href="/corporate.htm">Corporate</A> | <a href="/carriage.htm">Delivery</A>| <a href="/jobs.htm">Jobs</A> | <a href="/contact.htm">Contact</A>');
		bolFooterMenu = true;
	}
}

function footDate()
{
	if(bolFooterDate == false)
	{
		document.write('<SPAN TITLE="Please email us before using any imagery or content from this site. Ta.">&copy; '+thisyear+ ' Ellis Brigham Mountain Sports Ltd</SPAN>');
		bolFooterDate = true;
	}
}


/* ====================================================
Page <TITLE> reminder
==================================================== */

if (document.title == 'not set')
{
alert('John or Simon have forgotten to set the page <TITLE> for this page - BAD, BAD, BAD!');
}

/* ====================================================
Down Function for Icon Pages
==================================================== */

function down(icon)
{
icon.className = 'glogoslotdown';
}

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


