// Initializations
  var initPdg = 70;
  var finalPdg = 20;
  var incrementPdg = -1;
  var startColor = "red";
  var endColor = "#104ba9";
  var startWeight = "bold"
  var endWeight = "bold";
  var currentPdg = initPdg;
  var execSectionNameExternal; // Arg to ShrinkPadding call inside setTimeout needs to persist outside of ShrinkPadding

function ShrinkPadding(execSectionName) {

  var calledSectionName; // Section that was called from the page that got you here
  var execSectionName;   // Section that called this script

// Compute called section's name from URL
  fullURL = parent.document.URL;
  calledSectionName = fullURL.substring(fullURL.indexOf('#')+1,fullURL.length);

// If this is not the section that was called, quit script
	if ( calledSectionName != execSectionName ) {
		return;
	}

	execSectionNameExternal = execSectionName;

	currentPdg = currentPdg + incrementPdg;
	
// Find the object that represents the dynamic text.
	paragraph = document.getElementById(execSectionName);

	paragraph.style.color = startColor;
	paragraph.style.fontWeight = startWeight;

// Change the padding.
	paragraph.style.paddingLeft = currentPdg + "px";

	if ( currentPdg >= finalPdg ) {
	      setTimeout("ShrinkPadding(execSectionNameExternal)", 20);
	}
	else {
		paragraph.style.color = endColor;
		paragraph.style.fontWeight = endWeight;
		}
}

