function cellOnT1(td) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor="#E6FFFF";
	}
}

function cellOutT1(td) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor="#B5F9FF";
	}
}

function cellOnT2(td) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor="#D8FF9C";
	}
}

function cellOutT2(td) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor="#ECFFD1";
	}
}
function cellOnT3(td) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor="#F8F8F8";
	}
}

function cellOutT3(td) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor="#EFEFEF";
	}
}


/* 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 ()
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
