if(typeof(_USERLINK_) == "undefined") {
  $(function(){
    var $floater = $('<ul id="floater"><li><a href="#" target="_blank"><img src="/resource/img/info_icon01.gif" alt="" border="0" align="absmiddle">È¸¿øÁ¤º¸</a></li><li><a href="#" target="_blank"><img src="/resource/img/info_icon02.gif" alt="" border="0" align="absmiddle">È¨ÆäÀÌÁö</a></li><li><a href="#" target="_blank"><img src="/resource/img/info_icon03.gif" alt="" border="0" align="absmiddle">ÂÊÁöº¸³»±â</a></li></ul>').hover(
      function(){},
      function(){$floater.css({display:'none'});}
    );
    var $a = $('a',$floater);
    $a.eq(0).click(function(){
      window.open(this.href,'wndM','width=300px,height=200px,resizable,scrollbars').focus();
      $floater.css({display:'none'});
      return false;
    });
    $a.eq(2).click(function(){
      window.open(this.href,'wndLetter','width=600px,height=400px,resizable,scrollbars').focus();
      $floater.css({display:'none'});
      return false;
    });
    $('a.user-link').click(function(){
      var uid = this.hash.slice(1);
      if(uid){
        var $this = $(this), offset = $this.position();
        $floater.appendTo('body').css({display:'block',left:offset.left,top:offset.top + $this.height()});
        $a.eq(0).attr('href','http://www.dpak.or.kr/gears/user/card.aspx?uid=' + uid);
        if($this.attr('rev')) {
          var home = $this.attr('rev');
          if(false == /^http\:\/\//i.test(home)) home = "http://" + home;
          $a.eq(1).attr('href',home);
        } else {
          $a.eq(1).attr('href','http://' + $this.attr('rel') +'.dpak.or.kr/');
        }
        $a.eq(2).attr('href','http://www.dpak.or.kr/gears/letter/send.aspx?to=' + $this.attr('rel'));
      }
      return false;
    });
    $('a.back').click(function(){
      history.back();
      return false;
    });
  });
  _USERLINK_ = true;
}
