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=(W-735)/2;                                //X position
TE.ypos=116;                                             //Y position
TE.align="hor";                                    //hor -horisontal vert - vertical alignment
TE.bckColor="#ffffff";                     //Back Color
TE.selBckColor="#CECFDE";               //Selected back color
TE.fntColor="#003063";                      // Font Color
TE.selFntColor="#003063";                // Selected font color
TE.width=150;                                       //Menu column width
TE.fntSize=1;                                        // Font Size
TE.i=false;                                              //font italic
TE.b=false;                                             //font bold
TE.face="Arial";                             //Font Face
TE.u=false;                                             //font underlined
TE.iHeight=20;                                     //Menu item height
TE.imWidth=20;                                   // Icon width
TE.bSize=1;                                           //Border size
TE.bColor="#003063";                         // 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,"","ueber_uns.html","","images/ueber1.gif","images/ueber2.gif",65,20);
TE.A(7,1,"Firmenprofil","ueber_uns.html","","images/spacer.gif","",150,20);
TE.A(8,1,"Impressum","impressum.html","","images/spacer.gif","",150,20);

TE.A(2,0,"","kueche_handwerk.html","","images/kueche1.gif","images/kueche2.gif",113,20);
TE.A(9,2,"Unsere Leistungen","kueche_handwerk.html","","images/spacer.gif","",150,20);

TE.A(3,0,"","aktiv.html","","images/aktiv1.gif","images/aktiv2.gif",138,20);
TE.A(10,3,"Infos & Veranstaltungen","aktiv.html","","images/spacer.gif","",150,20);
TE.A(11,3,"Kochrezepte","rezepte.html","","images/spacer.gif","",150,20);

TE.A(4,0,"","galerie_kueche.html","","images/galerie1.gif","images/galerie2.gif",48,20);
TE.A(12,4,"Bildergalerie Küchen","galerie_kueche.html","","images/spacer.gif","",150,20);
TE.A(13,4,"Bildergalerie Handwerk","galerie_handwerk.html","","images/spacer.gif","",150,20);

TE.A(5,0,"","kontakt.html","","images/kontakt1.gif","images/kontakt2.gif",50,20);
TE.A(14,5,"Kontaktadresse","kontakt.html","","images/spacer.gif","",150,20);
TE.A(15,5,"Kontaktformular","kontaktform.html","","images/spacer.gif","",150,20);
TE.A(16,5,"Anfahrtsbeschreibung","wegbeschreibung.html","","images/spacer.gif","",150,20);

TE.A(6,0,"","","","","",10,20);

//Here you can specify individual menu item properties
TE.Get(1).bckColor="#CECFDE";TE.Get(1).selBckColor="#CECFDE";
TE.Get(2).bckColor="#CECFDE";TE.Get(2).selBckColor="#CECFDE";
TE.Get(3).bckColor="#CECFDE";TE.Get(3).selBckColor="#CECFDE";
TE.Get(4).bckColor="#CECFDE";TE.Get(4).selBckColor="#CECFDE";
TE.Get(5).bckColor="#CECFDE";TE.Get(5).selBckColor="#CECFDE";
TE.Get(6).bckColor="#CECFDE";TE.Get(6).selBckColor="#CECFDE";

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
} 