// JavaScript Document
function doLightbox() {
  if (!document.getElementsByTagName) return false;
  var poplinks=document.getElementsByTagName("a");
  for (var i=0; i < poplinks.length; i++) {
    if (poplinks[i].className.match("lightboxnote")) {
      poplinks[i].onclick=function() {
        return hs.htmlExpand(this, { contentId: 'highslide-html-2', anchor: 'auto'} );
      }
    }
	else if (poplinks[i].className.match("lightboxch8note")) {
      poplinks[i].onclick=function() {
        return hs.htmlExpand(this, { contentId: 'highslide-html-2', anchor: 'top right'} );
      }
    }
	else if (poplinks[i].className.match("lightboxch8chart")) {
      poplinks[i].onclick=function() {
        return hs.htmlExpand(this, { contentId: 'highslide-html-3', anchor: 'right', objectType: 'iframe',	objectWidth: 535, objectHeight: 500} );
      }
    }
    else if (poplinks[i].className.match("lightboxfigtab")) {
      poplinks[i].onclick=function() {
       return hs.htmlExpand(this, { contentId: 'highslide-html-1', align: 'center'} );
      }
    }
	else if (poplinks[i].className.match("highslide")) {
      poplinks[i].onclick=function() {
       return hs.expand(this, {captionId: 'caption1'} );
      }
    }
  }
}


window.onload=doLightbox;
