jqQDDN(document).ready(function() {
	// _btm_ddn_configurator is a predefined object for configuring the widget.
        _btm_ddn_configurator.NavBarStripIMG = "/images/ArabianNights/site/template/nav.png"; 
        _btm_ddn_configurator.NavBarStripFullHeight = 114; 
        _btm_ddn_configurator.NavWrapperCSSName = "nav"; 
        _btm_ddn_configurator.SubMenusCSSName = "sf-menu";


	// _btm_sub_menu_configurator is a predefined object for configuring the sub menus.

        _btm_sub_menu_configurator.OverallStyle = "Color: #FFF; text-align: Left; text-transform:uppercase; " +
            "font-size:12px; font-weight:bold;";
         _btm_sub_menu_configurator.BackgroundStyleOff = "border-top: 1px solid #fff; background-image:none; " +
            "text-decoration:none; " +
	        "color:#fff; background-color:#004F39;";
         _btm_sub_menu_configurator.BackgroundStyleOn = "background: Black; color:#FFF;"; 
        _btm_sub_menu_configurator.DistanceTop = 23;  // Pixels 
        _btm_sub_menu_configurator.ItemPadding = 5;    // Pixels 
        _btm_sub_menu_configurator.ItemWidth = 160;    // Pixels 

	// THOSE ARE ALL THE STYLES YOU WILL HAVE TO DEAL WITH, AT ALL !!
	// ISN'T THAT COOL !!


        _QuickBar_SetUp(); 

        FishItUp(); 
 

    });
    function FishItUp() {

        var nav = _btm_ddn_configurator.NavWrapperCSSName;
        var subMenu = _btm_ddn_configurator.SubMenusCSSName;


        jqQDDN("ul." + subMenu).superfish({
            delay: 1000,                            // one second delay on mouseout 
            animation: { opacity: 'show', height: 'show' },  // fade-in and slide-down animation 
            // speed:       'fast',                          // faster animation speed 
            autoArrows: false,                           // disable generation of arrow mark-up 
            dropShadows: true                            // disable drop shadows
         });

        generateSprites("." + nav, "current-", true, 500, "fade" );

		
	// When the runtime reaches here, everything should be working.

    } 
