﻿

<!--
function BuildFlash(path, w, h, bkg, vars, name, live) {
var str;
if (path!='') str = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"  WIDTH="'+ w +'" HEIGHT="'+ h +'" id="'+ name +'" ALIGN="">' +
 '<param name="movie" value="'+ path +'"><param name="quality" value="high"><param name="bgcolor" value="'+ bkg +'"><param name="menu" value="false">' +
 '<param name="flashvars" value="' + vars + '">' +
 '<EMBED src="'+ path +'" FlashVars="' + vars + '" quality="high" bgcolor="'+ bkg +'" WIDTH="'+ w +'" HEIGHT="'+ h +'" NAME="'+ name +'" swLiveConnect='+ live +' ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>' +
 '</object>' ;
  return str;
}
function escapeURI(str) {
  str = str.replace(/=/g, '%3D'); 
  str = str.replace(/&/g, '%26');
  str = str.replace(/"/g, '%22');
  return str;
}
function test() {
  alert('test');
}
function getQuerryStringByName(name){
  url = new String(window.location);
  var xx=String(document.location.search);
  str_tmp = url.split("?");
  
  if( str_tmp.length < 2 ) return "";
  querry = str_tmp[1];
  
  if (xx.match(/%20\w+=/)) // haszcz
  { 
    element = querry.split(escape("&"));
  }
  else // bez haszcza
  {
    element = querry.split("&");
  }  
  i=0;
  while(i<element.length){
      e = element[i];
      _item =  e.split("=");
      if(_item[0] == name){
        return _item[1];
      }
      i++;
  }
  return "";
}
/* FAQ */
    function expandFAQ() {
        for (i=0;i<faqArr.length;i++) {
            var obj = document.getElementById(faqArr[i]);
            if (obj.tagName == 'TR') {
                obj.style.display = (document.all) ? 'block' : 'table-row';
            }
            if (obj.tagName == 'DIV') {
                obj.style.display = 'block';
            }
        }
    }
    function collapseFAQ() {
        for (i=0;i<faqArr.length;i++) {
            var obj = document.getElementById(faqArr[i]);
            if (obj.tagName == 'TR') {
                obj.style.display = 'none';
            }
            if (obj.tagName == 'DIV') {
                obj.style.display = 'none';
            }
        }        
    }
function swapFAQ(faqID) {
    var obj = document.getElementById(faqID);
    var s = obj.style;
    if (document.all) {
        if (s.display == 'none') {
            s.display = 'block';
        } else if (s.display == 'block') {
            s.display = 'none';
        }
    } else {
        if (s.display == 'none') {
            s.display = 'table-row';
        } else if (s.display == 'table-row') {
            s.display = 'none';
        }
    }
}
/* /FAQ */
var pWin = null;
function popUp(url,width,height) {
    if (url == '') return;
    if (!pWin || pWin.closed) {
        pWin = window.open('','pWin','dependent=yes,menubar=no,resizable=no,scrollbars=no,statusbar=no,toolbar=no,width='+width+',height='+height)
    }
    pWin.document.location.href = url;
    pWin.focus();
}
var FSwin = null;
function FSpopup(url) {
    width = 1024;
    height = 768;
    var winProp = 'width='+width+',height='+height+',toolbar=no,menubar=no,statusbar=no,resizeable=no,directories=no,location=no,screenX=0,screenY=0';
    if (navigator.userAgent.indexOf('MSIE') > 0) winProp = 'fullscreen=yes, scrollbars=auto';
    FSwin = window.open(url, 'URSA', winProp);
    FSwin.focus();
}
//-->

