function MenuBuild4()
{

is = new BrowserCheck()
TE=new TreeItem(0,0,"items2","","");
TE.xpos=250;TE.ypos=219;
TE.align="hor";
TE.bckColor="#174F8C";
TE.selBckColor="";
TE.fntColor="#eeeeee";
TE.selFntColor="#000000";
TE.width=133;
TE.fntSize=2;
TE.iHeight=15;
TE.imWidth=15;
TE.bSize=1;
TE.bColor="#174F8C";
T1=new TreeItem(0,0,"items2","","");
T1.xpos=0;T1.ypos=0;
T1.align="";
T1.bckColor="";
T1.selBckColor="";
T1.fntColor="";
T1.selFntColor="";
T1.width=0;
T1.fntSize=0;
T1.iHeight=0;
T1.imWidth=0;
T1.bSize=0;
T1.bColor="";
T2=new TreeItem(0,0,"items2","","");
T2.xpos=0;T2.ypos=0;
T2.align="";
T2.bckColor="";
T2.selBckColor="";
T2.fntColor="";
T2.selFntColor="";
T2.width=0;
T2.fntSize=0;
T2.iHeight=0;
T2.imWidth=0;
T2.bSize=1;
T2.bColor="";
//alert("after adding"+ns);
T3=new TreeItem(0,0,"items2","","");
T3.xpos=0;T3.ypos=0;
T3.align="";
T3.bckColor="";
T3.selBckColor="";
T3.fntColor="";
T3.selFntColor="";
T3.width=0;
T3.fntSize=1;
T3.iHeight=0;
T3.imWidth=0;
T3.bSize=1;
T3.bColor="";

TE.A(1,0,"","","","");

TE.A(2,1,"History ","history.htm","","");
TE.A(3,1,"Automotive Lighting ","autligh.htm","","");

//---------------------------------------------





TE.Get(2).bckColor="#174F8C";
TE.Get(3).bckColor="#174F8C";
TE.Get(2).selBckColor="#eeeeee";
TE.Get(3).selBckColor="#eeeeee";






















TE.Get(1).bckColor="";




T2.bSize=0;
T1.bSize=1;
TE.bSize=0;
TE.width=100;
T1.width=110;
T2.width=220;
TE.arrIm="";
T1.arrIm="";
T2.arrIm="";
TE.WriteCSS();
TE.WriteDiv();
T1.WriteCSS();
T1.WriteDiv();
T2.WriteCSS();
T2.WriteDiv();
//T2.Reset();
T3.WriteCSS();
T3.WriteDiv();
//T3.Reset();
//T1.Reset();

//TE.Reset();
//alert("after writing");

}
function MenuInit4()
{

TE.EventInit();
T1.EventInit();
T2.EventInit();
T3.EventInit();
//loop1();
}
function Reset()
{
TE.Reset();
T1.Reset();
T2.Reset();
T3.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);t2move(lcnt);
setTimeout("loop1()",300);
}
function temove(ind)
{
oldind=ind-dr;//if(ind==1)oldind=5;
var it=T2.Get(ind);
var ito=T2.Get(oldind);
ito.bckColor="#404040";ito.fntColor="#ffffff";
it.bckColor="#907080";it.fntColor="#aaaaff";
ito.Toggle(ito.Opened);
it.Toggle(it.Opened);
}
function t2move(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);
}
}