document.write("\r\n\r\n") var widget = document.getElementById('uservoice_top3'); var width = widget.clientWidth; var height = width > 300 ? 180 : (-0.733 * width) + 400 widget.height = height + 'px';