/**
* Выравнивание элемента по центру окна
*/
jQuery.fn.center = function()
{
    var w = $(window);
    this.css("position","absolute");
    this.css("top",(w.height()-this.height())/2+w.scrollTop() + "px");
    this.css("left",(w.width()-this.width())/2+w.scrollLeft() + "px");
    return this;
};

$(document).ready(function() {
    /*для таблиц*/
    $("table tr:even").css("background","#e4f0ee");

	$("table.ie6bar-icons-table tr:even").removeAttr("style");

    /*для роликов*/
    $(".step-2 a").click(function() {
        $(".step-2 div").show();
        $(".step-2 div").center();
        return false;
    });
    $(".step-2 a.close").click(function() {
        $(".step-2 div").hide();
        return false;
    });
});

