function MenuBuild()
{
is = new BrowserCheck();                    //Cheking browser version
TE=new TreeItem(0,0,"items2","","");//Creating menu object
if(!W)W=900;                                         //defining default browser width
TE.xpos=0;                                //X position
TE.ypos=81;                                             //Y position
TE.align="hor";                                    //hor -horisontal vert - vertical alignment
TE.bckColor="#000040";                     //Back Color
TE.selBckColor="#060B8D";               //Selected back color
TE.fntColor="#AAAAAA";                      // Font Color
TE.selFntColor="#FFFFFF";                // Selected font color
TE.width=100;                                       //Menu column width
TE.fntSize=2;                                        // Font Size
TE.i=false;                                              //font italic
TE.b=false;                                             //font bold
TE.face="Arial";                             //Font Face
TE.u=false;                                             //font underlined
TE.iHeight=16;                                     //Menu item height
TE.imWidth=18;                                   // Icon width
TE.bSize=1;                                           //Border size
TE.bColor="#AAAAAA";                         // Border color
TE.d=1;                                                   // delimeter size 


//Creating menu structure 

//TE.A(ID, ParentID, Text, Link, Target, Icon, iconR, ItemWidth,ItemHeight); 
where:
//ID- identifier (any unical string)
//ParentID  - identifier of parent item 
//Text - menu item text
//Link - menu item URL
//Target - frame or reserved word : _top _self ....
//Icon - menu icon
//iconR - rollover icon
//ItemWidth - individual menu item width
//ItemHeight - individual menu item height

TE.A(1,0,"Home","index.htm","","","",70,18);
TE.A(2,0,"Products","products.htm","","","",80,18);
TE.A(3,0,"Contact","contact.htm","","","",80,18);


//Here you can specify individual menu item properties

TE.Get(1).b=true;
TE.Get(2).b=true;
TE.Get(3).b=true;



TE.bSize=0;
TE.width=200;
TE.arrIm="";

//writing menu into page
TE.WriteCSS();
TE.WriteDiv();
}
function MenuInit()
{
window.onresize= function(){window.history.go(0)};
TE.EventInit();//Initialising events
}
function Reset()
{
TE.Reset();//reseting menu
} 


