function MenuBuild()
{
is = new BrowserCheck();                    //Cheking browser version
TE=new TreeItem(0,0,"items2","","");//Creating menu object
if(!W)W=800;                                         //defining default browser width
TE.xpos=200;                                //X position
TE.ypos=1;                                             //Y position
TE.align="hor";                                    //hor -horisontal vert - vertical alignment
TE.bckColor="#ffffff";                     //Back Color
TE.selBckColor="#0082FC";               //Selected back color
TE.fntColor="#0000AE";                      // Font Color
TE.selFntColor="#ffffff";                // Selected font color
TE.width=150;                                       //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=25;                                     //Menu item height
TE.imWidth=25;                                   // Icon width
TE.bSize=1;                                           //Border size
TE.bColor="";                         // Border color
TE.d=0;                                                   // 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,"<b>Meet Cascade</b>","about.php","","","",116,23);
TE.A(10,1,"Who is Cascade","about.php","","","",175,23);
TE.A(11,1,"Eternal Cascaders","memberlist.php","","","",175,23);
TE.A(12,1,"Contact us","contact.php","","","",175,23);

TE.A(2,0,"<b>Scenography</b>","scenography.php","","","",110,23);

TE.A(20,2,"C64 Demos","csc_releases.php?selector=C64 Demos","","","",175,23);
TE.A(21,2,"C64 Games","csc_releases.php?selector=C64 Games","","","",175,23);
TE.A(22,2,"C64 Tools","csc_releases.php?selector=C64 Tools","","","",175,23);
TE.A(23,2,"Amiga Demos","csc_releases.php?selector=Amiga Demos","","","",175,23);

TE.A(24,2,"Musics","csc_musics.php","","","",175,23);
TE.A(25,2,"Graphics","csc_graphics.php","","","",175,23);

TE.A(3,0,"<b>C64/Amiga</b>","c64_amiga.php","","","",94,23);
TE.A(20,3,"Emulators and Tools","c64_amiga.php?selector=emu","","","",175,23);
TE.A(22,3,"C64 Drivers","c64_drivers.php","","","",175,23);

TE.A(4,0,"<b>zProjects</b>","admin/index.php","","","",70,23);
TE.A(40,4,"Site Administration","admin/index.php","","","",175,23);
TE.A(41,4,"Zeldin Demo Database","admin/zds.php","","","",175,23);
TE.A(42,4,"Zeldin Game Database","admin/zgs.php","","","",175,23);

//Here you can specify individual menu item properties
TE.Get(1).bckColor="";TE.Get(1).selBckColor="transparent";TE.Get(1).selFntColor="#ffffff";TE.Get(1).fntColor="#87CEFA";TE.Get(1).fntSize=2;TE.Get(1).b=true;TE.Get(1).bColor="#00009C";
TE.Get(2).bckColor="";TE.Get(2).selBckColor="transparent";TE.Get(2).selFntColor="#ffffff";TE.Get(2).fntColor="#87CEFA";TE.Get(2).fntSize=2;TE.Get(2).b=true;TE.Get(2).bColor="#00009C";
TE.Get(3).bckColor="";TE.Get(3).selBckColor="transparent";TE.Get(3).selFntColor="#ffffff";TE.Get(3).fntColor="#87CEFA";TE.Get(3).fntSize=2;TE.Get(3).b=true;TE.Get(3).bColor="#00009C";
TE.Get(4).bckColor="";TE.Get(4).selBckColor="transparent";TE.Get(4).selFntColor="#ffffff";TE.Get(4).fntColor="#87CEFA";TE.Get(4).fntSize=2;TE.Get(4).b=true;TE.Get(4).bColor="#00009C";

TE.bSize=0;
TE.width=80;
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
}