// Toggle a division as expanded or collapsed.
// Also toggle the arrow icon.
// Refer to the division and image by their IDs.
//
// "Collapsed" material is hidden using the
// display property in CSS.
function toggleexpander(blockid, arrowid) {
   arrow = document.getElementById(arrowid);
   block = document.getElementById(blockid);
   if (block.style.display == "none") {
      // Currently collapsed, so expand it.
      block.style.display = "block";
      arrow.src = "images/arrow_up.png";
      arrow.alt = "View Less Details";
   }
   else {
      // Currently expanded, so collapse it.
      block.style.display = "none";		
      arrow.src = "images/arrow_down.png";
      arrow.alt = "View More Details";
   }
   return false; // Make browser ignore href.
}

// Adapt doc content based on installed licenses. 
// Refer to the div or span by its ID.
function adaptproduct(license,id) {
   var license_exists = Packages.com.mathworks.mlservices.MLLicenseChecker.hasLicense(license);
   if (!license_exists) {
      thisel = document.getElementById(id);
      thisel.style.display = 'none';
   }
}

// Copyright 2002-2005 The MathWorks, Inc.
