var handWrite = $Class({
    $init : function(obj)
    {
        this.handWriteBtn = obj.handWriteBtn;
        this.handWriteLayer = obj.handWriteLayer;
        this.handWriteLayer.style.display = "none";
        this.layerCloseBtn = cssquery("p.handWrite_tit span.txt_tit1 a", this.handWriteLayer)[0];
        this._bindEvents();
    },
    _bindEvents:function()
    {
        $Fn(this._handlers.click, this).attach(this.handWriteBtn, "click");
        $Fn(this._handlers.closeClick, this).attach(this.layerCloseBtn, "click");
    },
    _handlers:{
        click:function(e)
        {
            $Element(this.handWriteLayer).css({left:this.handWriteBtn.parentNode.offsetLeft, display:"block"});
            e.stop();
        },
        closeClick:function(e)
        {
            $Element(this.handWriteLayer).css({display:"none"});
            e.stop();
        }
    }
});

