﻿ElmagasinetNews = function() {
return  {
    MostReadedData: function (type) {
        $('#MostReaded').val(type);
        $('#lnkMostReaded' + type).parent('div').parent('div').parent('div').children('div').children('div').removeClass().addClass("RightBoxItemChild");
        $('#lnkMostReaded' + type).parent('div').addClass("RightBoxItemChild_Selected");
        document.getElementById('FormMostReaded').onsubmit({ preventDefault: function() { } });
    },
    MostCommentsData: function (type) {
        $('#MostComments').val(type);
        $('#lnkMostComments' + type).parent('div').parent('div').parent('div').children('div').children('div').removeClass().addClass("RightBoxItemChild");
        $('#lnkMostComments' + type).parent('div').addClass("RightBoxItemChild_Selected");
        document.getElementById('FormMostComments').onsubmit({ preventDefault: function() { } });
    }
    }
}();


//function MostReaded_LoadByAjax_Complete(content) {
//    var html = content._response._xmlHttpRequest.responseText;
//    if (html != '-1') {
//        $('#FormMostReaded').children('.BoxContent').children('.BoxRightNews').children('.BoxRightNewsContent').html(html);
//    }
//}

//function MostComments_LoadByAjax_Complete(content) {
//    var html = content._response._xmlHttpRequest.responseText;
//    if (html != '-1') {
//        $('#FormMostComments').children('.BoxContent').children('.BoxRightNews').children('.BoxRightNewsContent').html(html);
//    }
//}
