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=17;                                //X position
TE.ypos=98;                                             //Y position
TE.align="hor";                                    //hor -horisontal vert - vertical alignment
TE.bckColor="#f5f5f5";                     //Back Color
TE.selBckColor="#c0c0c0";               //Selected back color
TE.fntColor="#000000";                      // Font Color
TE.selFntColor="#ffffff";                // Selected font color
TE.width=200;                                       //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,"Produktinfo","dc_info.html","","","",98,18);
TE.A(10,1,"Allgemeine Informationen","dc_info.html","","","",220,23);
TE.A(11,1,"Produktdetails","dc_info_2.html","","","",220,23);
TE.A(12,1,"Funktionsgalerie","dc_galerie.html","","","",220,23);
TE.A(13,1,"Systemanforderungen","dc_systemanforderungen.html","","","",220,23);
TE.A(14,1,"Versionsvergleich","dc_versionen.html","","","",220,23);
TE.A(15,1,"Diamond Cut Vorgeschichte","dc_historie.html","","","",220,23);

TE.A(2,0,"Zubehör","zubehoer.html","","","",78,18);
TE.A(20,2,"Empfohlene Hard- und Software","zubehoer.html","","","",220,23);

TE.A(3,0,"Download","download.html","","","",88,18);
TE.A(30,3,"Testversion und Extras","download.html","","","",220,23);
TE.A(31,3,"Programm Updates","updates.html","","","",220,23);

TE.A(4,0,"Bestellen","http://www.dbsys.de/webshop/index.php?manufacturers_id=12&language=de","","","",83,18);

TE.A(5,0,"CD Shop","cd_shop.html","","","",78,18);
TE.A(50,5,"Diamond Cut CD-Shop","cd_shop.html","","","",220,23);
TE.A(51,5,"Diamond Cut Vorgeschichte","dc_historie.html","","","",220,23);

TE.A(6,0,"Support","support.html","","","",78,18);
TE.A(60,6,"Diamond Cut FAQ","support.html","","","",220,23);
TE.A(61,6,"Supportformular","support_form.html","","","",220,23);

TE.A(7,0,"Kontakt","kontakt.html","","","",78,18);
TE.A(70,7,"Kontaktadresse","kontakt.html","","","",220,23);
TE.A(71,7,"Kontaktformular","kontakt_form.html","","","",220,23);
TE.A(72,7,"Impressum","impressum.html","","","",220,23);

TE.A(8,0,"News","news.html","","","",58,18);
TE.A(80,8,"Aktuelle Meldungen","news.html","","","",220,23);
TE.A(82,8,"Diamond Cut in der Presse","news_press.html","","","",220,23);

//Here you can specify individual menu item properties
TE.Get(1).bckColor="";TE.Get(1).selBckColor="transparent";TE.Get(1).selFntColor="#000000";TE.Get(1).fntColor="#606000";TE.Get(1).fntSize=2;TE.Get(1).b=true;TE.Get(1).bColor="#000000";
TE.Get(2).bckColor="";TE.Get(2).selBckColor="transparent";TE.Get(2).selFntColor="#000000";TE.Get(2).fntColor="#606000";TE.Get(2).fntSize=2;TE.Get(2).b=true;TE.Get(2).bColor="#000000";
TE.Get(3).bckColor="";TE.Get(3).selBckColor="transparent";TE.Get(3).selFntColor="#000000";TE.Get(3).fntColor="#606000";TE.Get(3).fntSize=2;TE.Get(3).b=true;TE.Get(3).bColor="#000000";
TE.Get(4).bckColor="";TE.Get(4).selBckColor="transparent";TE.Get(4).selFntColor="#000000";TE.Get(4).fntColor="#606000";TE.Get(4).fntSize=2;TE.Get(4).b=true;TE.Get(4).bColor="#000000";
TE.Get(5).bckColor="";TE.Get(5).selBckColor="transparent";TE.Get(5).selFntColor="#000000";TE.Get(5).fntColor="#606000";TE.Get(5).fntSize=2;TE.Get(5).b=true;TE.Get(5).bColor="#000000";
TE.Get(6).bckColor="";TE.Get(6).selBckColor="transparent";TE.Get(6).selFntColor="#000000";TE.Get(6).fntColor="#606000";TE.Get(6).fntSize=2;TE.Get(6).b=true;TE.Get(6).bColor="#000000";
TE.Get(7).bckColor="";TE.Get(7).selBckColor="transparent";TE.Get(7).selFntColor="#000000";TE.Get(7).fntColor="#606000";TE.Get(7).fntSize=2;TE.Get(7).b=true;TE.Get(7).bColor="#000000";
TE.Get(8).bckColor="";TE.Get(8).selBckColor="transparent";TE.Get(8).selFntColor="#000000";TE.Get(8).fntColor="#606000";TE.Get(8).fntSize=2;TE.Get(8).b=true;TE.Get(8).bColor="#000000";

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
}