//Javascript functions used in several html files.within the Firebreak Equipment website.
//Search engines assign a higher relevancy score to html pages where keywords appear "high" on the page.


//Highlight site button and change cursor style to hand

function tsiteButtonLightHand(button)
{
  if (document.getElementById) 
  {
    showHand(button);
    button.bgColor=                '#c7aa7d';
    button.style.borderTopColor=   '#806a4b';
    button.style.borderRightColor= '#ece5c6';
    button.style.borderLeftColor=  '#806a4b';
    button.style.borderBottomColor='#ece5c6';
  }
  return true;
}

function siteButtonLightHand(button)
{
  if(document.getElementById) 
  {
    showHand(button);
    button.className = "selectedSiteButton";
  }
  return true;
}

//Return site button colour to normal

function tsiteButtonNormal(button,buttoncolor)
{
  if (document.getElementById) 
  {
    button.bgColor=buttoncolor;
    button.style.borderTopColor=   '#ece5c6';
    button.style.borderRightColor= '#806a4b';
    button.style.borderLeftColor=  '#ece5c6';
    button.style.borderBottomColor='#806a4b';
  }
  return true;
}

function siteButtonNormal(button)
{
  if (document.getElementById) 
  {
    button.className = "siteButton";
  }


  return true;
}

//Change cursor style to hand when over element

function showHand(element)
{
  if (document.getElementById) 
    element.style.cursor='hand';
  return true;
}

function loadPage(filename)
{
  if (document.getElementById)
    {
    parent.location=filename;
    }
  return true;
}
