"use strict";

dojo.addOnLoad(function () {
  popup.loadPopups([
    { type: 'generic',                   id: 'FREEDEL',      title: 'Terms &amp; Conditions'           },
    { type: 'generic', name: 'GC_Terms', id: 'GC-Terms',     title: 'Gift Card Terms &amp; Conditions' },
    { type: 'generic',                   id: 'HBRESERVE',    title: 'Details'                          },
    { type: 'generic',                   id: 'sizeguide',    title: 'Honeybell Size Guide'             },
    { type: 'generic',                   id: 'TPO',          title: 'Discount Disclaimer'              },
    { type: 'coupon',                    id: 'DELFREE'                                                 },
    { type: 'coupon',                    id: 'HONEYBELL'                                               },
    { type: 'coupon',                    id: 'JOLLY'                                                   },
    { type: 'coupon',                    id: 'MERRY'                                                   },
    { type: 'coupon',                    id: 'PEEL'                                                    },
    { type: 'coupon',                    id: 'SELECT'                                                  },
    { type: 'coupon',                    id: 'SHIP'                                                    },
    { type: 'coupon',                    id: 'SPARKLE'                                                 },
    { type: 'coupon',                    id: 'SUNSHINE'                                                },
    { type: 'coupon',                    id: 'SWEET'                                                   }
  ]);
});


/*********************************************************************************************************************/
/* Navigation Menu                                                                                                   */
/*********************************************************************************************************************/

// Initialize the navigation menu
var menu = {
  init: function(){
    $('#menu .menu, #menu .entry').hover(function () { $(this).addClass('hover'); }, function () { $(this).removeClass('hover'); } );
    if ($.browser.msie && $.browser.version==="6.0") { $('#menu .entries').bgiframe(); }
  }
};
