function homepage(obj) {
	if(navigator.userAgent.indexOf('MSIE') > -1) {
		obj.style.behavior='url(#default#homepage)';
		obj.setHomePage(document.location);
	}
	else if(window.opera && window.print) {
		alert('Twoja przeglądarka nie pozwala na zmianę strony domowej. By zrobić to ręcznie, kliknij w menu przeglądarki "Narzędzia" > "Ustawienia" > "Użyj bieżącej"');
	}
	else {
		alert('Twoja przeglądarka nie pozwala na zmianę strony domowej. By zrobić to ręcznie, przeciągnij link "Ustaw jako startową" na przycisk "Strona domowa" w pasku nawigacji przeglądarki.');
	}
}

function boxOn(box, nr) {
	if(document.getElementById(box + '_1_link')) document.getElementById(box + '_1_link').className = 'first';
	if(document.getElementById(box + '_2_link')) document.getElementById(box + '_2_link').className = '';
	if(document.getElementById(box + '_3_link')) document.getElementById(box + '_3_link').className = '';
	
	if(document.getElementById(box + '_1')) document.getElementById(box + '_1').style.display = 'none';
	if(document.getElementById(box + '_2')) document.getElementById(box + '_2').style.display = 'none';
	if(document.getElementById(box + '_3')) document.getElementById(box + '_3').style.display = 'none';
	
	
	document.getElementById(box + '_' + nr + '_link').className = ((nr == 1) ? 'first ' : '') + 'active';
	document.getElementById(box + '_' + nr).style.display = 'block';
}

function showSubMenu(nr) {
	var d = document.getElementById('submenu').getElementsByTagName('DIV');
	for(var p = 0 ; p < d.length ; p++) {
		d[p].style.display = 'none';
	}
	document.getElementById('s'+nr).style.display = 'block';
}

function IE6Menu(el, cn) {
	el.className = cn;
}

function fpMore(el, id) {
	// wylacz zapalenie menu
	var a = el.parentNode.getElementsByTagName('A');
	
	for(var i = 0 ; i < a.length ; i++) {
		a[i].className = '';
		if(a[i].id == 'l' + id) a[i].className = 'active';
	}
	
	// wylacz divy
	
	var d = el.parentNode.parentNode.parentNode.getElementsByTagName('DIV');
	for(var i = 0; i < d.length ; i++) {
		if(d[i].className == 'visibleArticle') d[i].className = 'invisibleArticle';
		if(d[i].id == 'a' + id) d[i].className = 'visibleArticle';
	}
}