sniffBrowsers();

var home_dir = "/";

var image_dir = home_dir+"images/";
var sc_dir = home_dir+"products/stereo-cabinets/";
var dvd_dir = home_dir+"products/dvd-cabinets/";
var book_dir = home_dir+"products/book-cases/";
var swivel_dir = home_dir+"products/swivel-towers/";

var offColor = '#f4dda7';
var onColor = '#2c2008';
var width = 220;
var product_width = 180;
var menu_height = 20;

var menuItemBullet = new bulletPoint(image_dir+"bullets/one/menu_off.gif",image_dir+"bullets/one/menu_on.gif");
var labelBullet = new bulletPoint(image_dir+"bullets/one/header_off.gif",image_dir+"bullets/one/header_on.gif");
var subMenuBullet = new bulletPoint(image_dir+"bullets/one/sub_header_off.gif",image_dir+"bullets/one/sub_header_on.gif");

var themenu = new menuBar('themenu',510, 'horizontal', null, null);
themenu.addLabel('labelBullet', 'Home Theater Cabinets', 1, '25%', offColor, onColor, home_dir+'stereo-cabinets', 'left');
themenu.addLabel('labelBullet', 'DVD Cabinets', 2, '25%', offColor, onColor, home_dir+'dvd-cabinets', 'left');
themenu.addLabel('labelBullet', 'Bookcases', 3, '25%', offColor, onColor, home_dir+'book-cases', 'left');
themenu.addLabel(null, '<img src='+image_dir+'/logo2.gif border=0 height=50 width=300></img>', 26, '25%', offColor, offColor, home_dir, 'left');
themenu.height = 14;

menus[1] = new menu(200, 'vertical', offColor, onColor);
menus[1].height = menu_height;
menus[1].addItem('subMenuBullet', 'Stereo Cabinets', 4, 200, offColor, onColor, home_dir+'stereo-cabinets', 'left');
menus[1].writeMenu();

menus[2] = new menu(width, 'vertical', offColor, onColor);
menus[2].height = menu_height;
menus[2].addItem('subMenuBullet', 'DVD Cabinets', 10, width, offColor, onColor, home_dir+'dvd-cabinets/7-inch', 'left');
menus[2].addItem('subMenuBullet', 'Swivel DVD Towers', 22, width, offColor, onColor, home_dir+'dvd-cabinets/swivel-towers', 'left');
menus[2].writeMenu();

menus[3] = new menu(width, 'vertical', offColor, onColor);
menus[3].height = menu_height;
menus[3].addItem('subMenuBullet', 'Bookcases', 16, width, offColor, onColor, home_dir+'book-cases', 'left');
menus[3].writeMenu();


menus[4] = new menu(width, 'vertical', offColor, onColor);
menus[4].height = menu_height;
menus[4].addItem('subMenuBullet', '27" High', 5, width, offColor, onColor, home_dir+'stereo-cabinets/27', 'left');
menus[4].addItem('subMenuBullet', '33" High', 6, width, offColor, onColor, home_dir+'stereo-cabinets/33', 'left');
menus[4].addItem('subMenuBullet', '50" High', 7, width, offColor, onColor, home_dir+'stereo-cabinets/50', 'left');
menus[4].addItem('subMenuBullet', '61" High', 8, width, offColor, onColor, home_dir+'stereo-cabinets/61', 'left');
menus[4].addItem('subMenuBullet', '73" High', 9, width, offColor, onColor, home_dir+'stereo-cabinets/73', 'left');
menus[4].writeMenu();

menus[5] = new menu(product_width, 'vertical', offColor, onColor);
menus[5].height = menu_height;
menus[5].addItem('menuItemBullet', '<center><img src='+image_dir+'products/sc2224-1.jpg border=0 height='+120+' width='+115+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, sc_dir+'27-inch-high-home-theater-cabinet/1', 'left');
menus[5].addItem('menuItemBullet', '<center><img src='+image_dir+'products/sc2224g-1.jpg border=0 height='+120+' width='+115+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, sc_dir+'27-inch-high-home-theater-cabinet-with-glass-doors/24', 'left');
menus[5].writeMenu();
menus[5].writeMenu();

menus[6] = new menu(product_width, 'vertical', offColor, onColor);
menus[6].height = menu_height;
menus[6].addItem('menuItemBullet', '<center><img src='+image_dir+'products/sc2230-1.jpg border=0 height='+130+' width='+115+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, sc_dir+'33-inch-high-home-theater-cabinet/2', 'left');
menus[6].addItem('menuItemBullet', '<center><img src='+image_dir+'products/sc2230g-1.jpg border=0 height='+130+' width='+115+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, sc_dir+'33-inch-high-home-theater-cabinet-with-glass-doors/25', 'left');
menus[6].writeMenu();

menus[7] = new menu(product_width, 'vertical', offColor, onColor);
menus[7].height = menu_height;
menus[7].addItem('menuItemBullet', '<center><img src='+image_dir+'products/sc2248-1.jpg border=0 height='+165+' width='+110+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, sc_dir+'50-inch-high-home-theater-cabinet/3', 'left');
menus[7].addItem('menuItemBullet', '<center><img src='+image_dir+'products/sc2248g-1.jpg border=0 height='+165+' width='+115+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, sc_dir+'50-inch-high-home-theater-cabinet-with-glass-doors/26', 'left');
menus[7].writeMenu();

menus[8] = new menu(product_width, 'vertical', offColor, onColor);
menus[8].height = menu_height;
menus[8].addItem('menuItemBullet', '<center><img src='+image_dir+'products/sc2260-1.jpg border=0 height='+180+' width='+112+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, sc_dir+'61-inch-high-home-theater-cabinet/4', 'left');
menus[8].addItem('menuItemBullet', '<center><img src='+image_dir+'products/sc2260g-1.jpg border=0 height='+180+' width='+112+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, sc_dir+'61-inch-high-home-theater-cabinet-with-glass-doors/27', 'left');
menus[8].writeMenu();

menus[9] = new menu(product_width, 'vertical', offColor, onColor);
menus[9].height = menu_height;
menus[9].addItem('menuItemBullet', '<center><img src='+image_dir+'products/sc2272-1.jpg border=0 height='+200+' width='+104+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, sc_dir+'73-inch-high-home-theater-cabinet/5', 'left');
menus[9].addItem('menuItemBullet', '<center><img src='+image_dir+'products/sc2272g-1.jpg border=0 height='+200+' width='+104+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, sc_dir+'73-inch-high-home-theater-cabinet-with-glass-doors/28', 'left');
menus[9].writeMenu();

menus[10] = new menu(width, 'vertical', offColor, onColor);
menus[10].height = menu_height;
menus[10].addItem('subMenuBullet', '26" High', 11, width, offColor, onColor, home_dir+'dvd-cabinets/7-inch/26', 'left');
menus[10].addItem('subMenuBullet', '31" High', 12, width, offColor, onColor, home_dir+'dvd-cabinets/7-inch/31', 'left');
menus[10].addItem('subMenuBullet', '49" High', 13, width, offColor, onColor, home_dir+'dvd-cabinets/7-inch/49', 'left');
menus[10].addItem('subMenuBullet', '60" High', 14, width, offColor, onColor, home_dir+'dvd-cabinets/7-inch/60', 'left');
menus[10].addItem('subMenuBullet', '72" High', 15, width, offColor, onColor, home_dir+'dvd-cabinets/7-inch/72', 'left');
menus[10].writeMenu();

menus[11] = new menu(product_width, 'vertical', offColor, onColor);
menus[11].height = menu_height;
menus[11].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc724-1.jpg border=0 height='+120+' width='+100+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, dvd_dir+'26-inch-high-dvd-cabinet/6', 'left');
menus[11].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc724g-1.jpg border=0 height='+120+' width='+100+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, dvd_dir+'26-inch-high-dvd-cabinet-with-glass-doors/29', 'left');
menus[11].writeMenu();

menus[12] = new menu(product_width, 'vertical', offColor, onColor);
menus[12].height = menu_height;
menus[12].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc730-1.jpg border=0 height='+130+' width='+100+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, dvd_dir+'31-inch-high-dvd-cabinet/7', 'left');
menus[12].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc730g-1.jpg border=0 height='+130+' width='+100+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, dvd_dir+'31-inch-high-dvd-cabinet-with-glass-doors/30', 'left');
menus[12].writeMenu();

menus[13] = new menu(product_width, 'vertical', offColor, onColor);
menus[13].height = menu_height;
menus[13].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc748-1.jpg border=0 height='+165+' width='+100+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, dvd_dir+'49-inch-high-dvd-cabinet/8', 'left');
menus[13].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc748g-1.jpg border=0 height='+165+' width='+100+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, dvd_dir+'49-inch-high-dvd-cabinet-with-glass-doors/31', 'left');
menus[13].writeMenu();

menus[14] = new menu(product_width, 'vertical', offColor, onColor);
menus[14].height = menu_height;
menus[14].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc760-1.jpg border=0 height='+180+' width='+100+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, dvd_dir+'60-inch-high-dvd-cabinet/9', 'left');
menus[14].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc760g-1.jpg border=0 height='+180+' width='+100+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, dvd_dir+'60-inch-high-dvd-cabinet-with-glass-doors/32', 'left');
menus[14].writeMenu();

menus[15] = new menu(product_width, 'vertical', offColor, onColor);
menus[15].height = menu_height;
menus[15].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc772-1.jpg border=0 height='+200+' width='+104+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, dvd_dir+'72-inch-high-dvd-cabinet/10', 'left');
menus[15].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc772g-1.jpg border=0 height='+200+' width='+104+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, dvd_dir+'72-inch-high-dvd-cabinet-with-glass-doors/33', 'left');
menus[15].writeMenu();

menus[16] = new menu(width, 'vertical', offColor, onColor);
menus[16].height = menu_height;
menus[16].addItem('subMenuBullet', '26" High', 17, width, offColor, onColor, home_dir+'book-cases/26', 'left');
menus[16].addItem('subMenuBullet', '31" High', 18, width, offColor, onColor, home_dir+'book-cases/31', 'left');
menus[16].addItem('subMenuBullet', '49" High', 19, width, offColor, onColor, home_dir+'book-cases/49', 'left');
menus[16].addItem('subMenuBullet', '60" High', 20, width, offColor, onColor, home_dir+'book-cases/60', 'left');
menus[16].addItem('subMenuBullet', '72" High', 21, width, offColor, onColor, home_dir+'book-cases/72', 'left');
menus[16].writeMenu();

menus[17] = new menu(product_width, 'vertical', offColor, onColor);
menus[17].height = menu_height;
menus[17].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc1324-1.jpg border=0 height='+120+' width='+115+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, book_dir+'26-inch-high-book-case/11', 'left');
menus[17].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc1324g-1.jpg border=0 height='+120+' width='+115+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, book_dir+'26-inch-high-book-case-with-glass-doors/34', 'left');
menus[17].writeMenu();

menus[18] = new menu(product_width, 'vertical', offColor, onColor);
menus[18].height = menu_height;
menus[18].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc1330-1.jpg border=0 height='+130+' width='+115+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, book_dir+'31-inch-high-book-case/12', 'left');
menus[18].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc1330g-1.jpg border=0 height='+130+' width='+115+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, book_dir+'31-inch-high-book-case-with-glass-doors/35', 'left');
menus[18].writeMenu();

menus[19] = new menu(product_width, 'vertical', offColor, onColor);
menus[19].height = menu_height;
menus[19].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc1348-1.jpg border=0 height='+165+' width='+110+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, book_dir+'49-inch-high-book-case/13', 'left');
menus[19].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc1348g-1.jpg border=0 height='+165+' width='+110+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, book_dir+'49-inch-high-book-case-with-glass-doors/36', 'left');
menus[19].writeMenu();

menus[20] = new menu(product_width, 'vertical', offColor, onColor);
menus[20].height = menu_height;
menus[20].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc1360-1.jpg border=0 height='+180+' width='+112+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, book_dir+'60-inch-high-book-case/14', 'left');
menus[20].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc1360g-1.jpg border=0 height='+180+' width='+112+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, book_dir+'60-inch-high-book-case-with-glass-doors/37', 'left');
menus[20].writeMenu();

menus[21] = new menu(product_width, 'vertical', offColor, onColor);
menus[21].height = menu_height;
menus[21].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc1372-1.jpg border=0 height='+200+' width='+104+'><br>Open Cabinet</center>', 
                null, product_width, offColor, onColor, book_dir+'72-inch-high-book-case/15', 'left');
menus[21].addItem('menuItemBullet', '<center><img src='+image_dir+'products/bc1372g-1.jpg border=0 height='+200+' width='+104+'><br>Glass Door Cabinet</center>', 
                null, product_width, offColor, onColor, book_dir+'72-inch-high-book-case-with-glass-doors/38', 'left');
menus[21].writeMenu();

menus[22] = new menu(width, 'vertical', offColor, onColor);
menus[22].height = menu_height;
menus[22].addItem('subMenuBullet', '32" High', 23, width, offColor, onColor, home_dir+'dvd-cabinets/swivel-towers/32', 'left');
menus[22].addItem('subMenuBullet', '60" High', 24, width, offColor, onColor, home_dir+'dvd-cabinets/swivel-towers/60', 'left');
menus[22].addItem('subMenuBullet', '91" High', 25, width, offColor, onColor, home_dir+'dvd-cabinets/swivel-towers/91', 'left');
menus[22].writeMenu();

menus[23] = new menu(product_width, 'vertical', offColor, onColor);
menus[23].height = menu_height;
menus[23].addItem('menuItemBullet', '<center><img src='+image_dir+'products/dvd200-1.jpg border=0 height='+130+' width='+85+'><br>Open Cabinet</center>', 
				null, product_width, offColor, onColor, swivel_dir+'32-inch-high-dvd-swivel-tower/16', 'left');
menus[23].addItem('menuItemBullet', '<center><img src='+image_dir+'products/dvd200g-2.jpg border=0 height='+130+' width='+85+'><br>Glass Door Cabinet</center>', 
				null, product_width, offColor, onColor, swivel_dir+'32-inch-high-dvd-swivel-tower-with-glass-doors/17', 'left');
menus[23].writeMenu();

/*menus[24] = new menu(product_width, 'vertical', offColor, onColor);
menus[24].height = menu_height;
menus[24].addItem('menuItemBullet', '<center><img src='+image_dir+'products/cd2000-1.jpg border=0 height='+180+' width='+85+'><br>Glass Door Cabinet</center>', 
				null, product_width, offColor, onColor, swivel_dir+'44-inch-high-dvd-swivel-tower/18', 'left');
menus[24].addItem('menuItemBullet', '<center><img src='+image_dir+'products/cd1000-1.jpg border=0 height='+180+' width='+85+'><br>Glass Door Cabinet</center>', 
				null, product_width, offColor, onColor, swivel_dir+'44-inch-high-dvd-swivel-tower/23', 'left');
menus[24].writeMenu();*/

menus[24] = new menu(product_width, 'vertical', offColor, onColor);
menus[24].height = menu_height;
menus[24].addItem('menuItemBullet', '<center><img src='+image_dir+'products/dvd400-1.jpg border=0 height='+180+' width='+85+'><br>Open Cabinet</center>', 
				null, product_width, offColor, onColor, swivel_dir+'60-inch-high-dvd-swivel-tower/19', 'left');
menus[24].addItem('menuItemBullet', '<center><img src='+image_dir+'products/dvd400g-1.jpg border=0 height='+180+' width='+85+'><br>Glass Door Cabinet</center>', 
				null, product_width, offColor, onColor, swivel_dir+'60-inch-high-dvd-swivel-tower-with-glass-doors/20', 'left');
menus[24].writeMenu();

menus[25] = new menu(product_width, 'vertical', offColor, onColor);
menus[25].height = menu_height;
menus[25].addItem('menuItemBullet', '<center><img src='+image_dir+'products/dvd600-1.jpg border=0 height='+220+' width='+80+'><br>Open Cabinet</center>', 
				null, product_width, offColor, onColor, swivel_dir+'91-inch-high-dvd-swivel-tower/21', 'left');
menus[25].addItem('menuItemBullet', '<center><img src='+image_dir+'products/dvd600g-1.jpg border=0 height='+220+' width='+80+'><br>Glass Door Cabinet</center>', 
				null, product_width, offColor, onColor, swivel_dir+'91-inch-high-dvd-swivel-tower-with-glass-doors/22', 'left');
menus[25].writeMenu();

menus[26] = new menu(width, 'vertical', offColor, onColor);
menus[26].height = menu_height;
menus[26].addItem('menuItemBullet', 'About Our Cabinets', null, width, offColor, onColor, home_dir+'about-cabinets', 'left');
menus[26].addItem('menuItemBullet', 'About Us', null, width, offColor, onColor, home_dir+'about-us', 'left');
menus[26].addItem('menuItemBullet', 'Frequently Asked Questions', null, width, offColor, onColor, home_dir+'freq-questions', 'left');
menus[26].addItem('menuItemBullet', 'Wood Finishes', null, width, offColor, onColor, home_dir+'wood-finishes', 'left');
menus[26].addItem('menuItemBullet', 'Contact Us', null, width, offColor, onColor, home_dir+'contact-us', 'left');
menus[26].addItem('menuItemBullet', 'Security Policy', null, width, offColor, onColor, home_dir+'security-policy', 'left');
menus[26].writeMenu();

menus[1].align='left';
menus[2].align='left';
menus[3].align='left';
menus[4].align='right';
menus[5].align='right';
menus[6].align='right';
menus[7].align='right';
menus[8].align='right';
menus[9].align='right';
menus[10].align='right';
menus[11].align='right';
menus[12].align='right';
menus[13].align='right';
menus[14].align='right';
menus[15].align='right';
menus[16].align='right';
menus[17].align='right';
menus[18].align='right';
menus[19].align='right';
menus[20].align='right';
menus[21].align='right';
menus[22].align='right';
menus[23].align='right';
menus[24].align='right';
menus[25].align='right';
menus[26].align='left';

