// -*- coding: utf-8 -*-


jQuery.fn.verticalCenter = function() {
    var selector = $(this[0]) // It's your element
    var height = selector.height();
    var window_height = $(window).height();    
    if(window_height < height){
      selector.css("margin-top", "0px");
    }else{
      selector.css("margin-top", (window_height-height)/2+"px");
    }


};


