function jKeyboard(k){var t=false;var y=0;var b=[];var g,s,h;var v=[];var B=false,m=false,u=false;var f=[];var r,p=200,w;var A;function n(){return{}}function q(D){var C=n();for(var c in D){C[c]=D[c]}return C}var e=50;var z=1000/e;var o=new Date();function d(){var D=(new Date()).getTime();if((D-o)<z){return}o=D;if(b.mousemove){k("#out").html("Mouse moving");var C=b.mousemove;v.push({x:C.x,y:C.y});h.mousemove(C);h.paint();if(t&&B){s.beginPath();s.moveTo(v[0].x,v[0].y);for(var c=1;c<v.length;c++){s.lineTo(v[c].x,v[c].y)}s.stroke()}}else{k("#out").html("Nothing")}}var x=[];var l=function(){var c=document.createElement("canvas");if(k.browser.msie){dhtmlLoadScript("excanvas.js");G_vmlCanvasManager.initElement(c)}if(!c.getContext){alert("Sorry, your browser does not support html 5 canvas. Please try with another browser!!");return}var W=670;var K=250;k(c).attr("id","jKeyboard").attr("width",W).attr("height",K).attr("style","border: solid 2px #666; padding:5px; position: fixed; left:100px;			top:100px;			-moz-border-radius: 15px;			-webkit-border-radius: 15px;			background:#fff;			filter:alpha(opacity=60);			-moz-opacity:0.6;			-khtml-opacity: 0.6;			opacity: 0.6;			");k(c).css({left:(k(window).width()-W)/2,top:(k(window).height()-K)/2});k("body").append(c);s=c.getContext("2d");a.enable(s);var U=0;handleKeyboardDrag=function(X){if(u){k("#jKeyboard").css({left:X.pageX-gripXY.x,top:X.pageY-gripXY.y})}};h={elements:[],paint:function(){s.clearRect(0,0,c.width,c.height);for(var X in this.elements){this.elements[X].paint()}},mousemove:function(Z){if(m){B=true}k("#out").html("Mouse moving");var Y=false;for(var aa in this.elements){var X=this.elements[aa];if(X.ispressed){X.isdragged=true;if(typeof X.drag=="function"){X.drag(Z)}}if(typeof X.hover!="function"){continue}if((X.x<Z.x)&&(X.y<Z.y)&&((X.x+X.w)>Z.x)&&((X.y+X.h)>Z.y)){if(typeof X.hover=="function"){X.hover(Z)}Y=true}else{if(X.ishover){X.hoveroff(Z)}}}if(!Y){k("#jKeyboard").css({cursor:"auto"})}},mousedown:function(Y){m=true;v=[];u=true;gripXY=Y;v.push({x:Y.x,y:Y.y});k("#out").html("Mouse Down");for(var Z in this.elements){var X=this.elements[Z];if((X.x<Y.x)&&(X.y<Y.y)&&((X.x+X.w)>Y.x)&&((X.y+X.h)>Y.y)){X.clicked=true;u=false;if(typeof X.mousedown=="function"){X.ispress=true;X.mousedown(Y)}X.paint();break}}if(u){k(document).mousemove(handleKeyboardDrag)}},mouseup:function(Y){if(u){k(document).unbind("mousemove",handleKeyboardDrag)}u=false;m=false;B=false;for(var Z in this.elements){var X=this.elements[Z];if(X.ispress){if(typeof X.mouseup!="function"){continue}if((X.x<Y.x)&&(X.y<Y.y)&&((X.x+X.w)>Y.x)&&((X.y+X.h)>Y.y)){X.mouseup(Y);hit=true}X.ispress=false}}}};var R=[];R[0]=["`","1","2","3","4","5","6","7","8","9","0","-","=","delete"];R[1]=["tab","q","w","e","r","t","y","u","i","o","p","[","]","\\"];R[2]=["caps","a","s","d","f","g","h","j","k","l",";","'","enter"];R[4]=["shift","z","x","c","v","b","n","m",",",".","/","reserved"];R[5]=["space"];function Q(aa,Z,ae,ac,Y,X,ab,ad){aa.beginPath();aa.moveTo(Z,ae+X);aa.lineTo(Z,ae+Y-X);aa.quadraticCurveTo(Z,ae+Y,Z+X,ae+Y);aa.lineTo(Z+ac-X,ae+Y);aa.quadraticCurveTo(Z+ac,ae+Y,Z+ac,ae+Y-X);aa.lineTo(Z+ac,ae+X);aa.quadraticCurveTo(Z+ac,ae,Z+ac-X,ae);aa.lineTo(Z+X,ae);aa.quadraticCurveTo(Z,ae,Z,ae+X);if(ad){aa.strokeStyle="#000";aa.stroke()}else{if(ab){aa.strokeStyle="#999";aa.stroke()}else{aa.strokeStyle="#555";aa.stroke()}}}function T(){k("#out").html(":)");this.ishover=true;k("#jKeyboard").css({cursor:"pointer"})}function G(){this.ishover=false;this.ispress=false;k("#jKeyboard").css({cursor:"auto"})}function J(ac,aa){if(!ac){return}var Z=k(ac).val();var ab=ac.selectionStart;var Y=ac.selectionEnd;if(w>-1){w+=aa.length;ab=Y=w}else{w=ab}var X=Y-ab;k(ac).val(Z.substr(0,ab)+aa+Z.substr(Y));if(ac.setSelectionRange){ac.setSelectionRange(ab+aa.length,ab+aa.length)}}function E(){J(H(),this.txt);r=window.setInterval(J,p,H(),this.txt)}function M(){this.ispress=false}function I(){Q(s,this.x,this.y,this.w,this.h,5,this.ishover,this.ispress);s.drawTextCenter(null,12,this.x+this.w/2,this.y+this.h/2+5,this.txt)}function D(X){if(X=="tab"){return 70}if(X=="delete"){return 70}if(X=="caps"){return 80}if(X=="enter"){return 77}if(X=="shift"){return 97}if(X=="reserved"){return 100}if(X=="space"){return 660}return 40}var P,N;var F=5;N=F;for(var L in R){P=F;for(i2 in R[L]){var V=R[L][i2];var O={txt:V,x:P,y:N,w:D(V),h:40,paint:I,hover:T,hoveroff:G,mousedown:E,mouseup:M};P+=O.w+F;x[V]=O;h.elements.push(x[V])}N+=F+40}function C(X){if(k(H()).attr("type")=="password"){return}x[X].ispress=true;x[X].paint()}function S(X){x[X].ispress=false;h.paint()}function H(){var X=k(":focus");if(X.is("input")||X.is("textarea")){return X[0]}else{return null}}k(document).bind("keydown","`",function(){C("`")}).bind("keyup","`",function(){S("`")}).bind("keydown","1",function(){C("1")}).bind("keyup","1",function(){S("1")}).bind("keydown","2",function(){C("2")}).bind("keyup","2",function(){S("2")}).bind("keydown","3",function(){C("3")}).bind("keyup","3",function(){S("3")}).bind("keydown","4",function(){C("4")}).bind("keyup","4",function(){S("4")}).bind("keydown","5",function(){C("5")}).bind("keyup","5",function(){S("5")}).bind("keydown","6",function(){C("6")}).bind("keyup","6",function(){S("6")}).bind("keydown","7",function(){C("7")}).bind("keyup","7",function(){S("7")}).bind("keydown","8",function(){C("8")}).bind("keyup","8",function(){S("8")}).bind("keydown","9",function(){C("9")}).bind("keyup","9",function(){S("9")}).bind("keydown","0",function(){C("0")}).bind("keyup","0",function(){S("0")}).bind("keydown","-",function(){C("-")}).bind("keyup","-",function(){S("-")}).bind("keydown","=",function(){C("=")}).bind("keyup","=",function(){S("=")}).bind("keydown","backspace",function(){C("delete")}).bind("keyup","backspace",function(){S("delete")}).bind("keydown","tab",function(){C("tab")}).bind("keyup","tab",function(){S("tab")}).bind("keydown","q",function(){C("q")}).bind("keyup","q",function(){S("q")}).bind("keydown","w",function(){C("w")}).bind("keyup","w",function(){S("w")}).bind("keydown","e",function(){C("e")}).bind("keyup","e",function(){S("e")}).bind("keydown","r",function(){C("r")}).bind("keyup","r",function(){S("r")}).bind("keydown","t",function(){C("t")}).bind("keyup","t",function(){S("t")}).bind("keydown","y",function(){C("y")}).bind("keyup","y",function(){S("y")}).bind("keydown","u",function(){C("u")}).bind("keyup","u",function(){S("u")}).bind("keydown","i",function(){C("i")}).bind("keyup","i",function(){S("i")}).bind("keydown","o",function(){C("o")}).bind("keyup","o",function(){S("o")}).bind("keydown","p",function(){C("p")}).bind("keyup","p",function(){S("p")}).bind("keydown","[",function(){C("[")}).bind("keyup","[",function(){S("[")}).bind("keydown","]",function(){C("]")}).bind("keyup","]",function(){S("]")}).bind("keydown","\\",function(){C("\\")}).bind("keyup","\\",function(){S("\\")}).bind("keydown","capslock",function(){C("caps")}).bind("keyup","capslock",function(){S("caps")}).bind("keydown","a",function(){C("a")}).bind("keyup","a",function(){S("a")}).bind("keydown","s",function(){C("s")}).bind("keyup","s",function(){S("s")}).bind("keydown","d",function(){C("d")}).bind("keyup","d",function(){S("d")}).bind("keydown","f",function(){C("f")}).bind("keyup","f",function(){S("f")}).bind("keydown","g",function(){C("g")}).bind("keyup","g",function(){S("g")}).bind("keydown","h",function(){C("h")}).bind("keyup","h",function(){S("h")}).bind("keydown","j",function(){C("j")}).bind("keyup","j",function(){S("j")}).bind("keydown","k",function(){C("k")}).bind("keyup","k",function(){S("k")}).bind("keydown","l",function(){C("l")}).bind("keyup","l",function(){S("l")}).bind("keydown",";",function(){C(";")}).bind("keyup",";",function(){S(";")}).bind("keydown","'",function(){C("'")}).bind("keyup","'",function(){S("'")}).bind("keydown","enter",function(){C("enter")}).bind("keyup","enter",function(){S("enter")}).bind("keydown","shift",function(){C("shift")}).bind("keyup","shift",function(){S("shift")}).bind("keydown","z",function(){C("z")}).bind("keyup","z",function(){S("z")}).bind("keydown","x",function(){C("x")}).bind("keyup","x",function(){S("x")}).bind("keydown","c",function(){C("c")}).bind("keyup","c",function(){S("c")}).bind("keydown","v",function(){C("v")}).bind("keyup","v",function(){S("v")}).bind("keydown","b",function(){C("b")}).bind("keyup","b",function(){S("b")}).bind("keydown","n",function(){C("n")}).bind("keyup","n",function(){S("n")}).bind("keydown","m",function(){C("m")}).bind("keyup","m",function(){S("m")}).bind("keydown",",",function(){C(",")}).bind("keyup",",",function(){S(",")}).bind("keydown",".",function(){C(".")}).bind("keyup",".",function(){S(".")}).bind("keydown","/",function(){C("/")}).bind("keyup","/",function(){S("/")}).bind("keydown","reserved",function(){C("reserved")}).bind("keyup","reserved",function(){S("reserved")}).bind("keydown","space",function(){C("space")}).bind("keyup","space",function(){S("space")});x.caps.mousedown=function(){var X=(x.a.txt=="a");var aa="abcdefghijklmnopqrstuvwxyz";if(X){aa=aa.toUpperCase()}for(var Z in aa){x[aa[Z].toLowerCase()].txt=aa[Z]}var Y="`1234567890-=[]\\;',./";var ab='~!@#$%^&*()_+{}|:"<>?';if(X){for(var Z in Y){x[Y[Z]].txt=ab[Z]}}else{for(var Z in Y){x[Y[Z]].txt=Y[Z]}}h.paint()};x.reserved.mousedown=null;x.shift.mousedown=x.caps.mousedown;x.space.mousedown=function(){J(H()," ");r=window.setInterval(J,p,H()," ")};x.enter.mousedown=function(){J(H(),"\n");r=window.setInterval(J,p,H(),"\n")};x["delete"].mousedown=function(){txtarea=A;if(!txtarea){return}var ac=txtarea.selectionStart;var X=txtarea.selectionEnd;var ab=k(txtarea).val();var Y=(w>-1);if(Y){ac=X=--w}var Z=X-ac;if((Z==0)||Y){var aa=ab.substr(0,ac-1)+ab.substr(X);k(txtarea).val(aa);if(txtarea.setSelectionRange){txtarea.setSelectionRange(ac-1,ac-1)}}else{J(A,"")}if(!Y){w=ac}r=window.setTimeout(x["delete"].mousedown,p)};x.tab.mousedown=function(){J(H(),"\t")};k("#jKeyboard").mousemove(function(Y){var X=Y.pageX-k(this).offset().left;var Z=Y.pageY-k(this).offset().top;b.mousemove={x:X,y:Z};d()}).mousedown(function(Y){var X=Y.pageX-k(this).offset().left;var Z=Y.pageY-k(this).offset().top;A=H();h.mousedown({x:X,y:Z})}).mouseup(function(Y){var X=Y.pageX-k(this).offset().left;var Z=Y.pageY-k(this).offset().top;h.mouseup({x:X,y:Z});window.clearInterval(r);w=-1;if(A){A.focus()}});h.paint()};var a={};a.letters={" ":{width:16,points:[]},"!":{width:10,points:[[5,21],[5,7],[-1,-1],[5,2],[4,1],[5,0],[6,1],[5,2]]},'"':{width:16,points:[[4,21],[4,14],[-1,-1],[12,21],[12,14]]},"#":{width:21,points:[[11,25],[4,-7],[-1,-1],[17,25],[10,-7],[-1,-1],[4,12],[18,12],[-1,-1],[3,6],[17,6]]},"$":{width:20,points:[[8,25],[8,-4],[-1,-1],[12,25],[12,-4],[-1,-1],[17,18],[15,20],[12,21],[8,21],[5,20],[3,18],[3,16],[4,14],[5,13],[7,12],[13,10],[15,9],[16,8],[17,6],[17,3],[15,1],[12,0],[8,0],[5,1],[3,3]]},"%":{width:24,points:[[21,21],[3,0],[-1,-1],[8,21],[10,19],[10,17],[9,15],[7,14],[5,14],[3,16],[3,18],[4,20],[6,21],[8,21],[10,20],[13,19],[16,19],[19,20],[21,21],[-1,-1],[17,7],[15,6],[14,4],[14,2],[16,0],[18,0],[20,1],[21,3],[21,5],[19,7],[17,7]]},"&":{width:26,points:[[23,12],[23,13],[22,14],[21,14],[20,13],[19,11],[17,6],[15,3],[13,1],[11,0],[7,0],[5,1],[4,2],[3,4],[3,6],[4,8],[5,9],[12,13],[13,14],[14,16],[14,18],[13,20],[11,21],[9,20],[8,18],[8,16],[9,13],[11,10],[16,3],[18,1],[20,0],[22,0],[23,1],[23,2]]},"'":{width:10,points:[[5,19],[4,20],[5,21],[6,20],[6,18],[5,16],[4,15]]},"(":{width:14,points:[[11,25],[9,23],[7,20],[5,16],[4,11],[4,7],[5,2],[7,-2],[9,-5],[11,-7]]},")":{width:14,points:[[3,25],[5,23],[7,20],[9,16],[10,11],[10,7],[9,2],[7,-2],[5,-5],[3,-7]]},"*":{width:16,points:[[8,21],[8,9],[-1,-1],[3,18],[13,12],[-1,-1],[13,18],[3,12]]},"+":{width:26,points:[[13,18],[13,0],[-1,-1],[4,9],[22,9]]},",":{width:10,points:[[6,1],[5,0],[4,1],[5,2],[6,1],[6,-1],[5,-3],[4,-4]]},"-":{width:26,points:[[4,9],[22,9]]},".":{width:10,points:[[5,2],[4,1],[5,0],[6,1],[5,2]]},"/":{width:22,points:[[20,25],[2,-7]]},"0":{width:20,points:[[9,21],[6,20],[4,17],[3,12],[3,9],[4,4],[6,1],[9,0],[11,0],[14,1],[16,4],[17,9],[17,12],[16,17],[14,20],[11,21],[9,21]]},"1":{width:20,points:[[6,17],[8,18],[11,21],[11,0]]},"2":{width:20,points:[[4,16],[4,17],[5,19],[6,20],[8,21],[12,21],[14,20],[15,19],[16,17],[16,15],[15,13],[13,10],[3,0],[17,0]]},"3":{width:20,points:[[5,21],[16,21],[10,13],[13,13],[15,12],[16,11],[17,8],[17,6],[16,3],[14,1],[11,0],[8,0],[5,1],[4,2],[3,4]]},"4":{width:20,points:[[13,21],[3,7],[18,7],[-1,-1],[13,21],[13,0]]},"5":{width:20,points:[[15,21],[5,21],[4,12],[5,13],[8,14],[11,14],[14,13],[16,11],[17,8],[17,6],[16,3],[14,1],[11,0],[8,0],[5,1],[4,2],[3,4]]},"6":{width:20,points:[[16,18],[15,20],[12,21],[10,21],[7,20],[5,17],[4,12],[4,7],[5,3],[7,1],[10,0],[11,0],[14,1],[16,3],[17,6],[17,7],[16,10],[14,12],[11,13],[10,13],[7,12],[5,10],[4,7]]},"7":{width:20,points:[[17,21],[7,0],[-1,-1],[3,21],[17,21]]},"8":{width:20,points:[[8,21],[5,20],[4,18],[4,16],[5,14],[7,13],[11,12],[14,11],[16,9],[17,7],[17,4],[16,2],[15,1],[12,0],[8,0],[5,1],[4,2],[3,4],[3,7],[4,9],[6,11],[9,12],[13,13],[15,14],[16,16],[16,18],[15,20],[12,21],[8,21]]},"9":{width:20,points:[[16,14],[15,11],[13,9],[10,8],[9,8],[6,9],[4,11],[3,14],[3,15],[4,18],[6,20],[9,21],[10,21],[13,20],[15,18],[16,14],[16,9],[15,4],[13,1],[10,0],[8,0],[5,1],[4,3]]},":":{width:10,points:[[5,14],[4,13],[5,12],[6,13],[5,14],[-1,-1],[5,2],[4,1],[5,0],[6,1],[5,2]]},";":{width:10,points:[[5,14],[4,13],[5,12],[6,13],[5,14],[-1,-1],[6,1],[5,0],[4,1],[5,2],[6,1],[6,-1],[5,-3],[4,-4]]},"<":{width:24,points:[[20,18],[4,9],[20,0]]},"=":{width:26,points:[[4,12],[22,12],[-1,-1],[4,6],[22,6]]},">":{width:24,points:[[4,18],[20,9],[4,0]]},"?":{width:18,points:[[3,16],[3,17],[4,19],[5,20],[7,21],[11,21],[13,20],[14,19],[15,17],[15,15],[14,13],[13,12],[9,10],[9,7],[-1,-1],[9,2],[8,1],[9,0],[10,1],[9,2]]},"@":{width:27,points:[[18,13],[17,15],[15,16],[12,16],[10,15],[9,14],[8,11],[8,8],[9,6],[11,5],[14,5],[16,6],[17,8],[-1,-1],[12,16],[10,14],[9,11],[9,8],[10,6],[11,5],[-1,-1],[18,16],[17,8],[17,6],[19,5],[21,5],[23,7],[24,10],[24,12],[23,15],[22,17],[20,19],[18,20],[15,21],[12,21],[9,20],[7,19],[5,17],[4,15],[3,12],[3,9],[4,6],[5,4],[7,2],[9,1],[12,0],[15,0],[18,1],[20,2],[21,3],[-1,-1],[19,16],[18,8],[18,6],[19,5]]},A:{width:18,points:[[9,21],[1,0],[-1,-1],[9,21],[17,0],[-1,-1],[4,7],[14,7]]},B:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,15],[17,13],[16,12],[13,11],[-1,-1],[4,11],[13,11],[16,10],[17,9],[18,7],[18,4],[17,2],[16,1],[13,0],[4,0]]},C:{width:21,points:[[18,16],[17,18],[15,20],[13,21],[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5]]},D:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[11,21],[14,20],[16,18],[17,16],[18,13],[18,8],[17,5],[16,3],[14,1],[11,0],[4,0]]},E:{width:19,points:[[4,21],[4,0],[-1,-1],[4,21],[17,21],[-1,-1],[4,11],[12,11],[-1,-1],[4,0],[17,0]]},F:{width:18,points:[[4,21],[4,0],[-1,-1],[4,21],[17,21],[-1,-1],[4,11],[12,11]]},G:{width:21,points:[[18,16],[17,18],[15,20],[13,21],[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[18,8],[-1,-1],[13,8],[18,8]]},H:{width:22,points:[[4,21],[4,0],[-1,-1],[18,21],[18,0],[-1,-1],[4,11],[18,11]]},I:{width:8,points:[[4,21],[4,0]]},J:{width:16,points:[[12,21],[12,5],[11,2],[10,1],[8,0],[6,0],[4,1],[3,2],[2,5],[2,7]]},K:{width:21,points:[[4,21],[4,0],[-1,-1],[18,21],[4,7],[-1,-1],[9,12],[18,0]]},L:{width:17,points:[[4,21],[4,0],[-1,-1],[4,0],[16,0]]},M:{width:24,points:[[4,21],[4,0],[-1,-1],[4,21],[12,0],[-1,-1],[20,21],[12,0],[-1,-1],[20,21],[20,0]]},N:{width:22,points:[[4,21],[4,0],[-1,-1],[4,21],[18,0],[-1,-1],[18,21],[18,0]]},O:{width:22,points:[[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[19,8],[19,13],[18,16],[17,18],[15,20],[13,21],[9,21]]},P:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,14],[17,12],[16,11],[13,10],[4,10]]},Q:{width:22,points:[[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[19,8],[19,13],[18,16],[17,18],[15,20],[13,21],[9,21],[-1,-1],[12,4],[18,-2]]},R:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,15],[17,13],[16,12],[13,11],[4,11],[-1,-1],[11,11],[18,0]]},S:{width:20,points:[[17,18],[15,20],[12,21],[8,21],[5,20],[3,18],[3,16],[4,14],[5,13],[7,12],[13,10],[15,9],[16,8],[17,6],[17,3],[15,1],[12,0],[8,0],[5,1],[3,3]]},T:{width:16,points:[[8,21],[8,0],[-1,-1],[1,21],[15,21]]},U:{width:22,points:[[4,21],[4,6],[5,3],[7,1],[10,0],[12,0],[15,1],[17,3],[18,6],[18,21]]},V:{width:18,points:[[1,21],[9,0],[-1,-1],[17,21],[9,0]]},W:{width:24,points:[[2,21],[7,0],[-1,-1],[12,21],[7,0],[-1,-1],[12,21],[17,0],[-1,-1],[22,21],[17,0]]},X:{width:20,points:[[3,21],[17,0],[-1,-1],[17,21],[3,0]]},Y:{width:18,points:[[1,21],[9,11],[9,0],[-1,-1],[17,21],[9,11]]},Z:{width:20,points:[[17,21],[3,0],[-1,-1],[3,21],[17,21],[-1,-1],[3,0],[17,0]]},"[":{width:14,points:[[4,25],[4,-7],[-1,-1],[5,25],[5,-7],[-1,-1],[4,25],[11,25],[-1,-1],[4,-7],[11,-7]]},"\\":{width:14,points:[[0,21],[14,-3]]},"]":{width:14,points:[[9,25],[9,-7],[-1,-1],[10,25],[10,-7],[-1,-1],[3,25],[10,25],[-1,-1],[3,-7],[10,-7]]},"^":{width:16,points:[[6,15],[8,18],[10,15],[-1,-1],[3,12],[8,17],[13,12],[-1,-1],[8,17],[8,0]]},_:{width:16,points:[[0,-2],[16,-2]]},"`":{width:10,points:[[6,21],[5,20],[4,18],[4,16],[5,15],[6,16],[5,17]]},a:{width:19,points:[[15,14],[15,0],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},b:{width:19,points:[[4,21],[4,0],[-1,-1],[4,11],[6,13],[8,14],[11,14],[13,13],[15,11],[16,8],[16,6],[15,3],[13,1],[11,0],[8,0],[6,1],[4,3]]},c:{width:18,points:[[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},d:{width:19,points:[[15,21],[15,0],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},e:{width:18,points:[[3,8],[15,8],[15,10],[14,12],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},f:{width:12,points:[[10,21],[8,21],[6,20],[5,17],[5,0],[-1,-1],[2,14],[9,14]]},g:{width:19,points:[[15,14],[15,-2],[14,-5],[13,-6],[11,-7],[8,-7],[6,-6],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},h:{width:19,points:[[4,21],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0]]},i:{width:8,points:[[3,21],[4,20],[5,21],[4,22],[3,21],[-1,-1],[4,14],[4,0]]},j:{width:10,points:[[5,21],[6,20],[7,21],[6,22],[5,21],[-1,-1],[6,14],[6,-3],[5,-6],[3,-7],[1,-7]]},k:{width:17,points:[[4,21],[4,0],[-1,-1],[14,14],[4,4],[-1,-1],[8,8],[15,0]]},l:{width:8,points:[[4,21],[4,0]]},m:{width:30,points:[[4,14],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0],[-1,-1],[15,10],[18,13],[20,14],[23,14],[25,13],[26,10],[26,0]]},n:{width:19,points:[[4,14],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0]]},o:{width:19,points:[[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3],[16,6],[16,8],[15,11],[13,13],[11,14],[8,14]]},p:{width:19,points:[[4,14],[4,-7],[-1,-1],[4,11],[6,13],[8,14],[11,14],[13,13],[15,11],[16,8],[16,6],[15,3],[13,1],[11,0],[8,0],[6,1],[4,3]]},q:{width:19,points:[[15,14],[15,-7],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},r:{width:13,points:[[4,14],[4,0],[-1,-1],[4,8],[5,11],[7,13],[9,14],[12,14]]},s:{width:17,points:[[14,11],[13,13],[10,14],[7,14],[4,13],[3,11],[4,9],[6,8],[11,7],[13,6],[14,4],[14,3],[13,1],[10,0],[7,0],[4,1],[3,3]]},t:{width:12,points:[[5,21],[5,4],[6,1],[8,0],[10,0],[-1,-1],[2,14],[9,14]]},u:{width:19,points:[[4,14],[4,4],[5,1],[7,0],[10,0],[12,1],[15,4],[-1,-1],[15,14],[15,0]]},v:{width:16,points:[[2,14],[8,0],[-1,-1],[14,14],[8,0]]},w:{width:22,points:[[3,14],[7,0],[-1,-1],[11,14],[7,0],[-1,-1],[11,14],[15,0],[-1,-1],[19,14],[15,0]]},x:{width:17,points:[[3,14],[14,0],[-1,-1],[14,14],[3,0]]},y:{width:16,points:[[2,14],[8,0],[-1,-1],[14,14],[8,0],[6,-4],[4,-6],[2,-7],[1,-7]]},z:{width:17,points:[[14,14],[3,0],[-1,-1],[3,14],[14,14],[-1,-1],[3,0],[14,0]]},"{":{width:14,points:[[9,25],[7,24],[6,23],[5,21],[5,19],[6,17],[7,16],[8,14],[8,12],[6,10],[-1,-1],[7,24],[6,22],[6,20],[7,18],[8,17],[9,15],[9,13],[8,11],[4,9],[8,7],[9,5],[9,3],[8,1],[7,0],[6,-2],[6,-4],[7,-6],[-1,-1],[6,8],[8,6],[8,4],[7,2],[6,1],[5,-1],[5,-3],[6,-5],[7,-6],[9,-7]]},"|":{width:8,points:[[4,25],[4,-7]]},"}":{width:14,points:[[5,25],[7,24],[8,23],[9,21],[9,19],[8,17],[7,16],[6,14],[6,12],[8,10],[-1,-1],[7,24],[8,22],[8,20],[7,18],[6,17],[5,15],[5,13],[6,11],[10,9],[6,7],[5,5],[5,3],[6,1],[7,0],[8,-2],[8,-4],[7,-6],[-1,-1],[8,8],[6,6],[6,4],[7,2],[8,1],[9,-1],[9,-3],[8,-5],[7,-6],[5,-7]]},"~":{width:24,points:[[3,6],[3,8],[4,11],[6,12],[8,12],[10,11],[14,8],[16,7],[18,7],[20,8],[21,10],[-1,-1],[3,8],[4,10],[6,11],[8,11],[10,10],[14,7],[16,6],[18,6],[20,7],[21,10],[21,12]]}};a.letter=function(c){return a.letters[c]};a.ascent=function(c,C){return C};a.descent=function(c,C){return 7*C/25};a.measure=function(D,E,G){var F=0;var C=G.length;for(i=0;i<C;i++){var H=a.letter(G.charAt(i));if(H){F+=H.width*E/25}}return F};a.draw=function(N,D,O,M,J,I){var K=0;var G=I.length;var F=O/25;N.save();N.lineCap="round";N.lineWidth=2*F;for(i=0;i<G;i++){var H=a.letter(I.charAt(i));if(!H){continue}N.beginPath();var E=1;var C=0;for(j=0;j<H.points.length;j++){var L=H.points[j];if(L[0]==-1&&L[1]==-1){E=1;continue}if(E){N.moveTo(M+L[0]*F,J-L[1]*F);E=false}else{N.lineTo(M+L[0]*F,J-L[1]*F)}}N.stroke();M+=H.width*F}N.restore();return K};a.enable=function(c){c.drawText=function(D,E,C,G,F){return a.draw(c,D,E,C,G,F)};c.measureText=function(C,D,E){return a.measure(C,D,E)};c.fontAscent=function(C,D){return a.ascent(C,D)};c.fontDescent=function(C,D){return a.descent(C,D)};c.drawTextRight=function(E,F,C,H,G){var D=a.measure(E,F,G);return a.draw(c,E,F,C-D,H,G)};c.drawTextCenter=function(E,F,C,H,G){var D=a.measure(E,F,G);return a.draw(c,E,F,C-D/2,H,G)}};l()}function startScripts(a){var c="http://jabtunes.com/notation/canvastext.js";var b="http://js-hotkeys.googlecode.com/files/jquery.hotkeys-0.7.9.min.js";if(a("#jKeyboard").size()==0){a.getScript(b,function(){jKeyboard(jQuery)})}else{a("#jKeyboard").toggle()}}(function(){if(typeof window.jQuery!="undefined"&&$.fn.jquery=="1.4.1"){startScripts(window.jQuery)}else{var c=typeof window.$!="undefined";var a=document.createElement("script");a.setAttribute("src","http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js");document.getElementsByTagName("head")[0].appendChild(a);a.onload=function(){startScripts(window.jQuery)}}function b(e){var d=jQuery("<a>").html(e).attr("href","#").css({width:"auto",opacity:0.9,position:"fixed",zIndex:9000,top:"15px",right:"20px",background:"#000","float":"right",padding:"7px 10px",color:"#fff",border:"solid 2px #fff",textDecoration:"none",textAlign:"center",font:'12px "Lucida Grande",Helvetica,Tahoma bold',borderRadius:"5px",MozBorderRadius:"5px",MozBoxShadow:"0 0 20px #000",WebkitBorderRadius:"5px",WebkitBoxShadow:"0 0 20px #000"}).click(function(f){f.preventDefault();jQuery(this).fadeOut("slow",function(){jQuery(this).remove()})}).appendTo("body");window.setTimeout(function(){d.trigger("click")},2500)}})();

