/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Chris Armstrong :: http://london-net.net */

var subs_array = new Array("sb1","sb2","sb3","sb4","sb5","sb6","sb7","sb8","sb9","sb10","sb11");// Put the id's of your hidden divs in this array

function displaySbs(the_sub){
	 if (document.getElementById(the_sub).style.display==""){
	   document.getElementById(the_sub).style.display = "none";return
  }
  for (i=0;i<subs_array.length;i++){
	   var my_sub = document.getElementById(subs_array[i]);
	   my_sub.style.display = "none";
	 }
  document.getElementById(the_sub).style.display = "";
}
