<!--

function chooseYear(y){
	//?year=1989
	var y = 2009 - y;
	var tr = window.location.pathname;
	//need to escape name for artsits with & in them
	location.href = tr + '?year=' + y;
}

function makeWinnerBar(){
	var yA = eval('A_' + winnerYear);
	
	var l = yA.length - 1;
	for(var i = 0; i < l;i++){
		var txt = '';
		var Aw = yA[i];
		txt += '<table width="474" border="0" cellpadding="0" cellspacing="0">';
		txt += '<tr><td height="25" valign="top" class="historyTitle" colspan="3">';
		var tempTXT = awardNameA[Aw[1]];
		txt += tempTXT;
		txt += '</td></tr>';
		
		//if(Aw[2]=='1'){
			txt += '<tr><td>';
			var artisan = false;
			//this is the red name bar
			var tempTXT = Aw[5];
			var tempTXT2 = Aw[3];
			txt += '<tr><td colspan="3" height="2"><img src="content/images/shim.gif" width="1" height="2"></td></tr>';
			txt += '<tr>';
			txt += '<td class="historyWinnerAward" width="405" >';
			//alert(tempTXT2);
			if(tempTXT != ""){
				txt += '<strong>' + tempTXT + '</strong> for -<BR>';
			}
			
			
			txt += '<strong>' + tempTXT2 + '</strong>';
			
			//check if there is an album
			var tempTXT = Aw[4];
			if(tempTXT != ""){
				txt += ' - ' + tempTXT;
			}
			//now finish off the red bar
			txt += '</td><td width="3"><img src="content/images/shim.gif" width="3" height="1"></td>';		
			txt += '<td valign="top" bgcolor="#FD0004"><img src="content/images/titles/history/byyear/red_winner.gif" width="66" height="18"></td>';
			txt += '</tr>';
		//}
		txt += '<tr><td colspan="3" height="2"><img src="content/images/shim.gif" width="1" height="3"></td></tr>';
		//check next array if it has a nominee if not then skip the nomiee bit
		
		txt += '</td></tr>';
		
		//check next array if it has a nominee if not then skip the nomiee bit
		//if(Aw[2]=='1'){
			var nextA = yA[i+1];

		//}else{
			//var nextA = yA[i+1];
		//}
		if(nextA){
			
		//var two = nextA[2];
		//alert(two);
			if (nextA[2] == '0'){	
					//this bit is the nomineee bar
					txt += '<tr><td class="nominessBG">';
					//now loop trough for every nomiee there.
				for(var ii = 0; ii < 10;ii++){
					var cred = nextA[5];
					if(cred != ""){
					txt += '<b>' + nextA[5] + '</b> for ';
				}
				txt += '<b>' + nextA[3] + '</b> -  ' + nextA[4] + '<br>';
				//end nominee bar
				i++;
				var nextA = yA[i+1];
				//if next one is also a nominee then contine
				//otherwise break
				//var two = nextA[2];
					if (nextA[2] == '0'){
				
					}else{
						ii = 99;
					}
				}
					//now add the little bit at the end of the nominee panel
				txt += '</td><td></td><td bgcolor="#E4E5E9" valign="top"><img src="content/images/titles/history/byyear/grey_other_noms.gif" width="66" height="26"></td></tr>';
				txt += '<tr><td colspan="3" height="2"><img src="content/images/shim.gif" width="1" height="3"></td></tr>';
				txt += '</tr>';
			}
		}
		//alert(i);
		txt += '</table>';
		document.write(txt);

	}

}
//-->