    function fHideShow(obj) 
    { 
        if (parseInt(navigator.appVersion) >= 5 || navigator.appVersion.indexOf["MSIE 5"] != -1) 
        {
            if (obj.style.display=="none") 
                 obj.style.display="";
            else
                 obj.style.display="none";
        }
    } 
    
    function fJustHide(obj) 
    { 
        if (parseInt(navigator.appVersion) >= 5 || navigator.appVersion.indexOf["MSIE 5"] != -1) 
        {
            obj.style.display="none";
        }
    } 
    
    function activate(whichID)
    {
        // First Hide all
        fHideAll();
        
        // The reveal selected
        fHideShow(document.getElementById(whichID));
    }
    
    function ac2vate(whichID)
    {
        // First Hide all
        f2HideAll();
        
        // The reveal selected
        fHideShow(document.getElementById(whichID));
    }

    function acTEAvate(whichID, hideMenu)
    {
        // First Hide all
        if(hideMenu == "hideMenus") {
            fHideAll();
            f2HideAll();
        }
        fJustHide(document.getElementById("daFlash"));
        fJustHide(document.getElementById("Biography"));
        fJustHide(document.getElementById("Pricing"));
        fJustHide(document.getElementById("Contact"));
        
        // The reveal selected
        fHideShow(document.getElementById(whichID));
    }

    function fFancyBorder(whichID)
    {
        document.getElementById(whichID).style.border='1px solid white';
        setTimeout("document.getElementById('" + whichID + "').style.border='1px solid #777777'",250);
        setTimeout("document.getElementById('" + whichID + "').style.border='1px solid #5e5e5e'",350);
        setTimeout("document.getElementById('" + whichID + "').style.border='1px solid #444444'",450);
        setTimeout("document.getElementById('" + whichID + "').style.border='0px solid red'",550);
    }
    









function send2swf(strIncoming)
{
    //alert("gallery_data.asp?p=" + strIncoming);
     
    var flashMovie=getFlashMovieObject("myGallery");
    flashMovie.SetVariable("/:xmlPath", "gallery_data.asp?p=" + strIncoming);
    flashMovie.Play();
}


function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  } 
}