<!-- Begin
function showPhoto(img){
  thePhoto= new Image();
  thePhoto.src=(img);
  Controller(img);
}
function Controller(img){
  if((thePhoto.width!=0)&&(thePhoto.height!=0)){
    viewPhoto(img);
  }
  else{
    invalidPhoto="Controller('"+img+"')";
    interval=setTimeout(invalidPhoto,20);
  }
}
function viewPhoto(img){
  popWidth=thePhoto.width+20;
  popHeight=thePhoto.height+20;
  popLeft = (screen.width - popWidth) / 2;
  popTop = (screen.height - popHeight) / 2;
  popParams='height='+popHeight+',width='+popWidth+',top='+popTop+',left='+popLeft;
  popWin = window.open(img,"TourPhoto",popParams);
  if (parseInt(navigator.appVersion) >= 4) { popWin.window.focus(); }
}
//  End -->
