makeshowhidenum = 0;
function makeshowhide(id,state,visiblestate,tshow,thide) {
	var hstate;
	var sstate;
	var hidehref;
	var showhref;
	if (!thide) thide = 'Zwiń';
	if (!tshow) tshow = 'Rozwiń więcej ...';
	if (!visiblestate) visiblestate = 'block';
	showhref = "javascript: unrolldiv('"+id+"', '"+visiblestate+"');";
	hidehref = "javascript: rolldiv('"+id+"');";
	if (!(state > 0)) {
		sstate = 'display: block;';
		hstate = 'display: none;';
	} else  {
		hstate = 'display: block;';
		sstate = 'display: none;';
	}
	document.write("<a href=\""+hidehref+"\" class='hide' style='"+hstate+"' id='"+id+"_hide'><span>"+thide+"</span></a>");
	document.write("<a href=\""+showhref+"\" class='show' style='"+sstate+"' id='"+id+"_show'><span>"+tshow+"</span></a>");
}
function unrolldiv(id, visiblestate) {
	document.getElementById(id).style.display = visiblestate;
	document.getElementById(id+'_show').style.display = 'none';
	document.getElementById(id+'_hide').style.display = 'block';
}
function rolldiv(id) {
	document.getElementById(id).style.display = 'none';
	document.getElementById(id+'_hide').style.display = 'none';
	document.getElementById(id+'_show').style.display = 'block';
}
