// JavaScript Document

// Gallery script.
// With image cross fade effect for those browsers that support it.
// Script copyright (C) 2004 www.cryer.co.uk.
// Script is free to use provided this copyright header is included.
function LoadGallery(pictureName,imageFile,titleCaption,captionText)
{
  var picture = document.getElementById(pictureName);
  if (picture.filters)
  {
    picture.style.filter="blendTrans(duration=1)";
    picture.filters.blendTrans.Apply();
  }
  picture.src = imageFile;
  if (picture.filters)
  {
    picture.filters.blendTrans.Play();
  }
  document.getElementById(titleCaption).innerHTML=captionText;
}

function playSound(trackURL) 
{ 
var playIt=document.getElementById("track"); 
var stopIt=document.getElementById("audio"); 

stopIt.Stop(); 
playIt.innerHTML='<embed src="'+trackURL+'" autostart=true hidden=true id="audio" enablejavascript="true">' 
}

//This credit must stay intact
//Script by http://www.java-Scripts.net and http://wsabstract.com
function doClear(theText) {
     if (theText.value == theText.defaultValue) {
         theText.value = ""
     }
 }
