var przeg = "";
var wer = "";

<!-- okreslenie nazwy przegladrki -->

if (navigator.userAgent.indexOf("Opera") != -1)
{ przeg = "Opera"; }
else if (navigator.appName.indexOf("Netscape") != -1)
{ przeg = "Netscape"; }
else if (navigator.userAgent.indexOf("Opera") == -1 && navigator.appName.indexOf("Microsoft") != -1)
{ przeg = "MSIE"; }
else 
{ przeg = "Opera"; }


<!-- okreslenie wersji przegladarki -->

if (navigator.userAgent.indexOf(przeg) != -1)
{
caly = navigator.userAgent;
poz = caly.indexOf(przeg);
dlu = przeg.length;
dlu = dlu + poz;
poz = parseInt(caly.substr (dlu, 2));
wer = poz;
}
else
{
wer = parseInt(navigator.appVersion);
}

//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
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)}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.

function lewa_poz_menu() {
  if (przeg == "MSIE") {
    aw = document.body.clientWidth;
  } else {
    aw = innerWidth;
  }

  poz_menu = (aw - 950) / 2;
  if (poz_menu < 0) {
    return 0;
  } else {
    return poz_menu;
  }
}

////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
//effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
	effect = "gradientwipe(size=1.00, wipestyle=1, motion=Forward, duration=0.5);Alpha(style=0,opacity=94);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
	effect = "gradientwipe(size=1.00, wipestyle=1, motion=Forward, duration=0.5);Shadow(color='#777777', Direction=135, Strength=5);"
}


timegap=100;					// The time delay for menus to remain visible on mouse off
followspeed=2;				// Follow Scrolling speed (higher number makes the scrolling smoother but slower)
followrate=40;				// Follow Scrolling Rate (use a minimum of 40 or you may experience problems)
suboffset_top=0;			// Sub menu offset Top position 
suboffset_left=0;			// Sub menu offset Left position
closeOnClick = true

style_menu=[			// 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.
"000000",			// Mouse Off Font Color
"FBCA01",			// Mouse Off Background Color
"000000",			// Mouse On Font Color
"FFFF80",			// Mouse On Background Color
"000000",			// Menu Border Color 
11,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"bold",			// Font Weight (bold or normal)
"Verdana, Arial CE, Arial, sans-serif",	// Font Name
0,					// Menu Item Padding
"",					// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"",					// 3D High Color
"",					// 3D Low Color
"",					// Current Page Item Font Color (leave this blank to disable)
"",					// Current Page Item Background Color (leave this blank to disable)
"",					// Top Bar image (Leave this blank to disable)
"",					// Menu Header Font Color (Leave blank if headers are not needed)
"",					// Menu Header Background Color (Leave blank if headers are not needed)
"",					// Menu Item Separator Color
]

sub_style=[			// 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.
"000000",			// Mouse Off Font Color
"FBCA01",			// Mouse Off Background Color
"000000",			// Mouse On Font Color
"FFFF80",			// Mouse On Background Color
"000000",			// Menu Border Color 
11,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"bold",			// Font Weight (bold or normal)
"Verdana, Arial CE, Arial, sans-serif",	// Font Name
2,					// Menu Item Padding
"",					// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"",					// 3D High Color
"",					// 3D Low Color
"",					// Current Page Item Font Color (leave this blank to disable)
"",					// Current Page Item Background Color (leave this blank to disable)
"",					// Top Bar image (Leave this blank to disable)
"",					// Menu Header Font Color (Leave blank if headers are not needed)
"",					// Menu Header Background Color (Leave blank if headers are not needed)
"",					// Menu Item Separator Color
]

addmenu(menu=["ofirmie",107,lewa_poz_menu()+15,142,1,"",sub_style,,"left",effect,,,,,,,,,,,,
,"&nbsp;O nas","index.php?modul=ofirmie",,,1
,"&nbsp;Marcin Krzemiński","index.php?modul=marcin_krzeminski",,,1
,"&nbsp;Zaufanie","index.php?modul=zaufanie",,,1
,"&nbsp;Nasze inwestycje","index.php?modul=inwestycje",,,1
,"&nbsp;Kontakt","index.php?modul=kontakt",,,1
])

addmenu(menu=["imprezy_sportowe",107,lewa_poz_menu()+107,224,1,"",sub_style,,"left",effect,,,,,,,,,,,,
,"&nbsp;Kalendarium","index.php?modul=kalendarium",,,1
,"&nbsp;Drużynowe Mistrzostwa Europy","index.php?modul=2009/nations_cup_2009",,,1
,"&nbsp;WiK Pol-Tour","index.php?modul=wik_pol_tour",,,1
,"&nbsp;Dynamic Billard Best of The East","index.php?modul=best_of_the_east_en",,,1
,"&nbsp;Cleaner Junior Tour","index.php?modul=junior_tour",,,1
,"&nbsp;Gala sportu bilardowego","index.php?modul=gala_sportu_bilardowego_2009",,,1
,"&nbsp;Pokazy sportowe","index.php?modul=pokazy_sportowe",,,1
,"&nbsp;Szkolenie zawodników","index.php?modul=szkolenia",,,1
,"&nbsp;Archiwum&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;->","show-menu=archiwum",,,1
])

addmenu(menu=["archiwum",210,lewa_poz_menu()+332,140,1,"",sub_style,,"left",effect,,,,,,,,,,,,
,"&nbsp;8 Ball Cup 2004","index.php?modul=8_ball_cup",,,1
,"&nbsp;MAK Marketing Cup","index.php?modul=mak_marketing_cup",,,1
])

addmenu(menu=["marketing",107,lewa_poz_menu()+352,173,1,"",sub_style,,"left",effect,,,,,,,,,,,,
,"&nbsp;Marketing i reklama","index.php?modul=marketing",,,1
,"&nbsp;Organizacja konferencji","index.php?modul=konferencje",,,1
,"&nbsp;Wydawnictwa","index.php?modul=wydawnictwa",,,1
])

addmenu(menu=["kultura_i_rozrywka",107,lewa_poz_menu()+568,120,1,"",sub_style,,"left",effect,,,,,,,,,,,,
,"&nbsp;Koncerty","index.php?modul=koncerty",,,1
,"&nbsp;Miss Bilarda","index.php?modul=miss_bilarda",,,1
])

dumpmenus()

