I have a portal and in master page I was being asked to hide the whole ribbon so i did this. But since then i am having so many problems like if i have a custom list with a document to attach option the modal dialog opens but no buttons inside and similarly i have a link which opens a custom aspx form embed inside webpartpage the modal dialog doesnt appear ..only site collection administrator can see the modal dialogues. Someone advised me not to hide the ribbon and only hide site action. So how to hide only site action?
Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" Permissions="ManageWeb">
<script type="text/javascript">
document.getElementById("s4-ribbonrow").style.display = "block";
</script>
</Sharepoint:SPSecurityTrimmedControl>