function MenuBuild()
 {
 //------------ Menu Settings---------------------------------
 is = new BrowserCheck()
 TE=new TreeItem(0,0,"items2","","");
 
 TE.ypos=1;
 TE.xpos=180;
 
 TE.align="hor";
 TE.bckColor="#0099ff";//"#aa6633";
 TE.selBckColor="#eff3ff";
 TE.fntColor="#000066";
 TE.selFntColor="#000000";
 TE.width=150;
 TE.fntSize=2;
 TE.iHeight=18;
 TE.imWidth=20;
 TE.bColor="#000000";
 
 
 //---------------Menu Items ------------------------
 
 
 TE.A(1,0,"INFO","","","");
 	TE.A(10,1,"About us","about_us.htm","","");   
	TE.A(20,1,"News","news.htm","","");
	TE.A(30,1,"FIDE Chess Rules","fide_rules_of_chess.htm","","");
	TE.A(40,1,"Regular Chess Rules","regular_rules.htm","","");
	TE.A(50,1,"Speed Chess Rules","speed_rules.htm","","");
	TE.A(60,1,"Active Chess Rules","active_rules.htm","","");
	TE.A(70,1,"Club Champions","champions.htm","","");

 TE.A(11,0,"EVENTS","","","");
 	TE.A(200,11,"Championship","championship.htm","","");
 	TE.A(210,11,"Regular","regular.htm","","");
 	TE.A(220,11,"Active","active.htm","","");
 	TE.A(230,11,"Blitz","blitz.htm","","");
 
 TE.A(21,0,"RATINGS","","","");
 	TE.A(100,21,"Regular","http://www.bramptonchess.ca/cgi-bin/rating.cgi?db=rating&uid=&ma=on&keyword=*&mh=1000&sb=3&so=descend&view_records=View+Records","","");
	TE.A(130,21,"Speed","http://www.bramptonchess.ca/cgi-bin/speed.cgi?db=speed&uid=&keyword=*&mh=1000&sb=6&so=descend&view_records=View+Records","","");	
 
 TE.A(31,0,"MISCELLANEOUS","","","");
 	TE.A(400,31,"Games Archive","archive.htm","","");
 	TE.A(410,31,"Links","links.htm","","");
 	TE.A(420,31,"Contact us","contact_us.htm","","");
 	TE.A(430,31,"Location","location.htm","","");
 	TE.A(440,31,"Schedule","schedule.htm","","");
 	TE.A(450,31,"Photo Gallery","/photos/","","");

 
 //--------Top level Menu Items ---------------
 if(ie||n6){
 TE.Get(1).bckColor="";
 TE.Get(11).bckColor="";
 TE.Get(21).bckColor="";
 TE.Get(31).bckColor="";
 }
 
 TE.bSize=0;
 TE.width=140;
 TE.arrIm="";
 TE.WriteCSS();
 TE.WriteDiv();
 
 
 }
 function MenuInit()
 {
 
 TE.EventInit();
 
 }
 function Reset()
 {
 TE.Reset();
 
 }
 
 function getpos()
 {
 ancX=0;ancY=0;
 if(ie||n6)
 {
 
 var lyr=(n6)? document.getElementById("anc") : document.all["anc"];
 while(lyr)
 {
 ancX+=lyr.offsetLeft;ancY+=lyr.offsetTop;
 lyr=lyr.offsetParent;
 }
 }
 if(ns){
 
 }
 //var lyr = document.layers["anc"];
 //ancX=lyr.pageX;ancY=lyr.pageY;
 }
 
 function TEmove()
 {
 
 if(ns||n6){W=window.innerWidth-16}else{W=document.body.offsetWidth-20;}
 
 if ((W-430)>345){
 	TE.MoveTo((W-430)/2,46);
 	}
 
 }
