function hilightMenu()

{

  var url = window.location.href;

  if(url.indexOf('about.php') > 0)

    $('menuAboutUs').morph('color: #FD0001;');

    

  else if(url.indexOf('/pinoypen/') > 0)

    $('menuGallery').morph('color: #FD0001;');

  else if(url.indexOf('events.php') > 0)

    $('menuEvents').morph('color: #FD0001;');

  else if(url.indexOf('roster.php') > 0)

    $('menuRoster').morph('color: #FD0001;');

    

  else if(url.indexOf('buynsell.php') > 0)

    $('menuBuynSell').morph('color: #FD0001;');

    

  else if(url.indexOf('contactus.php') > 0)

    $('menuContactUs').morph('color: #FD0001;');

    

  else

  {

    $('menuHome').morph('color: #FD0001; font-weight: bold;');

    

    //highlight email link

    new Effect.Highlight(document.getElementById("lnkGMail").parentNode, {startcolor: '#c0c0c0', endcolor: '#363430'});

  }

}

function GrowShrink(objControl, index)
{
  var control = "";
  if(document.all)
    control = objControl.innerText.replace(/^\s+|\s+$/g, "");
  else
    control = objControl.textContent.replace(/^\s+|\s+$/g, "");
    
  if(control == "+" || control == " + ")
  {
    document.getElementById("divShort" + index).style.display = "none";
    document.getElementById("divLong" + index).style.display = "block";
    objControl.innerHTML = "-";
  }
  else
  {
    document.getElementById("divShort" + index).style.display = "block";
    document.getElementById("divLong" + index).style.display = "none";
    objControl.innerHTML = "+";
  }

}

function changeHomePagePhoto(obj, showMessage)
{
  var pictitle = document.getElementById("pictitle"); 
  if(document.all)
    pictitle.innerText = obj.title;
  else
    pictitle.textContent = obj.title;
  
  var page = String(obj.getAttribute("page"));

  if(page != "0")
    document.getElementById("albumlink").href = "pinoypen/thumbnails.php?album=" + page;
  else
    document.getElementById("albumlink").href = "#";
    
  document.getElementById("homepic").src = obj.src;
  
  if(showMessage)
    document.getElementById("message").style.display = "inline";
  else
    document.getElementById("message").style.display = "none";
}