function SelectItem(item,action)
    {
        switch (action)
        {
          case "1": { if (item != selectedItem) document.getElementById("select" + item).style.background = "url('_img/pic12.gif')"; break; }
          case "2": { if (item != selectedItem) document.getElementById("select" + item).style.background = "url('_img/pic1.gif')"; break; }
        }
    }

function SelectSubmenu(item)
  	{
        if (item == selectedSubmenu) {
        	document.getElementById("openmenu" + item).style.display = "none";
        	selectedSubmenu = 0;
        } else {
            if (selectedSubmenu)
            	document.getElementById("openmenu" + selectedSubmenu).style.display = "none";
            document.getElementById("openmenu" + item).style.display = "";
            selectedSubmenu = item;
        }
    }

/*
// When the page loads:
window.onload = function(){
  if (document.getElementsByTagName) {
    // Get all the tags of type object in the page.
      var objs = document.getElementsByTagName("object");
      for (i=0; i<objs.length; i++) {
        // Get the HTML content of each object tag
        // and replace it with itself.
        objs[i].outerHTML = objs[i].outerHTML;
      }
   }
}
// When the page unloads:
window.onunload = function() {
  if (document.getElementsByTagName) {
    //Get all the tags of type object in the page.
    var objs = document.getElementsByTagName("object");
    for (i=0; i<objs.length; i++) {
      // Clear out the HTML content of each object tag
      // to prevent an IE memory leak issue.
      objs[i].outerHTML = "";
    }
  }
}
*/
