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 - 988) / 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
"FFFFFF",			// 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
3,					// 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
"FFFFFF",			// 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
3,					// 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=["firma_mawi",98,lewa_poz_menu()+39,175,1,"",sub_style,,"left",effect,,,,,,,,,,,,
,"Zakres usług","index.php?modul=mawi_zakres","100","Zakres usług firmy Mawi",1
,"Oferta foto","index.php?modul=mawi_oferta",,"Oferta fotograficzna na rok szkolny 2011/2012",1
,"Turnieje mini piłki nożnej","index.php?modul=mawi_turnieje",,"Turnieje mini piłki nożnej im. Marka Wielgusa",1
,"Kontakt","index.php?modul=mawi_kontakt",,"Dane teleadresowe firmy Mawi",1
])

addmenu(menu=["mawi_nauczycielom",98,lewa_poz_menu()+147,148,1,"",sub_style,,"left",effect,,,,,,,,,,,,
,"Poradnik Nauczyciela","index.php?modul=nauczycielom_poradnik",,,1
,"Terminarz Dyrektora","index.php?modul=nauczycielom_terminarz_dyrektora",,,1
,"CD-ROM","index.php?modul=nauczycielom_cdrom",,,1
,"Serwer Oświatowy","index.php?modul=nauczycielom_serwer",,,1
])

addmenu(menu=["publikacje",98,lewa_poz_menu()+306,190,1,"",sub_style,,"left",effect,,,,,,,,,,,,
,"Zasady publikowania","index.php?modul=publikacje_zasady",,,1
,"Przepis na dobrą publikację","index.php?modul=publikacje_przepis_1",,,1
,"Wykaz publikacji","index.php?modul=publikacje_wybor",,,1
])

addmenu(menu=["informacje",98,lewa_poz_menu()+480,170,1,"",sub_style,,"left",effect,,,,,,,,,,,,
,"Kalendarium roku szkolnego 2011/2012","index.php?modul=informacje_kalendarium_2011",,,1
,"Kuratoria oświaty","index.php?modul=informacje_kuratoria",,,1
])

dumpmenus()


