﻿	function m0() {
 			location.href="/index.php";
 	}

	function m1() {
			getTopURL("m1_1");
 	}

	function m2() {
 			getTopURL("m2_1");
 	}

 	function m3() {
 			getTopURL("m3_1");
	}

 	function m4() {
 			getTopURL("m4_1");
 	}

 	function m5() {
 			getTopURL("m5_1");
 	}
	
	function m6() {
 			getTopURL("m6_1");
 	}
	function m7() {
 			getTopURL("m7_1");
 	}
	function m8() {
 			getTopURL("m8_1");
 	}
	function getTopURL(param) {

		var getURL = "/index.php";
		switch(param){
			case "m1_1": getURL = "account.php?cp=rankall"; break;		
			case "m2_1": getURL = "more.php"; break;
			case "m3_1": getURL = "account.php?cp=register"; break;
			case "m4_1": getURL = "account.php?cp=download"; break;
			case "m5_1": getURL = "itemshop.php"; break; // /mart
			case "m6_1": getURL = "http://www.vegateams.net"; break;
			case "m7_1": getURL = "itemshop.php"; break; // /mart/itemorder.aspx

			
			default :
			getURL = "/index.php";
		}
		
		if (getURL == "") return;
		
		location.href=getURL;

	}
	
	/*
	javascript:alert('Soon to open')
	/mart/itemorder.aspx
		Left Flash Link
	*/
	function getLeftURL(param) {

		var getURL = "/index.php";

		switch(param){
			case "extend_1": getURL = "manualreborn.php"; break;
			case "extend_2": getURL = "resetstats.php"; break;
			case "extend_3": getURL = "changeschool.php"; break;
			case "extend_4": getURL = "resetpkpenalty.php"; break;
			case "extend_5": getURL = "goldtopoints.php"; break;
			case "extend_6": getURL = "cleaninventory.php"; break;
			case "extend_7": getURL = "votetocrpoints.php"; break;
			case "extend_8": getURL = "itemshoplog.php"; break;
			
			default : getURL = "/index.php";
		}
		
		if (getURL == "") return;
		location.href=getURL;

	}

