jQuery(document).ready(function()
  {
    /*jQuery("#main-container").css("height", jQuery(document).height());*/
    
    jQuery("ul#primary-nav li ul").hide();
    jQuery("ul#primary-nav li").hover(
      function() 
      {      
        jQuery("ul", this)
        .css({
            position: "absolute",
            top: jQuery(this).offset().top,
            left: jQuery(this).offset().left + jQuery(this).outerWidth(),
            zIndex: 9999
          })
        .hover(
          function() { jQuery(this.parentNode).addClass("expanded"); }, 
          function() { jQuery(this.parentNode).removeClass("expanded"); }
          )
        .show();
      },
      function() 
      { 
        jQuery("ul", this).hide();
      }
    );
    
    jQuery("ul.news li").hover(
      function()
      {
        jQuery(this).addClass("news-hover");
      },
      function()
      {
        jQuery(this).removeClass("news-hover");
      }
    );
    
    WEBLINC.Domain = "http://" + document.domain;
    
    WEBLINC.FlashContent.VideoPlayer = "/resources/bcorp/flash/blabs_video_player.swf";
    WEBLINC.FlashContent.SkinName = WEBLINC.Domain + "/resources/bcorp/flash/blabs_skin.swf";
    WEBLINC.FlashContent.VideoPlayerHeight = "540px";
    WEBLINC.FlashContent.VideoPlayerWidth = "640px";
    
    WEBLINC.ModalContent.CloseLinkClass = "red";
    WEBLINC.ModalContent.CloseLinkHtml = "close &raquo;";
    WEBLINC.ModalContent.LoadingImagePath = WEBLINC.Domain + "/resources/bcorp/images/buttons/ajax-loader.gif"; 
    WEBLINC.ModalContent.Init(); 
  }
);
