function setnsr()
{
var obody = document.body;
sr.style.height = obody.clientHeight - nsr.clientHeight - 1;
}

function setall ()
{
grp0.style.display = "none";
grp1.style.display = "none";
grp2.style.display = "none";
grp3.style.display = "none";
grp4.style.display = "none";
grp5.style.display = "none";
grp6.style.display = "none";
grp7.style.display = "none";
grp8.style.display = "none";
}

function setone (dow,onoff) 
{
// turn display style for one group on ("") or off ("none")
setall();
document.location="#"; //make sure we're at top of page
switch (dow)
  {
  case 0 : grp0.style.display = onoff; break;
  case 1 : grp1.style.display = onoff; break;
  case 2 : grp2.style.display = onoff; break;
  case 3 : grp3.style.display = onoff; break;
  case 4 : grp4.style.display = onoff; break;
  case 5 : grp5.style.display = onoff; break;
  case 6 : grp6.style.display = onoff; break;
  case 7 : grp7.style.display = onoff; break;
  case 8 : grp8.style.display = onoff;
  }
}

//email protector
var edress = 'dgash_at_hypertrain_dot_com';
function get_edress()
{
var re= /_at_/gi;
edress = edress.replace(re,'@');
var re= /_dot_/gi;
edress = edress.replace(re,'.');
var the_link="mai" + "lto" +":"+edress+"?subject=The%20Quimbys&body=" ;
window.location=the_link;
}

//niftyplayer audio clip loader
function loadclip(which)
{
//alert(which);
niftyplayer('niftyplayer1').load(which);
}
