/* - - - - - - - - - - - - - - - - - - - - - - -
 JavaScript
 20 grudzień 2006 20:58:55
 - - - - - - - - - - - - - - - - - - - - - - - */

var Nowe=null;
function Otworz(w,s,src)
{
if (Nowe!=null)
{
Nowe.close();
Nowe=null;
}
Nowe=window.open(src, "","toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable=no,height="+w+",width="+s);
Nowe.focus();
}
 
 Nowe=null;
function BigImage(w,s,src)
{
if (Nowe!=null)
{
Nowe.close();
Nowe=null;
}
Nowe=window.open("", "","toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable=no,height="+w+",width="+s);
Nowe.document.write("<HTML><HEAD><title>www.gamk.pl</title><STYLE>BODY{BACKGROUND-REPEAT:no-repeat}</STYLE></HEAD><BODY topmargin=0 leftmargin=0><a href=javascript:window.close()><IMG SRC="+src+" border=0 alt=Zamknij okno></a>");
Nowe.focus();
}
 
  function flash(contener, src, width, height )
   {
    if( !src ) return false;
    
    HTMLText = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
    HTMLText += 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '; 
    if( width ) HTMLText += 'width="' + width + '" ';
    if( height ) HTMLText += 'height="' + height + '" ';
    HTMLText += '>';
      HTMLText += '<param name="movie" value="' + src + '" />';
    HTMLText += '<param name="menu" value="false" />';
    HTMLText += '<param name="quality" value="high" />';
    HTMLText += '<embed ';
    HTMLText += 'src="' + src + '" '; 
    HTMLText += 'menu="false" ';
    HTMLText += 'quality="high" ';
    if( width ) HTMLText += 'width="' + width + '" ';
    if( height ) HTMLText += 'height="' + height + '" ';
    HTMLText += 'type="application/x-shockwave-flash"'; 
    HTMLText += 'pluginspage="http://www.macromedia.com/go/getflashplayer" '; 
    HTMLText += '/>';
      HTMLText += '</object>';

      document.getElementById( contener ).innerHTML = HTMLText;
   }


