Code:
<script>
	if (window.location.href == window.top.location.href) {
  	window.top.location.replace('login_success.php');
</script>
<SCRIPT>
var message='';
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function('return false')
</SCRIPT>
<script language="javascript">

function LogOut (){
	var del = confirm("Are you sure you want to log out?");
	if (del == true){
		var loc = "logout.php";
		parent.top.location.href=loc;
	}
}

function Vote(){
var popurl="voteforus.php"
winpops=window.open(popurl,"","width=650,height=320,")
}
</script>
	<link rel="stylesheet" type="text/css" href="menu/sdmenu.css" />
	<script type="text/javascript" src="menu/sdmenu.js"></script>
	<script type="text/javascript">
	// <![CDATA[
	var myMenu;
	window.onload = function() {
		myMenu = new SDMenu("my_menu");
		myMenu.init();
	};
	// ]]>
	</script>
LogOut(), Vote(), and <script>
if (window.location.href == window.top.location.href) {
window.top.location.replace('login_success.php');
</script> no longer work since I added the rest of the JS. Is there some kind of order it needs to be in or something?