
/* Change Cell Color Rollover On Call to Action Buttons */
function cellOn(td) {
	if (level == '1'){		
		if(document.getElementById||(document.all && !(document.getElementById))){
			/* First Level Colors */
			td.style.backgroundColor="#D7E0DE";
		}
	} else {
		if(document.getElementById||(document.all && !(document.getElementById))){
			/* Second Level Colors */
			td.style.backgroundColor="#E9F1D5";
		}
	}	
}

function cellOut(td) {
	if (level == '1'){		
		if(document.getElementById||(document.all && !(document.getElementById))){
			/* First Level Colors */
			td.style.backgroundColor="#C1CECB";
		}
	} else {
		if(document.getElementById||(document.all && !(document.getElementById))){
			/* Second Level Colors */
			td.style.backgroundColor="#DFEBC3";
		}
	}
}

/* Change Cell Color Rollover On Tier 2 Left Navigation */
function cellOnT2(td) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor="#89A1AB";
	}
}

function cellOutT2(td) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor="#7C96A1";
	}
}

/* Change Cell Color Rollover On Tier 2 Custom Views Navigation */
function cellOnCustom(td) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor="#D1DBD9";
	}
}

function cellOutCustom(td) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor="#C1CECB";
	}
}

/* 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;
	}

}

/* #################################### */

/* Hides DOM */
/* #################################### */
function HideCustomViews(){		
	theCustomViews.visibility = 'hidden';
}
/* #################################### */



/* Shows DOM */
/* #################################### */
function ShowCustomViews(){		
	theCustomViews.visibility = 'visible';
}
/* #################################### */


/* Timer Sets Back to Invisible */
/* #################################### */
var timeout_state;
function Timer() {
		stop();	
		timeout_state = setTimeout("HideCustomViews();", 5000);
}

function stop(){
	clearTimeout(timeout_state);
	return;
}


/* 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 ()
}