function MenuBuild()
{
is = new BrowserCheck()
TE=new TreeItem(0,0,"items2","","");
TE.xpos=0;TE.ypos=120;
TE.align="vert";
TE.bckColor="#1C358B";//"#aa6633";
TE.selBckColor="#162B72";
TE.fntColor="#ffffff";
TE.selFntColor="#ffffff";
TE.width=137;
TE.fntSize=2;
TE.face="arial";
TE.iHeight=30;
TE.imWidth=2;
TE.bSize=1;
TE.bColor="#162B72";

//products 2nd rollout (bmw perf)
TE.A(1,0,"Services","accounting-services.shtml","","blank.gif");
TE.A(2,0,"Contacts","accounting-contacts.shtml","","blank.gif");
TE.A(3,0,"Home","index.shtml","","blank.gif");
//

TE.WriteCSS();
TE.WriteDiv();
}
function MenuInit()
{
window.onresize= function(){window.history.go(0)};
TE.EventInit();
//loop1();
}
function Reset()
{
TE.Reset();
}
lcnt=1;dr=1;
lcnt1=1;
var cols=new Array("#000022","#202080","#3030a0","#303086","#202090");
var cls=new Array("#ffffff","#fff8f8","#fff0f0","#ffe5e5","#ffe0e0");
function loop1()
{
if(lcnt+dr<1||lcnt+dr>5)dr=-dr;
lcnt+=dr;
lcnt1++;if(lcnt1>5)lcnt1=1;
t3move(lcnt1);
status="loop"+lcnt;
temove(lcnt);TEmove(lcnt);
setTimeout("loop1()",300);
}
function temove(ind)
{
oldind=ind-dr;//if(ind==1)oldind=5;
var it=TE.Get(ind);
var ito=TE.Get(oldind);
ito.bckColor="#404040";ito.fntColor="#ffffff";
it.bckColor="#907080";it.fntColor="#aaaaff";
ito.Toggle(ito.Opened);
it.Toggle(it.Opened);
}
function TEmove(ind)
{
T1.MoveTo(70,150+ind);
for(i=1;i<6;i++)
{
var it=T1.Get(i);
it.bckColor=cls[ind-1];
it.Toggle(it.Opened);
}
}
function t3move(ind)
{
nd=ind-1;
for(i=1;i<6;i++)
{
var it3=T3.Get(i);
if(i+nd-1>4)nd=1-i;
it3.bckColor=cols[i+nd-1];
it3.Toggle(it3.Opened);
}
}