/*
	służy do podmiany wszystkich linków typu <a>http://www.pf.pl</a>
	na <a>www.pf.pl</a> [bez części http]
*/

if (typeof document.attachEvent!='undefined') {
   window.attachEvent('onload',processReplacing);
}else {
   window.addEventListener('load',processReplacing,false);
}
if(typeof DWREngine != "undefined")
	DWREngine.setPostHook(processReplacing);

function processReplacing(){
//alert("processReplacing invoking");
	var lista = document.getElementsByTagName("a");
	for(var i=0;i<lista.length;i++){
		if(lista[i].innerHTML.match('^http'))
		{						
			lista[i].innerHTML = lista[i].innerHTML.replace(/^http(s)*:\/\//,'');
		}
	}
//alert("processReplacing invoked");	
}