function MenuBuild() {

	is = new BrowserCheck()
	T2=new TreeItem(0,0,"items2","","");
	T2.xpos=11;
	T2.ypos=200;
	T2.align="vert";
	T2.bckColor="#ffffff";//"#aa6633";
	T2.selBckColor="#f0f0f0"; //"#404040";
	T2.fntColor="#000000";
	T2.selFntColor="#404040";
	T2.width=172;
	T2.fntSize=1;
	T2.iHeight=35;
	T2.imWidth=15;
	T2.bSize=1;
	T2.bColor="#999999";

	// -- first level menu -- \\

	T2.A(1,0,"News","http://65.108.124.60/partner_area/News/news.php","","");
	T2.A(2,0,"Products","","","");
	T2.A(3,0,"Software Download","http://65.108.124.60/partner_area/software/sw_d_main.php","","");
	T2.A(4,0,"Sales Material","http://65.108.124.60/partner_area/sales_material/sales_material_main.php","","");

	// -- second level menu -- \\

	T2.A(5,1,"Product News","","","");
	T2.A(6,1,"Technical News","","","");

	T2.A(7,2,"Product Lists","http://65.108.124.60/partner_area/Products/prodlist_main.php","","");
	T2.A(8,2,"Technical Reference Libarary Updates","","","");
	T2.A(9,2,"Sales Tools","http://65.108.124.60/partner_area/Products/saletools_main.php","","");

	T2.A(10,3,"Ascom 9d","http://65.108.124.60/partner_area/software/sw_d_ascom9d_main.php","","");
	T2.A(11,3,"Cordless 900","http://65.108.124.60/partner_area/software/sw_d_cordless900_main.php","","");
	T2.A(12,3,"System 5000","http://65.108.124.60/partner_area/software/sw_d_system5000_main.php","","");
	T2.A(13,3,"System 900","http://65.108.124.60/partner_area/software/sw_d_system900_main.php","","");
	T2.A(14,3,"TeleCare","http://65.108.124.60/partner_area/software/sw_d_telecare_main.php","","");

	T2.A(15,4,"Brochures","","","");
	T2.A(16,4,"Picture Gallery","","","");

	// -- third level menu -- \\

	T2.A(17,5,"Ascom 9d","http://65.108.124.60/partner_area/News/Product/Ascom9d/ascom9d_main.php","","");
	T2.A(18,5,"Cordless 900","http://65.108.124.60/partner_area/News/Product/Cordless900/cordless900_main.php","","");
	T2.A(19,5,"System 5000","http://65.108.124.60/partner_area/News/Product/System5000/system5000_main.php","","");
	T2.A(20,5,"System 900","http://65.108.124.60/partner_area/News/Product/System900/system900_main.php","","");
	T2.A(21,5,"TeleCare","http://65.108.124.60/partner_area/News/Product/TeleCare/telecare_main.php","","");

	T2.A(22,6,"Ascom 9d","http://65.108.124.60/partner_area/News/Technical/Ascom9d/tech_ascom9d.php","","");
	T2.A(23,6,"Cordless 900","http://65.108.124.60/partner_area/News/Technical/Cordless900/tech_cordless900.php","","");
	T2.A(24,6,"System 5000","http://65.108.124.60/partner_area/News/Technical/System5000/tech_system5000.php","","");
	T2.A(25,6,"System 900","http://65.108.124.60/partner_area/News/Technical/System900/tech_system900.php","","");
	T2.A(26,6,"TeleCare","http://65.108.124.60/partner_area/News/Technical/TeleCare/tech_telecare.php","","");
	T2.A(27,6,"Services","http://65.108.124.60/partner_area/News/Technical/Services/tech_services.php","","");

	T2.A(28,15,"Applications","http://65.108.124.60/partner_area/sales_material/Brochures/Applications/applications.php","","");
	T2.A(29,15,"Ascom 9d","http://65.108.124.60/partner_area/sales_material/Brochures/Ascom9d/ascom9d.php","","");
	T2.A(30,15,"CTS 900","http://65.108.124.60/partner_area/sales_material/Brochures/CTS900/cts900.php","","");
	T2.A(31,15,"IP Messaging","http://65.108.124.60/partner_area/sales_material/Brochures/IP_Messaging/ip_messaging.php","","");
	T2.A(32,15,"System 900","http://65.108.124.60/partner_area/sales_material/Brochures/System900/system900.php","","");
	T2.A(33,15,"System 5000","http://65.108.124.60/partner_area/sales_material/Brochures/System5000/system5000.php","","");
	T2.A(34,15,"TeleCare","http://65.108.124.60/partner_area/sales_material/Brochures/TeleCare/telecare.php","","");
	T2.A(35,15,"TeleProtect","http://65.108.124.60/partner_area/sales_material/Brochures/TeleProtect/teleprotect.php","","");

	T2.A(36,16,"9d23","http://65.108.124.60/partner_area/sales_material/Picture/9d23/9d23.php","","");
	T2.A(36,16,"Accessories","http://65.108.124.60/partner_area/sales_material/Picture/Accessories/accessories.php","","");
	T2.A(36,16,"Applications","http://65.108.124.60/partner_area/sales_material/Picture/Applications/applications.php","","");
	T2.A(36,16,"CTS900","http://65.108.124.60/partner_area/sales_material/Picture/CTS900/cts900.php","","");
	T2.A(36,16,"Illustrations","http://65.108.124.60/partner_area/sales_material/Picture/Illustrations/illustrations.php","","");
	T2.A(36,16,"TeleCare","http://65.108.124.60/partner_area/sales_material/Picture/TeleCare/telecare.php","","");
	T2.A(36,16,"TeleCourier","http://65.108.124.60/partner_area/sales_material/Picture/TeleCourier/telecourier.php","","");
	T2.A(36,16,"TeleProtect","http://65.108.124.60/partner_area/sales_material/Picture/TeleProtect/teleprotect.php","","");
	T2.A(36,16,"TeleTracer","http://65.108.124.60/partner_area/sales_material/Picture/TeleTracer/teletracer.php","","");

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

	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);
	}
}