/*
** Polpunkty JS. All rights reserved.
**
** (c) 2010 Created by Bil Software, www.bilsoftware.com, for Joomla CMS
*/
function change($pid) {
	$lid = document.getElementById($pid);
	$li_club = document.getElementById('li_club');
	$li_person = document.getElementById('li_person');
	
	if ($pid == 'ranking_club') var $oid = document.getElementById('ranking_person');
	else var $oid = document.getElementById('ranking_club');
	
	if ($pid == 'ranking_club') {
		$li_club.className = 'club active';
		$li_person.className = 'person';
	}
	else {
		$li_club.className = 'club';
		$li_person.className = 'person active';
	}
	
	$lid.style.display = 'block';
	$oid.style.display = 'none';
}

if (window.opera) {
	document.write('<style type="text/css"> .input { padding-top: 4px !important; padding-bottom: 2px !important; } </style>');
}

window.onload = function() {
	/*
	ranking table fix only for IE6 - hovers
	*/
	$li_club = document.getElementById('li_club');
	$li_person = document.getElementById('li_person');
	
	$li_club.onmouseover = function() {
		this.className += ' over';
	}
	$li_club.onmouseout = function() {
		this.className = this.className.replace(' over', '');
	}
	
	$li_person.onmouseover = function() {
		this.className += ' over';
	}
	$li_person.onmouseout = function() {
		this.className = this.className.replace(' over', '');
	}
}