//<!--
var HeaderVideoTitle;
var HeaderVideoObject;
var HeaderVideoID;
var HeaderVideoWidth;

function RunHeaderVideo()
{
    $('#' + HeaderVideoID + ' a').qtip(
    { 
      content: {
         title: {
            text: HeaderVideoTitle,
            button: 'Close'
         },
         text: HeaderVideoObject
      },
      position: {
         target: $(document.body),
         corner: 'center'
      },
      show: {
         when: 'click',
         solo: true
      },
      hide: false,
      style: {
         width: { max: HeaderVideoWidth },
         padding: '5px',
         border: {
            width: 9,
            radius: 9,
            color: '#666666'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#QtipBlanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#QtipBlanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });

   // Create the modal backdrop on document load so all modal tooltips can use it
   $('<div id="QtipBlanket">')
      .css({
         position: 'absolute',
         top: 0,
         left: 0,
         height: $(document).height(),
         width: '100%',

         opacity: 0.7,
         backgroundColor: 'black',
         zIndex: 5000
      })
      .appendTo(document.body)
      .hide();
}

//Event tracking - HD #24968
function DoHeaderVideoEventTracking()
{
    if(HeaderVideoTitle == 'Leading the Market')
    {
        var tracker = _gat._getTracker('UA-15972312-2');
        tracker._trackEvent('Videos', 'AboutUsVideoRequest', 'Leading the Market');
    }
}

//-->
