// Set opacity that also works in IE.
// In actual production jQuery would be used, but this is for demo purpose.
function setOpacity(elem, value) {
    elem.style.opacity = value;
    elem.style.filter = "alpha(opacity = " + (value * 100) + ")";
}

