(function($) {
    $.fn.extend({
        centreElm:function(options){
            var defaults = {easing:'easeInOutExpo',aniSpeed:300};
            var options = $.extend(defaults, options);
            return this.each(function() {
                var aniType=options.easing;
                var timeout=options.aniSpeed;
                var thisElmName=$(this);
                var thisElmHeight=thisElmName.height();
                var thisElmWidth=thisElmName.width();
                var windHeight=$(window).height();
                var windWidth=$(window).width();
                thisElmName.animate({top:((windHeight/2)-(thisElmHeight/2)),left:((windWidth/2)-(thisElmWidth/2))},{duration:timeout,queue:false,easing:aniType});
            });
        }
    });
})(jQuery);