﻿
$.fn.centerInClient = function(options)
{
    /// <summary>Centers the selected items in the browser window.
    /// </summary>    
    /// <returns type="jQuery" />

    return this.each(function(i)
    {
        var winH = $(window).height();
        var winW = $(window).width();
        var centered = $(this);
        centered.css('position', 'fixed');
        centered.css('top', winH / 2 - centered.height() / 2);
        centered.css('left', winW / 2 - centered.width() / 2);
    });
}
