var IE4=(document.all)? 1:0

var IE5=(IE4 && document.getElementById)? 1:0

var NS4=(document.layers)? 1:0

var NS6=(!IE4 && document.getElementById)? 1:0

var VR4=(IE4 || NS4 || NS6)? 1:0;

bStarted = 0



function openWin(URL,name,width,height,left,top,scroll){

	if(!width) width=400;

	height_opt= height ? ',height='+height : '';

	left_opt= left ? ',left='+left : '';

	top_opt= top ? ',top='+top : '';

	scroll=(scroll=='no' ? 'no' : 'yes');

	open(URL,name,'width='+width+height_opt+left_opt+top_opt+',location=no,menubar=no,titlebar=no,status=no,resizable=yes,scrollbars='+scroll);

}

function setErrMsg(ref,msg){

	ref.focus();

	alert(msg);

	return false;

}

function trim(e){

	while(''+e.value.charAt(0)==' ') e.value=e.value.substr(1);

	while(''+e.value.charAt(e.value.length-1)==' ') e.value=e.value.substr(0,e.value.length-1);

	return e.value;

}

function getObj(){

	if(NS6) return document.getElementById(arguments[arguments.length-1]);

	if(IE4)	return document.all[arguments[arguments.length-1]];

	l = arguments.length;

	r = '';

	for(var i=0;i<l;i++){

		r += "document.layers['"+arguments[i]+"']";

		if(i != l-1) r+='.';

	}

	return eval(r);

}

function getStyle(){

	if(NS6) return document.getElementById(arguments[arguments.length-1]).style;

	if(IE4)	return document.all[arguments[arguments.length-1]].style;

	l = arguments.length;

	r = '';

	for(var i=0;i<l;i++){

		r += "document.layers[\'"+arguments[i]+"\']";

		if(i != l-1) r+='.';

	}

	return eval(r);

}

function moveTo(stl,x,y){

	if(NS4) stl.moveTo(x,y);

	else{

		stl.left = x;

		stl.top = y;

	}

}

function moveBy(stl,x,y){

	if(NS4) stl.moveBy(x,y)

	if(NS6){

		stl.left = parseInt(stl.left) + x;

		stl.top = parseInt(stl.top) + y;

	}

	if(IE4){

		stl.pixelLeft += x;

		stl.pixelTop += y;

	}

}

function hide(stl){ stl.visibility='hidden'; }

function show(stl){ if(bStarted) stl.visibility='visible'; }





function MM_reloadPage(init) {  //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}

MM_reloadPage(true);



function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}



function MM_showHideLayers() { //v6.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }

    obj.visibility=v; }

}



function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}



function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}



//MENU CODE:

//

// Use Freely as long as following disclaimer is intact ::

//---------------------------------------------------------------

// Cross Browser Multi-Orientation Menu v1.4 1st May 2004

// This script written by Rik Comery. www.ricom.co.uk

// For support, visit the "Resources" section at www.ricom.co.uk           

// All rights reserved.   







//  MENU ITEMS ///////////////////////////////////////////////////////////////

// DUPLICATE THIS ENTIRE SECTION FOR MULTIPLE MENUS.  PLEASE SEE THE INSTRUCTIONS FILE FOR DETAILS ///////////////////////   

var Menu1 = new Array ()                                                                                                //

var subMenu1 = new Array ()                                                                                             //

     

   

    

    Menu1[0] = new Array("<img src=\"img_pl/menu_contact.gif\"  name=\"rol1\" border=\"0\">", "kontakt.php","_top", "left")                                       //

     subMenu1[0] = new Array()                                                                                          //

   

       //

     subMenu1[0][0] = new Array ("<img src=\"img_pl/d_h.jpg\" name=\"rol3\" border=\"0\" valign=\"left\">", "biznes.php","_top", "left")           //

                   //

    

	//subMenu1[0][1] = new Array ("<img src=\"img_pl/d_e.jpg\" name=\"rol5\" border=\"0\" valign=\"left\">", "export.php","_top", "left")

                                                                                                                        //

                          

	subMenu1[0][1] = new Array ("<img src=\"img_pl/oddzialy.gif\" name=\"rol5d\" border=\"0\" valign=\"left\">", "oddzialy.php","_top", "left")

                                                                                                                        //                                                                //   

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



//  MENU ITEMS ///////////////////////////////////////////////////////////////

// DUPLICATE THIS ENTIRE SECTION FOR MULTIPLE MENUS.  PLEASE SEE THE INSTRUCTIONS FILE FOR DETAILS ///////////////////////   

var Menu2 = new Array ()                                                                                                //

var subMenu2 = new Array ()                                                                                             //

     

   

    

    Menu2[0] = new Array("<img src=\"img_pl/menu_products.gif\"  name=\"rol21\" border=\"0\">", "produkty.php?sesja_natura=1","_top", "left")                                       //

     subMenu2[0] = new Array()                                                                                          //

   	//subMenu2[0][0] = new Array ("<img src=\"img_pl/ideal-fit.gif\" name=\"rol26\" border=\"0\" valign=\"left\">", "produkty_fit.php?sesja_natura=1","_top", "left")

                                                                                                                        //

       //

	subMenu2[0][0] = new Array ("<img src=\"img_pl/a.jpg\" name=\"rol25\" border=\"0\" valign=\"left\">", "produkty_al.php?sesja_natura=1","_top", "left")

    

                                                                                                                         //

	subMenu2[0][1] = new Array ("<img src=\"img_pl/l_frt.gif\" name=\"rol24\" border=\"0\" valign=\"left\">", "produkty_frt.php?sesja_natura=1","_top", "left")

                                                                                                                        //



	subMenu2[0][2] = new Array ("<img src=\"img_pl/ln.jpg\" name=\"rol22\" border=\"0\" valign=\"left\">", "produkty.php?sesja_natura=1","_top", "left")
subMenu2[0][3] = new Array ("<img src=\"img_pl/psyche.jpg\" name=\"rol23\" border=\"0\" valign=\"left\">", "produkty_psyche.php?sesja_natura=1","_top", "left")
	//

                   //

	//subMenu2[0][4] = new Array ("<img src=\"img_pl/dz.jpg\" name=\"rol23\" border=\"0\" valign=\"left\">", "produkty_dr2.php?sesja_natura=1","_top", "left")

    



                                                                                          //   

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



//  MENU ITEMS ///////////////////////////////////////////////////////////////

// DUPLICATE THIS ENTIRE SECTION FOR MULTIPLE MENUS.  PLEASE SEE THE INSTRUCTIONS FILE FOR DETAILS ///////////////////////   

var Menu3 = new Array ()                                                                                                //

var subMenu3 = new Array ()                                                                                             //

     

   

    

    Menu3[0] = new Array("<img src=\"img_pl/menu_firm.gif\"  name=\"rol31\" border=\"0\">", "firma_nf.php","_top", "left")                                       //

     subMenu3[0] = new Array()                                                                                          //

   

       //

subMenu3[0][0] = new Array ("<img src=\"img_pl/o_firmie.gif\" name=\"rol330\" border=\"0\" valign=\"left\">", "firma_nf.php","_top", "left")           //

                   //



	subMenu3[0][1] = new Array ("<img src=\"img_pl/misja.gif\" name=\"rol33\" border=\"0\" valign=\"left\">", "firma_nmi.php","_top", "left")           //

                   //



subMenu3[0][2] = new Array ("<img src=\"img_pl/napisali.gif\" name=\"rol37\" border=\"0\" valign=\"left\">", "listy.php","_top", "left")           //

                   //



     subMenu3[0][3] = new Array ("<img src=\"img_pl/nagrody.gif\" name=\"rol32\" border=\"0\" valign=\"left\">", "firma_nn.php","_top", "left")           //

                   //

     subMenu3[0][4] = new Array ("<img src=\"img_pl/badania.gif\" name=\"rol34\" border=\"0\" valign=\"left\">", "firma_nb.php","_top", "left")           //

                   //

 subMenu3[0][5] = new Array ("<img src=\"img_pl/program.gif\" name=\"rol35\" border=\"0\" valign=\"left\">", "firma_nm.php","_top", "left")           //

                   //

 subMenu3[0][6] = new Array ("<img src=\"img_pl/d_spolf.gif\" name=\"rol36\" border=\"0\" valign=\"left\">", "firma_nd5.php","_top", "left")           //

                   //

 

                                                                                          //   

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



//  MENU ITEMS ///////////////////////////////////////////////////////////////

// DUPLICATE THIS ENTIRE SECTION FOR MULTIPLE MENUS.  PLEASE SEE THE INSTRUCTIONS FILE FOR DETAILS ///////////////////////   

var Menu4 = new Array ()                                                                                                //

var subMenu4 = new Array ()                                                                                             //

     

   

    

    Menu4[0] = new Array("<img src=\"img_pl/menu_store.gif\"  name=\"rol40\" border=\"0\">", "koszyk.php","_top", "left")                                       //

     subMenu4[0] = new Array()                                                                                          //

   

       //

subMenu4[0][0] = new Array ("<img src=\"img_pl/k_bi.gif\" name=\"rol41\" border=\"0\" valign=\"left\">", "biznes.php","_top", "left")           //

                   //



	subMenu4[0][1] = new Array ("<img src=\"img_pl/skl_int.gif\" name=\"rol42\" border=\"0\" valign=\"left\">", "koszyk.php","_top", "left")           //

                   //



     subMenu4[0][2] = new Array ("<img src=\"img_pl/a_s.gif\" name=\"rol43\" border=\"0\" valign=\"left\">", "apteki.php","_top", "left")           //

                   //

    

                                                                                          //   

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



////// FORMAT MENU  ///////////////////////////////////////////////////////////////////

menuStyle = "flat,flat,flat,flat"                               // Menu Style (flat, 3d)

cellPadding = "0,0,0,0"                                 // Cell Padding

cellBorder =0                                     // Border width (for no border, enter 0)  THIS VALUE APPLIES TO ALL MENUS

cellBorderx = 0 

verticalOffset = "0,0,0,0"                             // Vertical offset of Sub Menu. 

horizontalOffset = "0,0,0,0"                          // Horizontal offset of Sub Menu. 

subMenuDelay = 1                                    // Time sub menu stays visible for (in seconds). THIS VALUE APPLIES TO ALL MENUS

subIndicate = 0                                     // Show if a sub menu is present (use 0 for "no")  THIS VALUE APPLIES TO ALL MENUS

indicator = "" // Symbol to show if a sub menu is present (subIndicate must be to set to 1)

                                                    // Use standard HTML <img> tag. You can use a character instead of an image. 

                                                    // e.g.      indicator = ">"

// Main Menu Items

borderColor = "Black,Black,Black,Black"            // Border Colour (flat mode only)

borderHighlight = "#97BBD3,#97BBD3,#97BBD3,#97BBD3"      // Border Highlight Colour (3d mode only)

borderShadow = "#31556D,#97BBD3,#97BBD3,#97BBD3"         // Border Shadow Colour (3d mode only)

menuBackground = "white,white,white,white"       // Cell Background Colour

menuHoverBackground = "white,white,white,white"    // Cell Background Colour on mouse rollover

fontFace = "verdana,verdana,verdana,verdana"               // Font Face

fontColour = "black,black,black,black"          // Font Colour

fontHoverColour = "white,white,white,white"     // Font Colour on mouse rollover

fontSize = "x-small,x-small,x-small,x-small"                    // Font Size

fontDecoration = "none,none,none,none"            // Style of the link text (none, underline, overline, line-through)

fontWeight = "normal,normal,normal,normal"              // Font Weight (normal, bold)

HfontWeight = ""



// Sub Menu Items

sborderColor = "white,white,white,white"           // Border Colour (flat mode only)



smenuBackground = "white,white,white,white"        // Cell Background Colour

smenuHoverBackground = "white,white,white,white" // Cell Background Colour on mouse rolloverr



sfontFace = "arial,arial,arial,arial"              // Font Face

sfontColour = "#2b83c4,#97BBD3,#97BBD3,#97BBD3"          // Font Colour

sfontHoverColour = "#FFFFFF,#97BBD3,#97BBD3,#97BBD3"     // Font Colour on mouse rollover

sfontSize = "xx-small,xx-small,xx-small,xx-small"                   // Font Size

sfontDecoration = "none,none,none,none"            // Style of the link text (none, underline, overline, line-through)

sfontWeight = "normal,normal,normal,normal"              // Font Weight (normal, bold)

HsfontWeight = ""



quantity = 4

////// END FORMAT MENU  ///////////////////////////////////////////////////////////////////





////// DO NOT EDIT BELOW THIS LINE  ///////////////////////////////////////////////////////////////////



// Browser Sniffer

var isIE = (document.getElementById && document.all)?true:false;

var isNS4 = (document.layers)?true:false;

var isNS6 = (document.getElementById && !document.all)?true:false;



var timer;

var obj = (isIE)?"document.all":"document.getElementById"





// Menu Styles

function createStyles(quant){

styleBorder=(menuStyle.split(",")[quant-1].toLowerCase() == "flat")?cellBorder:0 

  document.writeln ('<style>');

  document.writeln ('.rcMenuStatic'+quant+' {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontColour.split(",")[quant-1]+';font-weight:'+fontWeight.split(",")[quant-1]+';background-color:'+menuBackground.split(",")[quant-1]+'; cursor:hand; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');

  document.writeln ('.rcMenuHover'+quant+'  {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontHoverColour.split(",")[quant-1]+';font-weight:'+HfontWeight.split(",")[quant-1]+';background-color:'+menuHoverBackground.split(",")[quant-1]+'; cursor:hand; text-decoration:'+fontDecoration.split(",")[quant-1]+' }');

  document.writeln ('.rcSubMenuStatic'+quant+' {font-family:'+sfontFace.split(",")[quant-1]+';font-size:'+sfontSize.split(",")[quant-1]+';color:'+sfontColour.split(",")[quant-1]+';font-weight:'+sfontWeight.split(",")[quant-1]+';text-decoration:'+sfontDecoration.split(",")[quant-1]+';background-color:'+smenuBackground.split(",")[quant-1]+'; cursor:hand}');

  document.writeln ('.rcSubMenuHover'+quant+'  {font-family:'+sfontFace.split(",")[quant-1]+';font-size:'+sfontSize.split(",")[quant-1]+';color:'+sfontHoverColour.split(",")[quant-1]+';font-weight:'+HsfontWeight.split(",")[quant-1]+';text-decoration:'+sfontDecoration.split(",")[quant-1]+';background-color:'+smenuHoverBackground.split(",")[quant-1]+'; cursor:hand}');



  document.writeln ('</style>');

}



function showMenus(quant,definedOrientation)

{

  createStyles(quant);

  if(definedOrientation!=""){orientation=definedOrientation}

  if (orientation.toLowerCase() == "vertical"){document.writeln ('<table border="0" cellpadding="0" cellspacing="'+styleBorder+'" Background="" width="50" height="21" valign="bottom">')}

  else{document.writeln ('<table border="0" width="50" height="21" cellpadding="0" cellspacing="'+styleBorder+'" bgColor="'+borderColor.split(",")[quant-1]+'"><tr>')}  



//Menu1



  for (x=0; x<eval("Menu"+quant).length; x++)

  {

    

    if (orientation.toLowerCase()=="vertical") document.writeln('<tr>')

    document.writeln ('<td align="right" width="*" onclick="tdMouseClick(\''+quant+'mainLink'+x+'\')" onMouseOver="hoverMenu(); popDown(\''+quant+'\','+x+', \''+quant+'button'+x+'\',\''+orientation+'\'); " onMouseOut="clearMenu('+quant+','+x+')" ')

          

    document.writeln ('><div id="'+quant+'button'+x+'"><table border="0" "width="50"cellpadding="'+cellPadding.split(",")[quant-1]+'" cellspacing="0" width="100%"><tr><td width="50"class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'" nowrap align="right">');

    



 if (quant=="1"){

  

document.writeln ('<a id="'+quant+'mainLink'+x+'" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'" onMouseOver=\"rol1.src=\'img_pl/menu_contact_over.gif\'\" onMouseOut=\"rol1.src=\'img_pl/menu_contact.gif\'\">'+eval("Menu"+quant)[x][0]+'</a></td>');

    if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){

      document.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'a" align="right">');

      

document.writeln ('<a id="'+quant+'mainLink'+x+'a" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'" >'+indicator+'</a></td>');}



    document.writeln ('</tr></table></div></td>');    

    if (orientation.toLowerCase()=="vertical") document.writeln('</tr>')}



 else{



   if (quant=="2"){

	

      document.writeln ('<a id="'+quant+'mainLink'+x+'" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'" onMouseOver=\"rol21.src=\'img_pl/menu_products_over.gif\'\" onMouseOut=\"rol21.src=\'img_pl/menu_products.gif\'\">'+eval("Menu"+quant)[x][0]+'</a></td>');

    if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){

      document.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'a" align="right">');

      

document.writeln ('<a id="'+quant+'mainLink'+x+'a" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'" >'+indicator+'</a></td>');}



    document.writeln ('</tr></table></div></td>');    

    if (orientation.toLowerCase()=="vertical") document.writeln('</tr>')}

			

	else{



	if (quant=="3"){

	document.writeln ('<a id="'+quant+'mainLink'+x+'" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'" onMouseOver=\"rol31.src=\'img_pl/menu_firm_over.gif\'\" onMouseOut=\"rol31.src=\'img_pl/menu_firm.gif\'\">'+eval("Menu"+quant)[x][0]+'</a></td>');

    if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){

      document.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'a" align="right">');

      

document.writeln ('<a id="'+quant+'mainLink'+x+'a" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'" >'+indicator+'</a></td>');}



    document.writeln ('</tr></table></div></td>');    

    if (orientation.toLowerCase()=="vertical") document.writeln('</tr>')}  

    



else {

	document.writeln ('<a id="'+quant+'mainLink'+x+'" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'" onMouseOver=\"rol40.src=\'img_pl/menu_store_over.gif\'\" onMouseOut=\"rol40.src=\'img_pl/menu_store.gif\'\">'+eval("Menu"+quant)[x][0]+'</a></td>');

    if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){

      document.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'a" align="right">');

      

document.writeln ('<a id="'+quant+'mainLink'+x+'a" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'" >'+indicator+'</a></td>');}



    document.writeln ('</tr></table></div></td>');    

    if (orientation.toLowerCase()=="vertical") document.writeln('</tr>')}  



}



       

	

}

    }



    

  





 



//koniec menu glownego



  if (orientation.toLowerCase() == "vertical"){document.writeln ('</table>');}

  else{document.writeln ('</tr></table>');}     

  



// Build the sub menu items

  for (x=0; x<eval("Menu"+quant).length; x++)

  { 

    if (eval("subMenu"+quant)[x].length > 0)

    {     

      document.writeln ('<div id="'+quant+'MENU'+x+'" style="visibility:hidden; position:absolute; z-index:5" >');

      document.writeln ('<table  border="0" Background="" bordercolor="red" width="90" cellpadding="2" cellspacing="'+styleBorder+'" >');



if (quant=="1"){



//pierwszy wiersz 

    

             document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][0][1]+'" target="'+eval("subMenu"+quant)[x][0][2]+'" onMouseOver=\"rol3.src=\'img_pl/d_h_over.jpg\'\" onMouseOut=\"rol3.src=\'img_pl/d_h.jpg\'\">'+eval("subMenu"+quant)[x][0][0]+'</a></td></tr>');

     



//drugi wiersz



//	document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

 //       document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][1][1]+'" target="'+eval("subMenu"+quant)[x][1][2]+'" onMouseOver=\"rol5.src=\'img_pl/d_e_over.jpg\'\" onMouseOut=\"rol5.src=\'img_pl/d_e.jpg\'\">'+eval("subMenu"+quant)[x][1][0]+'</a></td></tr>');



//trzeci wiersz



	document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][1][1]+'" target="'+eval("subMenu"+quant)[x][1][2]+'" onMouseOver=\"rol5d.src=\'img_pl/oddzialy_over.gif\'\" onMouseOut=\"rol5d.src=\'img_pl/oddzialy.gif\'\">'+eval("subMenu"+quant)[x][1][0]+'</a></td></tr>');

      document.writeln ('</table></div>');



 }

 else{

 	if (quant=="2"){

	//pierwszy wiersz 



	

	//document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')



        //document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][0][1]+'" target="'+eval("subMenu"+quant)[x][0][2]+'" onMouseOver=\"rol26.src=\'img_pl/ideal-fit_over.gif\'\" onMouseOut=\"rol26.src=\'img_pl/ideal-fit.gif\'\">'+eval("subMenu"+quant)[x][0][0]+'</a></td></tr>');



	//drugi wiersz



	document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][0][1]+'" target="'+eval("subMenu"+quant)[x][0][2]+'" onMouseOver=\"rol25.src=\'img_pl/a_over.jpg\'\" onMouseOut=\"rol25.src=\'img_pl/a.jpg\'\">'+eval("subMenu"+quant)[x][0][0]+'</a></td></tr>');

        

	//trzeci wiersz



	document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][1][1]+'" target="'+eval("subMenu"+quant)[x][1][2]+'" onMouseOver=\"rol24.src=\'img_pl/l_frt_over.gif\'\" onMouseOut=\"rol24.src=\'img_pl/l_frt.gif\'\">'+eval("subMenu"+quant)[x][1][0]+'</a></td></tr>');



   

   //czwarty wiersz



	     document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][2][1]+'" target="'+eval("subMenu"+quant)[x][2][2]+'" onMouseOver=\"rol22.src=\'img_pl/ln_over.jpg\'\" onMouseOut=\"rol22.src=\'img_pl/ln.jpg\'\">'+eval("subMenu"+quant)[x][2][0]+'</a></td></tr>');

     
document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][3][1]+'" target="'+eval("subMenu"+quant)[x][3][2]+'" onMouseOver=\"rol23.src=\'img_pl/psyche_over.jpg\'\" onMouseOut=\"rol23.src=\'img_pl/psyche.jpg\'\">'+eval("subMenu"+quant)[x][3][0]+'</a></td></tr>');

   

   //pi¹ty wiersz



		//document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

       // document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][4][1]+'" target="'+eval("subMenu"+quant)[x][4][2]+'" onMouseOver=\"rol23.src=\'img_pl/dz_over.jpg\'\" onMouseOut=\"rol23.src=\'img_pl/dz.jpg\'\">'+eval("subMenu"+quant)[x][4][0]+'</a></td></tr>');



		document.writeln ('</table></div>');}



else{

 

   if(quant=="3"){

  //pierwszy wiersz 

    

             document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][0][1]+'" target="'+eval("subMenu"+quant)[x][0][2]+'" onMouseOver=\"rol330.src=\'img_pl/o_firmie_over.gif\'\" onMouseOut=\"rol330.src=\'img_pl/o_firmie.gif\'\">'+eval("subMenu"+quant)[x][0][0]+'</a></td></tr>');







 //drugi wiersz 

    

             document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][1][1]+'" target="'+eval("subMenu"+quant)[x][1][2]+'" onMouseOver=\"rol33.src=\'img_pl/misja_over.gif\'\" onMouseOut=\"rol33.src=\'img_pl/misja.gif\'\">'+eval("subMenu"+quant)[x][1][0]+'</a></td></tr>');





//trzeci wiersz 

    

             document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][2][1]+'" target="'+eval("subMenu"+quant)[x][2][2]+'" onMouseOver=\"rol37.src=\'img_pl/napisali_over.gif\'\" onMouseOut=\"rol37.src=\'img_pl/napisali.gif\'\">'+eval("subMenu"+quant)[x][2][0]+'</a></td></tr>');





 //czwarty wiersz 

    

             document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][3][1]+'" target="'+eval("subMenu"+quant)[x][3][2]+'" onMouseOver=\"rol32.src=\'img_pl/nagrody_over.gif\'\" onMouseOut=\"rol32.src=\'img_pl/nagrody.gif\'\">'+eval("subMenu"+quant)[x][3][0]+'</a></td></tr>');

  

 //piaty wiersz 

    

             document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][4][1]+'" target="'+eval("subMenu"+quant)[x][4][2]+'" onMouseOver=\"rol34.src=\'img_pl/badania_over.gif\'\" onMouseOut=\"rol34.src=\'img_pl/badania.gif\'\">'+eval("subMenu"+quant)[x][4][0]+'</a></td></tr>');



  //szósty wiersz 

    

             document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][5][1]+'" target="'+eval("subMenu"+quant)[x][5][2]+'" onMouseOver=\"rol35.src=\'img_pl/program_over.gif\'\" onMouseOut=\"rol35.src=\'img_pl/program.gif\'\">'+eval("subMenu"+quant)[x][5][0]+'</a></td></tr>');



 //siódmy wiersz 

    

             document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][6][1]+'" target="'+eval("subMenu"+quant)[x][6][2]+'" onMouseOver=\"rol36.src=\'img_pl/d_spolf_over.gif\'\" onMouseOut=\"rol36.src=\'img_pl/d_spolf.gif\'\">'+eval("subMenu"+quant)[x][6][0]+'</a></td></tr>');

   

     document.writeln ('</table></div>');

 }



//4menu

else {

	//pierwszy wiersz 

    

             document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][0][1]+'" target="'+eval("subMenu"+quant)[x][0][2]+'" onMouseOver=\"rol41.src=\'img_pl/k_bi_over.gif\'\" onMouseOut=\"rol41.src=\'img_pl/k_bi.gif\'\">'+eval("subMenu"+quant)[x][0][0]+'</a></td></tr>');

     



//drugi wiersz



	document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][1][1]+'" target="'+eval("subMenu"+quant)[x][1][2]+'" onMouseOver=\"rol42.src=\'img_pl/skl_int_over.gif\'\" onMouseOut=\"rol42.src=\'img_pl/skl_int.gif\'\">'+eval("subMenu"+quant)[x][1][0]+'</a></td></tr>');



//trzeci wiersz



	document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')

        

        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][2][1]+'" target="'+eval("subMenu"+quant)[x][2][2]+'" onMouseOver=\"rol43.src=\'img_pl/a_s_over.gif\'\" onMouseOut=\"rol43.src=\'img_pl/a_s.gif\'\">'+eval("subMenu"+quant)[x][2][0]+'</a></td></tr>');

        document.writeln ('</table></div>');}







 

//koniec 4 menu



//dodany

}







 }



    }

  }



 





} 



// Change colour or menu and submenu items when the mouse hovers over.  

function highlightMenu(element,mainMenu,dropMenu,state,quant)

{

  hoverMenu();

  state=(state == "hover")?"rcMenuHover"+quant:"rcMenuStatic"+quant

  if (element == "sub")

  {

    for (x=0; x < eval("subMenu"+quant)[mainMenu].length; x++)

     {

      eval(obj+'("'+quant+'subMenu'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"')

      eval(obj+'("'+quant+'subLink'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"')

    }   

    eval(obj+'("'+quant+'subMenu'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"')

    eval(obj+'("'+quant+'subLink'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"')

  }

  else

  {

    eval(obj+'("'+quant+'cell'+mainMenu+'").className = "'+state+'"')

    eval(obj+'("'+quant+'mainLink'+mainMenu+'").className = "'+state+'"')

    if (subIndicate == 1&&eval("subMenu"+quant)[mainMenu].length>=1)

    {

      eval(obj+'("'+quant+'cell'+mainMenu+'a").className = "'+state+'"')

      eval(obj+'("'+quant+'mainLink'+mainMenu+'a").className = "'+state+'"')

    }

  }

}



// Find positioning for sub menus

function getOffset(obj, dim) 

{

  if(dim=="left") 

  {     

    oLeft = obj.offsetLeft;    

    while(obj.offsetParent!=null) 

    {    

      oParent = obj.offsetParent     

      oLeft += oParent.offsetLeft 

      obj = oParent 	

    }

    return oLeft

  }

  else if(dim=="top")

  {

    oTop = obj.offsetTop;

    while(obj.offsetParent!=null) 

    {

      oParent = obj.offsetParent

      oTop += oParent.offsetTop

      obj = oParent 	

    }

    return oTop

  }

  else if(dim=="width")

  {

    oWidth = obj.offsetWidth

    return oWidth

  }  

  else if(dim=="height")

  {

    oHeight = obj.offsetHeight

    return oHeight

  }    

  else

  {

    alert("Error: invalid offset dimension '" + dim + "' in getOffset()")

    return false;

  }

}



// Show sub menus

function popDown(quant, param, id, orientation)

{

  var cellBorderOffset = (isNS6)?cellBorder:eval(cellBorder*2)

  var browserAdjustment = (isNS6)?cellBorder:0

  var menu;

  var button;



  if (id)

  {    

    getOffset(eval(obj+'(id)'),'left');

    getOffset(eval(obj+'(id)'),'top');    

    getOffset(eval(obj+'(id)'),'width');  

    getOffset(eval(obj+'(id)'),'height');

    

    if (eval("Menu"+quant+"["+param+"][3]")=="right" && eval("subMenu"+quant+"["+param+"].length")>0) 

    { 

      oLeft=oLeft  

      oLeft=oLeft+oWidth; 

      getOffset(eval(obj+'("'+quant+'MENU'+param+'")'),'width');

      oLeft=oLeft-oWidth ;

      alignAdjustment = cellBorder*2 + 1

    }

    else 

    {

      alignAdjustment = 0

      oLeft=oLeft

    }    

  }  



  

  n = 0;    

  while (n < eval("Menu"+quant).length)

  {          

    menu = quant+"MENU"+n

    if (param == n)

    {

      theObj = eval(obj+'(menu)');

      if (theObj)

      {

         theObj.style.visibility = "visible"



          if (orientation.toLowerCase()=="vertical"){

            theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft+oWidth+cellBorder+parseInt(horizontalOffset.split(",")[quant-1]):oLeft+oWidth+cellBorderOffset+parseInt(horizontalOffset.split(",")[quant-1]);

            theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop-cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+parseInt(verticalOffset.split(",")[quant-1])-browserAdjustment}

          else{

            theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft-cellBorder+parseInt(horizontalOffset.split(",")[quant-1])+alignAdjustment:oLeft+parseInt(horizontalOffset.split(",")[quant-1])-browserAdjustment+alignAdjustment;

            theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop+oHeight+cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+oHeight+cellBorderOffset+parseInt(verticalOffset.split(",")[quant-1]);}

        }

      

       highlightMenu('main',n,'','hover',quant)

       if (eval("subMenu"+quant)[param].length > 0)

       {

         for (x=0; x<eval("subMenu"+quant)[param].length; x++)

         {

           eval (obj+'("'+quant+'subMenu'+param+x+'").className = "rcSubMenuStatic'+quant+'"')

           eval (obj+'("'+quant+'subLink'+param+x+'").className = "rcSubMenuStatic'+quant+'"')         

         }

       }

    }

    else 

    {  

      for (x=1; x<quantity+1; x++)

      {       

        menu = x+"MENU"+n   

        //alert(menu)     

        if (eval(obj+'(menu)'))

        {

          eval(obj+'(menu).style.visibility = "hidden"')            

        }

        highlightMenu ('main',n,'','static',quant)

      }

    }

    n++

  }  

}



// Re-set timer for sub menus

function hoverMenu()

{

  if(timer)

  clearTimeout(timer)

}



// Set timer for sub menus

function clearMenu(quant,menu)

{

  setDelay = subMenuDelay*0,01

  delay = (eval("subMenu"+quant)[menu].length > 0)?setDelay:1

  

  timer = setTimeout("popDown("+quant+","+(eval("Menu"+quant).length + 1)+")",delay)

}



// when you click the box, perform the same function as if the user had clicked the hyperlink

function tdMouseClick(theElement)

{

  eval(obj+'(theElement).click()')

}

