/* javascript for inverting the count in list (<ul>, not <ol>, and <li>) tags */
/* used in /div/about/awards.html, awards page in About the IPL page */

//script tags calling this javascript must follow after the closing <ul> tag

//want to have a list in descending order
	var bkwds = document.getElementById('upisdown');
	bkwds.style.listStyle='none';
	var item=bkwds.getElementsByTagName('li');
	var skip;
	var j=0;
	var k=item.length;

//first count up number of items in list, minus li tags with class "skip"
	while( j < item.length )
	{
			if (item[j].className == "skip")
			{
		    k--;
			}
		  j++;
	}

	j=0; // set to 0 so that we can go through items in list again

	while( j < item.length )
	{
//now if li tags with class "skip", move to next li tag but go to next loop iteration
			if (item[j].className == "skip")
			{
		    j++;
				continue;
			}
			else
			{
//li tags with no class "skip" get a number in front
		    item[j].insertBefore(document.createTextNode(k+'. '), item[j].firstChild);
		    k--;
		    j++;
		  }
	}




