<!-- <![CDATA[

  function ladujFlasz(urlStr,f_width,f_height,backGround,zmienne) {
    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    if(hasRightVersion){
      var tmp = 	'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+f_width+'" height="'+f_height+'" id="index" align="middle">'
                + '<param name="allowScriptAccess" value="sameDomain" />'
                + '<param name="movie" value="'+urlStr+'.swf?'+zmienne+'"/>'
                + '<param name="menu" value="false" />'
                + '<param name="quality" value="high" />';
      if (backGround != undefined && backGround != 'transparent') {tmp += '<param name="bgcolor" value="'+backGround+'" />';}
      else {tmp += '<param name="wmode" value="transparent"/>';}
      tmp += '<embed src="'+urlStr+'.swf?'+zmienne+'" quality="high" ';
      if (backGround != undefined && backGround != 'transparent') {tmp += 'bgcolor="'+backGround+'" ';}
      else {tmp += 'wmode="transparent"';}
      tmp += 'width="'+f_width+'" height="'+f_height+'" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />'
          + '</object>';
      document.write(tmp);
    }
    else {
      var alternateContent = '<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"><img src="'+urlStr+'.png" style="width: "'+f_width+'"px; height: "'+f_height+'"px;" alt="'+urlStr+'" title="'+urlStr+'" border="0"/></a>';
      document.write(alternateContent);
    }
  }
  
  function nowe_okno(url,w,h) {
    var opcje = 'left=50,top=20, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=yes, fullscreen=no, channelmode=no, width='+w+', height='+h+'';
    new_window = window.open( url ,'popup', opcje);
    if (window.focus) {new_window.focus();}
  }
  
  function go_url(newURL, new_window) {
  	if (new_window) {nowe_okno(newURL, 760, 600);}
  	else {location.href=newURL;}
  }
  
  function display_element(id, akcja) {
    switch (akcja) {
      case 'block': if (document.getElementById) {document.getElementById(id).style.display = 'block';}
                    else if (document.all) {document.all[id].style.display = 'block';}
                    break;
      case 'none':  if (document.getElementById) {document.getElementById(id).style.display = 'none';}
                    else if (document.all) {document.all[id].style.display = 'none';}
                    break;
  	  default :     if (document.getElementById) {
  	                  if (document.getElementById(id).style.display == 'block') {document.getElementById(id).style.display = 'none';}
  	                  else {document.getElementById(id).style.display = 'block';}
  	                }
  	                else if (document.all) {
  	                  if (document.all[id].style.display == 'block') {document.all[id].style.display = 'none';}
  	                  else {document.all[id].style.display = 'block';}
                    }
  	}
  }
  
  function switch_kontakt(id) {
    display_element('kontakt_chb','none');
    display_element('kontakt_chg','none');
    display_element('kontakt_chp','none');
    
    display_element(id, 'block');
  }
  
  
  function switch_szukaj(id) {
    
    if (id==10) {id=document.getElementById('kat_szukaj').value;}
    if (id=='0') {id=0;}
    if (id=='1') {id=1;}
    if (id=='2') {id=2;}
    if (id=='3') {id=3;}
    
    if (document.getElementById) {
      form_szukaj = document.getElementById('szukaj_top');
      tekst_szukaj = document.getElementById('szukaj');
      kat_szukaj = document.getElementById('kat_szukaj');
    }
    else if (document.all) {
      form_szukaj = document.all['szukaj_top'];
      tekst_szukaj = document.all['szukaj'];
      kat_szukaj = document.all['kat_szukaj'];
    }
    
    kat_szukaj.value = id;
    
    switch (id) {
      case 1:  form_szukaj.action = 'http://www.lakma.pl/bud/index.php?c=szukaj';
               if (tekst_szukaj.value!='' && tekst_szukaj.value!=TXT_SZUKAJ) {form_szukaj.submit();}
               else {}
               break;
      case 2:  form_szukaj.action = 'http://www.lakma.pl/gos/index.php?c=szukaj';
               if (tekst_szukaj.value!='' && tekst_szukaj.value!=TXT_SZUKAJ) {form_szukaj.submit();}
               else {}
               break;
      case 3:  form_szukaj.action = 'http://www.lakma.pl/pro/index.php?c=szukaj';
               if (tekst_szukaj.value!='' && tekst_szukaj.value!=TXT_SZUKAJ) {form_szukaj.submit();}
               else {}
               break;
      default: form_szukaj.action = '';
               alert(SZUKAJ_ERROR_1);
    }
  }

// ]]> -->

