// Initialize the Scripts for this site.

$(document).ready(function() {
  
  $('#Menu li.item:first a').css('border-left','0px');
  $('#Menu li.item:last a').css('border-right','0px');
  
  $('.txtSearch').click(function() {
    $(this).select();
  });
  
  $('.txtFullName').click(function() {
    $(this).select();
  });
  
  $('.txtEmail').click(function() {
    $(this).select();
  });
  
  var containerId = 'homeCTA';
  var columnsClass = 'columns';
  
  $('.' + columnsClass).each(function() {
    $(this).height($('#' + containerId).height());
  });
  
  //Page Header content drop shadow thingy:
  var headHeight = parseInt($('#pageHeadContent').height()) + 30;
    
  contentbgcss = {
    'background-image':    'url(/site-content-shadow.gif)',
    'background-repeat':  'repeat-x',
    'background-position':  '0px ' + headHeight + 'px'
  }
  
  $('#contentArea').css(contentbgcss);
  
  // Hides list item images if no src is defined:
  $('img.listItemImage').each(function() {
    if ($(this).attr('src') == '') {
      $(this).hide();
    }
  });
  
  // Opens up certain links in new window:
  $('.lnkBlank').click(function() {
    window.open($(this).attr('href'), 'newWindow', '');
    return false;
  });
  
  $('body').ieDetector();

  
});