﻿function positionset() {
    try {
        var width = parseInt($(document).width());
        if (width <= 980) {
            $(".tab ul.login").css("right", "28px");
        } else if (width > 980) {
            var right = width - ($("#page_margins").offset().left + $("#page_margins").width());
            $(".tab ul.login").css("right", right + "px");
        }
    } catch (err) {
    }
}

$(document).ready(function() {
    $(window).resize(positionset);
});
