//---------------------------------------------------------------------------------------
// CHANGE NAVPANEL POSITIONING TO ABSOLUTE FOR IE

function setIeNavPanel()
{
	if(navigator.appName == "Microsoft Internet Explorer") 
	{
		if(document.getElementById("navPanel"))
document.getElementById("navPanel").style.position = "absolute";
		if(document.getElementById("navDiv"))
document.getElementById("navDiv").style.position = "absolute";
	}
}


//This is a better way to go. Not currently implemented.

function fixPCproblems()
{
var uAgent = navigator["userAgent"];
var aName = navigator["appName"];
if(uAgent.indexOf("Windows") !=-1 && aName.indexOf("Explorer") != -1)
	{
document.write('<link rel="stylesheet" type="text/css" href="./pieces/stylesWin.css" media="all" />');
	}
}



// CHANGE NAVPANEL POSITIONING TO ABSOLUTE FOR IE
//---------------------------------------------------------------------------------------

//BEGIN SCRIPT TO CHANGE IMAGE ON ROLLOVER.var pix = new Array();pix["bike0"] = new Image();pix["bike1"] = new Image();pix["bike0"].src = "../bike0.jpg";pix["bike1"].src = "../bike1.jpg";
//------------------------------------------------------------------------//INDEX PAGE: FADE IN SELECTED TEXT.

var aa=255;	// Initial value used as color parameter for Red, Green and Blue channels. function fadeInText() 
{	
var fadeCounter = 1	if(aa>=0) 
	{aa-=(fadeCounter);				// aa color value. Decreasing by 1++ units. document.getElementById("fadedText").style.color="rgb(" + aa + "," + aa + "," + aa + ")";fadeCounter++;window.setTimeout("fadeInText()", 40);		// Call fadeInText again	}}//------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
// WEBNOTES INPUT FORM

function redirectSubmit(newDestination)
{
document.inputForm.action = newDestination;
document.inputForm.submit();
}

// redirectIfDone is just a bit more sophisticated than redirectSubmit. It produces
// a confirm box. Notice the last line, using the click() method. This was necessary
// because in my php I checked to see whether submitEntry had been clicked. 

function redirectIfDone(newDestination)
{
	if(document.inputForm.text.value == "")
	{
document.inputForm.action = newDestination;
document.inputForm.submitEntry.click();
	}
	else
	{
		if(confirm("Have changes been saved?"))
document.inputForm.action = newDestination;
document.inputForm.submitEntry.click();
	}
}

function warnBeforeDeleting(form)
{
		if(confirm("Delete this record?"))
		{
form.submit();
		}
}


