function email(uzytkownik, domena, opis, dodatkowe)
{
	document.write('<a hr' + 'ef="mai' + 'lto:' + uzytkownik + '\x40' + domena + (dodatkowe ? dodatkowe : '') + '">');
	if (opis) document.write(opis + '<'+'/a>');
	else document.write(uzytkownik + '\x40' + domena + '<'+'/a>');
}

function gallery(el)
{
	var wnd = window.open(el.href, 'gallery', 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes');
	if (wnd == null || wnd == false) return true;
	wnd.focus();
	return false;
}


// Rollover:
var rollovers = new Array();
var rollouts = new Array();

function preload_rollovers(img)
{
	if (document.images)
	{
		for (var i = 0; i < img.length; i++)
		{
			rollouts[i] = new Image();
			rollouts[i].src = img[i];
			rollovers[i] = new Image();
			rollovers[i].src = img[i].substring(0, img[i].lastIndexOf('.')) + '2' + img[i].substring(img[i].lastIndexOf('.'));
		}
	}
}

function rollover(el, n)
{
	if (document.images) el.src = rollovers[n].src;
}

function rollout(el, n)
{
	if (document.images) el.src = rollouts[n].src;
}