cm = new Object();

cm.Like = new Object();

cm.Like.Navigate = function(id,index){
    AJAX.Request.constructor('');
    AJAX.Request.Send.GET('/like/'+id+'/'+index,cm.Like.Result);
}

cm.Like.Result = function(result){
    $(document).ready(function(){
        $("div#conntent-list-like").html(result.toString());
    })
}

cm.Like.History = function(from,to,total){

    var str = 'Asemănătoare ' + from + ' - ' + to + ' din ' + total;
    $(document).ready(function(){
        $("div#info-like").html(str.toString());
    })
}

cm.Commented = new Object();

cm.Commented.Navigate = function(index){
    AJAX.Request.constructor('');
    AJAX.Request.Send.GET('/social_commented/'+index,cm.Commented.Result);
}

cm.Commented.Result = function(result){
    $(document).ready(function(){
        $("div#conntent-list-like").html(result.toString());
    })
}

cm.Commented.History = function(from,to,total){

    var str = 'Comentate ' + from + ' - ' + to + ' din ' + total;
    $(document).ready(function(){
        $("div#info-like").html(str.toString());
    })
}

cm.Replay = new Object();

cm.Replay.Navigate = function(index){
    AJAX.Request.constructor('');
    AJAX.Request.Send.GET('/social_replay/'+index,cm.Replay.Result);
}

cm.Replay.Result = function(result){
    $(document).ready(function(){
        $("div#conntent-list-like").html(result.toString());
    })
}

cm.Replay.History = function(from,to,total){

    var str = 'Comentate ' + from + ' - ' + to + ' din ' + total;
    $(document).ready(function(){
        $("div#info-like").html(str.toString());
    })
}
