// *****************************************
// *** Here is the array ***
// *****************************************
var wordArray = new makeArray(
    "<img src='../images/heads/head_1.jpg' width='285' height='319' /><img src='../images/heads/head_2.jpg' width='250' height='319' /><img src='../images/heads/head_3.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_a.jpg' width='285' height='319' /><img src='../images/heads/head_2_a.jpg' width='250' height='319' /><img src='../images/heads/head_3_a.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_b.jpg' width='285' height='319' /><img src='../images/heads/head_2_b.jpg' width='250' height='319' /><img src='../images/heads/head_3_b.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_c.jpg' width='285' height='319' /><img src='../images/heads/head_2_c.jpg' width='250' height='319' /><img src='../images/heads/head_3_c.jpg' width='232' height='319' />",
    // "<img src='../images/heads/head_1_d.jpg' width='285' height='319' /><img src='../images/heads/head_2_d.jpg' width='250' height='319' /><img src='../images/heads/head_3_d.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_e.jpg' width='285' height='319' /><img src='../images/heads/head_2_e.jpg' width='250' height='319' /><img src='../images/heads/head_3_e.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_f.jpg' width='285' height='319' /><img src='../images/heads/head_2_f.jpg' width='250' height='319' /><img src='../images/heads/head_3_f.jpg' width='232' height='319' />",
    // "<img src='../images/heads/head_1_g.jpg' width='285' height='319' /><img src='../images/heads/head_2_g.jpg' width='250' height='319' /><img src='../images/heads/head_3_g.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_h.jpg' width='285' height='319' /><img src='../images/heads/head_2_h.jpg' width='250' height='319' /><img src='../images/heads/head_3_h.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_i.jpg' width='285' height='319' /><img src='../images/heads/head_2_i.jpg' width='250' height='319' /><img src='../images/heads/head_3_i.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_j.jpg' width='285' height='319' /><img src='../images/heads/head_2_j.jpg' width='250' height='319' /><img src='../images/heads/head_3_j.jpg' width='232' height='319' />",
    // "<img src='../images/heads/head_1_k.jpg' width='285' height='319' /><img src='../images/heads/head_2_k.jpg' width='250' height='319' /><img src='../images/heads/head_3_k.jpg' width='232' height='319' />",
    // "<img src='../images/heads/head_1_l.jpg' width='285' height='319' /><img src='../images/heads/head_2_l.jpg' width='250' height='319' /><img src='../images/heads/head_3_l.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_m.jpg' width='285' height='319' /><img src='../images/heads/head_2_m.jpg' width='250' height='319' /><img src='../images/heads/head_3_m.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_n.jpg' width='285' height='319' /><img src='../images/heads/head_2_n.jpg' width='250' height='319' /><img src='../images/heads/head_3_n.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_o.jpg' width='285' height='319' /><img src='../images/heads/head_2_o.jpg' width='250' height='319' /><img src='../images/heads/head_3_o.jpg' width='232' height='319' />",
    //"<img src='../images/heads/head_1_p.jpg' width='285' height='319' /><img src='../images/heads/head_2_p.jpg' width='250' height='319' /><img src='../images/heads/head_3_p.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_q.jpg' width='285' height='319' /><img src='../images/heads/head_2_q.jpg' width='250' height='319' /><img src='../images/heads/head_3_q.jpg' width='232' height='319' />",
    "<img src='../images/heads/head_1_r.jpg' width='285' height='319' /><img src='../images/heads/head_2_r.jpg' width='250' height='319' /><img src='../images/heads/head_3_r.jpg' width='232' height='319' />");
 
// *****************************************
// *** Functions to make the arrays work ***
// *****************************************
 
  function makeArray(){
    this.length = makeArray.arguments.length
    for (var i = 0; i < this.length; i++)
      this[i + 1] = makeArray.arguments[i]
  }
 
  function randNum(num) {
    var now = new Date();
    var rand = Math.round(num * Math.cos(now.getTime()));
    if (rand < 0)
       rand = - rand;
       if (rand == 0)
         rand++;
    return rand;
  }
 
// *****************************************
// *** Assign a random entry from the array to a variable ***
// *****************************************
function WriteHeaderCode() {
  var HeadingImageCode = wordArray[randNum(wordArray.length)];
  document.write(HeadingImageCode);
}