function KeywordSearch()
{
   var obj = window.document.getElementById( 'txtSiteSearch' );
   window.location.href = gsAppPath + '/search.aspx?sp-q=' + obj.value;
}

var gbIsShortBio = true;

function ToggleBioDescription()
{
   var divExpandedBio = window.document.getElementById( 'divExpandedBio' );
   var divShortBio    = window.document.getElementById( 'divShortBio' );
   var img = window.document.getElementById( 'imgBioToggle' );
   
   if( gbIsShortBio )
   {
      gbIsShortBio = false;
      divExpandedBio.style.display = 'block';
      divShortBio.style.display = 'none';
      img.src = '../images/sub-pages/btn_view-bio-close.gif';
   }
   else
   {
      gbIsShortBio = true;
      divExpandedBio.style.display = 'none';
      divShortBio.style.display = 'block';
      img.src = '../images/sub-pages/btn_view-bio.gif';
   }
}

function FireButtonClickOnEnter( buttonId )
{
   if( window.layers )
   {
      return;
   }

   if( window.event.keyCode == 13 )
   {
      var obj = window.document.getElementById( buttonId );
      obj.click();
      event.returnValue = false;
   }
}

function iSwap ( id, pic ) {
   eval("document." + id + ".src = '" + pic + "'");
}
