function chooseHunk()
{
  var hunks = new Array();

  hunks[0] = "images/header/cwby01.jpg";
  hunks[1] = "images/header/cwby01.jpg";
  hunks[2] = "images/header/cwby02.jpg";
  hunks[3] = "images/header/cwby03.jpg";
  hunks[4] = "images/header/cwby04.jpg";
  hunks[5] = "images/header/cwby05.jpg";
  hunks[6] = "images/header/cwby06.jpg";
  hunks[7] = "images/header/cwby06.jpg";

  return hunks[Math.floor(Math.random()*7)]; 
}

function newHunk()
{
  // This is how Internet Explorer likes it.

  if (document.images['hunkcell'])
  {
    document.images['hunkcell'].src=chooseHunk.call();
    return;
  }
  else
  {
    // This is how Firefox likes it.

    if (document.hunkcell)
    {
      document.hunkcell.src=chooseHunk.call();
      return;
    }
  }
}

function ST(newtitle) 
{
  newHunk.call();

  // This is how Internet Explorer likes it.

  if (document.images['titlecell'])
  {
    document.images['titlecell'].src="images/titles/"+newtitle+".jpg";
    return;
  }
  else
  {
    // This is how Firefox likes it.

    if (document.titlecell)
    {
      document.titlecell.src="images/titles/"+newtitle+".jpg";
      return;
    }
  }
}

function MM_preloadImages() 
{ //v3.0
  var d=document; 

  if (d.images)
  { 
    if (!d.MM_p) 
    {
      d.MM_p=new Array();
    }

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 

    for (i=0; i<a.length; i++)
    {
      if (a[i].indexOf("#")!=0)
      { 
        d.MM_p[j]=new Image; 

        d.MM_p[j++].src=a[i];
      }
    }
  }
} 

function selectDate()
{
  document.ecform.submit();
}


