jQuery.fn.extend({coverVid:function(a,b){function c(){e.css({position:"absolute",top:"50%",left:"50%","-webkit-transform":"translate(-50%, -50%)","-ms-transform":"translate(-50%, -50%)",transform:"translate(-50%, -50%)"}),e.parent().css("overflow","hidden")}function d(){var c=e.parent().height(),d=e.parent().width(),f=a,g=b,h=c/g,i=d/f;e.css(i>h?{height:"auto",width:d}:{height:c,width:"auto"})}$(document).ready(c,d),$(window).resize(d);var e=this}});