function switchMostRead(labelName)
	{	
		if(labelName == "today")
		{
			document.getElementById("last_weekLink").style.background = "#E2ECF7";
			document.getElementById("last_weekLink").style.height = "14px";
			document.getElementById("last_week").style.display = "none";
			
			document.getElementById("todayLink").style.backgroundColor = "#FFFFFF";
			document.getElementById("todayLink").style.height = "15px";
			document.getElementById("today").style.display = "inline";
		} else {
			document.getElementById("todayLink").style.background = "#E2ECF7";
			document.getElementById("todayLink").style.height = "14px";
			document.getElementById("today").style.display = "none";
			
			document.getElementById("last_weekLink").style.backgroundColor = "#FFFFFF";
			document.getElementById("last_weekLink").style.height = "15px";
			document.getElementById("last_week").style.display = "inline";
		}
		
		return false;
	}


//-------------------------------------------------------------------------------------------------------------------------------


var currentObj = new Array();

currentObj[1] = 1;
currentObj[2] = 6;

	function switchBoxDisplay(objNum, boxNum)
	{
		if(objNum != currentObj[boxNum])
		{
			document.getElementById("boxNav"+currentObj[boxNum]).style.background = "#F0F0F0";
			document.getElementById("boxNav"+currentObj[boxNum]).style.color = "#666666";
			document.getElementById("boxNav"+currentObj[boxNum]).style.height = "15px";
			document.getElementById("boxNav"+currentObj[boxNum]).style.fontWeight = "normal";
			
			document.getElementById("storyArea"+currentObj[boxNum]).style.display = "none";
			
			document.getElementById("boxNav"+objNum).style.background = "#E2ECF7";
			document.getElementById("boxNav"+objNum).style.color = "#663300";
			document.getElementById("boxNav"+objNum).style.height = "16px";
			document.getElementById("boxNav"+objNum).style.fontWeight = "bold";
			
			document.getElementById("storyArea"+objNum).style.display = "inline";
			
			currentObj[boxNum] = objNum;
		}

		return false;
	}


//-------------------------------------------------------------------------------------------------------------------------------


function browserApp()
{
	var application = navigator.appName;
	//alert(application);	
	return application;
}


//-------------------------------------------------------------------------------------------------------------------------------


function browserVendor()
{
	var vendor = navigator.vendor;
	//alert(application);	
	return vendor;
}


//-------------------------------------------------------------------------------------------------------------------------------


function browserVer()
{
	var version = navigator.appVersion;
	//alert(version);
	return version;
}

//--------------------------------------------------------------------------------------

function operatingSys()
{
	var os = navigator.platform;
	//alert(os);
	return os;
}

//--------------------------------------------------------------------------------------

function windowsOnly()
{
	var platform = operatingSys();
	var regPlatform = RegExp("Win.+", 'i');
		
	if (regPlatform.test(platform) == true)
	{ return true; }
	else
	{ return false; }
}

//--------------------------------------------------------------------------------------

function windowsExplorer()
{
	var platform = windowsOnly();
	var browser = browserApp();
	
	var regBrowser = RegExp(".+Explorer", 'i');
	
	if (platform == true && regBrowser.test(browser) == true)
	{ return true; }
	else
	{ return false; }
}

//--------------------------------------------------------------------------------------

function ffColourShift()
{
	var browser = browserVendor();
	
	if (browser == "Firefox")
	{
		document.getElementById('leftBar').style.backgroundColor = "#E8E3D3";
		document.getElementById('colour3BG').style.backgroundColor = "#E8E3D3";
	}
}
