// JavaScript Document workaround.js
var bVer = parseInt(navigator.appVersion);
var isDOM=(document.getElementById)?1:0;
var isNS=(document.layers)?1:0;
var isIE=(document.all)?1:0;

function display(str) {
  	var id = 'spanPB'
	if (isNS) { 
			
	  with(document.layers[id].document)
		{
		  open();
		  write(str);
		  close();
		}
	} else if(isDOM) {
			document.getElementById(id).innerHTML=str;
	} else {
			document.all[id].innerHTML=str;
	}
	
}

function swapImage(newText, newImage) {
  thePhoto.src = newImage;
  
  if (bVer < 4) { // old browser
    return; // terminate the function
  }  

  display(newText); // update the code
}
