jQuery(function($) {
  $('tr.splan_qtip > td').each(function(){
    var texts;
    $(this).find('a').each(function(){
            texts = $(this).attr('detail');
    });
    // qtip
    $(this).find('a').qtip({
      content : texts,
      position: {
         corner: {        //bottomLeft, bottomRight, bottomMiddle, topRight, topLeft, topMiddle,
                        //leftMiddle, leftTop, leftBottom, rightMiddle, rightBottom, rightTop
            target: 'topMiddle',
            tooltip: 'bottomMiddle'
         },
         adjust: {
            x: 0, y: 0,
            mouse: true,
            screen: true,
            scroll: true,
            resize: true
        }
      },
      style: {
         name: 'green', //defaults,cream,light,dark,red,green,blue
         padding: '7px 13px',
         width: {
            max: 250,
            min: 0
         },
      border: {
         width:  3,  //border 굵기 지정
         radius: 0   //coner round 반경 지정(색을 지정하려면 끝에 "0,"처럼 끝에,를 붙일것)
         //color: '#A9DB66' //border color
         },
         tip: true
      }
    });
  });
});
