// Powiększanie czcionki
function add_flash(file, width, height, title, duze) {
    param = width+height+Math.random();
    document.write('<div id="flash_'+param+'" style="width:'+width+';height:'+height+'px; margin: 0 auto; padding: 20px;"></div>');
 	document.getElementById('flash_'+param).innerHTML = ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + width + '" height="' + height + '" id="txt_title" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="wmode" value="transparent"><param name="movie" value="' + file + '?txt_title=' + title + '" /><param name="quality" value="high" /><embed wmode="transparent" src="' + file + '?txt_title=' + title + '" quality="high" bgcolor="#ffffff" width="' + width + '" height="' + height + '" name="txt_title" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}


var min=11;
var max=15;
function powiekszFont() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}

function zmniejszFont() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}



function usun_diva(divNum) {
  var d = document.getElementById('wrapper');
  var olddiv = document.getElementById(divNum);
  d.removeChild(olddiv);
}


