/*
  ModuleName:     show_hide_text.js
  Type:           javascript
  Location:       root/system/scripts
  Version:        01.00
  Build:          0010
    
  Author:         Josef Kytnar
  Created:        100112
  Updated:        100112 
  
  classes:        none
    
  externals:      none
  
  using see bellow
      
*/



function showtext(textblock)
{
  document.getElementById('show_' + textblock).style.display = 'none';
	document.getElementById('body_' + textblock).style.display = 'inline';
	document.getElementById('hide_' + textblock).style.display = 'inline';
}
function hidetext(textblock)
{
  document.getElementById('show_' + textblock).style.display = 'inline';
  document.getElementById('body_' + textblock).style.display = 'none';
  document.getElementById('hide_' + textblock).style.display = 'none';
}

/* using in HTML document:

<div id='show_id' class='show_sw' onclick="showtext('1')">
	(UKAŽ SKRYTÝ TEXT TEXT)
</div> <!-- id='show_1' /-->
<div id='body_id' class='hidden_text'>
	<!-- Skrytý text -->
	tento text je skrytý
</div> <!-- id='body_id' /-->
<div id='hide_id' class='hide_sw' onclick="hidetext('1')>
	(SKRYJ TEXT)
</div> <!-- id='hide_id' /-->

  using in CSS stylesheet:
  
.hidden_text, .hide_sw
{
	display: none;
}
.hide_sw, .show_sw
{
	/* vlasnosti "tlačítek" show/hide * /
}
*/  

