$(function(){
    $("a").filter(function(){
        return $(this).attr('userNo');
    })
    .click(function(event){
        $("#memberProfile").remove();
        $("<div id='memberProfile'></div>")
        .css({
            position: 'absolute',
            left: event.pageX,
            top: event.pageY,
            display: 'none'
        })
        .load("/lge.mdn.com.RetrieveMemberProfileSlice.dev", {userNo:$(this).attr('userNo'), forumId:forumId, conGubun:$(this).attr('conGubun')}, function(){
            var html = $("#memberProfile").html();
            if( imagePath.indexOf("/") != -1 ) {
                imagePath = imagePath.substring(imagePath.lastIndexOf("/")+1);
            }

            if( uploadImagePath.indexOf("/") != -1 ) {
                uploadImagePath = uploadImagePath.substring(0, uploadImagePath.lastIndexOf("/"));
                uploadImagePath = uploadImagePath.substring(uploadImagePath.lastIndexOf("/")+1);
            }

            html = unescape(html);
            html = html.replace(/\{imagePath\}/gi, imagePath);
            html = html.replace(/\{uploadImagePath\}/gi, uploadImagePath);

            $("#memberProfile").html( html );
        })
        .appendTo('body')
        .fadeIn();
    });
});