
function popupScroll( strLink, intWidth, intHeight )
{
	if ( intWidth > 0 && intHeight > 0 )
	{
		window.open( strLink, '', 'width='+intWidth+', height='+intHeight+', left=300px, top=100px, menubar=no, toolbar=no, location=no, scrollbars=yes, resizable=yes, status=no' );
	}	
}


function highlight(id) {
	
var totalLinks = document.getElementById('totalLinks').getElementsByTagName('li');

for (i=0; i<totalLinks.length; i++) {

document.getElementById('faq' + i).className = '';
}
	
document.getElementById('faq' + id).className = 'activeFaq';

}

init = function() {

if (document.getElementById('map')) { //wgrywa mapki Google
	load(); 
;}

var newBase = window.location.href;


	var links = document.getElementsByTagName('a');

	for (var i = 0; i <links.length;i++) {

	var malpka = new RegExp("mailto:(.*)(-malpka-)(.*)","gi"); //znajduje wszystkie linki z malpka

	var mail = links[i].href; // zwraca href linkow

	var linkt = links[i];



	if (mail.match(malpka)) {

	mail = mail.replace(malpka, "$1@$3");

	linkt.href = "mailto:" + mail;

	linkt.innerHTML = mail;

				   }



	}





}


if (window.attachEvent) { //dla IE
window.attachEvent("onload", init);

}

else { //dla innych
window.onload = init;

}

