title: What's wrong with this javascript? Array not defined
body: <p>What's wrong with this code?</p>
  
  <pre><code>var divarray = document.getElementById("yui-main").getElementsByTagName("div");
  var articleHTML = array();
  var absHTML;
  var keyHTML;
  var bodyHTML = array();
  var i = 0;
  for ( var j in divarray) {
      if(divarray[i].className == "articleBody"){
    alert("found");
    articleHTML = divarray[i];
    break;
   }
   bodyHTML[i] = '';
   if(articleHTML[i].className == "issueMiniFeature"){continue;}
   if(articleHTML[i].className == "abstract"){absHTML = articleHTML[i]; continue;}
   if(articleHTML[i].className == "journalKeywords"){keyHTML = articleHTML[i]; continue;}
   bodyHTML[i] = articleHTML[i];
   i++;
  }
  </code></pre>
  
  <p>This is the error I am getting: </p>
  
  <pre><code>ReferenceError: array is not defined
  </code></pre>
  
  <p>I am using Google Chrome if it helps any.</p>