function toggle(id) {
    var div = document.getElementById(id);
    div.style.display = div.style.display && div.style.display == "block" ? "none" : "block";
}
function adjustPrice() {
    var price = document.getElementById("prezzo");
    if (!price) {
        return;
    }
    var size = 42;
    while (size > 18 && (price.offsetWidth > 90 || price.offsetHeight > 2 * size)) {
        size-= 2;
        price.style.fontSize = size + "px";
    }
    price.style.visibility = "visible";
    var wrapper = document.getElementById("wrapper_prezzo");
    wrapper.style.marginTop = 50 - (size / 2) + "px";
}

