

//Integrated to Walter Zorn html library

// function showSubsection : Show a specific div and hide other + Change class of the link who toggle it
function showSubsection( ssId, ssTot) {
	
	for( i=1; i<=ssTot; i++ ) {
		
		myDiv = document.getElementById( 'content'+i );
		myBtn = document.getElementById( 'btn'+i );
	
		if( i == ssId ) {
			myDiv.style.display = 'block';
			myBtn.className = 'selected';
			
		} else {
			myDiv.style.display = 'none';
			myBtn.className = '';
		}
	}
}

function toggleDiv(divName)
 { 
  thisDiv = document.getElementById(divName);
  if (thisDiv) {
    if (thisDiv.style.display.match('none')) {
        thisDiv.style.display = 'block';
       }
    else{thisDiv.style.display = 'none';
     }
  }
  else {
      alert('Error: Could not locate div with id: ' + divName);
  }
  
 }// end of function
