          
// Part 1 - Styles
var ITEM = {
    border:1,              // item's border width, pixels; zero means "none";
    shadow:1,              // item's shadow size, pixels; zero means "none"
    color:{
        border:"#C09C7C",  // color of the item border, if any;
        shadow:"#524938",  // color of the item shadow, if any;
        bgON:"#f8f0e0",      // background color for the items;
        bgOVER:"#C09C7C"   // background color for the item
                           // which is under mouse right now;
    },
    css:{
        ON:"menu_item_style",           // CSS class for items;
        OVER:"menu_item_style_over"          // CSS class  for item which is under mouse;
    }
};

var PARENT_ITEM = {  // This one has an arrow
    border:1,              // item's border width, pixels; zero means "none";
    shadow:1,              // item's shadow size, pixels; zero means "none"
    color:{
        border:"#C09C7C",  // color of the item border, if any;
        shadow:"#524938",  // color of the item shadow, if any;
        bgON:"#f8f0e0",      // background color for the items;
        bgOVER:"#C09C7C"   // background color for the item
                           // which is under mouse right now;
    },
    css:{
        ON:"menu_parent_item_style",           // CSS class for items;
        OVER:"menu_parent_item_style_over"          // CSS class  for item which is under mouse;
    }
};

var ITEM_NO_ROLLOVER = {
    border:1,              // item's border width, pixels; zero means "none";
    shadow:1,              // item's shadow size, pixels; zero means "none"
    color:{
        border:"#C09C7C",  // color of the item border, if any;
        shadow:"#524938",  // color of the item shadow, if any;
        bgON:"#f8f0e0",      // background color for the items;
        bgOVER:"#f8f0e0"   // background color for the item
                           // which is under mouse right now;
    },
    css:{
        ON:"",           // CSS class for items;
        OVER:""          // CSS class  for item which is under mouse;
    }
};

// Part 2 - Menu structure
var MENU_ITEMS = [
    {pos:[0,0], blankImage:"/images/website/coolmenu/b.gif", itemoff:[21,0], leveloff:[0,159], style:ITEM, size:[22,160], delay:[100,800]},
    {code:"<span class='main_level_menu_text'>Home</span>", url:"/", shadow:0, border:0},
    {code:"<span class='main_level_menu_text'>Products</span>", url:"", style:[PARENT_ITEM, ITEM], shadow:0, border:0,  
        sub:[
            {size:[22,135]}, 
            {code:"Great Books", "url":"/store/shopdisplayproducts.asp?id=107&cat=Great+Books", style:[PARENT_ITEM, ITEM],  
              sub:[ 
                {size:[22,170], leveloff:[0,134]}, 
                {code:"Lamplighter Publishers", "url":"/store/shopdisplayproducts.asp?id=108&cat=Lamplighter+Books"}, 
                {code:"Godwill Publishers", "url":"/store/shopdisplayproducts.asp?id=156&cat=Godwill+Publishers"}, 
                {code:"'Uncle Eric' Books", "url":"/store/shopdisplayproducts.asp?id=145&cat=%22Uncle+Eric%22+Books"} 
              ]},
            {code:"Making Music", "url":"/store/shopdisplayproducts.asp?id=1&cat=Making+Music", style:[PARENT_ITEM, ITEM], 
              sub:[ 
                {size:[22,180], leveloff:[0,134]}, 
                {code:"Audio Electronics", "url":"/store/shopdisplayproducts.asp?id=2&cat=Audio+Electronics"}, 
                {code:"Instruments", "url":"/store/shopdisplayproducts.asp?id=58&cat=Intruments", style:[PARENT_ITEM, ITEM], 
                  sub:[
                    {size:[22,135], leveloff:[0,179]}, 
                    {code:"Banjos", "url":"/store/shopdisplayproducts.asp?id=63&cat=Banjos"}, 
                    {code:"Basses", "url":"/store/shopdisplayproducts.asp?id=72&cat=Basses"},
                    {code:"Dobros", "url":"/store/shopdisplayproducts.asp?id=75&cat=Dobros"},
                    {code:"Fiddles & Violins", "url":"/store/shopdisplayproducts.asp?id=66&cat=Fiddles+%26+Violins"},
                    {code:"Guitars", "url":"/store/shopdisplayproducts.asp?id=59&cat=Guitars"},
                    {code:"Mandolins", "url":"/store/shopdisplayproducts.asp?id=69&cat=Mandolins"},
                    {code:"Ukuleles", "url":"/store/shopdisplayproducts.asp?id=78&cat=Ukuleles"}
                  ]
                }, 
                {code:"Instrument Accessories", "url":"/store/shopdisplayproducts.asp?id=50&cat=Instrument+Accessories"}, 
                {code:"Instrument Cases", "url":"/store/shopdisplayproducts.asp?id=146&cat=Instrument+Cases"}, 
                {code:"Instruction", "url":"/store/shopdisplayproducts.asp?id=3&cat=Instrument+Instruction"} 
              ]}, 
            {code:"Shop Tools", "url":"/store/shopdisplayproducts.asp?id=121&cat=Shop+Tools", style:[PARENT_ITEM, ITEM], 
              sub:[ 
                {size:[22,90], leveloff:[0,134]}, 
                {code:"FrameCo", "url":"/store/shopdisplayproducts.asp?id=137&cat=FrameCo"},
                {code:"Kreg", "url":"/store/shopdisplayproducts.asp?id=122&cat=Kreg", style:[PARENT_ITEM, ITEM],
                  sub:[
                    {size:[22,208], leveloff:[0,89]}, 
                    {code:"Accessories", "url":"/store/shopdisplayproducts.asp?id=135&cat=Accessories"},
                    {code:"How To Kreg-Jig-It!", "url":"/store/shopdisplayproducts.asp?id=157&cat=How+To+KREG%2DJig%2DIt%21"},
                    {code:"Plugs & Caps", "url":"/store/shopdisplayproducts.asp?id=131&cat=Plugs+%26+Caps"},
                    {code:"Pocket Hole Machines", "url":"/store/shopdisplayproducts.asp?id=123&cat=Pocket+Hole+Machines"},
                    {code:"Pocket Hole Tools", "url":"/store/shopdisplayproducts.asp?id=124&cat=Pocket+Hole+Tools"},
                    {code:"Precision Clamping Systems", "url":"/store/shopdisplayproducts.asp?id=154&cat=Precision+Clamping+Systems"},
                    {code:"Precision Measuring Systems", "url":"/store/shopdisplayproducts.asp?id=126&cat=Precision+Measuring+Systems"},
                    {code:"Precision Routing Systems", "url":"/store/shopdisplayproducts.asp?id=125&cat=Precision+Routing+Systems"},
                    {code:"Screws", "url":"/store/shopdisplayproducts.asp?id=127&cat=Screws"}
              ]}
            ]}, 
            {code:"Family Media", "url":"/store/shopdisplayproducts.asp?id=89&cat=Family+Media", style:[PARENT_ITEM, ITEM],
              sub:[
                {size:[22,186], leveloff:[0,134]}, 
                {code:"Lindsey Family Records", "url":"/store/shopdisplayproducts.asp?id=90&cat=Lindsey+Family+Records"},
                {code:"Majesty Music", "url":"/store/shopdisplayproducts.asp?id=101&cat=Majesty+Music"},
                {code:"Moody Videos", "url":"/store/shopdisplayproducts.asp?id=91&cat=Moody+Videos",  style:[PARENT_ITEM, ITEM],
                  sub:[
                    {size:[22,270], leveloff:[0,185]}, 
                    {code:"Awesome Forces of God's Creation", "url":"/store/shopdisplayproducts.asp?id=97&cat=Awesome+Forces+of+Gods+Creation"},
                    {code:"Bible Adventures", "url":"/store/shopdisplayproducts.asp?id=94&cat=Bible+Adventures"},
                    {code:"Journeys to the Edge of Creation", "url":"/store/shopdisplayproducts.asp?id=93&cat=Journeys+to+the+Edge+of+Creation"},
                    {code:"Moody Science Classics", "url":"/store/shopdisplayproducts.asp?id=96&cat=Moody+Science+Classics"},
                    {code:"The Newton's Workshop", "url":"/store/shopdisplayproducts.asp?id=98&cat=Newtons+Workshop"},
                    {code:"Praise & Worship", "url":"/store/shopdisplayproducts.asp?id=100&cat=Praise+%26+Worship"},
                    {code:"Science Adventures", "url":"/store/shopdisplayproducts.asp?id=95&cat=Science+Adventures"},
                    {code:"The Wonders of God's Creation", "url":"/store/shopdisplayproducts.asp?id=99&cat=Wonders+of+Gods+Creation"}
                  ]
                }
              ]
            } 
        ]
    },
    {code:"<span class='main_level_menu_text'>Shopping Cart</span>", url:"", shadow:0, border:0, style:[PARENT_ITEM, ITEM],
        sub:[
            {size:[22,100]},
            {code:"View Cart", "url":"/store/shopaddtocart.asp"},
            {code:"Checkout", "url":"/store/shopcustomer.asp"},
            {code:"Empty Cart", "url":"/store/shopend.asp"},
        ]
    },
    {code:"<span class='main_level_menu_text'>My Account</span>", url:"", shadow:0, border:0, style:[PARENT_ITEM, ITEM],
        sub:[
            {size:[22,225]},
            {code:"Login", "url":"https://www.endemeo.com/store/shopcustadminlogin.asp"},
            {code:"Edit My Account", "url":"https://www.endemeo.com/store/shopcustupdate.asp"},
            {code:"Help! I Forgot My Password?", "url":"https://www.endemeo.com/store/shopmailpwd.asp"},
            {code:"Join Our Mailing List", "url":"https://www.endemeo.com/store/shopmaillist.asp"},
            {code:"Create a New Account", "url":"https://www.endemeo.com/store/shopcustregister.asp"},
            {code:"Logout", "url":"https://www.endemeo.com/store/shopcustadminlogin.asp?new=yes"}
        ]
    },
    {code:"<span class='main_level_menu_text'>Support</span>", url:"", shadow:0, border:0, style:[PARENT_ITEM, ITEM],
        sub:[
            {size:[22,220]},
            {code:"Our Customer Commitment", "url":"/store/shopcontent.asp?type=commitment"},
            {code:"Contact Us", "url":"/contact.asp"}
        ]
    },
    {code:"<span class='main_level_menu_text'>About Us</span>", shadow:0, border:0, url:"/store/shopcontent.asp?type=about"}
    
    /*
    {code:"<hr />", size:[12,160], shadow:0, border:0, hasControls:true},
    
    {code:"<span style='font-size: 75%;'>Popular Categories</span>", shadow:0, border:0, style:[PARENT_ITEM, ITEM], 
      sub:[
        {size:[270,"+self"]}, 
        {hasControls:true,code:"<p style='padding: 5px; margin:0px;'><b>Popular Categories:<br/></b><font size=\"2\"><a href=\"/store/shopdisplayproducts.asp?id=2&amp;cat=Audio+Electronics\">Audio Electronics</a><br/><a href=\"/store/shopdisplayproducts.asp?id=89&amp;cat=Family+Media\">Family Media</a><br/><a href=\"/store/shopdisplayproducts.asp?id=137&amp;cat=FrameCo\">FrameCo Tools</a><br/><a href=\"/store/shopdisplayproducts.asp?id=107&amp;cat=Great+Books\">Great Books</a><br/><a href=\"/store/shopdisplayproducts.asp?id=122&amp;cat=Kreg\">Kreg Pocket-Hole Tools</a><br/><a href=\"/store/shopdisplayproducts.asp?id=108&amp;cat=Lamplighter+Books\">Lamplighter Books</a><br/><a href=\"/store/shopdisplayproducts.asp?id=90&amp;cat=Lindsey+Family+Records\">Lindsey Family Records</a><br/><a href=\"/store/shopdisplayproducts.asp?id=1&amp;cat=Making+Music\">Making Music</a><br/><a href=\"/store/shopdisplayproducts.asp?id=96&amp;cat=Moody+Science+Classics\">Moody Science Classics</a><br/><a href=\"/store/shopdisplayproducts.asp?id=91&amp;cat=Moody+Videos\">Moody Videos</a><br/><a href=\"/store/shopdisplayproducts.asp?id=3&amp;cat=Instrument+Instruction\">Murphy Method</a><br/><a href=\"/store/shopdisplayproducts.asp?id=3&amp;cat=Instrument+Instruction\">By-Ear Music Instruction</a><br/><a href=\"/store/shopdisplayproducts.asp?id=102&amp;cat=Patch+the+Pirate\">Patch the Pirate</a><br/><a href=\"/store/shopdisplayproducts.asp?id=121&amp;cat=Shop+Tools\">Shop Tools</a><br/><a href=\"shopcategorylist.asp\"><b>[ All Categories ]</b></a></font></p>"
        }
      ]
    }
    */
    
    
];

// Part 3 - Initialization code
var m1 = new COOLjsMenu("menu1", MENU_ITEMS);
                
  // a little hack to make the menu use relative positioning;
  document.getElementById("menu1_r").style.position="relative";
