<!--
// to display specific image for particular button 
// on participate page or video page
function Show (index, action)
{
  var source;
  switch (index)
  {
  	// for hands button on participate page - up, down and click positions
	case "hands":
      switch (action)
      {
        case "out":   source = "./photos/highclasp_participate.jpg";  break;
        case "over":  source = "./photos/lowclasp_participate.jpg";  break;
        case "click": source = "./photos/hollowclasp_participate.jpg";  break;
      }
      break;
  	// [Deprecated] for sun button on participate page - up, down and click positions
    case "sun":
      switch (action)
      {
        case "out":   source = "./photos/highsun_participate.jpg";  break;
        case "over":  source = "./photos/lowsun_participate.jpg";  break;
        case "click": source = "./photos/hollowsun_participate.jpg";  break;
      }
      break;
  	// for donation button - up, down and click positions
    case "donation":
      switch (action)
      {
        case "out":   source = "./photos/highdonation_participate.jpg";  break;
        case "over":  source = "./photos/lowdonation_participate.jpg";  break;
        case "click": source = "./photos/hollowdonation_participate.jpg";  break;
      }
      break;
  	// for video button - up, down and click positions
    case "video":
    case "videopt1":
    case "videopt2":
    case "videopt3":
    case "videopt4":
      switch (action)
      {
        case "out":   source = "./titles/videohigh_media.gif";  break;
        case "over":  source = "./titles/videolow_media.gif";  break;
        case "click": source = "./titles/videohollow_media.gif";  break;
      }
      break;
  	// for audio button on about us page - up, down and click positions
    case "audio_aboutus":
      switch (action)
      {
        case "out":   source = "./titles/audiohigh_aboutus.gif";  break;
        case "over":  source = "./titles/audiolow_aboutus.gif";  break;
        case "click": source = "./titles/audiohollow_aboutus.gif";  break;
      }
      break;
  	// for audio button on being artists page - up, down and click positions
    case "audio_beingartists":
      switch (action)
      {
        case "out":   source = "./titles/audiohigh_beingartists.gif";  break;
        case "over":  source = "./titles/audiolow_beingartists.gif";  break;
        case "click": source = "./titles/audiohollow_beingartists.gif";  break;
      }
      break;
  	// for audio button on participate page - up, down and click positions
    case "audio_participate":
      switch (action)
      {
        case "out":   source = "./titles/audiohigh_participate.gif";  break;
        case "over":  source = "./titles/audiolow_participate.gif";  break;
        case "click": source = "./titles/audiohollow_participate.gif";  break;
      }
      break;
  	// for logo button on home page - up, down and click positions
    case "newlogo1":
    case "newlogo2":
    case "newlogo3":
    case "newlogo4":
    case "newlogo5":
    case "newlogo6":
    case "newlogo7":
    case "newlogo8":
    case "newlogo9":
    case "newlogo10":
    case "newlogo11":
    case "newlogo12":
      switch (action)
      {
        case "out":   source = "./highLogo.jpg";  break;
        case "over":  source = "./lowLogo.jpg";  break;
        case "click": source = "./hollowLogo.jpg";  break;
      }
      break;
  }
  // load specific image for button
  if (document.all || document.layers)
    document.images[index].src = source;
  else if (document.getElementById)
    document.getElementById("id"+index).src = source;
}

// after button clicked perform this action
function elapsedTime (index)
{
  // for donation button action, select specific amount
  if (index == "donation")
  {
    for (var i=0; i<document.form1.amt.length; i++)
       if (document.form1.amt[i].checked == true)
       {
         if (i == document.form1.amt.length-1)
         {
           document.form2.amount.value = document.form1.other.value;
           if (document.form2.amount.value == " ") document.form2.amount.value = "0";
         }
         else
           document.form2.amount.value = document.form1.amt[i].value;
         break;
       }
  }
  // show click iage on button
  Show (index, "click");
  // perform next action - final loading of page or open new window (audio and video)
  setTimeout ("gotoNewPage('"+index+"')", 1000);
  return true;
}

function gotoNewPage (index)
{
  // go to specific page
  if (index == "hands")
    window.location = "./mail.html";
  else if (index == "sun")
    window.location = "./ourvoicebio/email.html?name=Jim+Stewart&page=participate&subject=Art+of+Living+Participate+page&";
  else if (index == "donation")
    window.document.form2.submit ();
  else if (index == "newlogo1")
    window.location = "../aboutus.html";
  else if (index == "newlogo2")
    window.location = "../mystery.html";
  else if (index == "newlogo3")
    window.location = "../beingartists.html";
  else if (index == "newlogo4")
    window.location = "../now.html";
  else if (index == "newlogo5")
    window.location = "../media.html";
  else if (index == "newlogo6")
    window.location = "../participate.html";
  // open new window for audio
  else if (index.indexOf ("audio") > -1)
	window.open ("./video.html","audio",
	  "left=240,screenX=240,top=40,screenY=80,width=500,height=625");
  // open new  window for video
  else
	window.open ("./video.html",index,
	  "left=240,screenX=240,top=40,screenY=80,width=500,height=625");
}
//-->

