/*
  CSS Cursor Gadget
  A modular component for visually picking CSS cursors from a web interface.
  author: Thomas Ballard (thomas2003*esqsoft^om antibot: *=@, ^=.c)
  © 2004 E.S.Q Software  More scripts and usage requirements: http://esqsoft.com
*/

cg = new Object()

cg.cursors = new Array(
  "pointer",
  "crosshair",
  "default",
  "help",
  "all-scroll",
  "col-resize",
  "hand",
  "move",
  "no-drop",
  "not-allowed",
  "progress",
  "row-resize",
  "text",
  "url('cursors/piano.ani')",
  "url('cursors/pen_m.cur')",
  "vertical-text",
  "wait",
  "auto",
  "N-resize",
  "NE-resize",
  "E-resize",
  "SE-resize",
  "S-resize",
  "SW-resize",
  "W-resize",
  "NW-resize",
  "");

cg.handleClick = function(e){
  var obj = e.srcElement
  if(obj && obj.style && obj.style.cursor){
    var val = obj.style.cursor
    
    if(window.clipboardData){                
      var bResult = window.clipboardData.setData('Text',val);
    }
  }
}

cg.html = ''
+'<table cellpadding="0" cellspacing="0">'
+'  <tr>'
+'    <td class="heading">'
+'      <h1 id="mheader">CSS Cursor Property Gadget</h1>'
+'    </td>'
+'  </tr>'
+'  <tr valign="top">'
+'    <td>'
+'      <table align="center" cellspacing="1" cellpadding="5" class="sptable"'
+'        onclick="if(cg.handleClick) cg.handleClick(event)"'
+'      >'

var done = cg.cursors.length;
while(done>0){
  cg.html += '<tr>'
  for(var i=0; i<6; i++){
    cg.html += '<td style="cursor:'+cg.cursors[done]+'">'+cg.cursors[done]+'</td>'
    done=done-1
  }
  cg.html += '</tr>'
}

cg.html += ''
+'      </table>'
+'    </td>'
+'    <td width="120">'
+'    </td>'
+'  </tr>'
+'</table>'

cg.makeIF = function(){
alert(1)
  document.write(cg.html)
}

cg.makePop = function(){
  window.open('','cgPop','')
  
}
