<!--
itemLetter = new Array(
"a","a","a","b","b","b","c","c","c","d","d","d","d","e","e","e","e","f","f","f","f","g","h","h","h","h","i","i","i","i","001","002","003","004","005","006","007","008","009","010","011","012","013","014","015","016","017","018","019","020","021","022","023","024","025","026","027","028","029","031","032","033","034","035","036","037","038","039","040","041","042","043","044","045","046","047","048","049","050","051","052","054","055","056","057","058","059","060","061","062","063","064","065","066","067","068","069","070","071","072","073","074","075","076","077","078","079","080","081","082","083","084","085","086","087","088","089","090","091","092","093","094","095","096","097","098","099","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125");
displayName = new Array(
"The Standards Real Book","The Standards Real Book","The Standards Real Book","The New Real Book Volume 1","The New Real Book Volume 1","The New Real Book Volume 1","The New Real Book Volume 2","The New Real Book Volume 2","The New Real Book Volume 2","The New Real Book Volume 3","The New Real Book Volume 3","The New Real Book Volume 3","The New Real Book Volume 3","The Real Book Volume 1","The Real Book Volume 1","The Real Book Volume 1","The Real Book Volume 1","The Real Book Volume 2","The Real Book Volume 2","The Real Book Volume 2","The Real Book Volume 2","The Real Book Volume 3","The Real Easy Book Volume 1","The Real Easy Book Volume 1","The Real Easy Book Volume 1","The Real Easy Book Volume 1","The Real Easy Book Volume 2","The Real Easy Book Volume 2","The Real Easy Book Volume 2","The Real Easy Book Volume 2","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125");
indexName = new Array(
"-srbv1-","-srbv1-","-srbv1-","-nrbv1-","-nrbv1-","-nrbv1-","-nrbv2-","-nrbv2-","-nrbv2-","-nrbv3-","-nrbv3-","-nrbv3-","-nrbv3-","-rbv1-","-rbv1-","-rbv1-","-rbv1-","-rbv2-","-rbv2-","-rbv2-","-rbv2-","-rbv3-","-rebv1-","-rebv1-","-rebv1-","-rebv1-","-rebv2-","-rebv2-","-rebv2-","-rebv2-","-apalv001-","-apalv002-","-apalv003-","-apalv004-","-apalv005-","-apalv006-","-apalv007-","-apalv008-","-apalv009-","-apalv010-","-apalv011-","-apalv012-","-apalv013-","-apalv014-","-apalv015-","-apalv016-","-apalv017-","-apalv018-","-apalv019-","-apalv020-","-apalv021-","-apalv022-","-apalv023-","-apalv024-","-apalv025-","-apalv026-","-apalv027-","-apalv028-","-apalv029-","-apalv031-","-apalv032-","-apalv033-","-apalv034-","-apalv035-","-apalv036-","-apalv037-","-apalv038-","-apalv039-","-apalv040-","-apalv041-","-apalv042-","-apalv043-","-apalv044-","-apalv045-","-apalv046-","-apalv047-","-apalv048-","-apalv049-","-apalv050-","-apalv051-","-apalv052-","-apalv054-","-apalv055-","-apalv056-","-apalv057-","-apalv058-","-apalv059-","-apalv060-","-apalv061-","-apalv062-","-apalv063-","-apalv064-","-apalv065-","-apalv066-","-apalv067-","-apalv068-","-apalv069-","-apalv070-","-apalv071-","-apalv072-","-apalv073-","-apalv074-","-apalv075-","-apalv076-","-apalv077-","-apalv078-","-apalv079-","-apalv080-","-apalv081-","-apalv082-","-apalv083-","-apalv084-","-apalv085-","-apalv086-","-apalv087-","-apalv088-","-apalv089-","-apalv090-","-apalv091-","-apalv092-","-apalv093-","-apalv094-","-apalv095-","-apalv096-","-apalv097-","-apalv098-","-apalv099-","-apalv100-","-apalv101-","-apalv102-","-apalv103-","-apalv104-","-apalv105-","-apalv106-","-apalv107-","-apalv108-","-apalv109-","-apalv110-","-apalv111-","-apalv112-","-apalv113-","-apalv114-","-apalv115-","-apalv116-","-apalv117-","-apalv118-","-apalv119-","-apalv120-","-apalv121-","-apalv122-","-apalv123-","-apalv124-","-apalv125-");
SheetMusicPlusId = new Array(
"3424337","4900575","4900587","3424296","3424305","3424312","3424227","3424232","3424247","3424256","3424260","3424277","3424283","5384241","5808412","5811382","5811397","5811375","5929524","5929537","5929543","7863990","4900593","4900602","4900610","4900621","5674470","5674483","5674496","5674508","5140109","5140164","5140172","5140180","5140192","5140208","5140217","5140220","5140233","5140336","5140341","5140359","5140369","5140377","5140389","5140395","5140404","5140415","5140425","5140430","5140448","5140463","5140475","5140480","5140501","5140514","5140525","5140531","5140547","5140579","5140583","5140597","5140606","5140613","5140621","5140636","5140644","5140651","5140665","5140673","5140683","5140693","5140700","5140718","5140727","5140739","5140756","5140768","5140777","5140787","5140796","5140808","5140816","5140827","5140836","5140849","5140857","5140865","5140877","5140889","5140897","5140905","5140915","5140922","5140938","5140945","5140950","5140969","5140977","5140988","5140990","5141001","5141015","5141024","5141032","5141042","5141057","5141066","5141073","5141088","5141097","5141105","5141122","5141135","5141143","5141156","5141166","5141172","5141186","5141193","5141205","5141214","5141228","5141232","5141249","5141258","5141266","5140245","5140258","5140268","5140272","5140287","5140291","5140306","5140318","5140327","5670304","5670315","5670323","5670330","5670340","7430159","16572840","17717925","16572828","16572831","17717901","17717917","18376321","19106517","19106529","18376333","19106535");
SheetMusicPlusPic = new Array(
"","3424337","3424337","","","","","","","","","","","","","","","","","","","","","4900593","4900593","4900593","4900593","4900593","4900593","4900593","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","");
//
// From sheetmusic.js.template.txt
//
function contentsPageLoadFunction()
{
	document.getElementById("JavaScriptMessage").innerHTML=""
	
	var a, sTitle;
	var anchors = document.getElementsByTagName('img');

	for (var i = 0; i < anchors.length; i ++)
	{
		a = anchors[i];
		sTitle = a.getAttribute('id');
		if(sTitle=='CI')
			a.setAttribute('title', 'Click here to see Real and Aebersold books for this tune');
	}
}

addLoadEvent(contentsPageLoadFunction);

function sSB(codes, title) // Show song books
{
	var htmlOut = '';
	
	codeArray = codes.split(';');
	
	for (var i = 0; i < codeArray.length; i++)
	{
		// find the corresponding row
		for (var j = 0; j < itemLetter.length; j++)
			if (codeArray[i] == itemLetter[j])
				break;
		
		htmlOut += '<p><a title=\"Click here to see the contents\" href=\"';
		htmlOut += 'index' + indexName[j] + '00.htm\">';
		
		if (SheetMusicPlusPic[j] == '')
			itemId = SheetMusicPlusId[j];
		else
			itemId = SheetMusicPlusPic[j];
		htmlOut += '<img src=\"http://gfx.sheetmusicplus.com/store/060x080/' + itemId + '.gif';
		htmlOut += '\" border=\"0\" vspace=\"5\" hspace=\"0\"></a><br>';
		if (displayName[j].length < 4)		
			htmlOut += 'Aebersold<br>Play-A-Long<br>Volume ' + displayName[j];
		else
			htmlOut += displayName[j];			
		htmlOut += '</p>\n';
	}

	document.getElementById("SongBookList").innerHTML = htmlOut;
	
	htmlOut = '<p align=\"center\"><br><font size=\"1\">\"<b>';
	htmlOut += title;
	htmlOut += '</b>\"<br>is included in the following book(s)...<br><br>(Click a cover to see the contents)</font></p>';
	document.getElementById("SongBookListCaption").innerHTML = htmlOut;	
}
//-->


