theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}


var blocks_array = new Array("1","2","3"); // Put the id's of your hidden divs in this array



function display_blocks(block_id)

 {

  if (document.getElementById(block_id).style.display=="")

  {

   document.getElementById(block_id).style.display = "none";

   return;

  }

 for (i=0; i<blocks_array.length;i++)

  {

   var blocks = document.getElementById(blocks_array[i]);

   blocks.style.display = "none";

  }

  document.getElementById(block_id).style.display = "";

 }

