function move()
{
	if (navigator.appName.indexOf("Netscape") != -1 || navigator.appName.indexOf("Mozilla") != -1)
	{
		document.getElementById("header").setAttribute("align","left");
		document.getElementById("main").setAttribute("align","left");
		document.getElementById("footer").setAttribute("align","left");
	}
}

//	***Image rollover preloading and functions***

// preloading images

if  (document.images)
{
	cBullet 		= 	new Image();
	cBullet.src 		= 	"images/layout/cBullet.gif";

	cBulletOn		= 	new Image();
	cBulletOn.src 		= 	"images/layout/cBulletOn.gif";

	cBulletDown		=	new Image();
	cBulletDown.src		=	"images/layout/cBulletDown.gif";
	
	Bullet			=	new Image();
	Bullet.src		=	"images/layout/bullet.gif";
	
	Trans			=	new Image();
	Trans.src		=	"images/layout/trans.gif";
}

// image rollover functions

function tip(img,command)
{
	if (command == 1)
	{
		document.images[img].style.position = "relative";
		document.images[img].style.left = "1px";
	}
	else if (command == 2)
	{
		document.images[img].style.left = "0px";
		document.images[img].style.position = "";
	}
}

function select(img,command)
{
	if (command == 1)
	{
		document.images[img].style.border = "1px dashed #777777";
	}
	else if (command = 2)
	{
		document.images[img].style.border = "1px dashed #ffffff";
	}
}

//	***Navigation Menu Variables and Functions***

// menu variables (true = open, false = closed)

var isHome = false;
var isBoard = false;
var isDownloads = false;

// function that applies a css disply style to hide or show the navigation menus
	
function drawMenu()
{
	if (isHome == true)
	{
		document.getElementById("home").style.display = "block";
		document.images.homeImg.src = cBulletDown.src;
		tip("homeImg",2);
	} 
	else
	{
		document.getElementById("home").style.display = "none";
		document.images.homeImg.src = cBulletOn.src;
		tip("homeImg",2);
	}
	
	if (isBoard == true)
	{
		document.getElementById("board").style.display = "block";
		document.images.boardImg.src = cBulletDown.src;
		tip("boardImg",2);
	}
	else
	{
		document.getElementById("board").style.display = "none";
		document.images.boardImg.src = cBulletOn.src;
		tip("boardImg",2);
	}
	
	if (isDownloads == true)
	{
		document.getElementById("downloads").style.display = "block";
		document.images.downloadsImg.src = cBulletDown.src;
		tip("downloadsImg",2);
	}
	else
	{
		document.getElementById("downloads").style.display = "none";
		document.images.downloadsImg.src = cBulletOn.src;
		tip("downloadsImg",2);
	}
}

// function that allows only one menu to be open at a time

function adjustMenu(menuId)
{
	if (menuId == 1)
	{
		if (isHome == false) // adjusting home menu
		{
			isHome = true;
			isBoard = false;
			isDownloads = false;
		}
		else if (isHome == true)
		{
			isHome = false;
			isBoard = false;
			isDownloads = false;
		}
	}
	else if (menuId == 2)
	{
		if (isBoard == false)
		{
			isHome = false;
			isBoard = true;
			isDownloads = false;
		}
		else if (isBoard == true)
		{
			isHome = false;
			isBoard = false;
			isDownloads = false;
		}
	}
	else if (menuId == 3)
	{
		if (isDownloads == false)
		{
			isHome = false;
			isBoard = false;
			isDownloads = true;
		}
		else if (isDownloads == true)
		{
			isHome = false;
			isBoard = false;
			isDownloads = false;
		}
	}
	
	drawMenu();
}
