var m=parseInt(Math.random()*4);
  m=(isNaN(m))?0:m;

function writeHomeImage(){
  document.write('<img src="/SiteCollectionImages/HomePageBanners/home_image'+(m+1)+'.jpg" border="0" alt="Supplying High Quality Tools and Services to the Drilling Industry" >');
}

var k=parseInt(Math.random()*22);
  k=(isNaN(k))?0:k;

function writeSubImage(){
  document.write('<img src="/SiteCollectionImages/LeftColumnImages/subphoto'+(k+1)+'.jpg" border="0">');
}

var j=parseInt(Math.random()*2);
  j=(isNaN(j))?0:j;
  
function writeTopNoTagImage(){
  list = new Array();
  list[list.length]='images/float_spool_notag.png';
  list[list.length]='images/float_bop_notag.png';
  document.write("<img src='"+list[j]+"' width='215' height='210'>");
}

function writeTopImage(){
  list = new Array();
  list[list.length]='images/float_spool.png';
  list[list.length]='images/float_bop.png';
  document.write("<img src='"+list[j]+"' border='0' usemap='#Map' width='215' height='273' />");
}