/*

  The Licciardi Archive - Navigation Menu

*/ 

//  Put in frame.
if (top == self) 
  if (relURL != '') location.replace(relURL)
  else location.replace('http://tavernini.com')

//  Write to document.
function put(s) {
  if (top != self) parent.frames[0].document.writeln(s)
}

//  This is the menuEntry object.
function menuEntry(hRef, label, height, newWin) {
  this.hRef = hRef		//  Link 
  this.label = label		//  What to call the link
  this.height = height		//  Height in pixels
  this.newWin = newWin		//  newWin <=> Open in new window
}

standard_height = 17
hr_height = 6
hr_width = 6

var menuArray = new Array()

// Entries
menuArray[menuArray.length] = new menuEntry('http://www.consiglialicciardi.com/', 'Consiglia\'s Site', standard_height, true)
menuArray[menuArray.length] = new menuEntry('http://digilander.libero.it/Savarez/', 'Peppe\'s Site', standard_height, true)
//menuArray[menuArray.length] = new menuEntry('http://www.consiglialicciardi.com/', 'Consiglia\'s New Fan Club', standard_height, true)
menuArray[menuArray.length] = new menuEntry('http://web.tiscali.it/consiglia_fan/', 'Consiglia\'s Old Fan Club', standard_height, true)

menuArray[menuArray.length] = new menuEntry('http://www.consiglialicciardi.com/', 'Lyrics', standard_height, true)

// menuArray[menuArray.length] = new menuEntry('http://digilander.libero.it/savarez57/', 'Peppe\'s CD Store', // standard_height, true)
menuArray[menuArray.length] = new menuEntry('http://www.internetbookshop.it/cd/ser/serpge.asp?ty=kw&x=licciardi', 'ibs.it CD Store', standard_height, true)
menuArray[menuArray.length] = new menuEntry('<HR>', hr_width, hr_width)
menuArray[menuArray.length] = new menuEntry('', '<B><FONT COLOR=B0B0B0>From Barnes & Noble:</B>', standard_height + 4)
menuArray[menuArray.length] = 
  new menuEntry('http://music.barnesandnoble.com/search/mediaplayer.asp?ean=657711030521&z=y&track=6&disc=1', 
  'Casa Italia', standard_height, true)
menuArray[menuArray.length] = 
  new menuEntry('http://music.barnesandnoble.com/search/mediaplayer.asp?ean=657711050321&z=y&track=5&disc=1', 
  'Mediterranean Blue', standard_height, true)
//menuArray[menuArray.length] = 
  new menuEntry('http://music.barnesandnoble.com/search/artistbio.asp?z=y&CTR=235013', 
  'Consiglia\'s Brief Bio', standard_height, true)

menuArray[menuArray.length] = new menuEntry('<HR>', hr_width, hr_width)
menuArray[menuArray.length] = new menuEntry('../index.html', 'Parent Site', standard_height, false)

//  Generate HTML page.
put('<HTML>')
put('<HEAD>')
put('<TITLE>Lucio Tavernini Menu Page</TITLE></HEAD>')
put('<STYLE>')
put('  A {TEXT-DECORATION: none; COLOR: A0C0C0}')
put('  A:hover {color:white; text-decoration: underline; background: 000040}')
put('</STYLE>')
put('<BODY BGCOLOR=253385 TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 TEXT=FFFFFF>')

//  Generate table of links.
put('<TABLE WIDTH=180 BORDER=0 CELLSPACING=0 CELLPADDING=0>')
put('  <TR>')
put('    <TD ALIGN=LEFT WIDTH=80 WIDTH=80 HEIGHT=80></TD>')
put('    <TD WIDTH=100 NOWRAP>&nbsp;</TD>')
put('  </TR>')
put('  <TR><TD COLSPAN=4>')
put('    <CENTER>')
put('    <FONT SIZE=-1 FACE="ARIAL,HELVETICA"><B>')
//  This header begins each row:
header = '<TR><TD COLSPAN=2 HEIGHT=18 ALIGN=CENTER><FONT SIZE=-1 FACE="ARIAL,HELVETICA">'

//  Generate links from array.
for (var i = 0; i < menuArray.length; i++) with (menuArray[i]) {
  //  This header begins this row:
  header = '  <TR><TD COLSPAN=2 HEIGHT=' + height + ' ALIGN=CENTER><FONT SIZE=-1 FACE="ARIAL,HELVETICA">'
  put(header)
  if (hRef == '<HR>') put('    ' + '<HR WIDTH=' + label + ' SIZE=' + height +  ' NOSHADE></TD></TR>')
  else if (hRef == '') put('    ' + label + '</TD></TR>')
  else if (newWin) put('    <A HREF="' + hRef + '" TARGET=_blank>' + label + '</A></TD></TR>')
  else put('    <A HREF="' + hRef + '" TARGET=_top>' + label + '</A></TD></TR>')
}
//  Close the table, then terminate.
put('</TABLE>')
put('</BODY>')
put('</HTML>')
