1function jtabChord(t){if(this.scale=jtab.WesternScale,this.baseNotes=this.scale.BaseNotes,this.baseChords=jtab.Chords,this.chordArray=null,this.isValid=!1,this.fullChordName=t,this.isCustom=null!=this.fullChordName.match(/\%/),this.isCaged=null!=this.fullChordName.match(/\:/),this.isCaged){var a=this.fullChordName.split(":");this.chordName=a[0],this.cagedPos=a[1]}else if(this.isCustom){var a=this.fullChordName.match(/\[(.+?)\]/);a?this.chordName=a[1]:this.chordName=""}else this.chordName=this.fullChordName,this.cagedPos=1;this.rootExt=this.chordName.replace(/^[A-G#b]{1,2}/,""),this.rootNote=this.chordName.substr(0,this.chordName.length-this.rootExt.length);var s=this.baseNotes[this.rootNote];s?(this.baseName=s[0]+this.rootExt,this.cagedBaseShape=s[1],this.cagedBaseFret=s[2]):(this.cagedBaseShape="",this.cagedBaseFret=0),this.isCaged&&this.cagedPos>1?this.setCagedChordArray():this.isCustom?this.setCustomChordArray():this.setChordArray(this.baseName)}var jtab={Version:"1.3.1",element_count:0,Strings:{AboutDialog:'<html><head><title>About jTab</title></head><body style=""><p style="">jTab version: {V}</p><p><a href="http://jtab.tardate.com" target="_blank">http://jtab.tardate.com</a></p><p><input type="button" class="close" value="OK" onClick="window.close()"/></p></body></html>'},Chords:{C:[[0,[-1],[3,3],[2,2],[0],[1,1],[0]],[12,[-1,-1],[15,4],[14,3],[12,1],[13,2],[12,1]]],Cm:[[0,[-1],[3,4],[1,2],[0],[1,1],[-1]],[12,[-1,-1],[15,4],[13,3],[12,1],[13,2],[-1,-1]]],C6:[[0,[-1],[0],[2,2],[2,3],[1,1],[3,4]],[12,[-1,-1],[12,1],[14,3],[14,3],[13,2],[15,4]]],Cm6:[[0,[-1],[-1],[1,1],[2,3],[1,2],[3,4]],[]],C69:[[0,[-1],[3,2],[2,1],[2,1],[3,3],[3,4]],[]],C7:[[0,[-1],[3,3],[2,2],[3,4],[1,1],[0]],[12,[-1,-1],[15,3],[14,2],[15,4],[13,1],[12]]],Cm7:[[0,[-1],[-1],[1,1],[3,3],[1,1],[3,4]],[]],Cmaj7:[[0,[-1],[3,3],[2,2],[0],[0],[0]],[12,[-1,-1],[15,4],[14,3],[12,1],[12,1],[12,1]]],C7b5:[[2,[-1],[3,1],[4,3],[3,2],[5,4],[-1]],[]],"C7#5":[[0,[-1],[-1],[2,2],[3,3],[1,1],[4,4]],[]],Cm7b5:[[0,[-1],[3,1],[4,3],[3,2],[4,4],[-1]],[]],C7b9:[[0,[-1],[3,3],[2,1],[3,4],[2,2],[0]],[]],C9:[[0,[-1],[3,2],[2,1],[3,3],[3,4],[-1]],[]],Cm9:[[0,[-1],[3,2],[1,1],[3,3],[3,3],[3,3]],[]],Cmaj9:[[0,[-1],[3,3],[0],[0],[0],[0]],[12,[-1],[15,3],[12,1],[12,1],[12,1],[12,1]]],Cadd9:[[0,[-1],[3,2],[2,1],[0],[3,3],[0]],[12,[-1],[15,3],[14,2],[12,1],[15,4],[12,1]]],C13:[[2,[-1],[3,1],[5,2],[3,1],[5,3],[5,4]],[]],Csus2:[[2,[-1],[3,1],[5,3],[5,4],[3,1],[3,1]],[]],Csus4:[[2,[-1],[3,1],[5,2],[5,3],[6,4],[3,1]],[]],Cdim:[[0,[-1],[3,3],[4,4],[2,2],[1,1],[-1]],[]],Cdim7:[[0,[-1],[-1],[1,1],[2,3],[1,2],[2,4]],[]],Caug:[[0,[-1],[-1],[2,2],[1,1],[1,1],[4,4]],[]],"C#":[[0,[-1],[4,4],[3,4],[1,1],[2,2],[1,1]],[]],"C#m":[[0,[-1],[-1],[2,2],[1,1],[2,3],[0]],[]],"C#6":[[0,[-1],[-1],[3,2],[3,3],[2,1],[4,4]],[]],"C#m6":[[0,[-1],[4,3],[2,1],[3,2],[2,1],[4,4]],[]],"C#69":[[2,[-1],[4,2],[3,1],[3,1],[4,3],[4,4]],[]],"C#7":[[0,[-1],[-1],[3,2],[4,3],[2,1],[4,4]],[]],"C#m7":[[0,[-1],[-1],[2,1],[4,3],[2,1],[4,4]],[]],"C#maj7":[[0,[-1],[4,4],[3,3],[1,1],[1,1],[1,1]],[]],"C#7b5":[[0,[3,2],[0],[3,3],[4,4],[2,1],[-1]],[]],"C#7#5":[[0,[-1],[4,3],[3,2],[2,1],[0],[-1]],[]],"C#m7b5":[[0,[-1],[2,1],[2,2],[0],[2,3],[0]],[]],"C#7b9":[[0,[-1],[4,2],[3,1],[4,3],[3,1],[4,4]],[]],"C#9":[[3,[-1],[4,1],[6,2],[6,3],[4,1],[4,1]],[]],"C#m9":[[0,[0],[2,2],[1,1],[1,1],[2,3],[0]],[]],"C#maj9":[[0,[-1],[4,4],[1,1],[1,1],[1,1],[1,1]],[]],"C#add9":[[0,[1,1],[-1],[1,1],[1,1],[2,2],[1,1]],[]],"C#13":[[3,[-1],[4,1],[6,2],[4,1],[6,3],[6,4]],[]],"C#sus2":[[0,[-1],[-1],[3,3],[3,4],[1,1],[1,1]],[]],"C#sus4":[[0,[-1],[-1],[3,2],[3,3],[4,4],[1,1]],[]],"C#dim":[[0,[-1],[-1],[2,1],[3,3],[2,2],[3,4]],[]],"C#dim7":[[0,[-1],[-1],[2,1],[3,3],[2,2],[3,4]],[]],"C#aug":[[0,[-1],[4,4],[3,3],[2,1],[2,2],[-1]],[]],D:[[0,[-1],[0],[0],[2,1],[3,3],[2,2]],[12,[-1,-1],[12,1],[12,1],[14,3],[15,4],[14,2]]],Dm:[[0,[-1],[0],[0],[2,2],[3,3],[1,1]],[12,[-1,-1],[12,1],[12,1],[14,3],[15,4],[13,2]]],D6:[[0,[-1],[0],[0],[2,2],[0],[2,3]],[12,[-1,-1],[12,1],[12,1],[14,3],[12,1],[14,4]]],Dm6:[[0,[-1],[2,2],[0],[2,3],[0],[1,1]],[12,[-1,-1],[14,3],[12,1],[14,4],[12,1],[1,2]]],D69:[[3,[-1],[5,2],[4,1],[4,1],[5,3],[5,4]],[]],D7:[[0,[-1],[0],[0],[2,2],[1,1],[2,3]],[12,[-1,-1],[12,1],[12,1],[14,3],[13,2],[14,4]]],Dm7:[[0,[-1],[-1],[0],[2,2],[1,1],[1,1]],[12,[-1,-1],[-1,-1],[12,1],[14,4],[13,2],[13,3]]],Dmaj7:[[0,[-1],[5,4],[4,3],[2,1],[2,1],[2,1]],[]],D7b5:[[4,[-1],[5,1],[6,3],[5,2],[7,4],[-1]],[]],"D7#5":[[0,[-1],[-1],[0],[4,3],[1,1],[2,2]],[12,[-1,-1],[-1,-1],[12,1],[16,4],[13,2],[14,3]]],Dm7b5:[[0,[-1],[-1],[0],[1,1],[1,1],[1,1]],[12,[-1,-1],[-1,-1],[12,1],[12,2],[12,3],[12,4]]],D7b9:[[3,[-1],[5,2],[4,1],[5,3],[4,1],[5,4]],[]],D9:[[0,[2,2],[-1],[0],[2,3],[1,1],[0]],[12,[14,4],[-1,-1],[12,1],[14,3],[13,2],[12,1]]],Dm9:[[0,[-1],[-1],[3,3],[2,2],[1,1],[0]],[12,[-1,-1],[-1,-1],[15,4],[14,3],[13,2],[12,1]]],Dmaj9:[[0,[-1],[5,4],[2,1],[2,1],[2,1],[2,1]],[]],Dadd9:[[0,[-1],[-1],[0],[2,1],[3,2],[0]],[12,[-1,-1],[-1,-1],[12,1],[14,3],[15,4],[12,1]]],D13:[[4,[-1],[5,1],[7,2],[5,1],[7,3],[7,4]],[]],Dsus2:[[0,[-1],[-1],[0],[2,1],[3,3],[0]],[12,[-1,-1],[-1,-1],[12,1],[14,3],[15,4],[12,1]]],Dsus4:[[0,[-1],[-1],[0],[2,1],[3,3],[3,4]],[12,[-1,-1],[-1,-1],[12,1],[14,2],[15,3],[15,4]]],Ddim:[[0,[-1],[-1],[0],[1,1],[0],[1,2]],[12,[-1,-1],[-1,-1],[12,1],[13,2],[12,1],[13,3]]],Ddim7:[[0,[-1],[2,3],[0],[1,1],[0],[1,2]],[12,[-1,-1],[14,4],[12,1],[13,2],[12,1],[13,3]]],Daug:[[0,[-1],[-1],[0],[3,2],[3,3],[2,1]],[12,[-1,-1],[-1,-1],[12,1],[15,3],[15,4],[14,2]]],Eb:[[0,[-1],[-1],[5,4],[3,1],[4,3],[3,2]],[]],Ebm:[[0,[-1],[-1],[4,3],[3,2],[4,4],[2,1]],[]],Eb6:[[0,[-1],[3,1],[5,3],[3,1],[4,2],[3,1]],[]],Ebm6:[[0,[-1],[-1],[1,1],[3,3],[1,1],[2,2]],[]],Eb69:[[0,[-1],[-1],[1,1],[0],[1,2],[1,3]],[]],Eb7:[[0,[-1],[-1],[1,1],[3,3],[2,2],[3,4]],[]],Ebm7:[[0,[-1],[-1],[1,1],[3,4],[2,2],[2,3]],[]],Ebmaj7:[[0,[-1],[-1],[1,1],[3,2],[3,3],[3,4]],[]],Eb7b5:[[0,[-1],[-1],[1,1],[2,2],[2,3],[4,4]],[]],"Eb7#5":[[0,[-1],[-1],[1,1],[4,4],[2,2],[3,3]],[]],Ebm7b5:[[0,[-1],[-1],[1,1],[2,2],[2,3],[2,4]],[]],Eb7b9:[[0,[-1],[-1],[1,1],[0],[2,3],[0]],[]],Eb9:[[0,[3,4],[1,1],[1,1],[0],[2,1],[1,1]],[]],Ebm9:[[0,[2,2],[1,1],[1,1],[3,4],[2,3],[1,1]],[]],Ebmaj9:[[0,[-1],[-1],[1,1],[0],[3,4],[1,2]],[]],Ebadd9:[[0,[3,4],[2,2],[2,2],[0],[-1],[1,1]],[]],Eb13:[[4,[-1],[6,2],[5,1],[6,3],[8,4],[8,4]],[]],Ebsus2:[[0,[1,1],[1,1],[1,1],[3,3],[-1],[1,1]],[]],Ebsus4:[[0,[-1],[-1],[1,1],[3,3],[4,4],[4,4]],[]],Ebdim:[[0,[-1],[-1],[1,1],[2,3],[1,2],[2,4]],[]],Ebdim7:[[0,[-1],[-1],[1,1],[2,3],[1,2],[2,4]],[]],Ebaug:[[0,[3,3],[2,2],[1,1],[0],[0],[3,4]],[]],E:[[0,[0],[2,2],[2,3],[1,1],[0],[0]],[12,[12,1],[14,3],[14,4],[13,2],[12,1],[12,1]]],Em:[[0,[0],[2,2],[2,3],[0],[0],[0]],[12,[12,1],[14,3],[14,4],[12,1],[12,1],[12,1]]],E6:[[0,[0],[2,2],[2,3],[1,1],[2,4],[0]],[12,[12,1],[14,3],[14,3],[13,2],[14,4],[12,1]]],Em6:[[0,[0],[2,1],[2,2],[0],[2,3],[0]],[12,[12,1],[14,2],[14,3],[12,1],[14,4],[12,1]]],E69:[[0,[-1],[2,2],[2,2],[1,1],[2,3],[2,3]],[]],E7:[[0,[0],[2,2],[0],[1,1],[0],[0]],[12,[12,1],[14,3],[12,1],[13,2],[12,1],[12,1]]],Em7:[[0,[0],[2,2],[2,3],[0],[3,4],[0]],[12,[12,1],[14,2],[14,3],[12,1],[15,4],[12,1]]],Emaj7:[[0,[0],[2,3],[1,1],[1,2],[0],[0]],[12,[12,1],[14,4],[13,2],[13,3],[12,1],[12,1]]],E7b5:[[0,[-1],[1,1],[0],[1,2],[3,4],[0]],[12,[-1,-1],[13,2],[12,1],[13,3],[15,4],[12,1]]],"E7#5":[[0,[0],[3,4],[0],[1,1],[1,2],[-1]],[12,[12,1],[15,4],[12,1],[13,3],[13,2],[-1]]],Em7b5:[[0,[-1],[-1],[2,1],[3,2],[3,3],[3,4]],[]],E7b9:[[0,[0],[2,3],[0],[1,1],[0],[1,2]],[12,[12,1],[14,4],[12,1],[13,3],[12,1],[13,2]]],E9:[[0,[0],[2,2],[0],[1,1],[0],[2,3]],[12,[12,1],[14,3],[12,1],[13,2],[12,1],[14,4]]],Em9:[[0,[0],[2,1],[0],[0],[0],[2,2]],[12,[12,1],[14,2],[12,1],[12,1],[12,1],[14,4]]],Emaj9:[[0,[0],[2,2],[1,1],[1,1],[0],[2,4]],[12,[12,1],[14,3],[13,2],[13,2],[12,1],[14,4]]],Eadd9:[[0,[2,2],[2,3],[2,4],[1,1],[0],[0]],[12,[14,3],[14,3],[14,4],[13,2],[12,1],[12,1]]],E13:[[0,[0],[2,2],[0],[1,1],[2,3],[0]],[12,[12,1],[14,3],[12,1],[13,2],[14,4],[12,1]]],Esus2:[[0,[-1],[2,1],[4,3],[4,4],[-1],[0]],[12,[-1,-1],[14,2],[16,3],[16,4],[-1],[12,1]]],Esus4:[[0,[0],[2,2],[2,3],[2,4],[0],[0]],[12,[12,1],[14,2],[14,3],[14,4],[12,1],[12,1]]],Edim:[[0,[-1],[1,1],[2,2],[3,4],[2,3],[-1]],[]],Edim7:[[0,[-1],[-1],[2,1],[3,3],[2,2],[3,4]],[]],Eaug:[[0,[0],[3,4],[2,3],[1,1],[1,2],[0]],[12,[12,1],[15,4],[14,3],[13,2],[13,2],[12,1]]],F:[[0,[1,1],[3,3],[3,4],[2,2],[1,1],[1,1]],[]],Fm:[[0,[1,1],[3,3],[3,4],[1,1],[1,1],[1,1]],[]],F6:[[0,[-1],[3,2],[3,3],[2,1],[3,4],[-1]],[]],Fm6:[[0,[-1],[-1],[0],[1,1],[1,1],[1,1]],[]],F69:[[0,[1,1],[0],[0],[0],[1,2],[1,3]],[]],F7:[[0,[1,1],[3,3],[1,1],[2,2],[1,1],[1,1]],[]],Fm7:[[0,[1,1],[3,3],[3,4],[1,1],[4,4],[1,1]],[]],Fmaj7:[[0,[1,1],[-1],[2,3],[2,4],[1,2],[-1]],[]],F7b5:[[0,[1,1],[-1],[1,2],[2,3],[0],[-1]],[]],"F7#5":[[0,[1,1],[-1],[1,2],[2,3],[2,4],[-1]],[]],Fm7b5:[[2,[-1],[-1],[3,1],[4,2],[4,3],[4,4]],[]],F7b9:[[0,[-1],[-1],[3,2],[2,1],[4,4],[2,1]],[]],F9:[[0,[3,3],[0],[3,4],[2,2],[1,1],[1,1]],[]],Fm9:[[0,[-1],[-1],[1,1],[1,1],[1,1],[3,4]],[]],Fmaj9:[[0,[0],[0],[3,3],[0],[1,1],[3,4]],[]],Fadd9:[[0,[-1],[-1],[3,3],[2,2],[1,1],[3,4]],[]],F13:[[0,[1,1],[0],[1,2],[3,4],[3,4],[3,4]],[]],Fsus2:[[0,[-1],[3,3],[3,4],[0],[1,1],[1,1]],[]],Fsus4:[[0,[1,1],[3,2],[3,3],[3,4],[1,1],[1,1]],[]],Fdim:[[0,[-1],[-1],[0],[1,1],[0],[1,2]],[]],Fdim7:[[0,[-1],[2,3],[0],[1,1],[0],[1,2]],[]],Faug:[[0,[1,1],[-1],[3,4],[2,2],[2,3],[1,1]],[]],"F#":[[0,[2,1],[4,3],[4,4],[3,2],[2,1],[2,1]],[]],"F#m":[[0,[2,1],[4,3],[4,4],[2,1],[2,1],[2,1]],[]],"F#6":[[0,[2,1],[4,3],[-1],[3,2],[4,4],[-1]],[]],"F#m6":[[0,[-1],[-1],[1,1],[2,2],[2,3],[2,4]],[]],"F#69":[[0,[2,2],[1,1],[1,1],[1,1],[2,3],[2,4]],[]],"F#7":[[0,[2,1],[4,3],[2,1],[3,2],[2,1],[2,1]],[]],"F#m7":[[0,[2,1],[4,3],[4,4],[2,1],[5,4],[2,1]],[]],"F#maj7":[[0,[2,1],[-1],[3,3],[3,4],[2,2],[-1]],[]],"F#7b5":[[0,[2,2],[-1],[2,3],[3,4],[1,1],[-1]],[]],"F#7#5":[[0,[2,2],[-1],[2,3],[3,4],[3,4],[-1]],[]],"F#m7b5":[[0,[-1],[-1],[2,2],[2,3],[1,1],[2,4]],[]],"F#7b9":[[0,[2,2],[1,1],[2,3],[0],[2,4],[0]],[]],"F#9":[[0,[2,1],[4,3],[2,1],[3,2],[2,1],[4,4]],[]],"F#m9":[[0,[3,3],[0],[3,4],[1,1],[2,3],[2,3]],[]],"F#maj9":[[0,[2,1],[-1],[3,2],[3,3],[-1],[4,4]],[]],"F#add9":[[0,[2,2],[1,1],[-1],[1,1],[2,3],[2,4]],[]],"F#13":[[0,[2,1],[4,3],[2,1],[3,2],[4,4],[2,1]],[]],"F#sus2":[[0,[2,2],[-1],[-1],[1,1],[2,3],[2,4]],[]],"F#sus4":[[0,[2,1],[4,2],[4,3],[4,4],[2,1],[2,1]],[]],"F#dim":[[0,[-1],[-1],[1,1],[2,3],[1,2],[2,4]],[]],"F#dim7":[[0,[-1],[-1],[1,1],[2,3],[1,2],[2,4]],[]],"F#aug":[[0,[2,1],[-1],[4,4],[3,2],[3,3],[2,1]],[]],G:[[0,[3,3],[2,2],[0],[0],[0],[3,4]],[12,[15,3],[14,2],[12,1],[12,1],[12,1],[15,4]]],Gm:[[0,[3,2],[1,1],[0],[0],[3,3],[3,4]],[12,[15,3],[13,2],[12,1],[12,1],[15,4],[15,4]]],G6:[[0,[3,3],[2,2],[0],[0],[0],[0]],[12,[15,4],[14,3],[12,1],[12,1],[12,1],[12,1]]],Gm6:[[0,[-1],[-1],[2,1],[3,3],[3,3],[3,3]],[]],G69:[[0,[3,3],[2,1],[0],[2,2],[0],[0]],[12,[15,4],[14,3],[12,1],[14,2],[12,1],[12,1]]],G7:[[0,[3,3],[2,2],[0],[0],[0],[1,1]],[12,[15,4],[14,3],[12,1],[12,1],[12,1],[13,2]]],Gm7:[[0,[-1],[1,1],[3,3],[0],[3,4],[-1]],[12,[-1],[13,2],[15,3],[12,1],[15,4],[-1]]],Gmaj7:[[0,[3,3],[2,2],[0],[0],[0],[2,1]],[12,[15,3],[14,2],[12,1],[12,1],[12,1],[14,4]]],G7b5:[[0,[3,2],[-1],[3,3],[4,4],[2,1],[-1]],[],[4,[-1],[-1],[5,1],[6,2],[6,3],[7,4]]],"G7#5":[[0,[3,1],[-1],[3,2],[4,3],[4,4],[-1]],[]],Gm7b5:[[2,[3,1],[4,2],[3,1],[3,1],[6,4],[3,1]],[]],G7b9:[[0,[3,4],[2,3],[0],[1,1],[0],[1,2]],[12,[15,4],[14,3],[12,1],[13,2],[12,1],[13]]],G9:[[0,[3,3],[-1],[0],[2,2],[0],[1,1]],[12,[15,4],[-1],[12,1],[14,3],[12,1],[13,2]]],Gm9:[[2,[3,1],[5,3],[3,1],[3,1],[3,1],[5,4]],[]],Gmaj9:[[0,[3,3],[-1],[0],[2,1],[0],[2,2]],[12,[15,4],[-1],[12,1],[14,3],[12,1],[14,2]]],Gadd9:[[0,[3,2],[0],[0],[0],[0],[3,3]],[12,[15,3],[12,1],[12,1],[12,1],[12,1],[15,4]]],G13:[[0,[3,2],[2,1],[3,3],[0],[0],[0]],[12,[15,3],[14,2],[15,3],[12,1],[12,1],[12,1]]],Gsus2:[[0,[3,1],[0],[0],[0],[3,3],[3,4]],[12,[15,2],[12,1],[12,1],[12,1],[15,3],[15,4]]],Gsus4:[[2,[3,1],[5,2],[5,3],[5,4],[3,1],[3,1]],[]],Gdim:[[2,[-1],[-1],[5,2],[6,4],[5,3],[3,1]],[]],Gdim7:[[0,[-1],[-1],[2,1],[3,3],[2,2],[3,4]],[]],Gaug:[[0,[3,1],[-1],[5,4],[4,2],[4,3],[3,1]],[]],"G#":[[0,[4,4],[3,3],[1,1],[1,1],[1,1],[-1]],[]],"G#m":[[0,[-1],[2,2],[1,1],[1,1],[4,4],[4,4]],[]],"G#6":[[0,[-1],[-1],[1,1],[1,1],[1,1],[1,1]],[]],"G#m6":[[0,[-1],[-1],[1,1],[1,2],[0],[1,3]],[]],"G#69":[[0,[4,2],[3,1],[3,1],[3,1],[4,3],[4,4]],[]],"G#7":[[0,[-1],[-1],[1,1],[1,1],[1,1],[2,2]],[]],"G#m7":[[3,[4,1],[6,3],[4,1],[4,1],[7,4],[4,1]],[]],"G#maj7":[[0,[-1],[-1],[1,1],[1,1],[1,1],[3,3]],[]],"G#7b5":[[2,[4,2],[-1],[4,3],[5,4],[3,2],[-1]],[]],"G#7#5":[[3,[4,1],[-1],[4,2],[5,3],[5,4],[-1]],[]],"G#m7b5":[[0,[4,1],[5,2],[4,1],[4,1],[7,4],[4,1]],[]],"G#7b9":[[0,[4,3],[3,2],[4,4],[2,1],[-1],[-1]],[]],"G#9":[[0,[2,2],[1,1],[1,1],[1,1],[1,1],[2,4]],[]],"G#m9":[[0,[2,2],[1,1],[1,1],[1,1],[0],[2,4]],[]],"G#maj9":[[2,[4,2],[3,1],[5,4],[3,1],[4,3],[-1]],[]],"G#add9":[[0,[-1],[1,1],[1,1],[1,1],[1,1],[-1]],[]],"G#13":[[0,[4,3],[3,2],[4,4],[1,1],[1,1],[1,1]],[]],"G#sus2":[[0,[-1],[1,1],[1,2],[1,3],[-1],[-1]],[]],"G#sus4":[[0,[-1],[-1],[1,1],[1,1],[2,2],[4,4]],[]],"G#dim":[[0,[-1],[-1],[0],[1,1],[0],[1,2]],[]],"G#dim7":[[0,[-1],[-1],[0],[1,1],[0],[1,2]],[]],"G#aug":[[0,[0,-1],[3,4],[2,3],[1,1],[1,2],[0,-1]],[]],A:[[0,[-1],[0],[2,2],[2,1],[2,3],[0]],[12,[-1,-1],[12,1],[14,2],[14,3],[14,4],[12,1]]],Am:[[0,[-1],[0],[2,2],[2,3],[1,1],[0]],[12,[-1,-1],[12,1],[14,3],[14,4],[13,2],[12,1]]],A6:[[0,[-1],[0],[2,1],[2,1],[2,1],[2,1]],[12,[-1,-1],[12,1],[14,3],[14,3],[14,3],[14,3]]],Am6:[[0,[-1],[0],[2,2],[2,3],[1,1],[2,4]],[12,[-1,-1],[12,1],[14,3],[14,3],[13,2],[14,4]]],A69:[[3,[5,2],[4,1],[4,1],[4,1],[5,3],[5,4]],[]],A7:[[0,[-1],[0],[2,2],[0],[2,3],[0]],[12,[-1,-1],[12,1],[14,2],[12,1],[14,3],[12,1]]],Am7:[[0,[-1],[0],[2,2],[0],[1,1],[0]],[12,[-1,-1],[12,1],[14,3],[12,1],[13,2],[12,1]]],Amaj7:[[0,[-1],[0],[2,2],[1,1],[2,3],[0]],[12,[-1,-1],[12,1],[14,3],[13,2],[14,4],[12,1]]],A7b5:[[3,[5,2],[-1],[5,3],[6,4],[4,1],[-1]],[]],"A7#5":[[4,[5,1],[-1],[5,2],[6,3],[6,4],[-1]],[]],Am7b5:[[0,[-1],[-1],[1,1],[2,3],[1,2],[3,4]],[]],A7b9:[[0,[-1],[0],[2,1],[3,3],[2,2],[3,4]],[12,[-1,-1],[12,""],[14,1],[15,3],[14,2],[15,4]]],A9:[[0,[-1],[0],[2,1],[4,4],[2,2],[3,3]],[12,[-1],[12],[14,1],[16,4],[14,2],[15,3]]],Am9:[[0,[-1],[0],[1,1],[1,1],[1,1],[3,4]],[12,[-1],[12,1],[13,2],[13,2],[13,2],[15,4]]],Amaj9:[[0,[-1],[0],[2,1],[4,3],[2,1],[4,4]],[12,[-1],[12],[14,1],[16,3],[14,1],[16,4]]],Aadd9:[[0,[-1],[0],[2,2],[2,3],[0],[0]],[12,[-1],[12,1],[14,3],[14,4],[12,1],[12,1]]],A13:[[0,[-1],[0],[2,1],[0],[2,2],[3,3]],[12,[-1],[12,1],[14,2],[12,1],[14,3],[15,4]]],Asus2:[[0,[-1],[0],[2,1],[2,2],[0],[0]],[12,[-1],[12,1],[14,3],[14,4],[12,1],[12,1]]],Asus4:[[0,[-1],[0],[2,1],[2,2],[3,3],[0]],[12,[-1],[12,1],[14,2],[14,3],[15,4],[12,1]]],Adim:[[0,[-1],[0],[1,1],[2,3],[1,2],[-1]],[12,[-1],[12,1],[13,2],[14,4],[13,3],[-1]]],Adim7:[[0,[-1],[-1],[1,1],[2,3],[1,2],[2,4]],[]],Aaug:[[0,[-1],[0],[3,4],[2,2],[2,3],[1,1]],[12,[-1],[12],[15,4],[14,2],[14,3],[13,1]]],Bb:[[0,[-1],[1,1],[3,3],[3,3],[3,3],[1,1]],[]],Bbm:[[0,[-1],[1,1],[3,3],[3,4],[2,2],[1,1]],[]],Bb6:[[0,[-1],[1,1],[3,3],[3,3],[3,3],[3,3]],[]],Bbm6:[[0,[-1],[1,1],[3,3],[0],[2,2],[-1]],[]],Bb69:[[0,[-1],[1,1],[0],[0],[1,2],[1,3]],[]],Bb7:[[0,[-1],[1,1],[3,3],[1,1],[4,4],[1,1]],[]],Bbm7:[[0,[-1],[1,1],[3,3],[1,1],[2,2],[1,1]],[]],Bbmaj7:[[0,[-1],[1,1],[3,3],[2,2],[3,4],[1,1]],[]],Bb7b5:[[4,[6,2],[-1],[6,3],[7,4],[5,1],[-1]],[]],"Bb7#5":[[5,[6,1],[-1],[6,2],[7,3],[7,4],[-1]],[]],Bbm7b5:[[0,[-1],[1,1],[-1],[1,2],[2,3],[-1]],[]],Bb7b9:[[6,[-1],[-1],[8,2],[7,1],[9,4],[7,1]],[]],Bb9:[[0,[1,1],[1,2],[0],[1,3],[1,3],[1,3]],[]],Bbm9:[[5,[-1],[-1],[-1],[6,1],[6,1],[8,4]],[]],Bbmaj9:[[0,[-1],[1,1],[0],[2,4],[1,2],[1,3]],[]],Bbadd9:[[0,[1,1],[1,1],[0],[3,4],[1,1],[1,1]],[]],Bb13:[[0,[-1],[1,1],[0],[1,2],[3,4],[3,4]],[]],Bbsus2:[[0,[-1],[1,1],[3,3],[3,4],[1,1],[1,1]],[]],Bbsus4:[[0,[-1],[1,1],[3,2],[3,3],[4,4],[1,1]],[]],Bbdim:[[0,[-1],[1,1],[2,2],[3,4],[2,3],[-1]],[]],Bbdim7:[[0,[-1],[-1],[2,1],[3,3],[2,2],[3,4]],[]],Bbaug:[[0,[-1],[1,1],[4,4],[3,2],[3,3],[2,1]],[]],B:[[0,[-1],[2,1],[4,3],[4,3],[4,3],[2,1]],[]],Bm:[[0,[-1],[2,1],[4,3],[4,4],[3,2],[2,1]],[]],B6:[[0,[-1],[2,1],[4,3],[4,3],[4,3],[4,3]],[]],Bm6:[[0,[-1],[-1],[4,2],[4,3],[3,1],[4,4]],[]],B69:[[0,[-1],[2,2],[1,1],[1,1],[2,3],[2,4]],[]],B7:[[0,[-1],[2,2],[1,1],[2,3],[0],[2,4]],[]],Bm7:[[0,[-1],[2,2],[0],[2,3],[0],[2,4]],[]],Bmaj7:[[0,[-1],[2,1],[4,3],[3,2],[4,4],[2,1]],[]],B7b5:[[5,[7,2],[-1],[7,3],[8,4],[6,1],[-1]],[]],"B7#5":[[0,[-1],[2,2],[1,1],[2,3],[0],[3,4]],[]],Bm7b5:[[0,[-1],[2,2],[0],[2,3],[0],[1,1]],[]],B7b9:[[0,[-1],[2,2],[1,1],[2,3],[1,1],[2,4]],[]],B9:[[6,[7,1],[9,3],[7,1],[8,2],[7,1],[9,4]],[]],Bm9:[[0,[-1],[2,1],[0],[2,2],[2,3],[2,4]],[]],Bmaj9:[[0,[-1],[2,2],[1,1],[3,4],[2,3],[2,3]],[]],Badd9:[[0,[-1],[2,1],[4,3],[4,4],[2,1],[2,1]],[]],B13:[[0,[-1],[2,2],[1,1],[2,3],[0],[4,4]],[]],Bsus2:[[0,[-1],[2,1],[4,3],[4,4],[2,1],[2,1]],[]],Bsus4:[[0,[-1],[2,1],[4,2],[4,3],[5,4],[2,1]],[]],Bdim:[[0,[-1],[2,1],[3,2],[4,4],[3,3],[-1]],[]],Bdim7:[[0,[-1],[-1],[0],[1,1],[0],[1,2]],[]],Baug:[[0,[-1],[2,1],[5,4],[4,2],[4,3],[3,1]],[]]},WesternScale:{BaseNotes:{C:["C","C",0],"C#":["C#","C",1],Db:["C#","C",1],D:["D","D",0],"D#":["Eb","D",1],Eb:["Eb","D",1],E:["E","E",0],F:["F","E",1],"F#":["F#","E",2],Gb:["F#","E",2],G:["G","G",0],"G#":["G#","G",1],Ab:["G#","G",1],A:["A","A",0],"A#":["Bb","A",1],Bb:["Bb","A",1],B:["B","A",2]},BaseIntervals:["C","C#","D","Eb","E","F","F#","G","G#","A","Bb","B"]},ChordList:function(){var t=[];for(var a in jtab.Chords)t.push(a);return t},AddChord:function(t,a){this.Chords[t]=a}};Array.prototype.max_chars=function(){for(var t=this[0].length,a=this.length,s=1;s<a;s++)this[s].length>t&&(t=this[s].length);return t},jtabChord.prototype.setCustomChordArray=function(){this.chordArray=new Array,this.chordArray=this.parseCustomChordArrayFromToken()},jtabChord.prototype.parseCustomChordArrayFromToken=function(){if(notes=this.fullChordName.replace(/(\%|\[.+\])/g,""),pairs=notes.split("."),pairs.length<6)return void(this.isValid=!1);this.isValid=!0,array=[];for(var t=0;t<pairs.length;t++)pair=pairs[t].split("/"),pair[0].match(/X/)&&(pair=[-1]),array.push(pair);return fingeredFrets=jQuery.grep(array,function(t){return 1!=t.length}).map(function(t){return parseInt(t[0])}).map(function(t){return 0!=t||t!=-1?t:null}),fingeredFrets=jQuery.grep(fingeredFrets,function(t){return t}),min=Math.min.apply(Math,fingeredFrets),array.unshift(min-1),array},jtabChord.prototype.setChordArray=function(t){if(this.chordArray=new Array,void 0===this.baseChords[t])return void(this.isValid=!1);this.isValid=!0;var a=this.baseChords[t][0];this.chordArray[0]=a[0];for(var s=1;s<a.length;s++)this.chordArray[s]=a[s]},jtabChord.prototype.setCagedChordArray=function(){if(this.cagedBaseShape.match(/[CAGED]/)){for(var t="CAGED".indexOf(this.cagedBaseShape)+1,a=[3,2,3,2,2],s=this.cagedBaseFret,h=1;h<this.cagedPos;h++){var i=(t-1)%5;t=t>=5?1:t+1,s+=a[i]}var r="CAGED".charAt(t-1)+this.rootExt;this.setChordArray(r),this.shiftChordArray(s,r)}},jtabChord.prototype.shiftChordArray=function(t,a){var s=this.chordArray[0];if(t!=s){var h=this.isCaged&&this.cagedPos>0&&!(void 0===this.baseChords[a][1][0]);this.chordArray[0]=t-1;for(var i=1;i<this.chordArray.length;i++){var r=this.chordArray[i][0]>=0?this.chordArray[i][0]+t-s:this.chordArray[i][0],e=h?this.baseChords[a][1][i][1]:this.chordArray[i][1];this.chordArray[i]=[r,e]}}},Raphael.fn.tabtype=0,Raphael.fn.has_chord=!1,Raphael.fn.has_tab=!1,Raphael.fn.debug=!1,Raphael.fn.scale=1,Raphael.fn.margin_top=36,Raphael.fn.margin_bottom=10,Raphael.fn.margin_left=16,Raphael.fn.margin_right=10,Raphael.fn.current_offset=Raphael.fn.margin_left,Raphael.fn.string_spacing=16,Raphael.fn.strings_drawn=6,Raphael.fn.fret_spacing=16,Raphael.fn.frets_drawn=4,Raphael.fn.note_radius=7,Raphael.fn.fret_width=Raphael.fn.string_spacing*(Raphael.fn.strings_drawn-1),Raphael.fn.fret_height=Raphael.fn.fret_spacing*(Raphael.fn.frets_drawn+.5),Raphael.fn.chord_width=Raphael.fn.margin_left+Raphael.fn.fret_width+Raphael.fn.string_spacing+Raphael.fn.margin_right,Raphael.fn.chord_height=Raphael.fn.margin_top+Raphael.fn.fret_height+Raphael.fn.margin_bottom,Raphael.fn.tab_current_string=0,Raphael.fn.tab_margin_top=10,Raphael.fn.tab_top=Raphael.fn.chord_height+Raphael.fn.tab_margin_top,Raphael.fn.tab_spacing=Raphael.fn.fret_spacing,Raphael.fn.tab_height=5*Raphael.fn.tab_spacing,Raphael.fn.tab_char_width=8,Raphael.fn.total_height=Raphael.fn.tab_top+Raphael.fn.tab_height+Raphael.fn.margin_bottom,Raphael.fn.color="#000",Raphael.fn.fingering_text_color="#fff",Raphael.fn.tab_text_color="#000",Raphael.fn.debug_grid=function(t){this.path(this.svg_params(this.current_offset,0,0,4)).attr({stroke:this.color,"stroke-width":.2}),this.path(this.svg_params(this.current_offset+this.margin_left,0,0,2)).attr({stroke:this.color,"stroke-width":.2}),this.path(this.svg_params(this.current_offset+t-this.margin_right,0,0,2)).attr({stroke:this.color,"stroke-width":.2}),3==this.tabtype?this.path(this.svg_params(this.current_offset,this.tab_margin_top,2,0)).attr({stroke:this.color,"stroke-width":.2}):this.path(this.svg_params(this.current_offset,this.margin_top,2,0)).attr({stroke:this.color,"stroke-width":.2})},Raphael.fn.increment_offset=function(t){w=void 0===t?this.chord_width:t,this.debug&&this.debug_grid(w),this.current_offset+=w,this.setSize(this.current_offset,this.total_height)},Raphael.fn.svg_params=function(t,a,s,h){var i="m"+t+" "+a+"l"+s+" "+h;if(4==arguments.length)return i},Raphael.fn.chord_fretboard=function(t,a){var s=this.current_offset+this.margin_left,h=["","","","III","","V","","VII","","IX","","","XII","","","XV","","XVII","","XIX","","XXI",""];this.text(s+2.5*this.string_spacing,this.margin_top-20,a).attr({fill:this.tab_text_color,"font-size":"20px"});var i=0==t?3:0,r=this.path(this.svg_params(s,this.margin_top,this.string_spacing*(this.strings_drawn-1),0));r.attr({stroke:this.color,"stroke-width":i});for(var e=0;e<=this.frets_drawn;e++)this.path(this.svg_params(s,this.margin_top+e*this.fret_spacing,this.string_spacing*(this.strings_drawn-1),0)),pos=void 0===h[t+e]?"":h[t+e],pos.length>0&&this.text(s+this.fret_width+1*this.string_spacing,this.margin_top+(e-.5)*this.fret_spacing,pos).attr({stroke:this.tab_text_color,"font-size":"12px"});for(var e=0;e<this.strings_drawn;e++)this.path(this.svg_params(s+e*this.string_spacing,this.margin_top,0,this.fret_spacing*(this.frets_drawn+.5)));this.tab_extend(this.chord_width)},Raphael.fn.stroke=function(){if(this.has_tab){var t=3*this.tab_char_width;this.tab_extend(t);var a=this.path(this.svg_params(this.current_offset+this.tab_char_width,this.tab_top+3.5*this.tab_spacing,this.tab_char_width,-2*this.tab_spacing));a.attr({stroke:this.tab_text_color,"stroke-width":4}),this.increment_offset(t)}else if(this.has_chord){var s=this.string_spacing,h=2*this.fret_spacing;this.path(this.svg_params(this.current_offset+this.margin_left,this.margin_top+this.fret_spacing+h,s,-h)).attr({stroke:this.tab_text_color,"stroke-width":4}),this.increment_offset(this.margin_left+s+this.margin_right)}},Raphael.fn.bar=function(){if(this.has_tab){var t=2*this.tab_char_width;this.tab_extend(t);var a=this.path(this.svg_params(this.current_offset+this.tab_char_width,this.tab_top,0,this.tab_height));this.increment_offset(t)}else if(this.has_chord){var a=(this.current_offset+this.margin_left,this.path(this.svg_params(this.current_offset+this.margin_left,this.margin_top,0,0,this.fret_height)));this.increment_offset(this.margin_left+this.margin_right)}a.attr({stroke:this.color,"stroke-width":1})},Raphael.fn.doublebar=function(){if(this.has_tab){var t=this.tab_char_width+8;this.tab_extend(t);var a=this.path(this.svg_params(this.current_offset+this.tab_char_width,this.tab_top,0,this.tab_height)),s=this.path(this.svg_params(this.current_offset+this.tab_char_width+6,this.tab_top,0,this.tab_height));this.increment_offset(t)}else if(this.has_chord){var h=this.current_offset+this.margin_left,a=this.path(this.svg_params(h,this.margin_top,0,this.fret_height)),s=this.path(this.svg_params(h+6,this.margin_top,0,this.fret_height));this.increment_offset(this.margin_left+6+this.margin_right)}a.attr({stroke:this.color,"stroke-width":1}),s.attr({stroke:this.color,"stroke-width":4})},Raphael.fn.chord_note=function(t,a,s){var h=s[0],i=this.current_offset+this.margin_left;if(h<0)this.text(i+(a-1)*this.string_spacing,this.margin_top-8,"x").attr({stroke:this.tab_text_color,"font-size":"9px"});else if(0==h)this.text(i+(a-1)*this.string_spacing,this.margin_top-8,"o").attr({stroke:this.tab_text_color,"font-size":"9px"});else{var r=(h-t-.5)*this.fret_spacing;this.circle(i+(a-1)*this.string_spacing,this.margin_top+r,this.note_radius).attr({stroke:this.color,fill:this.color}),void 0!==s[1]&&this.text(i+(a-1)*this.string_spacing,this.margin_top+r,s[1]).attr({fill:this.fingering_text_color,"font-size":"12px"})}this.has_tab&&h>=0&&this.draw_tab_note(this.strings_drawn-a+1,h,this.margin_left+2.5*this.string_spacing)},Raphael.fn.tab_extend=function(t){if(0!=this.has_tab)for(var a=0;a<this.strings_drawn;a++)this.path(this.svg_params(this.current_offset,this.tab_top+a*this.tab_spacing,t,0)).attr({stroke:this.color})},Raphael.fn.tab_start=function(){if(0!=this.has_tab){var t=3*this.tab_char_width;this.path(this.svg_params(this.current_offset,this.tab_top,0,this.tab_height)).attr({stroke:this.color,"stroke-width":1}),this.tab_extend(t),this.text(this.current_offset+this.tab_char_width,this.tab_top+1.5*this.tab_spacing,"T").attr({stroke:this.color,"font-size":"14px"}),this.text(this.current_offset+this.tab_char_width,this.tab_top+2.5*this.tab_spacing,"A").attr({stroke:this.color,"font-size":"14px"}),this.text(this.current_offset+this.tab_char_width,this.tab_top+3.5*this.tab_spacing,"B").attr({stroke:this.color,"font-size":"14px"}),this.increment_offset(t)}},Raphael.fn.draw_tab_note=function(t,a,s){this.text(this.current_offset+s,this.tab_top+this.tab_spacing*(t-1),a).attr({fill:this.color,"font-size":"16px"})},Raphael.fn.get_string_number=function(t){var a=null;return null!=t.match(/^\$[1-6]/)?a=t.substr(1,1):null!=t.match(/^\$[EADGBe]/)&&(a=6-"EADGBe".indexOf(t.substr(1,1))),a},Raphael.fn.get_fullchord_notes=function(t){var a=!1;return null!=t.match(/[^\.xX0-9]/)?a=!1:(a=null!=t.match(/\./)?t.split("."):t.split(""),6!=a.length&&(a=!1)),a},Raphael.fn.tab_note=function(t){if(0!=this.has_tab)if(null!=t.match(/\$/))if(null!=t.match(/\./)){for(var a=t.split("."),s=2,h=0;h<a.length;h++)a[h].length>s&&(s=a[h].length);s*=this.tab_char_width+1,this.tab_extend(s);for(var h=0;h<a.length;h++){var i=a[h],r=this.get_string_number(i);null!=r?this.tab_current_string=r:this.tab_current_string>0&&this.draw_tab_note(this.tab_current_string,i,.5*s)}this.increment_offset(s)}else this.tab_current_string=this.get_string_number(t);else{var e=this.get_fullchord_notes(t);if(e){var n=e.max_chars(),s=this.tab_char_width*(n+2);this.tab_extend(s);for(var h=0;h<e.length;h++)this.draw_tab_note(6-h,e[h],.5*s);this.increment_offset(s)}else if(this.tab_current_string>0){var s=this.tab_char_width*(t.length+2);this.tab_extend(s),this.draw_tab_note(this.tab_current_string,t,.5*s),this.increment_offset(s)}}},Raphael.fn.render_token=function(t){var a=new jtabChord(t);if(a.isValid){var s=a.chordArray;this.chord_fretboard(s[0],a.chordName);for(var h=1;h<s.length;h++)this.chord_note(s[0],h,s[h]);this.increment_offset()}else"/"==t?this.stroke():"|"==t?this.bar():"||"==t?this.doublebar():this.has_tab&&this.tab_note(t)},jtab.characterize=function(t){var a=0;void 0==t&&(t="");var s=void 0!=t.match(/[\%]([0-4|T|X])?/),h=void 0!=t.match(/[^\$][A-G]|^[A-G]/),i=null!=t.match(/\$/)||null!=t.match(/[^\%][0-9|Xx|\.]{6,}/),r=h||s;return Raphael.fn.current_offset=Raphael.fn.margin_left,r&&i?(a=1,Raphael.fn.has_chord=!0,Raphael.fn.has_tab=!0,Raphael.fn.tab_top=Raphael.fn.chord_height+Raphael.fn.tab_margin_top,Raphael.fn.total_height=Raphael.fn.tab_top+Raphael.fn.tab_height+Raphael.fn.margin_bottom):r?(a=2,Raphael.fn.has_chord=!0,Raphael.fn.has_tab=!1,Raphael.fn.tab_top=Raphael.fn.chord_height+Raphael.fn.tab_margin_top,Raphael.fn.total_height=Raphael.fn.chord_height):i&&(a=3,Raphael.fn.has_chord=!1,Raphael.fn.has_tab=!0,Raphael.fn.tab_top=Raphael.fn.tab_margin_top,Raphael.fn.total_height=Raphael.fn.tab_top+Raphael.fn.tab_height+Raphael.fn.margin_bottom),Raphael.fn.tabtype=a,a},jtab.getStyle=function(t,a){var s=t.css(a);return s||(document.defaultView?s=document.defaultView.getComputedStyle(t[0],"").getPropertyValue(a):t.currentStyle&&(s=t.currentStyle[a])),s},jtab.setPalette=function(t){var a=jtab.getStyle(jQuery(t),"color");a||(a="#000"),Raphael.fn.color=a,Raphael.fn.tab_text_color=a,bgColor=jtab.getStyle(jQuery(t),"background-color"),bgColor&&"transparent"!=bgColor&&"rgba(0, 0, 0, 0)"!=bgColor||(bgColor="#fff"),Raphael.fn.fingering_text_color=bgColor},jtab.render=function(t,a){var s=a||jQuery(t).text()||"",h=jtab.characterize(s);if(0!=h){var i="builder_"+jtab.element_count++,r=jQuery('<div id="'+i+'"></div>').css({height:Raphael.fn.total_height});jQuery(t).html(r),jtab.setPalette(t),canvas=Raphael(i,80,Raphael.fn.total_height),canvas.tab_start();for(var e=s.split(/\s/),n=0;n<e.length;n++)canvas.render_token(e[n]);jQuery(t).addClass("rendered")}},jtab.renderimplicit=function(t){jQuery(".jtab",t).not(".rendered").each(function(t,a){jtab.render(this)})};