var arrMenu_1 = new Array();
var arrMenu_2 = new Array();
var arrMenu_3 = new Array();
var intShowing_1 = 0;
var intShowing_2 = 0;

function MenuAction (int_menu_id) {
	// document.getElementById('SubMenu_'+int_menu_id).style.display = 'block';
	alert('Old MenuAction Call');
}

function MenuAction_1 (int_menu_id) {
	// hide all level one menus
		for(intMenuId in arrMenu_1) {
			document.getElementById('SubMenu_'+intMenuId).style.display = 'none';
		}
	
	// check what's showing
		if(int_menu_id == intShowing_1) {
			// hide re-clicked item (no need to do anything)
			// set selected
				intShowing_1 = 0;
		} else {
			// show selected
				document.getElementById('SubMenu_'+int_menu_id).style.display = 'block';

			// set selected
				intShowing_1 = int_menu_id;
		}
}

function MenuAction_2 (int_menu_id) {
	// hide all level two menus
		for(intMenuId in arrMenu_2) {
			document.getElementById('SubMenu_'+intMenuId).style.display = 'none';
		}
		
	// check what's showing
		if(int_menu_id == intShowing_2) {
			// hide re-clicked item (no need to do anything)
			// set selected
				intShowing_2 = 0;
		} else {
			// show selected
				document.getElementById('SubMenu_'+int_menu_id).style.display = 'block';
			// set selected
				intShowing_2 = int_menu_id;
		}
}

	
function popup_privacy() {
	window.open('/store/privacy_popup','Privacy','width=600, height=500, resizable=yes, scrollbars=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, copyhistory=no')
}