/* Navigation methods */

var docRef;
var styleRef;
var IE = false;
var NS4 = false;
var NS6 = false;

if (document.layers)
{
	NS4 = true;
	docRef = "document.";
	styleRef = "";
}

if (document.all)
{
	IE = true;
	docRef = "document.all.";
	styleRef = ".style";
}

if (!document.all && document.getElementById)
{
	NS6 = true;
}

function setNavState(navNum) 
{
	navName = "navigation" + navNum;
	if (NS4 || IE) // if browser is Netscape 4 or IE
	{
		dom = eval(docRef + navName + styleRef);
		if (NS4)
		{
			dom.bgImage = '';
//			dom.bgColor = '#36c';
		}
		else
		{
			dom.backgroundImage = '';
//			dom.backgroundColor = '#36c';
		}	
		dom.color = 'white';
	}
	if (NS6) // NS6
	{
		document.getElementById(navName).style.backgroundImage = '';
	//	document.getElementById(navName).style.backgroundColor = '#36c';
		document.getElementById(navName).style.color = 'white';
	}
}

function setState(tabNum) 
{
	tabName = "tab" + tabNum;
	if (NS4 || IE)
	{
		dom = eval(docRef + tabName + styleRef);
		if (NS4)
			//dom.bgColor = '#fc0';
			dom.bgImage = '';
		else
		  //dom.backgroundColor = '#fc0';
		  dom.backgroundImage = '';
		  
		dom.color = 'navy';
	}
	
	if (NS6)
	{
		//document.getElementById(tabName).style.backgroundColor = '#fc0';
		document.getElementById(tabName).style.backgroundImage = '';
		document.getElementById(tabName).style.color = 'navy';	
	}
}
   
function hover(tabNum) 
{
	tabName = "tab" + tabNum;
	if (NS4 || IE)
	{
		dom = eval(docRef + tabName + styleRef);
		if (NS4)
			dom.color = '#552082';
			//dom.bgImage = 'url(/images/SubTabRollFinal85.jpg)';
		else
		  dom.color = '#552082';
			//dom.backgroundColor = '#daa520';
			//dom.backgroundImage = 'url(/images/SubTabRollFinal85.jpg)';
	}
	
	if (NS6)
	{
		document.getElementById(tabName).style.color = '#552082';
		//document.getElementById(tabName).style.backgroundColor = '#daa520';
		//document.getElementById(tabName).style.backgroundImage = 'url(/images/SubTabRollFinal85.jpg)';
	}
}

function hoverNav(navNum) 
{
	navName = "navigation" + navNum;
	
	document.getElementById(navName).style.color = '#552082';
}

function resetNav(navNum) 
{
	navName = "navigation" + navNum;
	
	document.getElementById(navName).style.color = '#4040FF';
}

function hoverSubNav(navNum) 
{
	navName = "subNav" + navNum;
	
	document.getElementById(navName).style.color = '#552082';
}

function resetSubNav(navNum) 
{
	navName = "subNav" + navNum;
	
	document.getElementById(navName).style.color = '#4040FF';
}
function changeURL(strURL)
{
	location = strURL;
}

function openSendEmailWindow()
{  
  var scrnheight = screen.availHeight;
  var scrnwidth = screen.availWidth;
  var width = Math.round(screen.availWidth * .7);
  var length = Math.round(scrnheight * .5);
  
  var startTop = 0;
  var startLeft = 25;
  
  var sendEmailWindow = window.open("","sendEmailWindow","status,left="+startLeft+",top="+startTop+",height="+length+",width="+width+",scrollbars=no,toolbars=no,resizable=no"); 	
     	
  return true;
  
}

function openDocumentWindow()
{
 
  var scrnheight = screen.availHeight;
  var scrnwidth = screen.availWidth;
  var width = Math.round(scrnwidth * .75);
  var length = Math.round(scrnheight * .75);
  
  var startTop = 0;
  var startLeft =  scrnwidth - 10 - width;
 
  var documentWindow = window.open("","documentWindow","status,left="+startLeft+",top="+startTop+",height="+length+",width=" + width + ",scrollbars=yes,toolbars=no,resizable=yes");

  documentWindow.focus();
     	
  
} // openDocumentWindow
