function getIdProperty(id,property) {
 var styleObject = document.getElementById( id );
 if (styleObject != null) {
  styleObject = styleObject.style;
  if (styleObject[property]) { return styleObject[ property ]; }
 }
 return (styleObject != null) ? styleObject[property] : null;
}

function setIdProperty(id,property,value) {
 var styleObject = document.getElementById( id );
 if (styleObject != null) {
  styleObject = styleObject.style;
  styleObject[ property ] = value;
 }
}

function expandContent(id){
 if (getIdProperty(id, "display") == 'none') {
  setIdProperty(id, 'display', 'block')
 } else {
  setIdProperty(id, 'display', 'none')
 }
}
