function MenuBuild() {

	is = new BrowserCheck()
	T2=new TreeItem(0,0,"items2","","");
	T2.xpos=10;
	T2.ypos=225;
	T2.align="vert";
	T2.bckColor="#ffffff";//"#aa6633";
	T2.selBckColor="#404040";
	T2.fntColor="#000000";
	T2.selFntColor="#ffffff";
	T2.width=120;
	T2.fntSize=2;
	T2.iHeight=30;
	T2.imWidth=15;
	T2.bSize=0;
	T2.bColor="#999999";

	//--------------------------
	T2.A(1,0,"News","/news.php","","");
	T2.A(2,0,"Products","","","");
	T2.A(3,0,"Software Download Area","http://www.cyber-village.net","","");
	T2.A(4,0,"Sales Material","","","");

	T2.A(5,1,"Product News","","","");
	T2.A(6,1,"Technical News","","","");

	T2.A(7,2,"Product Lists","","","");
	T2.A(8,2,"Technical Reference Libarary Updates","","","");
	T2.A(9,2,"Sales Tools","","","");

	T2.A(10,3,"Ascom 9d","/ascom9d.php","","");
	T2.A(11,3,"Cordless 900","/cordless900.php","","");
	T2.A(12,3,"System 5000","/system5000.php","","");
	T2.A(13,3,"System 900","/system900.php","","");
	T2.A(14,3,"TeleCare","/telecare.php","","");

	T2.A(15,4,"Brochures","","","");
	T2.A(16,4,"Picture Gallery","","","");

	T2.A(17,5,"Ascom 9d","treemenu1.html","","");
	T2.A(18,5,"Cordless 900","","","");
	T2.A(19,5,"System 5000","1.htm","","");
	T2.A(20,5,"System 900","","","");
	T2.A(21,5,"TeleCare","","","");

	T2.A(22,6,"Ascom 9d","treemenu1.html","","");
	T2.A(23,6,"Cordless 900","","","");
	T2.A(24,6,"System 5000","1.htm","","");
	T2.A(25,6,"System 900","","","");
	T2.A(26,6,"TeleCare","","","");
	T2.A(27,6,"Services","","","");

	T2.A(28,7,"Ascom 9d","/doc/ascom9d.doc","","");
	T2.A(29,7,"CTS 900","/doc/cts900.doc","","");
	T2.A(30,7,"TeleCourier 900","/doc/TeleCourier900.doc","","");
	T2.A(31,7,"TeleProtect","/doc/TeleProtect.doc","","");
	T2.A(32,7,"TeleTracer 5000","/doc/TeleTracer5000.doc","","");

	T2.A(33,8,"About Updates","","","");
	T2.A(34,8,"TRL Updates","","","");

	T2.A(35,9,"Auto Quote","","","");
	T2.A(36,9,"BS Estimation","","","");

	T2.A(37,15,"Ascom 9d","","","");
	T2.A(38,15,"CTS 900","","","");
	T2.A(39,15,"IP Messaging","","","");
	T2.A(40,15,"System 5000","","","");
	T2.A(41,15,"System 900","","","");
	T2.A(42,15,"TeleCare","","","");
	T2.A(43,15,"TeleProtect","","","");
	//---------------------------

	T2.WriteCSS();
	T2.WriteDiv();
}

function MenuInit() {
	T2.EventInit();
	//loop1();
}

function Reset() {
	T2.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);
	}
}
