
var states = ['mout', 'mover', 'mdown'];
var bgcolors = ['#4682B4', '#6699cc', '#99ccff'];


var MENU_ITEMS = [
    
  ['<img src="images/button_0_stronaglowna.gif">', 'index.php', [120, 51, 23, 40]],
    ['<img src="images/button_0_ofirmie.gif">', 'index.php?dzial=ofirmie', [23, null, 58, 40],
    ['Oferta handlowa', 'index.php?dzial=oferta_handlowa', [1, 34, null, null]],
    ['Oferta rejestracji DVD', 'index.php?dzial=oferta_dvd', [null, null, null, null]],
    ['Oferta eventów', 'index.php?dzial=oferta_eventow', [null, null, null, null]],
    ['Media', 'index.php?dzial=prasa', null],
    ['Informacje ogólne', 'index.php?dzial=ofirmie', [null, null, null, null]],

    ],
    ['<img src="images/button_0_aktualnosci.gif">', 'index.php?dzial=newsy', [58, 0, 85, 40],],
  ['<img src="images/button_0_artysci.gif">', 'index.php?dzial=artysci', [85, 0, 59, 40],

    ['Biografie', 'index.php?dzial=artysci', [1, 34, null, null]],
        ['Mp3', 'index.php?dzial=artysci&strona=mp3', [null, null, null, null]],
    ['Video', 'index.php?dzial=artysci&strona=video', [null, null, null, null]],
    ['Galerie', 'index.php?dzial=artysci&strona=galeria', [null, null, null, null]],
  ],

    ['<img src="images/button_0_koncerty.gif">', 'index.php?dzial=koncerty', [59, 0, 68, 40],
        ['Aktualne koncerty', 'index.php?dzial=koncerty', [1, 34, null, null]],
        ['Archiwum koncertów', 'index.php?dzial=koncerty&arch=1', null],
        ['Regulamin koncertów', 'index.php?dzial=koncerty&regulamin=1', null],
    ],
  ['<img src="images/button_0_mmr.gif">', 'index.php?dzial=wydawnictwa', [68, 0, 85, 40],
        ['Zapowiedzi płytowe', 'index.php?dzial=wydawnictwa&rodzaj=zapowiedzi', [1, 34, null, null]],
    ['Nowości wydawnicze', 'index.php?dzial=wydawnictwa&rodzaj=nowosci', [null, null, null, null]],
    ['Katalog wydawnictw', 'index.php?dzial=wydawnictwa&rodzaj=katalog', [null, null, null, null]],
  ],

  ['<img src="images/button_0_kontakt.gif">', 'index.php?dzial=kontakt', [85, 0, 59, 40],],

  ['<img src="images/button_0_en.gif">', 'index.php?jezyk=en', [70, 0, 30, 40],],

];

function wrap_parent (text, pos, icon) {
    var res = new Array;
    for (var i=0; i<states.length; i++)
        res[i] =  '<table cellpadding="1" cellspacing="0" border="0" bgcolor="#DBEAF5" width="100%"><tr><td><table cellpadding="2" cellspacing="0" border="0" width="100%" height="24" bgcolor="' + bgcolors[i] + '"><tr><td valign="middle" width="100%">&nbsp;' + (icon != null ? '<img src="img/'  + icon + '" height="16">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="black"><span style="font-size: 13px;">' + text + '</span></font></td><td valign="middle"><img src="img/' + states[i] + '_' + pos + 'arrow.gif" width="12" height="12"></td></tr></table></td></tr></table>';
    return res;
}
function wrap_child (text, icon) {
    var res = new Array;
    for (var i=0; i<states.length; i++)
        res[i] =  '<table cellpadding="0" cellspacing="0" border="0" bgcolor="#DBEAF5" width="100%"><tr><td><table cellpadding="3" cellspacing="1" border="0" width="100%" height="24"><tr><td bgcolor="' + bgcolors[i] + '" style="padding: 3px;" valign="middle">&nbsp;' + (icon != null ? '<img src="img/'  + icon + '" height="16" align="absmiddle">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="black"><span style="font-size: 12px;">' + text + '</span></font></td></tr></table></td></tr></table>';
    return res;
}