// JavaScript Document
/**
 * toggle Items
 *
 * @param id 		the id of the item to hide or show
 */
function toggleElement(id, count) 
{			
	if(document.getElementById(id).style.display == 'none')
	{
	  toggleAll(count);
	  document.getElementById(id).style.display = 'block';
	}
	else
	{
	  toggleAll(count);
	  document.getElementById(id).style.display = 'none';
	}
}

/**
 * hides all items with one click
 */
function toggleAll(count) {
	for(i = 0; i < count; i++) {
		document.getElementById('a_'+i).style.display = 'none';
	}				
}

