var shoplink = "/store/shopping/shopping_depts.asp?";
var baselink = "/store/";

var menuhome = new menu (
new menuItem("Create an Account", "goCategory(baselink + 'consumer_content/account_create.asp')", HomeButtonProp, 0),
new menuItem("New to the Site?", "goCategory(baselink + 'home/new_shoppers.asp')", HomeButtonProp, 0),
new menuItem("Sign In", "goCategory(baselink + 'home/already_customer.asp')", HomeButtonProp, 0),
new menuItem("Store Policies", "goCategory(baselink + 'home/about_delivery_pickup.asp')", HomeButtonProp, 0),
new menuItem("About Us", "goCategory(baselink + 'home/aboutus.asp')", HomeButtonProp, 0));
var menushop = new menu (
//new menuItem("Shopping Home", "goCategory(baselink + 'shopping/shopping_home.asp?nav=store')", ShopButtonProp, 0),
new menuItem("Beauty Care", "goCategory(shoplink + 'dept_id=2813')", ShopButtonProp, 1),
new menuItem("Health", "goCategory(shoplink + 'dept_id=2816')", ShopButtonProp, 1),
new menuItem("Wellness", "goCategory(shoplink + 'dept_id=2826')", ShopButtonProp, 1),
new menuItem("First Aid", "goCategory(shoplink + 'dept_id=2830')", ShopButtonProp, 1),
new menuItem("Personal Care", "goCategory(shoplink + 'dept_id=2833')", ShopButtonProp, 1),
new menuItem("Product Search", "goCategory(baselink + 'health_center/product_info.asp')", ShopButtonProp, 0));
var menushop_0 = new menu (
new menuItem("Sun Care", "goCategory(shoplink + 'dept_id=3010')", subButtonProp, 0),
new menuItem("Hair Care", "goCategory(shoplink + 'dept_id=2844')", subButtonProp, 0),
new menuItem("Skin Care", "goCategory(shoplink + 'dept_id=2814')", subButtonProp, 0),
new menuItem("Shaving & Men's Grooming", "goCategory(shoplink + 'dept_id=2820')", subButtonProp, 0));
menushop.menuItems[0].subMenu = menushop_0;
var menushop_1 = new menu (
new menuItem("Smoking Deterrents", "goCategory(shoplink + 'dept_id=2961')", subButtonProp, 0),
new menuItem("Respiratory Therapy", "goCategory(shoplink + 'dept_id=3062')", subButtonProp, 0),
new menuItem("Diabetic", "goCategory(shoplink + 'dept_id=2849')", subButtonProp, 0),
new menuItem("Antacids/Laxatives", "goCategory(shoplink + 'dept_id=2858')", subButtonProp, 0),
new menuItem("Cough & Cold", "goCategory(shoplink + 'dept_id=2905')", subButtonProp, 0),
new menuItem("Pain Relievers", "goCategory(shoplink + 'dept_id=2817')", subButtonProp, 0),
new menuItem("Health Maintenance", "goCategory(shoplink + 'dept_id=2823')", subButtonProp, 0));
menushop.menuItems[1].subMenu = menushop_1;
var menushop_2 = new menu (
new menuItem("Diet/Nutritional Supplements", "goCategory(shoplink + 'dept_id=2963')", subButtonProp, 0),
new menuItem("Homeopathic Remedies", "goCategory(shoplink + 'dept_id=3025')", subButtonProp, 0),
new menuItem("Vitamins & Herbals", "goCategory(shoplink + 'dept_id=2827')", subButtonProp, 0));
menushop.menuItems[2].subMenu = menushop_2;
var menushop_3 = new menu (
new menuItem("Lice Treatment", "goCategory(shoplink + 'dept_id=3542')", subButtonProp, 0),
new menuItem("First Aid Kits & Accessories", "goCategory(shoplink + 'dept_id=3031')", subButtonProp, 0),
new menuItem("Elastic/Sports", "goCategory(shoplink + 'dept_id=2837')", subButtonProp, 0),
new menuItem("First Aid Treatments", "goCategory(shoplink + 'dept_id=2879')", subButtonProp, 0),
new menuItem("Hosiery", "goCategory(shoplink + 'dept_id=3563')", subButtonProp, 0),
new menuItem("First Aid Dressings", "goCategory(shoplink + 'dept_id=2831')", subButtonProp, 0));
menushop.menuItems[3].subMenu = menushop_3;
var menushop_4 = new menu (
new menuItem("Baby Needs", "goCategory(shoplink + 'dept_id=2834')", subButtonProp, 0),
new menuItem("Eye/Ear", "goCategory(shoplink + 'dept_id=2846')", subButtonProp, 0),
new menuItem("Feminine Hygiene", "goCategory(shoplink + 'dept_id=2851')", subButtonProp, 0),
new menuItem("Incontinence Products", "goCategory(shoplink + 'dept_id=2854')", subButtonProp, 0),
new menuItem("Family Planning", "goCategory(shoplink + 'dept_id=2874')", subButtonProp, 0),
new menuItem("Deodorants/Anti-Perspirants", "goCategory(shoplink + 'dept_id=2881')", subButtonProp, 0),
new menuItem("Oral Hygiene", "goCategory(shoplink + 'dept_id=2895')", subButtonProp, 0),
new menuItem("Foot", "goCategory(shoplink + 'dept_id=2903')", subButtonProp, 0));
menushop.menuItems[4].subMenu = menushop_4;
var menurx = new menu (
new menuItem("Refill Prescriptions", "goCategory(baselink + 'prescriptions/script_fill.asp')", RXButtonProp, 0),
new menuItem("Pharmacy Q & A", "goCategory(baselink + 'pharmacy_content/script_q_and_a.asp')", RXButtonProp, 0),
new menuItem("Ask the Pharmacist", "goCategory(baselink + 'pharmacy_content/ask_pharmacist.asp')", RXButtonProp, 0));

var menuhealth = new menu (
//new menuItem("Health Center Home", "goCategory(baselink + 'healthcenter/default.asp')", initButtonProp, 0),
new menuItem("Health News", "goCategory(baselink + 'healthcenter/news/news.asp')", initButtonProp, 0),
new menuItem("Health Encyclopedia", "goCategory(baselink + 'healthcenter/Ency/default.asp')", initButtonProp, 0),
new menuItem("Health & Wellness Tools", "goCategory(baselink + 'healthcenter/Tools/default.asp')", initButtonProp, 0),
new menuItem("Body Guide", "goCategory(baselink + 'healthcenter/bodyguide/default.asp')", initButtonProp, 0),
new menuItem("Alternative Medicine", "goCategory(baselink + 'healthcenter/Alternative/default.asp')", initButtonProp, 1),
new menuItem("Drug Information", "goCategory(baselink + 'healthcenter/monographs/default.asp')", initButtonProp, 0),
new menuItem("Drug Interactions", "goCategory(baselink + 'healthcenter/druginteractions/default.asp')", initButtonProp, 0),
new menuItem("Drug Identifier", "goCategory(baselink + 'healthcenter/drugidentifier/default.asp')", initButtonProp, 0));

//-- Menu for alternative Medicine (4) Level 1 --//
var menuhealth_4 = new menu (
new menuItem("Conditions", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Conditions')", subButtonProp, 0),
new menuItem("Herbs", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Herbs')", subButtonProp, 0),
new menuItem("Supplements", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Supplements')", subButtonProp, 0),
new menuItem("Drugs", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Drugs')", subButtonProp, 0),
new menuItem("Depletions", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Depletions')", subButtonProp, 0),
new menuItem("Treatment Options", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Modalities')", subButtonProp, 0));
menuhealth.menuItems[4].subMenu = menuhealth_4;

//-- Menus for alternative Medicine (4) Level 2 --//

var menuhealth_4_0 = new menu (
new menuItem("Health Articles", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Articles')", initButtonProp, 0),
new menuItem("by Organ & Body System", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Systems')", initButtonProp, 0),
new menuItem("by Signs & Symptoms", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Symptoms')", initButtonProp, 0));
menuhealth_4.menuItems[0].subMenu = menuhealth_4_0;

var menuhealth_4_1 = new menu (
new menuItem("Health Articles", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Articles_Herbs')", initButtonProp, 0),
new menuItem("by Uses", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Uses')", initButtonProp, 0),
new menuItem("by Interactions", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_InteractionsByHerbSupp')", initButtonProp, 0));
menuhealth_4.menuItems[1].subMenu = menuhealth_4_1;

var menuhealth_4_2 = new menu (
new menuItem("Health Articles", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Articles_Supplements')", initButtonProp, 0),
new menuItem("by Uses", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Uses')", initButtonProp, 0),
new menuItem("by Interactions", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_InteractionsByHerbSupp')", initButtonProp, 0));
menuhealth_4.menuItems[2].subMenu = menuhealth_4_2;

var menuhealth_4_3 = new menu (
new menuItem("by Depletions", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_DepletionsByDrug')", initButtonProp, 0),
new menuItem("by Interactions", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_InteractionsByDrug')", initButtonProp, 0));
menuhealth_4.menuItems[3].subMenu = menuhealth_4_3;

var menuhealth_4_4 = new menu (
new menuItem("Drug Depletions", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_DepletionsByDrug')", initButtonProp, 0));
menuhealth_4.menuItems[4].subMenu = menuhealth_4_4;

var menuhealth_4_5 = new menu (
new menuItem("Health Articles", "goCategory(baselink + 'healthcenter/Alternative/default.asp?name=ConsLookups_Articles_Modalities')", initButtonProp, 0));
menuhealth_4.menuItems[5].subMenu = menuhealth_4_5;


function openMenu(menu,left,top,zi) {
	openRootMenu(menu, left, top, zi);
}

function goCategory(strCategory) {
	if (strCategory.substring(strCategory.length-1,strCategory.length) != "=") {
		//make sure that there is a category id
		//window.open(strCategory,'_parent');
		window.self.location = strCategory;
	}
}
