$(document).ready(function(){
  
  var overlay = $("#vOverlay");
  var pageHeight = $(document).height();
  
  $("aside #tabOne a").bind("click",function() {
    overlay.css({"height": pageHeight});
		$('#vOverlay .article_a').append(videOne);
		overlay.show();
		$("#vOverlay .article_a").show();
		return false;
	});
  $("aside #tabTwo a").bind("click",function() {
    overlay.css({"height": pageHeight});
		$("#vOverlay .article_b").append(videTwo);
		overlay.show();
		$("#vOverlay .article_b").show();
		return false;
	});
  $("aside #tabThree a").bind("click",function() {
    overlay.css({"height": pageHeight});
		 $("#vOverlay .article_c").append(videThre);
		overlay.show();
		$("#vOverlay .article_c").show();
		return false;
	});
  
  $("aside #tabFour a").bind("click",function() {
    overlay.css({"height": pageHeight});
		 $("#vOverlay .article_d").append(videFour);
		overlay.show();
		$("#vOverlay .article_d").show();
		return false;
	});
  
  var videOne = '<iframe width="853" height="510" id="acvVideoOne" src="http://www.youtube.com/embed/hjq_qXk1U0Y?hd=1&amp;rel=0&amp;autoplay=1" frameborder="0" allowfullscreen style="z-index: 99998 !important;"></iframe>';
  var videTwo = '<iframe width="853" height="510" id="acvVideoTwo" src="http://www.youtube.com/embed/qtOnqjLRzLg?rel=0&autoplay=1" frameborder="0" allowfullscreen style="z-index: 99998 !important;"></iframe>';
  var videThre = '<iframe width="853" height="510" id="acvVideoThree" src="http://www.youtube.com/embed/wiPDJcBiDa0?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>';
  var videFour = '<iframe width="853" height="510" id="acvVideoFour" src="http://www.youtube.com/embed/Z5M9xRXq0bo?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>';
  
  
  $("#vOverlay .closeOverlayA").live("click",function(){
    $("#vOverlay .article_a").hide();
    overlay.hide();
    $("#vOverlay #acvVideoOne").remove();
    $('#acvVideoOne').html(videOne);
    return false;
  });
  
  $("#vOverlay .closeOverlayB").live("click",function(){
    $("#vOverlay .article_b").hide();
    overlay.hide();
    $("#vOverlay #acvVideoTwo").remove();
    $('#acvVideoTwo').html(videTwo);
    return false;
  });
  
   $("#vOverlay .closeOverlayC").live("click",function(){
    $("#vOverlay .article_c").hide();
    overlay.hide();
    $("#vOverlay #acvVideoThree").remove();
    $('#acvVideoThree').html(videThre);
    return false;
  });
   
   $("#vOverlay .closeOverlayD").live("click",function(){
    $("#vOverlay .article_d").hide();
    overlay.hide();
    $("#vOverlay #acvVideoFour").remove();
    $('#acvVideoFour').html(videFour);
    return false;
  });
});
