// interactivity for bloodybunny

function toggle(id){
  var elm = document.getElementById(id);
  if(getStyle(elm,'display') != 'none'){
    elm.style.display = 'none';
  } else {
    elm.style.display = 'block';
  }
}

function getStyle(oElm, strCssRule){
  var strValue = "";
  if(document.defaultView && document.defaultView.getComputedStyle){
    strValue = document.defaultView.getComputedStyle(oElm, "").getPropertyValue(strCssRule);
  }
  else if(oElm.currentStyle){
    strCssRule = strCssRule.replace(/\-(\w)/g, function (strMatch, p1){
	return p1.toUpperCase();
      });
    strValue = oElm.currentStyle[strCssRule];
  }
  return strValue;
}

