function socialPlugins()
{
    var socialFB;
    var socialGPlus;
    var socialYT;
    
    $('#socialFB a').mouseover(function() { $('#socialFB').css('height', 290).css('z-index', 60); $('#socialFB').animate({ left: 0}, function() { socialFB = 1; });  });
    $('#socialFB a').click(function() { 
      if (socialFB == 1) 
      { 
        $('#socialFB').animate({ left: -292}, function(){ $(this).css('z-index', 50); socialFB = 0; }); 
      }
      else
      {
        $('#socialFB').css('height', 290).css('z-index', 60); $('#socialFB').animate({ left: 0}, function() { socialFB = 1;}); 
      }
    });
    $('#socialFB iframe').mouseout(function() { $('#socialFB').animate({ left: -292}, function(){ $(this).css('z-index', 50); });});
                                                                           
    
    
    
    
    $('#socialGPlus a').mouseover(function() { if ( !socialGPlus ) { $('#socialGPlus').animate({ left: 0 }); socialGPlus = 1;}  });
    $('#socialGPlus a').click(function() { 
      if (socialGPlus == 1) 
      { 
        $('#socialGPlus').animate({ left: -89}, function() { socialGPlus = 0; });
      }
      else
      {
         $('#socialGPlus').animate({ left: 0 }); socialGPlus = 1;
      }
    });
    $('#socialGPlus div').mouseleave (function() { $('#socialGPlus').animate({ left: -89}, function() { socialGPlus = 0; });});
    
    $('#socialYoutube a').mouseover(function() { $('#socialYoutube').animate({ left: 0 }, function() {socialYT = 1;}); });
    $('#socialYoutube a').click(function() { 
      if (socialYT == 1) 
      { 
        $('#socialYoutube').animate({ left: -140}, function() {socialYT = 0;});
      }
      else
      {
         $('#socialYoutube').animate({ left: 0 }, function() {socialYT = 1;});
      }
    });
    $('#socialYoutube div').mouseleave (function() { $('#socialYoutube').animate({ left: -140}); });
    
}


function resize()
{
  $('#sitemapCnt').height($(document).height() - $('#bodyCnt').height());
  
  if ($(document).width() < 1060)
  {
    $('#sitemapCnt').css('width', '1020px');
  }
  else
  {
    $('#sitemapCnt').css('width', '100%');
  }

}

function overlay(swf, altImage, href)
{
  
  params.wmode = "window";
  
  var overlay = $('#overlay');
  var flash = $('<div id="flash-content"><a href="'+href+'"><img src="/_media/images/'+altImage+'" width="980" height="345" alt="" /></a></div>');
  $("#overlayContent").append(flash);
  
  overlay.height($(document).height());
  overlay.width($(document).width());
  overlay.css("opacity", 0.8);
  $('#overlay2').show();
  $('#overlay2').click(function() {hideOverlay();})
  overlay.fadeIn(500, function() {$("#overlayContent").show(); });
  $("#promoBox").hide();
 
 swfobject.embedSWF(swf, "flash-content", "980", "345", "10.0.0", "/scripts/expressInstall.swf", flashvars, params, attributes );
  
  return false;
}

function hideOverlay()
{
  $("#overlayContent").hide();
  $("#overlayContent").html('');
  $("#promoBox").show();
  $('#overlay2').hide();
  $('#overlay').fadeOut(500);
  
  params.wmode = "transparent";
  
  return false;
}

