style1=[ // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"808080",// Mouse Off Font Color
"",      // Mouse Off Background Color
"008080",// Mouse On Font Color
"151515",// Mouse On Background Color
"151515",// Menu Border Color 
11,      // Font Size (default is px but you can specify mm, pt or a percentage)
"normal",// Font Style (italic or normal)
"bold",// Font Weight (bold or normal)
"Verdana, Arial, Helvetica, sans-serif",// Font Name
5,       // Menu Item Padding
"images/Arrow.gif",// Sub Menu Image (Leave this blank if not needed)
,// 3D Border & Separator bar
"",// 3D High Color
"",// 3D Low Color
"",// Current Page Item Font Color (leave this blank to disable)
"",// Current Page Item Background Color (leave this blank to disable)
"",// Top Bar image (Leave this blank to disable)
"",// Menu Header Font Color (Leave blank if headers are not needed)
"",// Menu Header Background Color (Leave blank if headers are not needed)
]
style2=[// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"ffffff",// Mouse Off Font Color
"151515",// Mouse Off Background Color
"008080",// Mouse On Font Color
"151515",// Mouse On Background Color
"151515",// Menu Border Color 
11,     // Font Size (default is px but you can specify mm, pt or a percentage)
"normal",// Font Style (italic or normal)
"normal",// Font Weight (bold or normal)
"Verdana, Tahoma, Arial, Helvetica, sans-serif",// Font Name
3,// Menu Item Padding
"images/Arrow.gif",// Sub Menu Image (Leave this blank if not needed)
,// 3D Border & Separator bar
"",// 3D High Color
"",// 3D Low Color
"",// Current Page Item Font Color (leave this blank to disable)
"",// Current Page Item Background Color (leave this blank to disable)
"",// Top Bar image (Leave this blank to disable)
"",// Menu Header Font Color (Leave blank if headers are not needed)
"",// Menu Header Background Color (Leave blank if headers are not needed)
]

 if ((GlobalUser == "2") || (GlobalUser == "3")){
  if (GlobalLogin == "0"){
addmenu(menu=[// This is the array that contains your menu properties and details
"topmenu",// Menu Name - This is needed in order for the menu to be called
46,// Menu Top - The Top position of the menu in pixels
pldiv.offsetLeft + 422,// Menu Left - The Left position of the menu in pixels
,// Menu Width - Menus width in pixels
0,// Menu Border Width 
,// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,// Properties Array - this is set higher up, as above
1,// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
,// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1,// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,// Position of TOP sub image left:center:right
1,// Now Obsolete
,// Right To Left - Used in Hebrew for example. (1=on/0=off)
,// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,// Reserved for future use
,// Reserved for future use
,// Reserved for future use
,"Home","show-menu=Home",,,0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Auction","show-menu=Auction",,,0 
,"Resellers","show-menu=Resellers",,,0
,"Users","show-menu=Users",,,0
,"News","News.asp",,,0
,"Faq","Faq.asp",,,0
,"Support","Support.asp",,,0
,"Contact","Contact.asp",,,0
,"Login","Javascript:DoLogin()",,,0
//,"Help","show-menu=Help",,,0
])
}
else{
addmenu(menu=[// This is the array that contains your menu properties and details
"topmenu",// Menu Name - This is needed in order for the menu to be called
46,// Menu Top - The Top position of the menu in pixels
pldiv.offsetLeft + 422,// Menu Left - The Left position of the menu in pixels
,// Menu Width - Menus width in pixels
0,// Menu Border Width 
,// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,// Properties Array - this is set higher up, as above
1,// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
,// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1,// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,// Position of TOP sub image left:center:right
1,// Now Obsolete
,// Right To Left - Used in Hebrew for example. (1=on/0=off)
,// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,// Reserved for future use
,// Reserved for future use
,// Reserved for future use
,"Home","show-menu=Home",,,0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Auction","show-menu=Auction",,,0 
,"Resellers","show-menu=Resellers",,,0
,"Users","show-menu=Users",,,0
,"News","News.asp",,,0
,"Faq","Faq.asp",,,0
,"Support","Support.asp",,,0
,"Contact","Contact.asp",,,0
,"Logout","Javascript:DoLogout()",,,0
//,"Help","show-menu=Help",,,0
])
}
}
else {
if (GlobalLogin == "0"){
addmenu(menu=[// This is the array that contains your menu properties and details
"topmenu",// Menu Name - This is needed in order for the menu to be called
46,// Menu Top - The Top position of the menu in pixels
pldiv.offsetLeft + 422,// Menu Left - The Left position of the menu in pixels
,// Menu Width - Menus width in pixels
0,// Menu Border Width 
,// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,// Properties Array - this is set higher up, as above
1,// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
,// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1,// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,// Position of TOP sub image left:center:right
1,// Now Obsolete
,// Right To Left - Used in Hebrew for example. (1=on/0=off)
,// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,// Reserved for future use
,// Reserved for future use
,// Reserved for future use
,"Home","show-menu=Home",,,0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Auction","show-menu=Auction",,,0 
,"Users","show-menu=Users",,,0
,"News","News.asp",,,0
,"Faq","Faq.asp",,,0
,"Support","Support.asp",,,0
,"Contact","Contact.asp",,,0
,"Login","Javascript:DoLogin()",,,0
//,"Help","show-menu=Help",,,0
])
}
else{
addmenu(menu=[// This is the array that contains your menu properties and details
"topmenu",// Menu Name - This is needed in order for the menu to be called
46,// Menu Top - The Top position of the menu in pixels
pldiv.offsetLeft + 422,// Menu Left - The Left position of the menu in pixels
,// Menu Width - Menus width in pixels
0,// Menu Border Width 
,// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,// Properties Array - this is set higher up, as above
1,// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
,// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1,// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,// Position of TOP sub image left:center:right
1,// Now Obsolete
,// Right To Left - Used in Hebrew for example. (1=on/0=off)
,// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,// Reserved for future use
,// Reserved for future use
,// Reserved for future use
,"Home","show-menu=Home",,,0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Auction","show-menu=Auction",,,0 
,"Users","show-menu=Users",,,0
,"News","News.asp",,,0
,"Faq","Faq.asp",,,0
,"Support","Support.asp",,,0
,"Contact","Contact.asp",,,0
,"Logout","Javascript:DoLogout()",,,0
//,"Help","show-menu=Help",,,0
])
}
}

addmenu(menu=["Home","offset=3",,150,1,"",style2,,"",effect,,,,,,,,,,,,
,"Auctions", "Index.asp",,,0
//,"Shop", "Indexs.asp",,,0
//,"Database", "Indexd.asp",,,0
])

if (GlobalUser == "0") {
addmenu(menu=["Users","offset=3",,150,1,"",style2,,"",effect,,,,,,,,,,,,
,"Connection", "Javascript:DoLogin();",,,0
,"Registration", "Userreg.asp",,,0
,"Information", "Userinfo.asp",,,0
,"User form", "UserForm.asp",,,0
,"Restore cookie", "Cookie.asp?Mode=User",,,0
])
}
else {
 if (GlobalUser != "3") {
addmenu(menu=["Users","offset=3",,150,1,"",style2,,"",effect,,,,,,,,,,,,
,"Connection", "Javascript:DoLogin();",,,0
,"Registration", "Userreg.asp",,,0
,"Information", "Userinfo.asp",,,0
,"User form", "UserForm.asp",,,0
,"Restore cookie", "Cookie.asp?Mode=User",,,0
,"Password lost", "Password.asp?Mode=User",,,0
,"Change password", "Passwordupd.asp?Mode=User",,,0
,"Personal list", "Bargainrslt.asp?Mode=Userlist",,,0
,"Checking results", "show-menu=Results",,,0
])
}
else {
addmenu(menu=["Users","offset=3",,150,1,"",style2,,"",effect,,,,,,,,,,,,
,"Connection", "Javascript:DoLogin();",,,0
,"Registration", "Userreg.asp",,,0
,"Information", "Userinfo.asp",,,0
,"User form", "UserForm.asp",,,0
,"Restore cookie", "Cookie.asp?Mode=User",,,0
,"Password lost", "Password.asp?Mode=User",,,0
,"Change password", "Passwordupd.asp?Mode=User",,,0
,"Personal list", "Bargainrslt.asp?Mode=Userlist",,,0
,"Checking results", "show-menu=Results",,,0
,"Admin tools", "show-menu=Admintools",,,0
])
 }
}
if (GlobalContext == "Auction") {
if (SaleRights == 'True') {
addmenu(menu=["Auction","offset=3",,150,1,"",style2,,"",effect,,,,,,,,,,,,
,"Auction home", "Auction.asp",,,0
,"Auction rooms", "Bargainrslt.asp?Mode=Auction&Origin=Search",,,0
,"Categories", "Bargaincategories.asp?Mode=Auction",,,0
,"Search", "Productsearch.asp?Mode=Auction",,,0
,"Using auctions", "Auctionusing.asp",,,0
,"Past sales", "Auctionpastsale.asp",,,0
,"Catalog", "show-menu=Catalog",,,0
,"Add an item", "AddItem.asp?Mode=Auction",,,0
])
}
else {
addmenu(menu=["Auction","offset=3",,150,1,"",style2,,"",effect,,,,,,,,,,,,
,"Auction home", "Auction.asp",,,0
,"Auction rooms", "Bargainrslt.asp?Mode=Auction&Origin=Search",,,0
,"Categories", "Bargaincategories.asp?Mode=Auction",,,0
,"Search", "Productsearch.asp?Mode=Auction",,,0
,"Using auctions", "Auctionusing.asp",,,0
,"Past sales", "Auctionpastsale.asp",,,0
,"Catalog", "show-menu=Catalog",,,0
])
}
}

if ((GlobalUser == "2") || (GlobalUser == "3")){
addmenu(menu=["Resellers","offset=3",,150,1,"",style2,,"",effect,,,,,,,,,,,,
,"Reseller home", "Reseller.asp",,,0
,"Reseller programme", "Resellersrv.asp",,,0
,"Request and questions", "Resellersupport.asp",,,0
,"Registration", "Resellerreg.asp",,,0
,"Reseller form", "Resellerform.asp",,,0
,"Stock management", "Resellersearch.asp",,,0
,"Address book", "Addressbook.asp?Origin=Search",,,0
,"Technical links", "Techlink.asp",,,0
])
}
else {
addmenu(menu=["Resellers","offset=3",,150,1,"",style2,,"",effect,,,,,,,,,,,,
,"Reseller home", "Reseller.asp",,,0
,"Reseller programme", "Resellersrv.asp",,,0
,"Request and questions", "Resellersupport.asp",,,0
,"Registration", "Resellerreg.asp",,,0
,"Reseller form", "Resellerform.asp",,,0
])
}

addmenu(menu=["Help","offset=3",,110,1,"",style2,,"",effect,,,,,,,,,,,,
,"Current panel", "Javascript:DoHelpPge()",,,0
,"Index", "Javascript:DoHelpI()",,,0
,"Content", "Javascript:DoHelpC()",,,0
,"Using help", "Javascript:DoHelpU()",,,0
])

addmenu(menu=["Catalog","offset=3",,150,1,"",style2,,"",effect,,,,,,,,,,,,
,"Catalog download", "Bargaindownload.asp",,,0
,"Print catalog", "Bargaincatalog.asp",,,0
])

addmenu(menu=["Admintools","offset=3",,150,1,"",style2,,"",effect,,,,,,,,,,,,
,"Member tools", "Admintools.asp",,,0
,"Admin requests", "AdmRqs.asp",,,0
,"User results", "show-menu=Userresults",,,0
,"Shop tools", "ShopRqsrslt.asp",,,0
])

addmenu(menu=["Userresults","offset=3",,150,1,"",style2,,"",effect,,,,,,,,,,,,
,"Buyers", "Userresults2.asp",,,0
,"Sellers", "Saleresults2.asp",,,0
])

addmenu(menu=["Results","offset=3",,150,1,"",style2,,"",effect,,,,,,,,,,,,
,"Purchases", "Userresults.asp",,,0
,"Sales", "Salerresults.asp",,,0
])

// Special functions for Login procedures

function DoLogin() {
 var x=50,y=120,w=1,h=1;
 var win= window.open("Login.asp","Login","width=" + w +",height="+ h +",screenX="+x+",screenY="+y+",left="+x+",top="+y+",status=no,toolbar=no,scrollbars=auto,resizable=yes");
}
function DoLogout() {parent.location="Loginsts.asp";}

// Special function for Menu Log Displays
function DoHelpC(){
 var x=20,y=20,w=1,h=1;
 var win= window.open("Help.asp?Mode=C","Help","width=" + w +",height="+ h +",screenX="+x+",screenY="+y+",left="+x+",top="+y+",status=no,toolbar=no,scrollbars=yes,resizable=no,menubar=no");
}
function DoHelpU(){
 var x=20,y=20,w=1,h=1;
 var win= window.open("Help.asp?Mode=I&Hid=UsingHelp","Help","width=" + w +",height="+ h +",screenX="+x+",screenY="+y+",left="+x+",top="+y+",status=no,toolbar=no,scrollbars=yes,resizable=no,menubar=no");
}
function DoHelpPge(MyPge){
 var x=20,y=20,w=1,h=1;
 var win= window.open("Help.asp?Mode=I&Hid="+MyHelpId,"Help","width=" + w +",height="+ h +",screenX="+x+",screenY="+y+",left="+x+",top="+y+",status=no,toolbar=no,scrollbars=yes,resizable=no,menubar=no");
}