<!--
function tmtC_stopErrors() {
return true;
}
//window.onerror = tmtC_stopErrors;
/*************************************************************************************************************
DEFINE CLIENT BROWSER & VARIABLES
*************************************************************************************************************/
var timerID=null;
var timerID2=null
var writeMenus="";
var writeSubMenuLayer="";
var writeFooterMenu="";


if (document.layers && navigator.appName.indexOf('Netscape') != -1)
	{
	tsntdHeight=(window.innerHeight-261);
	tsntableHeight=(window.innerHeight);
	}

if (document.getElementById && navigator.appName=="Netscape")
	{
	tableHeight="";//"100.1%";
	tsntdHeight=(window.innerHeight-264)
	}

if (navigator.appName.indexOf('Microsoft') != -1)
	{
	tsntdHeight='100%';
	}

var thisversion=(navigator.userAgent);

/**********************************************************************************************
Submenu item backgroundcolor changer
**********************************************************************************************/
function MyMenuFuct(trueORfalse,thisMenu,thisBGcolor)
{

if (thisbrowser == 'IE')
{
MyMenuTimeout_autoLayers()
}

if (thisbrowser == 'Netscape')
{
	if(trueORfalse==false)
		{
		return;
		}
if(thisMenu)thisMenu.bgColor = thisBGcolor;
MyMenuTimeout_autoLayers();
}

if (thisbrowser == 'NS6')							
	{
	if(trueORfalse==true)
		{
		return;
		}
MyMenuTimeout_autoLayers()
}												

}


/**********************************************************************************************
Menu item backgroundcolor changer
**********************************************************************************************/
function MyMenutdOver(thisMenu,thisElement,thisColor)
	{
	 if(thisElement){
	 //MyMenutimeBG();
	 thisElement.style.backgroundColor=thisColor;
	 }
	setBackgroundColor(thisMenu,thisColor);
	}


/**********************************************************************************************
Menu item backgroundcolor restore
**********************************************************************************************/
function MyMenutdOut(thisElement,thisBgcolor,thisIndex,trueOrFalse)
	{
MenuId=MM_findObj("Menu"+thisIndex);	
MenuLinkId=MM_findObj('menulink'+thisIndex);
LayermenuID=MM_findObj('Layermenu'+thisIndex);
	if(thisIndex!=thisArea)
		{
		thisElement.style.backgroundColor=thisBgcolor;
		MenuLinkId.className=menuStyle;
		}
	if(thisIndex==thisArea)	
		{
		if(trueOrFalse==true)(thisElement.style.backgroundColor=thisBgcolor)
		}		   
	}


	
/**********************************************************************************************
Menu & SubMenu row item backgroundcolor changer
**********************************************************************************************/
function MyMenuBG(thisLayermenu,thisSnap,trueORfalse,thisMenu,thisElement,bgCol)
   {
MenuId=MM_findObj(thisMenu);
thisNumber=(thisSnap.substring(4,10))
MenuLinkId=MM_findObj('menulink'+thisNumber);

if (thisbrowser == 'IE' || thisbrowser == 'NS6')
	{
	if(thisElement!="")thisElement.style.backgroundColor=submenuOver;
	MenuLinkId.className=AreaSelected
	MyMenutimeBG();
	setBackgroundColor(thisMenu,bgCol);
	Ctime();
	P7_autoLayers(thisLayermenu);
	P7_Snap(thisSnap,thisLayermenu,0,0)
	}

if (thisbrowser == 'Netscape')
	 {
	if(thisElement!="")thisElement.bgColor = bgCol;
	reWriteLink='<a id="menulink'+thisNumber+'" class="'+AreaSelected+'" href="index.htm?Area='+eval('IndexRecordArea['+thisNumber+']')+'" ';
	reWriteLink+='onmouseover="MyMenuBG(\'Layermenu'+thisNumber+'\',\'snap'+thisNumber+'\',false,\'Menu'+thisNumber+'\',\'\',menuOver)" ';
	reWriteLink+='onMouseOut="MyMenuFuct(false,this)"';
	reWriteLink+='> &nbsp;&nbsp;&nbsp; '+IndexRecord[thisNumber]+' &nbsp;&nbsp;&nbsp;</a> '; 
	MenuId.document.open();
	MenuId.document.write(reWriteLink);
	MenuId.document.close();
	setBackgroundColor(thisMenu,menuOver);
    Ctime();
	P7_autoLayers(thisLayermenu);
	P7_Snap(thisSnap,thisLayermenu,-4,-4);
	}
 }
			
/**********************************************************************************************
Menu & SubMenu row item backgroundcolor restore
**********************************************************************************************/
function MyMenutimeBG()
{
if (thisbrowser == 'IE' || thisbrowser == 'NS6')
	{
	for(i=1;i<IndexRecordArea.length;i++)
		{
		oMenuID=MM_findObj("Menu"+i)
		if (oMenuID)
			{
			if(i!=thisArea)oMenuID.style.backgroundColor =  tdColor;
			}
		}
	}
if (thisbrowser == 'Netscape')
	{
	   for (i=0 ; i<document.layers.length ; i++)
		{
		LayerId=MM_findObj("Menu"+i);
		if (LayerId)
			{
			if(i!=thisArea)
				{
				LayerId.bgColor =  tdColor;
				MenuId=LayerId;
				thisNumber=(i)
				reWriteLink='<a id="menulink'+thisNumber+'" class="'+menuStyle+'" href="index.htm?Area='+eval('IndexRecordArea['+i+']')+'"  ';
				reWriteLink+='onmouseover="MyMenuBG(\'Layermenu'+thisNumber+'\',\'snap'+thisNumber+'\',false,\'Menu'+thisNumber+'\',\'\',menuOver)" ';
				reWriteLink+='onMouseOut="MyMenuFuct(false,this)"';
				reWriteLink+='> &nbsp;&nbsp;&nbsp; '+IndexRecord[thisNumber]+' &nbsp;&nbsp;&nbsp;</a> '; 
				MenuId.document.open();
				MenuId.document.write(reWriteLink);
				MenuId.document.close();
				}
			}
		}
	}

}

/**********************************************************************************************
Start timer to hide layers
**********************************************************************************************/
function MyMenuTimeout_autoLayers()
{
timerID=setTimeout("P7_autoLayers();MyMenutimeBG()",500);
}

/**********************************************************************************************

**********************************************************************************************/



/**********************************************************************************************
Clear timeout
**********************************************************************************************/
function Ctime()
{
clearTimeout(timerID);
}


/**********************************************************************************************
Run this on resizing the browser window
**********************************************************************************************/
function browseResize(){
if (thisbrowser == 'Netscape'){MM_reloadPage(true)}
if (thisbrowser == 'IE'){}
if (thisbrowser == 'NS6'){location.reload()}
}


/**********************************************************************************************
Standard setBackgroundColor changer
**********************************************************************************************/
function setBackgroundColor(thisMenu,bgcolor){
LayerId=MM_findObj(thisMenu);

if(LayerId)
	{
	if (thisbrowser == 'IE' || thisbrowser == 'NS6')
		{
		LayerId.style.backgroundColor =  bgcolor;
		}
 	if (thisbrowser == 'Netscape')
		{
		LayerId.bgColor = bgcolor;
		}
	}
}

/**********************************************************************************************
write Menus
**********************************************************************************************/
function docwriteMenus()
{
if(obaseHref==""){_preFix=""}else{_preFix=baseHref}
//tdColor="#0c84bb";
writeMenus+=('<table summary="layout table" width="750px" border="0" cellpadding="0" cellspacing="0">'+
'<tr valign="middle">'+
'<td bgcolor="#0c84bb"  width="13"><img src="'+(_preFix)+'siteimages/shim.gif" width="13" height="20"></td> ');
for(i=1;i<IndexRecordArea.length;i++)
	{
	if(i==thisArea)
		{
		oMenuStyle=AreaSelected;
		oTdColor="#ebeded";
		}else
			{
			oMenuStyle=menuStyle;
			oTdColor=tdColor;
			}
	writeMenus+=('<td valign="middle" height=19 nowrap id="Menu'+i+'" ');
	writeMenus+=('onmouseover="Ctime();MyMenutdOut(this,menuOver,'+i+');MyMenuBG(\'Layermenu'+i+'\',\'snap'+i+'\',false,\'Menu'+i+'\',\'\',menuOver)" ');
	writeMenus+=('onMouseOut="MyMenutdOut(this,tdColor,'+i+');MyMenuFuct(false,this)" bgcolor="'+oTdColor+'"> '); 
	writeMenus+=('<ILAYER top=0 name="HoldMenu'+i+'"> '); 
	writeMenus+=('<LAYER name="Menu'+i+'" height=19 left=0 onmouseover="MyMenutimeBG();MyMenuBG(\'Layermenu'+i+'\',\'snap'+i+'\',true,\'Menu'+i+'\',\'\',menuOver)" onMouseOut="MyMenuFuct(true)"> '); 
	writeMenus+=('<a id="menulink'+i+'" class="'+oMenuStyle+'" href="index.htm?Area='+eval('IndexRecordArea['+i+']')+'" ');
	writeMenus+=('> &nbsp;&nbsp;&nbsp; '+IndexRecord[i]+' &nbsp;&nbsp;&nbsp;</a> '); 
	writeMenus+=('</LAYER> ');
	writeMenus+=('</ILAYER> ');
	writeMenus+=('</td> ');
	}
writeMenus+=('<td height=19 width=100% bgcolor="'+tdColor+'"><img src="'+(_preFix)+'siteimages/shim.gif" width=19 height=19></td></tr> ');
writeMenus+=('<tr valign="bottom">  <td width="13"><img src="'+(_preFix)+'siteimages/shim.gif" width="13" height="1"></td> '); 

for(i=1;i<IndexRecordArea.length;i++)
	{
	writeMenus+=('<td nowrap height=1><img src="'+(_preFix)+'siteimages/shim.gif" width=1 height=1 name="snap'+i+'"></td> ');
	}
writeMenus+=('<td height=1 width=100%><img src="'+(_preFix)+'siteimages/shim.gif" width=1 height=1></td>'+ 
'</tr>'+
'</table>');

document.write(writeMenus);
}

/**********************************************************************************************
write SubMenu Layers
**********************************************************************************************/
function docwriteSubMenus()
{
for(i=1;i<IndexRecordArea.length;i++)
	{
	IndexPageLength=eval('IndexPage'+i+'.length')
	writeSubMenuLayer+=('<div id="Layermenu'+i+'" class="absDiv"> '); 
	if(IndexPageLength>2)
		{
		writeSubMenuLayer+=('<table border="0" cellspacing="0" cellpadding="1" width="200" bgcolor="#cccccc"><tr><td> ');
		writeSubMenuLayer+=('<table border="0" cellspacing="0" cellpadding="0" width="200" bgcolor="'+menuOver+'"> ');
		for(j=2; j< eval('IndexPage'+i+'.length'); j++)
			{
			writeSubMenuLayer+=('<tr> ');
			writeSubMenuLayer+=('<td nowrap valign="middle" class="cellPad" id="Menu'+i+'Link'+j+'" height=19 ');
			writeSubMenuLayer+=('onmouseover="Ctime();MyMenutdOut(this,submenuOver,'+i+');MyMenuBG(\'Layermenu'+i+'\',\'snap'+i+'\',false,\'Menu'+i+'\',this,menuOver)" ');
			writeSubMenuLayer+=('onMouseOut="MyMenutdOut(this,menuOver,'+i+',true);MyMenuFuct(false,this)">  ');
			writeSubMenuLayer+=('<ILAYER width="200" name="HoldMenu'+i+'Link'+j+'" z-index="1"> '); 
			writeSubMenuLayer+=('<LAYER name="Menu'+i+'Link'+j+'" class="LayerPad" width=200 height=19 top=0 z-index="1" left=0 ');
			writeSubMenuLayer+=('onmouseover="if(document.layers){MyMenuBG(\'Layermenu'+i+'\',\'snap'+i+'\',true,\'Menu'+i+'\',this,submenuOver)}" ');
			writeSubMenuLayer+=('onMouseOut="if(document.layers){MyMenuFuct(true,this,menuOver)}"> ');
			writeSubMenuLayer+=('<a id="menulink'+i+'Page'+j+'" class="'+oSubAreaName+'" href="index.htm?Area='+(eval('IndexRecordArea['+i+']'))+'&page='+eval('IndexPage'+i+'_'+j)+'" ');
			writeSubMenuLayer+=('> '+ eval('IndexPage'+i+'['+j+']') +'</a></LAYER> ');
			writeSubMenuLayer+=('</ILAYER> ');
			writeSubMenuLayer+=('</td> ');
			writeSubMenuLayer+=('</tr> ');
			}

		writeSubMenuLayer+=('</table></td></tr></table> ');
		}
	writeSubMenuLayer+=('</div> ');
	}
document.write(writeSubMenuLayer);
}

/**********************************************************************************************
write SubMenu Layers
<td height="23" class="tsnFootmenu"><a href="javascript:;" class="tsnFootmenu">Your 
      Wellbeing</a> | <a href="tsn_how_you_can_help.htm" class="tsnFootmenu">How 
      You Can Help</a> | <a href="tsn_latest_news.htm" class="tsnFootmenu">News 
      and Views</a> | <a href="javascript:;" class="tsnFootmenu">About Us</a></td>
**********************************************************************************************/
function writeFootMenu()
{
oPrefix=obaseHref;
if(thisbrowser=='IE'){oPrefix=''}
siteMap=oPrefix+'index.htm?index='+trappedArea+'&page=Site_Maps';
oDivider ="|";	
for(i=1;i<IndexRecordArea.length;i++)
	{
	if(i+1==IndexRecordArea.length)oDivider="";
	writeFooterMenu+=(' <a class="'+oFootmenu+'" href="index.htm?Area='+eval('IndexRecordArea['+i+']')+'">'+IndexRecord[i]+'</a> '+oDivider); 
	}
document.write(writeFooterMenu+"|"+" <a class='"+oFootmenu+"' href='"+siteMap+"'>sitemap</a>")
}


/**********************************************************************************************
NS4 stylesheet link
**********************************************************************************************/
function check4NS4()
{
if (document.layers)
        {
        var thisbrowser = 'Netscape';
        document.write('<link rel="stylesheet" href="style/NS4style.css" type="text/css">');
        }
}


function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

window.onresize=function()
{
location.reload();
}

window.onload=function()
{
targetLinks();
odivImg=MM_findObj("divImg"); 
odivTxt=MM_findObj("divTxt"); 
odivLink=MM_findObj("divLink"); 
opageImg=MM_findObj("pageImg");
//alert(document.links[3].href)




if(odivImg && odivTxt && odivLink && opageImg)
	{
	if(odivLink.value.indexOf("index.htm?index=")!=-1 || document.links[1].href.indexOf("index.htm?index=")!=-1 || odivLink.value.indexOf("javascript:")!=-1)
		{
		otag='A';
		opreFix=obaseHref;
		otarget="_top";
		}
		else
			{
			opreFix='';
			otarget="_blank";
			}
	document.links[1].href=odivLink.value;
	if(document.links[1].href !="javascript:rtnSrc()")document.links[1].target=otarget;
	if(odivImg.value.indexOf(" ")!=-1 || odivImg.value!="")
		{
		opageImg.src=odivImg.value;
		opageImg.title=odivTxt.value;
		opageImg.alt=odivTxt.value;
		}
	}
	else
		{
		document.links[1].href=".";
	//	document.links[3].target="_top";	
		opageImg.title="home";
		opageImg.alt="home";
		}

/*if(isDOM)
	{
	//DOMresize('oContent',document.body.clientHeight-225);
DOMresize('oContent',document.body.clientHeight-264);
	}*/

/*
if (isNS6){
	document.getElementById('oContent').childNodes[5].setAttribute("height",window.innerHeight-278);
	//document.getElementById('oContent').childNodes[5].removeAttribute("height");
	//DOMresize('oContent',window.innerHeight-264);
	}


if(isIE)DOMresize('oContent',document.body.clientHeight-282);
*/


}
//-->