function MenuBuild()
{

var arrow_d = "arrow_d.gif";
var arrow_r = "arrow_r.gif";
var arrow_r = "arrow_r.gif";
var mmFont_color = "#336633";

is = new BrowserCheck();                    //Cheking browser version
TE=new TreeItem(0,0,"rad_items","","");//Creating menu object
if(!W)W=900;                                         //defining default browser width
//TE.xpos=(W-400)/2+28;                                //X position
TE.xpos=1;                                //X position
TE.ypos=115;                                             //Y position
TE.align="hor";                                    //hor -horisontal vert - vertical alignment
TE.bckColor="#ccff99";     // tło
TE.selBckColor="#33cc66";  // tło zaznaczone
TE.fntColor="#696969";     // czcionka
TE.selFntColor="#696969";  // czcionka zaznaczona 
TE.width=85;                                       //Menu column width
TE.fntSize=2;                                        // Font Size
TE.i=false;                                              //font italic
TE.b=false;                                             //font bold
TE.face="Verdana, Geneva, Arial, Helvetica, sans-serif";                             //Font Face
TE.u=false;                                             //font underlined
TE.iHeight=20;                                     //Menu item height
TE.imWidth=7;                                   // Icon width
TE.bSize=1;                                           //Border size
TE.bColor="#C0C0C0";                         // Border color
TE.d=1;                                                   // delimeter size 
TE.arrIm = arrow_d;
TE.arrIm1 = arrow_r;


//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

// glowne menu
TE.Get(0).bSize=0; // bez ramki
TE.Get(0).d=1; // bez delimitera

//**************************************************************************************************
//                  O firmie
//**************************************************************************************************
TE.A(1,0,"O firmie","","","","",100,20);
TE.A(2,1,"Z działalnosci firmy","o_firmie1.html","","","",240,20);
TE.A(3,1,"Targi","o_firmie2.html","","","",240,20);
TE.A(4,1,"Wyróżnienia i certyfikaty","o_firmie3.html","","","",240,20);

TE.Get(1).arrIm = arrow_d;
TE.Get(1).arrIm1 = arrow_d;
TE.Get(1).bSize=1;
TE.Get(1).d=1;
TE.Get(1).fntColor=mmFont_color;
TE.Get(1).b=true;
TE.Get(2).b=true;
TE.Get(3).b=true;
TE.Get(4).b=true;
//**************************************************************************************************
//                  O grze
//**************************************************************************************************
TE.A(5,0,"O grze","","","","",100,20);
TE.A(6,5,"Historia","o_grze1.html","","","",240,20);
TE.A(7,5,"Zasady punktacji","o_grze2.html","","","",240,20);
TE.A(8,5,"10 zasad","o_grze3.html","","","",240,20);

TE.Get(5).arrIm = arrow_d;
TE.Get(5).arrIm1 = arrow_d;
TE.Get(5).bSize=1;
TE.Get(5).d=1;
TE.Get(5).fntColor=mmFont_color;
TE.Get(5).b=true;
TE.Get(6).b=true;
TE.Get(7).b=true;
TE.Get(8).b=true;
//**************************************************************************************************
//                  Produkty
//**************************************************************************************************
TE.A(9,0,"Produkty","","","","",100,20);
TE.A(10,9,"Kręgielnie bowlingowe","produkty1.html","","","",240,20);
TE.A(11,9,"Kręgielnie klasyczne","produkty2.html","","","",240,20);
TE.A(12,9,"Kręgielnie plenerowe","produkty3.html","","","",240,20);
TE.A(13,9,"Kręgielnie minibowling","produkty4.html","","","",240,20);
TE.A(14,9,"Wyposażenie","produkty5.html","","","",240,20);

TE.Get(9).arrIm = arrow_d;
TE.Get(9).arrIm1 = arrow_d;
TE.Get(9).bSize=1;
TE.Get(9).d=1;
TE.Get(9).fntColor=mmFont_color;
TE.Get(9).b=true;
TE.Get(10).b=true;
TE.Get(11).b=true;
TE.Get(12).b=true;
TE.Get(13).b=true;
TE.Get(14).b=true;


//**************************************************************************************************
//                  Doradztwo
//**************************************************************************************************
TE.A(26,0,"Doradztwo","doradztwo.html","","","",100,20);

TE.Get(26).arrIm = arrow_d;
TE.Get(26).arrIm1 = arrow_d;
TE.Get(26).bSize=1;
TE.Get(26).d=1;
TE.Get(26).fntColor=mmFont_color;
TE.Get(26).b=true;

//**************************************************************************************************
//                 Galeria
//**************************************************************************************************

TE.A(30,0,"Galeria","","","","",100,20);
TE.A(31,30,"Kręgielnie bowlingowe","galeria_bowlingowe00.html","","","",240,20);
TE.A(32,30,"Kręgielnie klasyczne","galeria_klasyczne00.html","","","",240,20);
TE.A(33,30,"Kręgielnie plenerowe","galeria_plenerowe00.html","","","",240,20);
TE.A(34,30,"Kręgielnie (wybrane obiekty)","galeria_wybrane00.html","","","",240,20);

TE.Get(30).arrIm = arrow_d;
TE.Get(30).arrIm1 = arrow_d;
TE.Get(30).bSize=1;
TE.Get(30).d=1;
TE.Get(30).fntColor=mmFont_color;
TE.Get(30).b=true;
TE.Get(31).b=true;
TE.Get(32).b=true;
TE.Get(33).b=true;
TE.Get(34).b=true;

//**************************************************************************************************
//                 Współpraca
//**************************************************************************************************

TE.A(41,0,"Współpraca","wspolpraca.html","","","",100,20);
TE.Get(41).arrIm = arrow_d;
TE.Get(41).arrIm1 = arrow_d;
TE.Get(41).bSize=1;
TE.Get(41).d=1;
TE.Get(41).fntColor=mmFont_color;
TE.Get(41).b=true;

//**************************************************************************************************
//                 Kontakt
//**************************************************************************************************

TE.A(71,0,"Kontakt","kontakt.html","","","",100,20);
TE.Get(71).arrIm = arrow_d;
TE.Get(71).arrIm1 = arrow_d;
TE.Get(71).bSize=1;
TE.Get(71).d=1;
TE.Get(71).fntColor=mmFont_color;
TE.Get(71).b=true;






//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
} 

function toco()
{
document.write	("<BODY leftmargin='0' marginheight='0' marginwidth='0' topmargin='0' bgcolor='#ffffff'>")
document.write	("<table border='1' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#CCFFCC' width='100%' bordercolorlight='#CCFFCC' bordercolordark='#CCFFCC'>")
document.write	("<tr>")
document.write	("<td width='81%'>")
document.write	("<img src='01t0a.jpg' width='704' height='88'></td>")
document.write	("<td width='19%' rowspan='2'>")
document.write	("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='146' height='110' id='ppppp' align='middle'>")
document.write	("</td>")
document.write	("<td><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='www.swf' /><param name='quality' value='high' /><param name='bgcolor' value='#00cccc' /><embed src='ppppp.swf' quality='high' bgcolor='#00cccc' width='122' height='92' name='ppppp' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>")
document.write	("</td>")
document.write	("</tr>")
document.write	("<tr>")
document.write	("<td width='81%'>")
document.write	("<img src='01t0cPop2.gif' width='703' height='24'></td>")
document.write	("</tr>")
document.write	("</table>")
document.write	("<blockquote>")
document.write	("<a href='kontakt.html' onfocus='blur()'></blockquote>")
document.write	("</p>")
document.write	("</a>")
document.write	("</body>")

} 
