// JavaScript - Internet Komputery Sieci - www.ix.pl
var okno = null;
 
function OtworzOkno(zdjecie) 
{
   var imgx = 640;
   var imgy = 440
   var winl = (screen.width - (imgx+20)) / 2;
   var wint = (screen.height - (imgy+20)) / 2;
   
   if (okno && okno.open && !okno.closed) { okno.close(); };

   okno=window.open('','okno','width=660, height=460, top='+wint+',left='+winl+', screenY='+wint+', screenX='+winl+'  ');
   okno.document.open("text/html", "replace");
   okno.document.writeln('<HTML><HEAD><LINK REL="stylesheet" HREF="font.css" TYPE="text/css">');
   okno.document.writeln('<META HTTP-EQUIV="Content-Type" content="text/html; charset=ISO-8859-2"><TITLE>Tech-Net</TITLE></HEAD>');
   okno.document.writeln('<BODY CLASS="body_okno" BGCOLOR="#FFFFFF" TOPMARGIN=0 MARGINHEIGHT=0 LEFTMARGIN=0 MARGINWIDTH=0>');
   okno.document.writeln('<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>');
   okno.document.writeln('<TR><TD ALIGN="center" VALIGN="center">');
   okno.document.writeln('<A HREF="javascript:close();"><IMG SRC="'+zdjecie+'"  WIDTH='+imgx+' HEIGHT='+imgy+' ID="zdj2"></A>');
   okno.document.writeln('</TD></TR>');
   okno.document.writeln('</TABLE>');
   okno.document.writeln('</BODY></HTML>');
  
   if (parseInt(navigator.appVersion) >= 4) { okno.window.focus(); };
   okno.document.close();
}

//obsługa obiektów ActiveX, które wymagają uruchomienia np. Flash
var bo_ns_id = 0;

function isIE() 
{
  // only for Win IE 6+
  // But not in Windows 98, Me, NT 4.0, 2000
  var strBrwsr= navigator.userAgent.toLowerCase();
  if (strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0) {
    if (parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6) {
      return false;
    }
    if (strBrwsr.indexOf("win98") > -1 ||
       strBrwsr.indexOf("win 9x 4.90") > -1 ||
       strBrwsr.indexOf("winnt4.0") > -1 ||
       strBrwsr.indexOf("windows nt 5.0") > -1)
    {
      return false;
    }
    return true;
  } else {
    return false;
  }
}

function startIeFix() 
{
  //if (isIE()) 
	  {
    document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');
  }
}

function endIeFix() 
{
 // if (isIE()) 
 {
    document.write('</div>');
    var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
    var theCode = theObject.innerHTML;
    theCode = theCode.substring(4 ,9+theCode.indexOf("</object>"));
    document.write(theCode);
  }
}

