function cellOn(td) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor="#FFFFFF";
	}
}

function cellOut(td) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor="#F0F0F0";
	}
}



/* Get Link of Cell */
var token = ''

function track(loc)
{
	document.location=loc + token;
}

/* Setup Browser Detection */
/* #################################### */
function setup(){

	if(document.layers){			
		theCustomViews = document.CustomViews;
	} else if(document.all) {			
		theCustomViews = document.all.CustomViews.style;
	} else if(document.getElementById) {			
		theCustomViews = document.getElementById('CustomViews').style;
	}

}


/* launches pop-up windows */
/* #################################### */
function NavigateOpen(Location,Width,Height){
	x=Width;
	y=Height;
	xresnow = x;
	yresnow = y;
	if (navigator.appVersion.indexOf("Mac")!=-1 && document.all) {
			xresnow-=0;
			yresnow-=0;
	}
	xl = (screen.availWidth/2)-(xresnow/2);
	tt = (screen.availHeight/2)-(yresnow/2);
  if (document.all) mw=window.open(Location,'mwi','toolbar=no,scrollbars=yes,width='+xresnow+',height='+yresnow+',left='+xl+',top='+tt);
  else {
    if (parseFloat(navigator.appVersion)<4.75)
      mw=window.open(Location,'mwi','left='+xl+',top='+tt+',width='+x+',height='+y+',toolbar=no,scrollbars=yes,status=0,location=0');
    else {
      mw=window.open(Location,'mwi','left='+xl+',top='+tt+',width='+x+',height='+y+',toolbar=no,scrollbars=yes,status=0,location=0');
      setTimeout("mwFix("+xl+","+tt+",x,y)",10);
    }
  }
}

function popToFront () {
	mw.focus ()
}

// Top Navigation Properties

var webSiteWidth = 700;
var curNav = null;
var delay = 250;
var timer = 0;

// |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// Navigation Functions

function showSub( subName, xOffset ){
	var e, windowWidth, webSiteLeft;
	cancelHide();
	hideSubNavigation();
	e = document.getElementById(subName);
	windowWidth = document.all ? document.body.clientWidth : window.innerWidth;
	webSiteLeft = (windowWidth - webSiteWidth)/2;
	if( webSiteLeft < 0 ) webSiteLeft = 0;
	e.style.left = webSiteLeft + xOffset;

	e.style.visibility = 'visible';
	curNav = subName;
}
function hideSubNavigation(){
	if( curNav != null ){
		e = document.getElementById(curNav);
		e.style.visibility = 'hidden';
		curNav = null;
	}
}
function hideSub(){
	timer = setTimeout('hideSubNavigation()', delay);
}
function cancelHide(){
	clearTimeout(timer);
	timer = 0;
}
function navOver(e){
	e.style.backgroundColor = '#5a463c';
	e.style.color = '#e1e1cd';
}
function navOut(e){
	e.style.backgroundColor = '#e1e1cd';
	e.style.color = '#5a463c';
}