var mtbmenuDetectedBrowser = 'Moz1DHTML';
var mtbmenuMBZ=false;
var mtbmenuCSDS=false;
var mtbmenuTI="";
var mtbmenuClkd=-1;
var mtbmenuPI=new Array();
var mtbmenuPL=new Array();
var mtbmenuPT=new Array();
var mtbmenuNH=new Array();
var mtbmenuPW=0;
var mtbmenuPH=0;
var mtbmenuSPnt="";
var mtbmenuDir="";
var mtbmenuMB=0;
var mtbmenuSI="";
var mtbmenuSE=new Object();
var mtbmenuSEL=0;
var mtbmenuSET=0;
var mtbmenuSEH=0;
var mtbmenuSEW=0;
var mtbmenuBW=0;
var mtbmenuBH=0;
var mtbmenuAR=0;
var mtbmenuAB=0;
var mtbmenuSLA=0;
var mtbmenuSTA=0;
var mtbmenuExIS=new Image();
mtbmenuExIS.src="/images/MainMenu/Popup.gif";
var mtbmenuExdIS=new Image();
mtbmenuExdIS.src="/images/MainMenu/SelectedPopup.gif";
var mtbmenuCTH=true;
var mtbmenuXOff=0;
var mtbmenuYOff=0;
var mtbmenuFP=0;
var mtbmenuSTI=0;
function mtbmenuT(ms){
	if(ms!="off"){
		if(mtbmenuCTH!=0){
			mtbmenuTI=setTimeout("mtbmenuHP(0);",ms);}}
			else{clearTimeout(mtbmenuTI);}}
			
function mtbmenuST(l,g,i){
	if(i){mtbmenuSTI = setTimeout("mtbmenuHP("+l+");mtbmenuSP("+g+",'"+i+"');",350);}else if(l){mtbmenuSTI = setTimeout("mtbmenuHP("+l+");",350);}else{clearTimeout(mtbmenuSTI);}}function mtbmenuShow(id,srcid,relpos,offsetX,offsetY,fixedpos,colorfondo){clearTimeout(mtbmenuTI);if(mtbmenuClkd!=id){mtbmenuHP(0);mtbmenuSI=srcid;mtbmenuSPnt=relpos;mtbmenuClkd=id;mtbmenuDir="right";if(document.getElementById("mtbmenuPopup"+id)){if(offsetX)mtbmenuXOff=offsetX;if(offsetY)mtbmenuYOff=offsetY;if(fixedpos)mtbmenuFP=fixedpos;mtbmenuSP(id);}}}function mtbmenuHide(){mtbmenuTI=setTimeout("mtbmenuHP(0);",350);}function mtbmenuHideNow(){mtbmenuHP(0);}function mtbmenuHiI(id,l,colorfondo){if(!document.getElementById("mtbmenuItem"+id)){return;}



var bgco;
try{bgco =  "#003366" }catch(e){bgco = false;}
if(document.getElementById("mtbmenuIcoOn"+id)){
	document.getElementById("mtbmenuIcoOn"+id).style.display="inline";
	document.getElementById("mtbmenuIco"+id).style.display="none";}
	document.getElementById("mtbmenuItem"+id).style.color="#ffffff";
	document.getElementById("mtbmenuExpand"+id).style.color="#ffffff";
	if(bgco){
		document.getElementById("mtbmenuItem"+id).style.backgroundColor=bgco;
		document.getElementById("mtbmenuExpand"+id).style.backgroundColor=bgco;}
		else{
		document.getElementById("mtbmenuItem"+id).style.backgroundColor=colorfondo;
		document.getElementById("mtbmenuExpand"+id).style.backgroundColor=colorfondo;}
		if(document.getElementById("mtbmenuExpandIc"+id)){
			document.getElementById("mtbmenuExpandIc"+id).src=mtbmenuExdIS.src;}
			mtbmenuNHM(id,l,colorfondo);
			mtbmenuNH[l-1]=id;}

function mtbmenuNHM(id,l,colorfondo){
	if(mtbmenuNH[l-1]!=id){
		var count=l-1;
		for(count=l-1;count<mtbmenuNH.length;count++){
			mtbmenuDiI(mtbmenuNH[count],colorfondo);}
			mtbmenuNH.length=l;}}
function mtbmenuDiI(id,colorfondo){
	if(!document.getElementById("mtbmenuItem"+id)){return;}

var bgco;
try{bgco =  document.getElementById("mtbmenuItem"+id).getAttribute('mtbmenuUnSelColor');}catch(e){bgco = false;}
if(document.getElementById("mtbmenuIcoOn"+id)){
	document.getElementById("mtbmenuIco"+id).style.display="inline";
	document.getElementById("mtbmenuIcoOn"+id).style.display="none";}
	document.getElementById("mtbmenuItem"+id).style.color="#ffffff";
	document.getElementById("mtbmenuExpand"+id).style.color="#ffffff";
	if(bgco){
		document.getElementById("mtbmenuItem"+id).style.backgroundColor=bgco;
		document.getElementById("mtbmenuExpand"+id).style.backgroundColor=bgco;}
		else{document.getElementById("mtbmenuItem"+id).style.backgroundColor=colorfondo;
		document.getElementById("mtbmenuExpand"+id).style.backgroundColor="#003366";}
		if(document.getElementById("mtbmenuExpandIc"+id)){
			document.getElementById("mtbmenuExpandIc"+id).src=mtbmenuExIS.src;}}


function mtbmenuSP(id,itemid){if(!itemid){if(mtbmenuFP){mtbmenuSEL=mtbmenuXOff;
	mtbmenuSET=mtbmenuYOff;mtbmenuSEH=1;mtbmenuSEW=1;mtbmenuFP=0;}else{if(!document.getElementById(mtbmenuSI)){return;}
	mtbmenuSE=new Object(document.getElementById(mtbmenuSI));mtbmenuSEL=new Number(mtbmenuSE.offsetLeft+mtbmenuXOff+document.body.offsetLeft);mtbmenuSET=new Number(mtbmenuSE.offsetTop+mtbmenuYOff+document.body.offsetTop);mtbmenuSEH=mtbmenuSE.offsetHeight;mtbmenuSEW=mtbmenuSE.offsetWidth;var mtbmenuPrO=mtbmenuSE;var mtbmenuPrT="";if(navigator.productSub<20010726){while(mtbmenuPrT!="BODY"){if(mtbmenuPrO.style.position == "absolute"){mtbmenuSEH-=document.body.offsetTop;mtbmenuSEL-=document.body.offsetLeft;break;}mtbmenuPrO=mtbmenuPrO.parentNode;mtbmenuPrT=mtbmenuPrO.tagName;}}else{mtbmenuSEL=mtbmenuSE.offsetLeft+mtbmenuXOff;mtbmenuSET=mtbmenuSE.offsetTop+mtbmenuYOff;mtbmenuSEH=mtbmenuSE.offsetHeight;mtbmenuSEW=mtbmenuSE.offsetWidth;while(mtbmenuPrT!="BODY"){mtbmenuPrO=mtbmenuPrO.offsetParent;mtbmenuSEL+=mtbmenuPrO.offsetLeft;mtbmenuSET+=mtbmenuPrO.offsetTop;mtbmenuPrT=mtbmenuPrO.tagName;}}}document.getElementById("mtbmenuPopup"+id).style.display="inline";mtbmenuPW=document.getElementById("mtbmenuPopup"+id).offsetWidth;mtbmenuPH=document.getElementById("mtbmenuPopup"+id).offsetHeight;mtbmenuBW=document.width;mtbmenuBH=window.innerHeight-15;mtbmenuSLA=window.pageXOffset;mtbmenuSTA=window.pageYOffset;switch(mtbmenuSPnt){case "above":mtbmenuPL[mtbmenuPL.length]=mtbmenuSEL;mtbmenuPT[mtbmenuPT.length]=mtbmenuSET-mtbmenuPH;mtbmenuCA();mtbmenuCR();break;case "below":mtbmenuPL[mtbmenuPL.length]=mtbmenuSEL;mtbmenuPT[mtbmenuPT.length]=mtbmenuSET+mtbmenuSEH;mtbmenuCB();mtbmenuCR();break;case "right":mtbmenuPL[mtbmenuPL.length]=mtbmenuSEL+mtbmenuSEW;mtbmenuPT[mtbmenuPT.length]=mtbmenuSET;mtbmenuCR();mtbmenuCB();break;case "left":mtbmenuPL[mtbmenuPL.length]=mtbmenuSEL-mtbmenuPW;mtbmenuPT[mtbmenuPT.length]=mtbmenuSET;mtbmenuCL();mtbmenuCB();mtbmenuDir="left";break;}mtbmenuXOff=0;mtbmenuYOff=0;document.getElementById("mtbmenuPopup"+id).style.left=mtbmenuPL[mtbmenuPL.length-1];document.getElementById("mtbmenuPopup"+id).style.top=mtbmenuPT[mtbmenuPT.length-1];mtbmenuPI[mtbmenuPI.length]=id;}else{mtbmenuPL[mtbmenuPL.length]=document.getElementById("mtbmenuPopup"+mtbmenuPI[mtbmenuPI.length-1]).offsetWidth+mtbmenuPL[mtbmenuPL.length-1]-4;if(navigator.productSub>20010725){mtbmenuPT[mtbmenuPT.length]=mtbmenuPT[mtbmenuPT.length-1];var mtbmenuPrO=document.getElementById("mtbmenuItem"+itemid);var mtbmenuPrT="";while(mtbmenuPrT!="mtbmenuPopupBox"){mtbmenuPT[mtbmenuPT.length-1]+=mtbmenuPrO.offsetTop;mtbmenuPrO=mtbmenuPrO.offsetParent;mtbmenuPrT=mtbmenuPrO.className;}}else{mtbmenuPT[mtbmenuPT.length]=document.getElementById("mtbmenuItem"+itemid).offsetTop;}document.getElementById("mtbmenuPopup"+id).style.display="inline";mtbmenuPW=document.getElementById("mtbmenuPopup"+id).offsetWidth;mtbmenuPH=document.getElementById("mtbmenuPopup"+id).offsetHeight;var mtbmenuPrW=document.getElementById("mtbmenuPopup"+mtbmenuPI[mtbmenuPI.length-1]).offsetWidth;mtbmenuAR=mtbmenuBW-mtbmenuPL[mtbmenuPL.length-1]+mtbmenuSLA;mtbmenuAB=mtbmenuBH-mtbmenuPT[mtbmenuPT.length - 1]+mtbmenuSTA;if(mtbmenuPL[mtbmenuPL.length-2]==mtbmenuSLA){mtbmenuDir="right";}if((mtbmenuAR<mtbmenuPW)||(mtbmenuDir=="left")){mtbmenuMB=(mtbmenuPL[mtbmenuPL.length-1]-mtbmenuPW-mtbmenuPrW)+8;if((mtbmenuMB>=0)&&(mtbmenuMB>mtbmenuSLA)){mtbmenuDir="left";}else{mtbmenuMB=mtbmenuSLA;}mtbmenuPL[mtbmenuPL.length-1]=mtbmenuMB;}if(mtbmenuAB<mtbmenuPH){mtbmenuMB=mtbmenuPT[mtbmenuPT.length-1]-(mtbmenuPH-mtbmenuAB);if(mtbmenuMB<mtbmenuSTA){mtbmenuMB=mtbmenuSTA;}mtbmenuPT[mtbmenuPT.length-1]=mtbmenuMB;}document.getElementById("mtbmenuPopup"+id).style.left=mtbmenuPL[mtbmenuPL.length-1];document.getElementById("mtbmenuPopup"+id).style.top=mtbmenuPT[mtbmenuPT.length-1];mtbmenuPI[mtbmenuPI.length]=id;}}function mtbmenuHP(level){if(mtbmenuClkd==-1){return false;}else if(level==0){mtbmenuClkd=-1;var id = mtbmenuPI[0];var count=0;for(count=0;count<mtbmenuNH.length;count++){mtbmenuDiI(mtbmenuNH[count]);}mtbmenuNH.length=0;}var count=level;for(count=level;count<mtbmenuPI.length;count++){document.getElementById("mtbmenuPopup"+mtbmenuPI[count]).style.display="none";}mtbmenuPI.length=level;mtbmenuPL.length=level;mtbmenuPT.length=level;}function mtbmenuCR(){mtbmenuAR=(mtbmenuBW+mtbmenuSLA)-mtbmenuPL[mtbmenuPL.length-1];if(mtbmenuAR<mtbmenuPW){if(mtbmenuSPnt=="below"||mtbmenuSPnt=="above"){mtbmenuMB=mtbmenuPL[mtbmenuPL.length-1]-(mtbmenuPW-mtbmenuAR);if(mtbmenuMB<0||mtbmenuMB<mtbmenuSLA){mtbmenuMB=mtbmenuSLA;}mtbmenuPL[mtbmenuPL.length-1]=mtbmenuMB;}else{mtbmenuMB=mtbmenuSEL-mtbmenuPW;if(mtbmenuMB>=0){mtbmenuPL[mtbmenuPL.length-1]=mtbmenuMB;}}}}function mtbmenuCL(){if(mtbmenuPL[mtbmenuPL.length-1]<(mtbmenuSLA)){mtbmenuPL[mtbmenuPL.length-1]=mtbmenuSEL+mtbmenuSEW;mtbmenuCR();}}function mtbmenuCB(){mtbmenuAB=(mtbmenuBH+mtbmenuSTA)-mtbmenuPT[mtbmenuPT.length-1];if(mtbmenuAB<mtbmenuPH){if(mtbmenuSPnt=="below"){mtbmenuMB=mtbmenuPT[mtbmenuPT.length-1]-mtbmenuPH-mtbmenuSEH;if(mtbmenuMB>=0){mtbmenuPT[mtbmenuPT.length-1]=mtbmenuMB;}}else{mtbmenuMB=mtbmenuPT[mtbmenuPT.length-1]-(mtbmenuPH-mtbmenuAB);if(mtbmenuMB<0||mtbmenuMB<mtbmenuSTA){mtbmenuMB=mtbmenuSTA;}mtbmenuPT[mtbmenuPT.length-1]=mtbmenuMB;}}}function mtbmenuCA(){if(mtbmenuPT[mtbmenuPT.length-1]<(mtbmenuSTA)){mtbmenuPT[mtbmenuPT.length-1]=mtbmenuSET+mtbmenuSEH;mtbmenuCB();}}function mtbmenuShowInFrame(MenuID,x,y,colorfondo){x+=window.pageXOffset;y+=window.pageYOffset;mtbmenuShow(MenuID,'','below',x,y,1,colorfondo);}function mtbmenuHideSelectBox(){}function mtbmenuRefresh(){}function mtbmenuMenuBarInit(){}
	









