// *****************************************************************************
// **                                SETTINGS                                 **
// *****************************************************************************

// 'linka' use this if part of the URL is the same in ALL the links
// In this example all the files are in a subfolder called 'pages'
linka='';

// the filename of the page the menu appears in eg 'menu.html'
thisPage='myaccount_nav.shtml';

// Do you want to use images for the category bullets?
// If so then specify the path to your images folder from the menu page
imgPath='/myaccount/images/';

// do you want to use images for the category bullets?
lev1img='yes';					// insert yes or no

// give image names and dimensions
lev1OpName='open.gif';			// open image name
lev1OpHeight='10';				// image height
lev1OpWidth='10';				// image width

lev1ClosName='closed.gif';		// closed image name
lev1ClosHeight='10';			// image height
lev1ClosWidth='10';				// image width

// do you want to use images for the sub-category bullets?
lev2img='yes';		// insert yes or no

// give image names and dimensions
lev2Name='bullet.gif';			// image name
lev2Height='10';				// image height
lev2Width='16';					// image width

// do you want to use a text character for the sub-category bullets?
lev2Char='no';		// insert yes or no

// set bullet character for level 2 bullets
bullet = '&#155; ';

// base target - the frame that the links are targetting
base = 'main';

// *****************************************************************************
// **                             END OF SETTINGS                             **
// *****************************************************************************

// pulls 'page' variable out of URL - do not alter
	var x = 0
	page = location.search.substr(1).split("?")
	for (x=0;x<=page.length;x++) {
		eval(page)
		}
page = escape(page);
page = page.slice(7);

// do not alter this bit
function subMenu(name,linkb) {
 this.name = name;
 this.linkb = linkb;
}
document.write('<BASE target="' + base + '">');

// *****************************************************************************
// **                             BUILD MENU DATA                             **
// *****************************************************************************

// Domain Menu
if (page=='dom') {
thisMenu = new Array();
thisMenu[0] = new subMenu('List Domains','/regyzone/servlet/ListDomainPage');
thisMenu[1] = new subMenu('Query Domain','/regyzone/servlet/QueryDomainPage');
thisMenu[2] = new subMenu('Modify Domain','/regyzone/servlet/ModifyDomainPage');
thisMenu[3] = new subMenu('Renew Domain','https://www.encirca.com/html/renew.shtml');
}

// Customer Menu
if (page=='cus') {
thisMenu = new Array();
thisMenu[0] = new subMenu('List Customers','/regyzone/servlet/ListCustomerPage');
thisMenu[1] = new subMenu('Query Customer','/regyzone/servlet/QueryCustomerPage');
thisMenu[2] = new subMenu('Modify Customer','/regyzone/servlet/ModifyCustomerPage');
}

// Contacts Menu
if (page=='con') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Add Contact','/regyzone/servlet/AddContactPage');
thisMenu[1] = new subMenu('List Contacts','/regyzone/servlet/ListContactPage');
thisMenu[2] = new subMenu('Modify / Query Contact','/regyzone/servlet/QueryContactPage');
}

// NameServers Menu
if (page=='nsv') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Add Nameservers','/regyzone/servlet/AddNameServerPage');
thisMenu[1] = new subMenu('List Nameservers','/regyzone/servlet/ListNSPage');
thisMenu[2] = new subMenu('Query Nameservers','/regyzone/servlet/QueryNameServerPage');
thisMenu[3] = new subMenu('Modify Nameservers','/regyzone/servlet/ModifyNameServerPage');
}

// Forwarding Menu
if (page=='fwd') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Add E-Mail Forwarding','/bin/addoptions_top.shtml');
thisMenu[1] = new subMenu('Add Web Forwarding','/bin/addoptions_top.shtml');
}

// Transfers Menu
if (page=='trs') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Account Moves','/regyzone/servlet/InterTransReq');
thisMenu[1] = new subMenu('Pending Moves','/regyzone/servlet/ListInternalTransferDom');
thisMenu[2] = new subMenu('Create New Account','/mm5/merchant.mvc?Screen=ACNT&Order=0&Store_Code=E');
}

