menunum=0;
menus=new Array();
_d=document;

function addmenu()
{
        menunum++;
        menus[menunum]=menu;
}

function dumpmenus()
{
        mt="<script language=javascript>";
        for(a=1;a<menus.length;a++)
        {
                mt+=" menu"+a+"=menus["+a+"];"
        }
        mt+="<" + "/script>";
        _d.write(mt);
}

if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
        effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)";
}
else
{
        effect = "Shadow(color='#777777', Direction=135, Strength=5)";
}


timegap=500                        // The time delay for menus to remain visible
followspeed=5                        // Follow Scrolling speed
followrate=40                        // Follow Scrolling Rate
suboffset_top=10;                // Sub menu offset Top position
suboffset_left=10;                // Sub menu offset Left position

style1=[                                        // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"04315F",                                // Mouse Off Font Color
"93AFCC",                                // Mouse Off Background Color
"ffffff",                                        // Mouse On Font Color
"2B5886",                                // Mouse On Background Color
"2B5886",                                // Menu Border Color
10,                                                // Font Size in pixels
"normal",                                // Font Style (italic or normal)
"bold",                                        // Font Weight (bold or normal)
"Verdana, Arial",                // Font Name
4,                                                // Menu Item Padding
"",                                                    // Sub Menu Image (Leave this blank if not needed)
,                                                // 3D Border & Separator bar
"",                                        // 3D High Color
"",                                // 3D Low Color
"000000",                                // Current Page Item Font Color (leave this blank to disable)
"dddddd",                                        // Current Page Item Background Color (leave this blank to disable)
"",                                                   // Top Bar image (Leave this blank to disable)
"ffffff",                                        // Menu Header Font Color (Leave blank if headers are not needed)
"000099",                                // Menu Header Background Color (Leave blank if headers are not needed)
]

                 addmenu(menu=['mainmenu',165,0,89,1,'center',style1,1,'center',,,1,,,,,,,,,,,
                'Informator','show-menu=stal',,'',1,
                'Magazyn','show-menu=magazyn',,'',1,
                'Polecamy','show-menu=polecamy',,'',1,
                'Przelicznik','show-menu=przelicznik',,'',1]);

                addmenu(menu=['stal',,,390,1,'',style1,,'left',effect,,,,,,,,,,,,,
                'Oznaczenia gatunków stali','show-menu=gatunki',,'',1,
                'Stale narzędziowe do pracy na zimno - skład chemiczny','index.php?str=g12',,'',1,
                'Stale narzędziowe do pracy na zimno - parametry obróbki cieplnej','index.php?str=g13',,'',1,
                'Stale narzędziowe do pracy na gorąco - skład chemiczny','index.php?str=g14',,'',1,
                'Stale narzędziowe do pracy na gorąco - parametry obróbki cieplnej','index.php?str=g15',,'',1,
                'Stale szybkotnące - skład chemiczny','index.php?str=g16',,'',1,
                'Stale szybkotnące - parametry obróbki cieplnej','index.php?str=g17',,'',1,
                'Stal narzędziowa do pracy na zimno - charakterystyki i stosowanie','index.php?str=g18',,'',1,
                'Procesy','index.php?str=g19',,'',1]);

                addmenu(menu=['gatunki',,,215,1,'',style1,,'left',effect,,,,,,,,,,,,,
                'Stale narzędziowe','index.php?str=g111',,'',1,
                'Stale narzędziowe Bohler','index.php?str=g112',,'',1,
                'Stale narzędziowe Udeholm','index.php?str=g113',,'',1,
                'Stale kwaso- żaro- nierdzewne','index.php?str=g114',,'',1,
                'Stale konstrukcyjne stopowe','index.php?str=g115',,'',1,
                'Stale konstrukcyjne węglowe','index.php?str=g116',,'',1]);

                 addmenu(menu=['magazyn',,,150,1,'',style1,,'left',effect,,,,,,,,,,,,,
                'Pręty okrągłe','index.php?str=g21',,'',1,
                'Płaskowniki i kwadraty','index.php?str=g22',,'',1]);

                addmenu(menu=['polecamy',,,270,1,'',style1,,'left',effect,,,,,,,,,,,,,
                'Materiały nowe, z atestami hutniczymi 3.1.B','index.php?str=g31',,'',1,
                // 'Oferta specjalna','index.php?str=g32',,'',1,
                'Materiały z upłynnień','index.php?str=g33',,'',1]);


                addmenu(menu=['przelicznik',,,135,1,'',style1,,'left',effect,,,,,,,,,,,,,
                'Twardość HB - HRC','show-menu=przel1',,'',1,
                'Waga prętów','show-menu=przel2',,'',1,
                'Waga kwadratów','index.php?str=g43',,'',1]);

                addmenu(menu=['przel1',,,170,1,'',style1,,'left',effect,,,,,,,,,,,,,
                '228 - 299 HB * 20 - 31 HRC','index.php?str=g411',,'',1,
                '300 - 399 HB * 31 - 42 HRC','index.php?str=g412',,'',1,
                '400 - 499 HB * 42 - 50 HRC','index.php?str=g413',,'',1,
                '500 - 618 HB * 50 - 57 HRC','index.php?str=g414',,'',1,
                '651 - 799 HV * 57 - 63 HRC','index.php?str=g415',,'',1,
                '800 - 940 HV * 64 - 68 HRC','index.php?str=g416',,'',1]);

                addmenu(menu=['przel2',,,180,1,'',style1,,'left',effect,,,,,,,,,,,,,
                'zakres średnic 1-20 mm','index.php?str=g421',,'',1,
                'zakres średnic 20-100mm','index.php?str=g422',,'',1,
                'zakres średnic 100-300 mm','index.php?str=g423',,'',1,
                'zakres średnic 300-600 mm','index.php?str=g424',,'',1,
                'zakres średnic 600-800 mm','index.php?str=g425',,'',1]);
dumpmenus();