var cNotes = new Array();
cNotes[0] = "Fingering: Put your index finger on the 4th string, 2nd fret, your middle finger on the 3rd string, 2nd fret and your ring finger on the 2nd string, 2nd fret. <br/><br/> Notation: 6th string = not played, 5th string = A, 4th string = E, 3rd string = A, 2nd string = C#, 1st string = E<br /><br />Alternate Method of playing: You can use your index finger or ring finger to barr the three strings indicated above.";
cNotes[1] = "Fingering: Put your index finger on the 1st string, 1st fret, your middle finger on the the string, 2nd fret and your ring finger on the 3rd string, 2nd fret. <br/><br/> Notation: 6th string = not played, 5th string = A, 4th string = E, 3rd string = A, 2nd string = C, 1st string = E.";
cNotes[2] = "Fingering: Put your index finger on the 4th string, 2nd fret,and your middle finger on the 3rd string, 2nd fret<br/><br/> Notation: 6th string = not played, 5th string = A, 4th string = E, 3rd string = A, 2nd string = B, 1st string = E.";
cNotes[3] = "Fingering: Put your index finger on the 4th string, 2nd fret, your middle finger on the 3rd string, 2nd fret and your ring finger on the 2nd string, 3rd fret. <br/><br/> Notation: 6th string = not played, 5th string = A, 4th string = E, 3rd string = A, 2nd string = B, 1st string = E.";
cNotes[4] = "Fingering: Put your index finger on the 1st fret, 2nd string and your ring finger on the 2nd fret, 4th string."
cNotes[5] = "Fingering: Put your index finger on the 1st fret, 2nd string, your middle finger on the 2nd fret, 4th string, your ring finger on the 2nd fret, 3rd string and your pinkie finger on the 3rd fret, 1st string."
cNotes[6] = "Fingering: Put your index finger on the 2nd fret, 4th string and your ring finger on the 2nd fret, 2nd string."
cNotes[7] = "Fingering: Put your index finger on the 2nd fret, 4th string, your middle finger, on the 2nd fret, 3rd string, your ring finger on the 2nd fret, 2nd string, and your pinkie finger on the 3rd fret, 1st string."
cNotes[8] = "Fingering: Put your index finger on the 2nd fret, 4th string, your ring finger on the 2nd fret, 2nd string, and your pinkie finger on the 3rd fret, 1st string."
cNotes[9] = "Fingering: Put your index finger on the 2nd fret, 4th string, your middle finger, on the 1st fret, 3rd string, and your ring finger on the 2nd fret, 2nd string."
cNotes[10] = "Fingering: Put your index finger on the 4th string, 2nd fret, your middle finger on the 3rd string, 2nd fret, your ring finger on the 2nd string, 2nd fret, and your pinkie finger on the 3rd fret, 6th string."

cNotes[11] = "Fingering: Barr the 2nd fret with your Index finger and put your middle finger on the 4th fret, 4th string, your ring finger on the 4th fret, 3rd string and your pinkie finger on the 4th fret, 2nd string."
cNotes[12] = "Fingering: Barr the 2nd fret with your Index finger and put your middle finger on the 3rd fret, 2nd string, your ring finger on the 4th fret, 4th string and your pinkie finger on the 4th fret, 3rd string."
cNotes[13] = "Fingering: Barr the 2nd fret with your Index finger and put your middle finger on the 4th fret, 4th string, your ring finger on the 4th fret, 3rd string and your pinkie finger on the 5th fret, 2nd string."
cNotes[14] = "Fingering: Barr the 2nd fret with your Index finger and put your middle finger on the 3rd fret, 2nd string, your ring finger on the 4th fret, 4th string."
cNotes[15] = "Fingering: Put your index finger on the 2nd fret, 5th string, your middle finger on the 2nd fret, 3rd string, your ring finger on the 3rd fret, 2nd string."
cNotes[16] = "Fingering: Put your index finger on the 1st fret, 4th string, your middle finger on the 2nd fret, 5th string, your ring finger on the 2nd fret, 3rd string, and  your pinkie finger on the 2nd fret, 1st string.";
cNotes[17] = "Fingering: Barr the 2nd fret with your Index finger and put your middle finger on the 4th fret, 4th string, and your pinkie finger on the 4th fret, 2nd string.";

cNotes[18] = "Fingering: Put your index finger on the 1st fret, 2nd string, middle finger on the 2nd fret, 4th string,  ring finger on the 3rd fret, 5th string.";
cNotes[19] = "Fingering: Put your index finger barring the 3rd fret, middle finger on the 4th fret, 2nd string, ring finger on the 5th fret, 4th string, pinkie on the 5th fret 3rd string.";
cNotes[20] = "Fingering: barr the 3rd fret with your index finger, middle finger on the 4th fret, 2nd string, ring finger on the 5th fret, 4th string.";
cNotes[21] = "Fingering: Put your index finger on the 2nd fret, 4th string, middle finger on the 3rd fret, 5th string, ring finger on the 3rd fret,2nd string.";
cNotes[22] = "Fingering: Put your index finger on the 1st fret, 2nd string, ring finger on the 3rd fret, 5th string, pinkie on the 3rd fret, 4th string.";
cNotes[23] = "Fingering: Put your index finger on the 1st fret, 2nd string, middle finger on the 2nd fret, 4th string,  ring finger on the 3rd fret, 5th string, pinkie on the 3rd fret, 3rd string.";
cNotes[24] = "Fingering: barr the 3rd fret with your index finger, ring finger on the 5th fret, 4th string, pinkie on the 5th fret, 2nd string.";
cNotes[25] = "Fingering: Put your index finger on the 2nd fret,4th string, middle finger on the 3rd fret, 6th string, ring finger on the 3rd fret, 5th string.";

cNotes[26] = "Fingering: Put your index finger on the 2nd fret, 3rd string,  middle finger on the 2nd fret 1st, string, ring finger on the 3rd fret, 2nd string.";
cNotes[27] = "Fingering: Put your index finger on the 2nd fret, 6th string,  middle finger on the 2nd fret, 3rd string, ring finger on the 3rd fret, 2nd string.";
cNotes[28] = "Fingering: Put your index finger on the 3rd fret, 2nd string,  middle finger on the 4th fret, 4th string,  ring finger on the 5th fret, 5th string.";
cNotes[29] = "Fingering: Put your index finger on the 2nd fret, 3rd string,  ring finger on the 3rd fret, 2nd string.";
cNotes[30] = "Fingering: Put your index finger on the 2nd fret, 3rd string,  middle finger on the 2nd fret 1st, string.";
cNotes[31] = "Fingering: Put your index finger on the 1st fret, 2nd string, middle finger on the 2nd fret, 3rd string, ring finger on the 2nd fret, 1st string.";
cNotes[32] = "Fingering: Put your index finger on the 3rd fret, 2nd string,  middle finger on the 4th fret, 4th string,  ring finger on the 5th fret, 5th string, pinkie on the 5th fret, 3rd string.";
cNotes[33] = "Fingering: Put your index finger on the 3rd fret, 2nd string,  middle finger on the 4th fret, 4th string,  ring finger on the 5th fret, 3rd string, pinkie on the 5th fret, 1st string.";
cNotes[34] = "Fingering: Put your index finger on the 2nd fret, 3rd string,  ring finger on the 3rd fret, 2nd string, pinkie on the 3rd fret, 1st string.";
cNotes[35] = "Fingering: Put your index finger on the 2nd fret, 3rd string, middle finger  on the 3rd fret, 6th string, ring finger on the 3rd fret, 2nd string.";
cNotes[36] = "Fingering: Put your index finger on the 2nd fret, 3rd string, middle finger on the 2nd fret, 2nd string, ring finger on the 2nd fret, 1st string. Alternative: Barr the 2nd fret, to the 3rd string with your index finger.";
cNotes[37] = "Fingering: Barr the 2nd fret, to the 3rd string with your index finger, pinkie on the 5th fret, 2nd string.";
cNotes[38] = "Fingering: Put your index finger on the 1st fret, 1st string, middle finger on the 2nd fret, 3rd string, ring finger on the 3rd fret, 2nd string.";
cNotes[39] = "Fingering: Put your index finger on the 1st fret, 2nd string, middle finger on the 1st fret, 1st string,  ring finger on the 2nd fret, 3rd string.";


cNotes[40] = "Fingering: Put your index finger on the 1st fret,3rd string, middle finger on the 2nd fret, 5th string, ring finger on the 2nd fret, 4th string.";
cNotes[41] = "Fingering: Put your index finger on the 2nd fret, 5th string, middle finger  on the 2nd fret, 4th string, pinkie on the 4th fret, 3rd string.";
cNotes[42] = "Fingering: Put your index finger on the 1st fret,3rd string, middle finger on the 2nd fret, 5th string, ring finger on the 2nd fret, 4th string, pinkie on the 2nd fret, 2nd string.";
cNotes[43] = "Fingering: Put your index finger on the 1st fret,3rd string, middle finger on the 2nd fret, 5th string.";
cNotes[44] = "Fingering: Put your index finger on the 1st fret,3rd string, middle finger on the 2nd fret, 5th string, ring finger on the 2nd fret, 4th string, pinkie on the 3rd fret, 2nd string.";
cNotes[45] = "Fingering: Put your index finger on the 1st fret,3rd string, middle finger on the 2nd fret, 5th string, ring finger on the 3rd fret, 2nd string, pinkie on the 3rd fret, 1st string.";
cNotes[46] = "Fingering: Put your index finger on the 1st fret,3rd string, middle finger on the 2nd fret, 5th string, pinkie on the 4nd fret, 4th string.";
cNotes[47] = "Fingering: Put your index finger on the 2nd fret, 5th string, middle finger on the 2nd fret, 4th string.";
cNotes[48] = "Fingering: Put your index finger on the 2nd fret, 5th string, middle finger on the 2nd fret, 4th string, ring finger on the 3rd fret, 2nd string.";
cNotes[49] = "Fingering: Put your index finger on the 2nd fret, 5th string.";
cNotes[50] = "Fingering: Put your index finger on the 2nd fret, 5th string, ring finger on the 3rd fret, 2nd string.";
cNotes[51] = "Fingering: Put your index finger on the 2nd fret, 5th string, middle finger on the 2nd fret, 4th string, ring finger on the 2nd fret, 3rd string. Alternative (if playing from <a class='notes' href='javascript:' onclick=\"showChord('Emaj')\">Emaj position</a> use the pinkie to change the chord): middle finger on the 2nd fret, 5th string, ring finger on the 2nd fret, 4th string, pinkie on the 2nd fret, 3rd string.";


cNotes[52] = "Fingering: Barr the 1st fret to the 6th string with your index finger, put middle finger on the 2nd fret, 3rd string, ring finger on the 3rd fret, 5th string, pinkie on the 3rd fret, 4th string.";
cNotes[53] = "Fingering: Put your index finger on the 1st fret, 2nd string, middle finger on the 2nd fret,3rd string, ring finger on the 3rd fret, 4th string.";
cNotes[54] = "Fingering: Put your index finger on the 1st fret, 6th string, middle finger on the 1st fret, 2nd string, ring finger on the 2nd fret, 4th string, pinkie on the 2nd fret, 3rd string.";
cNotes[55] = "Fingering: Barr the 1st fret to the 6th string with your index finger, put your ring finger on the 3rd fret, 5th string, pinkie on the 3rd fret, 4th string.";
cNotes[56] = "Fingering: Barr the 1st fret to the 6th string with your index finger, put your ring finger on the 3rd fret, 5th string.";
cNotes[57] = "Fingering: Barr the 1st fret to the 6th string with your index finger, put your middle finger on the 2nd fret, 3rd string, ring finger on the 3rd fret, 5th string.";
cNotes[58] = "Fingering: Barr the 1st fret to the 6th string with your index finger, put your middle finger on the 2nd fret, 3rd string, ring finger on the 3rd fret, 5th string, pinkie on the 3rd fret, 2nd string.";
cNotes[59] = "Fingering: Barr the 1st fret to the 6th string with your index finger, put your middle finger on the 3rd fret, 4th string, ring finger on the 3rd fret, 3rd string. <br/><br/>Notes: Technically you should play the 5th string, 3rd fret too but it seems to be a little too difficult that way unless you do a 2nd barr with your ring finger on the 3rd,4th and 5th strings. This is not a beginner technique!";

cNotes[60] = "Fingering: Put your index finger on the 2nd fret, 5th string, middle finger on the 3rd fret, 6th string, ring finger on the 3rd fret, 1st string.";
cNotes[61] = "Fingering: Put your index finger on the 1st fret, 1st string, middle finger on the 2nd fret, 5th string, ring finger on the 3rd fret, 6th string.";
cNotes[62] = "Fingering: Put your index finger on the 2nd fret, 5th string, middle finger on the 3rd fret, 6th string.";
cNotes[63] = "Fingering: Put your index finger on the 2nd fret, 5th string, middle finger on the 3rd fret, 6th string, ring finger on the 3rd fret, 2nd string, pinkie on the 3rd fret, 1st string.";
cNotes[64] = "Fingering: Put your index finger on the 3rd fret, 6th string, middle finger on the 3rd fret, 3rd string, ring finger on the 3rd fret, 2nd string, pinkie on the 3rd fret, 1st string. Alternative: you can play this by barring the lower strings (1-3) with your ring finger.";
cNotes[65] = "Fingering: Put your index finger on the 3rd fret, 6th string, middle finger on the 3rd fret, 4th string, ring finger on the 3rd fret, 3rd string, pinkie on the 3rd fret, 2nd string. Alternative: you can play this by barring the lower strings (2-4) with your ring finger.";
cNotes[66] = "Fingering: Put your index finger on the 2nd fret, 5th string, middle finger on the 3rd fret, 6th string, ring finger on the 2nd fret, 1st string.";
cNotes[67] = "Fingering: Put your index finger on the 3rd fret, 6th string, middle finger on the 3rd fret, 2nd string, ring finger on the 4th fret, 4th string, pinkie on the 4th fret, 3rd string.";
cNotes[68] = "Fingering: Put your index finger on the 2nd fret, 1st string, middle finger on the 3rd fret, 2nd string, ring finger on the 4th fret, 3rd string, pinkie on the 5th fret, 4th string.";

cNotes[69] = "Fingering: ...";
cNotes[70] = "Fingering: ...";

var boldWords = ["index","middle", " ring","pinkie", "1st", "2nd", "3rd","4th","5th", "6th", "7th"];



function parseToBold(phrase)
{
	var replaceWith;
	for (var i = 0; i < boldWords.length; i++)
	{
		replaceWith = "<b>"	+ boldWords[i] + "</b>"
		phrase = phrase.replace(boldWords[i], replaceWith);
	}
	return phrase;
}



function revealElement(id)
{
   var sElem = document.getElementById(id);
   document.getElementById("achords").style.display="none";
   document.getElementById("bchords").style.display="none";
   document.getElementById("cchords").style.display="none";
   document.getElementById("dchords").style.display="none";
   document.getElementById("echords").style.display="none";
   document.getElementById("fchords").style.display="none";
   document.getElementById("gchords").style.display="none";
   if (sElem.style.display =="block")
   {
       sElem.style.display = "none";
   }
   else
   {
       sElem.style.display = "block";
   }
   
}

function makeChord(name,first,second,third,fourth,barr, string1,string2,string3,string4,string5,string6, notes,title)
{
   var fst =0;
   var scd =0;
   var thd =0;
   var fth =0;
   var n = 0;
   var note = 0;
   var t = 0;
   var barrstring = 0;
   this.barrstring = new Array();
   
   if (barr)
   {
      this.barrstring[0] = barr;
      this.barrstring[1] = string1;
      this.barrstring[2] = string2;
      this.barrstring[3] = string3;
      this.barrstring[4] = string4;
      this.barrstring[5] = string5;
      this.barrstring[6] = string6;
   }
   if (notes) 
   {
      
      this.note = notes;
      this.note = parseToBold(this.note);
      if (title)
      {
         this.t = "<p align=center>"+title+"</p>";
      }
      else
      {
         this.t = "";
      }
   }
   else 
   {
      this.note = "";
   }
   this.n = name;
   this.fst = first;
   this.scd = second;
   this.thd = third;
   this.fth = fourth;
}

var chords = new Array();
chords[0] = new makeChord("Amaj","F2S4","F2S3","F2S2",0,0,0,0,0,0,0,0, cNotes[0],"A Major"); //A chord
chords[1] = new makeChord("Amin","F2S4","F2S3","F1S2",0,0,0,0,0,0,0,0, cNotes[1],"A Minor"); //Amin chord
chords[2] = new makeChord("Asus2","F2S4","F2S3",0,0,0,0,0,0,0,0,0, cNotes[2],"A Suspended 2nd"); //A suspended 2nd note chord
chords[3] = new makeChord("Asus4","F2S4","F2S3","F3S2",0,0,0,0,0,0,0,0,cNotes[3],"A Suspended 4th"); //A suspended 4th note chord
chords[4] = new makeChord("Amin7.1","F2S4",0,"F1S2",0,0,0,0,0,0,0,0,cNotes[4],"A Minor 7th (1st voicing)"); //Amin7 1st version chord
chords[5] = new makeChord("Amin7.2","F2S4","F2S3","F1S2","F3S1",0,0,0,0,0,0,0,cNotes[5],"A Minor 7th (2nd voicing)"); //Amin7 2nd version chord
chords[6] = new makeChord("A7.1","F2S4",0,"F2S2",0,0,0,0,0,0,0,0,cNotes[6],"A 7th (1st voicing)"); //A7 first version chord
chords[7] = new makeChord("A7.2","F2S4","F2S3","F2S2","F3S1",0,0,0,0,0,0,0,cNotes[7],"A 7th (2nd voicing)"); //A7 second version chord
chords[8] = new makeChord("A7.3","F2S4",0,"F2S2","F3S1",0,0,0,0,0,0,0,cNotes[8],"A 7th (3rd voicing)"); //A7 third version chord
chords[9] = new makeChord("Amaj7","F2S4","F1S3","F2S2",0,0,0,0,0,0,0,0,cNotes[9],"A Major 7th"); //Amaj7 chord
chords[10] = new makeChord("AaddG","F2S4","F2S3","F2S2","F3S6",0,0,0,0,0,0,0,cNotes[10],"A added G"); //A added G chord

chords[11] = new makeChord("Bmaj","F4S4","F4S3","F4S2",0, 2,1,1,1,1,1,0,cNotes[11],"B Major"); //B chord
chords[12] = new makeChord("Bmin","F4S4","F4S3","F3S2",0,2,1,1,1,1,1,0,cNotes[12],"B Minor"); //Bmin chord
chords[13] = new makeChord("Bsus4","F4S4","F4S3","F5S2",0,2,1,1,1,1,1,0,cNotes[13],"B suspended 4th"); //B suspended 4th note chord
chords[14] = new makeChord("Bmin7.1","F4S4",0,"F3S2",0,2,1,1,1,1,1,0,cNotes[14],"B Minor 7th (1st voicing)"); //Bmin7 1st version chord
chords[15] = new makeChord("B7.1","F2S5","F1S4","F2S3","F2S1",0,0,0,0,0,0,0,cNotes[15],"B 7th (1st voicing)"); //B7 1st version chord
chords[16] = new makeChord("B7.2","F4S4",0,"F4S2",0,2,1,1,1,1,1,0,cNotes[16],"B 7th (2nd voicing)"); //B7 2nd version chord
chords[17] = new makeChord("Bmin7.2","F2S5","F2S3","F3S2",0,0,0,0,0,0,0,0,cNotes[17],"B Minor 7th (2nd voicing)"); //Bmin7 2nd version chord

chords[18] = new makeChord("Cmaj", "F3S5","F2S4","F1S2",0,0,0,0,0,0,0,0,cNotes[18]); //C major chord
chords[19] = new makeChord("Cmin", "F5S4","F5S3","F4S2",0,3,1,1,1,1,1,0,cNotes[19]); //C minor chord
chords[20] = new makeChord("Cmin7", "F5S4",0,"F4S2",0,3,1,1,1,1,1,0,cNotes[20]); //C minor 7th chord
chords[21] = new makeChord("Csus2", "F3S5","F2S4","F3S2",0,0,0,0,0,0,0,0,cNotes[21]); //C Suspended 2nd chord
chords[22] = new makeChord("Csus4", "F3S5","F3S4","F1S2",0,0,0,0,0,0,0,0,cNotes[22]); //C Suspended 4th chord
chords[23] = new makeChord("C7.1", "F3S5","F2S4","F1S2","F3S3",0,0,0,0,0,0,0,cNotes[23]); //C 7th chord
chords[24] = new makeChord("C7.2", "F5S4",0,"F5S2",0,3,1,1,1,1,1,0,cNotes[24]); //C 7th chord
chords[25] = new makeChord("Cmaj7", "F3S5","F2S4","F3S6",0,0,0,0,0,0,0,0,cNotes[25]); //C major 7th chord

chords[26] = new makeChord("Dmaj.1", "F2S3","F3S2","F2S1",0,0,0,0,0,0,0,0,cNotes[26]); 
chords[27] = new makeChord("Dmaj.2", "F2S3","F3S2","F2S6",0,0,0,0,0,0,0,0,cNotes[27]); 
chords[28] = new makeChord("Dmaj.3", "F5S5","F4S4","F3S2",0,0,0,0,0,0,0,0,cNotes[28]); 
chords[29] = new makeChord("Dsus2", "F2S3","F3S2",0,0,0,0,0,0,0,0,0,cNotes[29]); 
chords[30] = new makeChord("D6", "F2S3",0,"F2S1",0,0,0,0,0,0,0,0,cNotes[30]); 
chords[31] = new makeChord("D7.1", "F2S3","F1S2","F2S1",0,0,0,0,0,0,0,0,cNotes[31]);
chords[32] = new makeChord("D7.2", "F5S5","F4S4","F5S3","F3S2",0,0,0,0,0,0,0,cNotes[32]);
chords[33] = new makeChord("D7.3", "F4S4","F5S3","F3S2","F5S1",0,0,0,0,0,0,0,cNotes[33]);
chords[34] = new makeChord("Dsus4.1", "F2S3","F3S2","F3S1",0,0,0,0,0,0,0,0,cNotes[34]);
chords[35] = new makeChord("Dsus4.2", "F2S3","F3S2","F3S6",0,0,0,0,0,0,0,0,cNotes[35]);
chords[36] = new makeChord("Dmaj7", "F2S3","F2S2","F2S1",0,0,0,0,0,0,0,0,cNotes[36]); 
chords[37] = new makeChord("D9", "F2S3","F5S2","F2S1",0,0,0,0,0,0,0,0,cNotes[37]); 
chords[38] = new makeChord("Dmin", "F2S3","F3S2","F1S1",0,0,0,0,0,0,0,0,cNotes[38]);
chords[39] = new makeChord("Dmin7", "F2S3","F1S2","F1S1",0,0,0,0,0,0,0,0,cNotes[39]); 

chords[40] = new makeChord("Emaj", "F2S5","F2S4","F1S3",0,0,0,0,0,0,0,0,cNotes[40]); 
chords[41] = new makeChord("E5", "F2S5","F2S4","F4S3",0,0,0,0,0,0,0,0,cNotes[41]); 
chords[42] = new makeChord("E6", "F2S5","F2S4","F1S3","F2S2",0,0,0,0,0,0,0,cNotes[42]); 
chords[43] = new makeChord("E7.1", "F2S5",0,"F1S3",0,0,0,0,0,0,0,0,cNotes[43]); 
chords[44] = new makeChord("E7.2", "F2S5","F2S4","F1S3","F3S2",0,0,0,0,0,0,0,cNotes[44]); 
chords[45] = new makeChord("E7a9", "F2S5","F3S2","F1S3","F3S1",0,0,0,0,0,0,0,cNotes[45]); 
chords[46] = new makeChord("E9", "F2S5","F4S4","F1S3",0,0,0,0,0,0,0,0,cNotes[46]); 
chords[47] = new makeChord("Emin", "F2S5","F2S4",0,0,0,0,0,0,0,0,0,cNotes[47]); 
chords[48] = new makeChord("Emin7.1", "F2S5","F2S4","F3S2",0,0,0,0,0,0,0,0,cNotes[48]); 
chords[49] = new makeChord("Emin7.2", "F2S5",0,0,0,0,0,0,0,0,0,0,cNotes[49]); 
chords[50] = new makeChord("Emin7.3", "F2S5",0,"F3S2",0,0,0,0,0,0,0,0,cNotes[50]); 
chords[51] = new makeChord("Esus4", "F2S5","F2S4","F2S3",0,0,0,0,0,0,0,0,cNotes[51]); 

chords[52] = new makeChord("Fmaj", 0,"F3S5","F3S4","F2S3",1,1,1,1,1,1,1,cNotes[52]); 
chords[53] = new makeChord("Fmaj7.1", "F1S2","F2S3","F3S4",0,0,0,0,0,0,0,0,cNotes[53]); 
chords[54] = new makeChord("Fmaj7.2", "F1S6","F1S2","F2S4","F2S3",0,0,0,0,0,0,0,cNotes[54]); 
chords[55] = new makeChord("Fmin", 0,"F3S5","F3S4",0,1,1,1,1,1,1,1,cNotes[55]); 
chords[56] = new makeChord("Fmin7", 0,"F3S5",0,0,1,1,1,1,1,1,1,cNotes[56]); 
chords[57] = new makeChord("F7", 0,"F3S5",0,"F2S3",1,1,1,1,1,1,1,cNotes[57]); 
chords[58] = new makeChord("F6", 0,"F3S5","F2S3","F3S2",1,1,1,1,1,1,1,cNotes[58]); 
chords[59] = new makeChord("Fsus4", 0,"F3S4","F3S3",0,1,1,1,1,1,1,1,cNotes[59]); 

chords[60] = new makeChord("Gmaj", 0,"F2S5","F3S6","F3S1",0,0,0,0,0,0,0,cNotes[60]); 
chords[61] = new makeChord("G7", "F1S1","F2S5","F3S6",0,0,0,0,0,0,0,0,cNotes[61]); 
chords[62] = new makeChord("G6", 0,"F2S5","F3S6",0,0,0,0,0,0,0,0,cNotes[62]); 
chords[63] = new makeChord("Gsus4", "F2S5","F3S6","F3S2","F3S1",0,0,0,0,0,0,0,cNotes[63]); 
chords[64] = new makeChord("Gmin", "F3S6","F3S3","F3S2","F3S1",0,0,0,0,0,0,0,cNotes[64]); 
chords[65] = new makeChord("Gmin7", "F3S6","F3S4","F3S3","F3S2",0,0,0,0,0,0,0,cNotes[65]); 
chords[66] = new makeChord("Gmaj7.1", "F2S5","F3S6","F2S1",0,0,0,0,0,0,0,0,cNotes[66]); 
chords[67] = new makeChord("Gmaj7.2", "F3S6","F3S2","F4S4","F4S3",0,0,0,0,0,0,0,cNotes[67]); 
chords[68] = new makeChord("Gmaj7.3", "F2S1","F3S2","F4S3","F5S4",0,0,0,0,0,0,0,cNotes[68]); 


last = 68;

function showChord(chordname)
{
    var chordid;
    var chordid2;
    cleanseStrings();
    for (i = 0; i <= last; i++)
    {
      if (chords[i].n == chordname)
      {
         document.getElementById("notes").innerHTML = chords[i].note;        
         document.getElementById("chordtitle").innerHTML = chords[i].t;
         for (x =1; x < 7; x++)  //strings
         {
            for (j = 1; j < 7; j++)//frets
            {
				if(chords[i].barrstring[0] > 0)
				{
					if(chords[i].barrstring[x] == true)
					{
						document.getElementById("F"+ chords[i].barrstring[0] + "S" + x).innerHTML = "<img class='blah' src='/images/barr.gif'>";
					}
				}
				if(chords[i].fst == ("F"+j+"S"+x)) document.getElementById("F"+ j + "S" + x).innerHTML = "<img class='blah' src='/images/finger.gif'>";
				if(chords[i].scd == ("F"+j+"S"+x)) document.getElementById("F"+ j + "S" + x).innerHTML = "<img class='blah' src='/images/finger.gif'>";
				if(chords[i].thd == ("F"+j+"S"+x)) document.getElementById("F"+ j + "S" + x).innerHTML = "<img class='blah' src='/images/finger.gif'>";
				if(chords[i].fth == ("F"+j+"S"+x)) document.getElementById("F"+ j + "S" + x).innerHTML = "<img class='blah' src='/images/finger.gif'>";
            }
         }
      }
    }
}

function cleanseStrings()
{
	for(var i = 1; i < 7; i++)
	{
		for(var j = 1; j < 7; j++)
		{
			document.getElementById("F"+i+"S"+j).innerHTML = "<img class='blah' src='/images/nofinger.gif'>";
		}
	}
}
function changeClass(id)
{
	var elem = document.getElementById(id);
	if(elem.className == "menubar") elem.className="menubarover";
	else elem.className = "menubar";
}






