CRM 2011 JS: Hide Ribbon

function Hide_Ribbon()

{

  setTimeout(function () { window.top.document.getElementById("minimizeribbon").fireEvent("onclick"); }, 0);

}