function swapImg(objid)
{
  var imgobj = document.getElementById(objid);
  var imglarge = document.getElementById("imagePoster"); //large photo img
  var captionobj = document.getElementById("caption"); //description p

  aimgname = (imgobj.src).split("/");
  imgname = aimgname[aimgname.length-1];
  captiontext = imgobj.getAttribute('alt');

  imglarge.src = "/images/company/large_photos/" + imgname;
  captionobj.innerHTML=captiontext;

  return false;
}
var currentpage = 1;
var pagecount = 2;

function swapPage()
{
  for(i=1;i<pagecount+1;i++)
  {
    tmpname = "thumbs" + i;
    document.getElementById(tmpname).style.display = "none";
  }

  currentpage = (currentpage == 2) ? 0 : currentpage;
  currentpage++;
  tmpname = "thumbs" + currentpage;
  document.getElementById(tmpname).style.display = "block";

  return false;
}

