function dw(s) {document.write(s)}


function doTd(w){
  dw('<td ')
  dw(w)
  dw(' style="vertical-align:top;"')
  dw('><small>')
}

function doRowStart(w) {
  dw('<tr align="left"> ')
  doTd(w)
}

function doRowEnd() {
  dw('</small>')
  dw('</td>')
  dw('</tr> ')
}

function dolink(p1, p2, thumb_dir, img_name, w)  
{

  doRowStart(''); 
  dw('<a href="')
  dw(p1)
  dw(p2)
  dw('">')
  dw('<img src="')
  dw(thumb_dir)
  dw(img_name)
  dw('" ')
  dw('alt="Subscribe" border="0" height="16" width="')
  dw(w)
  dw('"> ')
  dw('<//a>')
  doRowEnd(); 

}

function doTextLink(title, p1, p2, thumb_dir, img_name, w)  
{
  doRowStart('width=20'); 
  dw('<a href="')
  dw(p1)
  dw(p2)
  dw('">')
  dw('<img src="')
  dw(thumb_dir)
  dw(img_name)
  dw('" ')
  dw('alt="Subscribe" border="0" height="16" width="')
  dw(w)
  dw('"> ')
  dw('</td>')
  dw('<//a>')
  doTd('')
  dw('<a href="')
  dw(p1)
  dw(p2)
  dw('">')
  dw(title)
  dw('<//a>')
  doRowEnd(); 

}

function doTableStart() {
  dw('<table style="width: 100%; text-align: left;" border="0"  cellpadding="0" cellspacing="7">')
  dw('<tbody>')
}

function doTableEnd() {
  dw('</tbody>')
  dw('</table>')
}

function dofeedlinks(thumb_dir)  
{
  ht  = 'http://'
  htw  = ht + 'www.'
  myfeed = htw + 'leslieey.com/musicfeed.rss'  
  
  doTableStart() 

  doTableStart() 
  dw('<tr align="left">')
  dw('<td style="vertical-align:')
  dw('top;"><small><a href="')
  dw('http://www.leslieey.com/other/what-is-rss.html">')
  dw('<B>What is RSS?<B>')
  dw('</a>')
  dw('</small>')
  dw('</td>')
  dw('</tr>')

  dolink(htw + 'ifeedreaders.com/subscribe.php?thefeed',
   '='+myfeed, thumb_dir, 'button2.gif', '86')  

  dolink(ht + 'fusion.google.com/add?feedurl',
   '='+myfeed, thumb_dir, 'google3.gif', '86')  

  dolink(ht + 'add.my.yahoo.com/rss?url',
   '='+myfeed, thumb_dir, 'yahoo.gif', '86')  
  doTableEnd() 
  
  doTableStart() 
  doTextLink('Music', '', myfeed, thumb_dir, '16px-Feed-icon.svg.png', '17')  
  doTableEnd()
  
  dw('<br>')
}
