var SpyReplay = $.extend(new Object(), { fps : 6, cursor : null, g : null, tmp : new Array(), frame : null, init : function() { var m = document.location.href.match(/\?watch_id=([0-9]+)&fps=([0-9]+)/); this.fps = m[2]; var self = this; $.ajax({ url:'/spy/data.html', data: {id:m[1]}, success: function(t) { self.tmp = eval(t); self.replay(); } }); }, drawClick: function(x,y) { var size = 4; this.g.setColor('gray'); this.g.setStroke(3); this.g.drawLine(x-size,y-size, x,y); this.g.drawLine(x-size,y+size, x,y); this.g.drawLine(x+size,y-size, x,y); this.g.drawLine(x+size,y+size, x,y); this.g.setStroke(0); this.g.paint(); this.g.setColor('red'); }, replay : function() { if (this.cursor == null) { this.cursor = $('').appendTo(document.body).show(); jg = $('