
function changeURLVersion1(url, lineage) {
  var branch = "images/Gallery/Francois%20Descendants/" ;
  if (lineage == 2)
     branch="images/Gallery/Pierre Descendants/";
  if (lineage == 3)
     branch ="images/Gallery/Mathias/";
  parent.right.location = branch + url;
}

function changeURL(url, lineage, div) {
  var branch = "images/Gallery/Francois%20Descendants/";
  var urlG;

  if (lineage == 2)
     branch="images/Gallery/Pierre Descendants/";
  if (lineage == 3)
     branch ="images/Gallery/Mathias/";
  urlG = branch + url;
  document.getElementById("picture").innerHTML= "<img border='0' src='" + urlG +"'>";

}

function changePhotoSlide(url) {
alert(url);
   document.getElementById('photoS').innerHTML= "<!--webbot bot='PhotoAlbum' U-Include='photogallery/photo5515/real.htm' clientside TAG='BODY' --><p></p>";
}
function changeImageVersion1(imgSrc, lineage, portrait, alt) {
   var dirName        = "images/Gallery/Francois%20Descendants/"; 
   var currRightImage = parent.right.document.images[0];
   var testURL = parent.right.location.href.lastIndexOf(".")+1;

   if (lineage == 2)
     dirName="images/Gallery/Pierre Descendants/";
   if (lineage == 3)
     dirName="images/Gallery/Mathias/";
   writeStatus("Loading photo ..."); 
 //  if (parent.right.location.href.substring(testURL) != "htm")
   //   createNewPage(portrait, alt);
   createNewPage(portrait, alt);
   parent.right.document.images[0].src = dirName + imgSrc;
   if (alt == "")
     alt = "Please send in info for this photo.  See Contact Us page.";
   parent.right.document.images[0].alt = alt; 
   writeStatus("");
}

function changeImage(imgSrc, lineage, portrait, alt) {
   var dirName  = "images/Gallery/Francois%20Descendants/"; 
   var picture = 1;

   if (lineage == 2)
    dirName="images/Gallery/Pierre Descendants/";
   if (lineage == 3)
     dirName="images/Gallery/Mathias/";
   parent.right.document.images[picture].src = dirName + imgSrc;
}

function writeStatus(message) {
   window.status = message;
}

function createNewPage(portrait, alt) {

	var rightWindow = parent.right.document;

	parent.right.document.close();
	parent.right.document.open();
	parent.right.document.write("<html>");

	rightWindow.write("<head>");
	rightWindow.write("<title>Main Family Tree </title>");
	rightWindow.write("</head>");
	rightWindow.write("<body text='#FFFFFF' bgcolor='#000000'>");
	rightWindow.write("<script language='JavaScript' src='scripts/imageM.js'></script>");
	rightWindow.write("<p align='center'>");
	rightWindow.write("<p align='center'>");
 	rightWindow.write("<p align='center'>");
 	rightWindow.write("<p align='center'>");
	rightWindow.write("<p align='center'>");
	rightWindow.write("<p align='center'>");

    if (portrait == 1) 
	   rightWindow.write("<img border='0' src='images/crest1.gif' name='swapImage' width='390' height='398' alt=alt></p>");
    else {
	   rightWindow.write("<img border='0' src='images/crest1.gif' name='swapImage' width='240' height='302' alt=alt></p>");
    }
	rightWindow.write("</body>");
	rightWindow.write("</html>");
}
//-->
