//--------------------------------------------//
//    Hector Heathwood Javascript Controls    //
//--------------------------------------------//

var thisid;

delay = setTimeout("RAD_unhide()", 3000);

function RAD_hideall(){
  if (document.all){
    document.all['whatsnew'].style.display = 'none';
    document.all['exhibitions'].style.display = 'none';
    document.all['galleries'].style.display = 'none';
  } else if (document.getElementById){
    document.getElementById('whatsnew').style.display = 'none';
    document.getElementById('exhibitions').style.display = 'none';
    document.getElementById('galleries').style.display = 'none';
  }
}

function RAD_unhide(){
  RAD_hideall();
  id = thisid;
  if (document.all){
    if (id == 'whatsnew' || id == 'exhibitions' || id == 'galleries'){
      document.all[id].style.display = 'block';
    }
  } else if (document.getElementById){
    if (id == 'whatsnew' || id == 'exhibitions' || id == 'galleries'){
      document.getElementById(id).style.display = 'block';
    }
  }
}

function RAD_hide(){
  delay = setTimeout('RAD_unhide()', 400);
}

function RAD_show(id1){
  clearTimeout(delay);
  if (id1 == 'whatsnew'){
    id2 = 'exhibitions';
    id3 = 'galleries';
  } else if (id1 == 'exhibitions'){
    id2 = 'whatsnew';
    id3 = 'galleries';
  } else if (id1 == 'galleries'){
    id2 = 'whatsnew';
    id3 = 'exhibitions';
  } else {
    RAD_hideall();
  }
  if (document.all){
    if (id1 == 'whatsnew' || id1 == 'exhibitions' || id1 == 'galleries'){
      document.all[id1].style.display = 'block';
    document.all[id2].style.display = 'none';
    document.all[id3].style.display = 'none';
    }
  } else if (document.getElementById){
    if (id1 == 'whatsnew' || id1 == 'exhibitions' || id1 == 'galleries'){
      document.getElementById(id1).style.display = 'block';
    document.getElementById(id2).style.display = 'none';
    document.getElementById(id3).style.display = 'none';
    }
  }
}

function bluehi(id){
  if (document.all){
    document.all[id].style.borderColor = '#6666FF';
  } else if (document.getElementById){
    document.getElementById(id).style.borderColor = '#6666FF';
  }
}

function bluelo(id){
  if (document.all){
    document.all[id].style.borderColor = '#0000FF';
  } else if (document.getElementById){
    document.getElementById(id).style.borderColor = '#0000FF';
  }
}

function redhi(id){
  if (document.all){
    document.all[id].style.borderColor = '#CC0000';
  } else if (document.getElementById){
    document.getElementById(id).style.borderColor = '#CC0000';
  }
}

function redlo(id){
  if (document.all){
    document.all[id].style.borderColor = '#990000';
  } else if (document.getElementById){
    document.getElementById(id).style.borderColor = '#990000';
  }
}

function purplehi(id){
  if (document.all){
    document.all[id].style.borderColor = '#CC00CC';
  } else if (document.getElementById){
    document.getElementById(id).style.borderColor = '#CC00CC';
  }
}

function purplelo(id){
  if (document.all){
    document.all[id].style.borderColor = '#880088';
  } else if (document.getElementById){
    document.getElementById(id).style.borderColor = '#880088';
  }
}