
$(function() {
/*
    $("TD.main_text A[href^='PPNoticeMgr']").each(function(i) {
        if (i < 2) {
            $('#talkple_rotator2').append("<div><a href='"+$(this).attr('href')+"'>" +
                "<img src=\"../images/enfax30/talkple/notice_bul_" + '00'.concat(i+1).match(/\d{2}$/) + ".gif\" border=\"0\" style=\"margin-bottom:-2px;\">"
                + " " + $(this).text().replace(/document(.+?)\);/g, '').cut(26)+ "</a></div>");
        }
    });
    $("#talkple_rotator2").rotator({ms:3000, n:1});

    $.getJSON('/mgr/PPTalkMgr.qri?act=best&' + (new Date()).getTime(), function(data) {
        for (var i = 1; i <= (data.length - 1); i++) {
            $('#talkple_rotator1').append("<div><a href='PPTalkMgr.qri?act=view&svcCode="+data[i].code + "&no=" + data[i].no+"'>"+
                "<img src=\"../images/enfax30/talkple/tp_bul_" + '00'.concat(i).match(/\d{2}$/) + ".gif\" border=\"0\" style=\"margin-bottom:-2px;\">"
                + " " + data[i].title.cut(22)+ "</a></div>");
        }

        $("#talkple_rotator1").rotator({ms:3000, n:1});

        $('body').append($.template("talkple_pop_layout", data));

        $("#talkple_rotator1").mouseover(function() {
            $('.tp_layer').slideDown('fast');
        });

        $(".tp_layer").hover(function() {return false;}, function() {
            $(this).slideUp('fast');
        });

    });
*/


    $.getJSON('/mgr/PPTalkMgr.qri?act=new&' + (new Date()).getTime(), function(data) {

        $('#talkple_new1').append($.template("talkple_new_layout1", data));
        $('#talkple_new2').append($.template("talkple_new_layout2", data));

    });

});
