<!-- $Id: utils.js,v 1.2 2006/02/02 00:13:18 viciu Exp $ // -->
<!-- 
Nowe_Okno = null;
function galeria(src, w, h){
if(window.screen){
 aw=screen.availWidth;
 ah=screen.availHeight;
}
else{
 aw=640;
 ah=450;
}
if (Nowe_Okno==null || Nowe_Okno.closed){
 ustawienia=
 "left=" + (aw-w)/2 + ","
 +"top=" + (ah-h)/2 + ","
 +"screenX=" + (aw-w)/2 + ","
 +"screenY=" + (ah-h)/2 + ","
 +"width=" + w + ","
 +"height=" + h + ","
 +"innerWidth=" + w + ","
 +"innerHeight=" + h + ","
 +"toolbar=no,"
 +"location=no,"
 +"directories=no,"
 +"status=no,"
 +"menubar=no,"
 +"scrollbars=no,"
 +"resizable=no"
 Nowe_Okno = window.open('',
 'obrazek',ustawienia);
}
Nowe_Okno.document.open();
Nowe_Okno.document.clear();
Nowe_Okno.document.write(
"<html><head>\n"
+"</head>\n"
+"<body leftmargin=0 topmargin=0>\n"
+"<TABLE width=100% height=100% border=0><TR align=center><TD valign=center><IMG SRC=" + src +" ></TD></TR></TABLE>"
+"</body>\n"
+"</html>"
);
Nowe_Okno.document.close();
Nowe_Okno.focus();
} 
// -->
<!-- 
 bName=navigator.appName;
 bVer=parseInt(navigator.appVersion);
 if (bName == "Netscape" || bVer >= 3) ver="n3";
    else if (bVer >=4) ver="n3";
    else ver="n2"
 if (ver == "n3")

 {link1off=new Image();
  link1off.src="images/top_menu_pl_01a.jpg";
  link1on=new Image();
  link1on.src="images/top_menu_pl_01b.jpg";

  link2off=new Image();
  link2off.src="images/top_menu_pl_02a.jpg";
  link2on=new Image();
  link2on.src="images/top_menu_pl_02b.jpg";
 
  link3off=new Image();
  link3off.src="images/top_menu_pl_03a.jpg";
  link3on=new Image();
  link3on.src="images/top_menu_pl_03b.jpg";
 
  link4off=new Image();
  link4off.src="images/top_menu_pl_04a.jpg";
  link4on=new Image();
  link4on.src="images/top_menu_pl_04b.jpg";
 
  link5off=new Image();
  link5off.src="images/top_menu_pl_05a.jpg";
  link5on=new Image();
  link5on.src="images/top_menu_pl_05b.jpg";

  link6off=new Image();
  link6off.src="images/top_menu_pl_06a.jpg";
  link6on=new Image();
  link6on.src="images/top_menu_pl_06b.jpg";

  link7off=new Image();
  link7off.src="images/top_menu_pl_07a.jpg";
  link7on=new Image();
  link7on.src="images/top_menu_pl_07b.jpg";

  link8off=new Image();
  link8off.src="images/top_menu_pl_08a.jpg";
  link8on=new Image();
  link8on.src="images/top_menu_pl_08b.jpg";

  link9off=new Image();
  link9off.src="images/top_menu_pl_09a.jpg";
  link9on=new Image();
  link9on.src="images/top_menu_pl_09b.jpg";

  link10off=new Image();
  link10off.src="images/top_menu_pl_10a.jpg";
  link10on=new Image();
  link10on.src="images/top_menu_pl_10b.jpg";
}
 
 function on(imgName)
 {if (ver == "n3")
  {imgOn=eval(imgName + "on.src");
   document [imgName].src=imgOn;}
 }

 function off(imgName)
 {if (ver == "n3")
  {imgOff=eval(imgName + "off.src");
   document [imgName].src=imgOff;}
 }

function MM_openBrWindow(theURL,winName,features) { //v2.0
   eval("var "+winName+" = window.open(theURL,winName,features)");
   eval(winName+".focus()");
}
// -->

function setPointer(theRow, thePointerColor, theNormalBgColor){var theCells = null;if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {return false;}if (typeof(document.getElementsByTagName) != 'undefined') {theCells = theRow.getElementsByTagName('td');}else if (typeof(theRow.cells) != 'undefined') {theCells = theRow.cells;}else {return false;}var rowCellsCnt  = theCells.length;var currentColor = null;var newColor     = null;if (typeof(window.opera) == 'undefined'&& typeof(theCells[0].getAttribute) != 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') {currentColor = theCells[0].getAttribute('bgcolor');newColor = (currentColor.toLowerCase() == thePointerColor.toLowerCase())? theNormalBgColor: thePointerColor;for (var c = 0; c < rowCellsCnt; c++) {theCells[c].setAttribute('bgcolor', newColor, 0);} // end for}else {currentColor = theCells[0].style.backgroundColor;newColor = (currentColor.toLowerCase() == thePointerColor.toLowerCase())? theNormalBgColor: thePointerColor;for (var c = 0; c < rowCellsCnt; c++) {theCells[c].style.backgroundColor = newColor;}
}return true;}