function displayTitlesOnPage() {
  var titles = document.getElementsByTagName('h6');

  for (var i = 0; i < titles.length; i++) {
    createTitleFlashObject(titles[i]);
  }
}

/*
 * Replaces innerHTML of an element with EMBED flash object.
 * Flash is used to display text using Zemke font.
 * 
 * If initial content of the element was wrapped in a link then
 * flash will act as a link.
 * 
 *   - containerElmnt  element used as holder for flash and 
 *                     hidden text
 */
function createTitleFlashObject(containerElmnt) {
  var fontSize = parseFontSize(containerElmnt);
  var height = fontSize * 1.3 ; // height has to be adjusted because H6 font 
                                // glyph height is smaller then that of Zemke 
                                // font embeded in flash
  var width = containerElmnt.offsetWidth;
  var titleText = containerElmnt.innerHTML;
  var titleURL = null;

  if (containerElmnt.getElementsByTagName('a').length > 0) {
    titleText = containerElmnt.getElementsByTagName('a')[0].innerHTML;
    titleURL = containerElmnt.getElementsByTagName('a')[0].href;
  }

  var fo = new FlashObject(titleUrl, 'title', width, height, '8', '#000');
  fo.addParam('allowScriptAccess', 'sameDomain');
  fo.addParam('quality', 'high');
  fo.addParam('wmode', 'transparent');
  fo.addVariable('maxWidth', width);
  fo.addVariable('fontSize', fontSize);
  fo.addVariable('title', encodeURIComponent(trim(titleText)));

  if (titleURL != null) {
    fo.addVariable('url', titleURL); // creates a link out of the header in the swf
  }
  
  fo.write(containerElmnt);
}