Hyphenator.setMinWordLength(4);
Hyphenator.setDisplayToggleBox(false);
Hyphenator.run();
function ligatury() { //pamiętać że element musi mieć tę samą nazwę w linii 2 i 12
	var txtCntNod = document.getElementById("wrap").innerHTML.split(">");
	var elems = txtCntNod.length;
	for (var i=0;i<elems;i++){
		var tmpVers=txtCntNod[i].split("<");
		tmpVers[0]=tmpVers[0].replace(/fi/g,"&#xfb01;");
		tmpVers[0]=tmpVers[0].replace(/fl/g,"&#xfb02;");
		tmpVers[0]=tmpVers[0].replace(/\s([uwioza]){1}\s/gi," <span class=\"nowrap\">$1 </span>");
		txtCntNod[i]=tmpVers.join("<");	
	}
	txtCntNod=txtCntNod.join(">");
	document.getElementById("wrap").innerHTML=txtCntNod;
}
function init(){
	if (navigator.appName!="Opera"){
		document.getElementById("pak").className="first hyphenate line";
	}
	ligatury();
	naSluch();
	return;
}
window.onload=init;