// JavaScript Document

function showPic(whichpic)
{
  if (document.getElementById)
  {
    document.getElementById('placeholder').src = whichpic.href;
    if (whichpic.title)
	{
	  document.getElementById('mainbody').childNodes[0].nodeValue = whichpic.title;
    }
	else
	{
      document.getElementById('mainbody').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
	}
    return false;
  } 
  else
  {
    return true;
  }
}

function showPic2(whichpic)
{
  if (document.getElementById)
  {
    document.getElementById('placeholder2').src = whichpic.href;
    if (whichpic.title)
	{
	  document.getElementById('mainbody2').childNodes[0].nodeValue = whichpic.title;
    }
	else
	{
      document.getElementById('mainbody2').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
	}
    return false;
  } 
  else
  {
    return true;
  }
}

function showPic3(whichpic)
{
  if (document.getElementById)
  {
    document.getElementById('placeholder3').src = whichpic.href;
    if (whichpic.title)
	{
	  document.getElementById('mainbody3').childNodes[0].nodeValue = whichpic.title;
    }
	else
	{
      document.getElementById('mainbody3').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
	}
    return false;
  } 
  else
  {
    return true;
  }
}

function showPic4(whichpic)
{
  if (document.getElementById)
  {
    document.getElementById('placeholder4').src = whichpic.href;
    if (whichpic.title)
	{
	  document.getElementById('mainbody4').childNodes[0].nodeValue = whichpic.title;
    }
	else
	{
      document.getElementById('mainbody4').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
	}
    return false;
  } 
  else
  {
    return true;
  }
}

function showPic5(whichpic)
{
  if (document.getElementById)
  {
    document.getElementById('placeholder5').src = whichpic.href;
    if (whichpic.title)
	{
	  document.getElementById('mainbody5').childNodes[0].nodeValue = whichpic.title;
    }
	else
	{
      document.getElementById('mainbody5').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
	}
    return false;
  } 
  else
  {
    return true;
  }
}


function showPic6(whichpic)
{
  if (document.getElementById)
  {
    document.getElementById('placeholder6').src = whichpic.href;
    if (whichpic.title)
	{
	  document.getElementById('mainbody6').childNodes[0].nodeValue = whichpic.title;
    }
	else
	{
      document.getElementById('mainbody6').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
	}
    return false;
  } 
  else
  {
    return true;
  }
}

