// ############################################################################################
// ## init main vars
// ############################################################################################

menuabout = new Array()
menumerchants = new Array()
menuconsumers = new Array()
menucommunity = new Array()
var counter


mainpath = "http://world.std.com/~jwpowell/"
//mainpath = "file:///Volumes/bugoutDevice/buggy/workD-old/LTS_powell/lts_site/new/"




// ############################################################################################
// ## add item to about menu
// ############################################################################################
function AddaboutItem(count,name,reff) {
  menuabout[count] = new Array(name,reff)
}

// ############################################################################################
// ## add item to merchants menu
// ############################################################################################
function AddmerchantsItem(count,name,reff) {
  menumerchants[count] = new Array(name,reff)
}

// ############################################################################################
// ## add item to consumer menu
// ############################################################################################
function AddconsumersItem(count,name,reff) {
  menuconsumers[count] = new Array(name,reff)
}

// ############################################################################################
// ## Draws a menu "<img src=images/black.gif width=155 height=21><br>"
// ############################################################################################
function drawarray1(header,tab){
   document.write("<table width=140 height=20 cellpadding=2 cellspacing=0 border=1><tr><td valign=top>")
   document.write("<font color=#FFFFFF size= 1 face=Verdana, Arial, Helvetica, sans-serif>ABOUT:</font>")
   document.write("</td></tr></table>")
   
   for (counter in tab) 
   {
    doc = mainpath + tab[counter][1]
    if (doc == document.location.href)
      { 
       document.write("<img src=images/menu/menu_arrow_red.gif width=13 height=11>")
       document.write("<font color=#FF6600 size= 1 face=Verdana, Arial, Helvetica, sans-serif>" + tab[counter][0] + "</font>") }
     else
      { 
       if (doc.indexOf("javascript:") > 0) {
         loc = tab[counter][1]
         } else {
         loc = mainpath + tab[counter][1]
         }
       document.write("<img src=images/menu/menu_arrow.gif width=13 height=11>")
	document.write("<font color=#FFFFFF size= 1 face=Verdana, Arial, Helvetica, sans-serif><a href=" + loc + ">" + tab[counter][0] + "</a>") }
	   //<font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="3b.html">uuu</a></font>
	   //document.write("<a href=" + loc + ">" + tab[counter][0] + "</a>") }
    document.write("<br>" )
   }
}

function drawarray2(header,tab){
   document.write("<table width=140 height=20 cellpadding=2 cellspacing=0 border=1><tr><td valign=top>")
   document.write("<font color=#FFFFFF size= 1 face=Verdana, Arial, Helvetica, sans-serif>PROJECTS:</font>")
   document.write("</td></tr></table>")
   
   for (counter in tab) 
   {
    doc = mainpath + tab[counter][1]
    if (doc == document.location.href)
      { 
       document.write("<img src=images/menu/menu_arrow_red.gif width=13 height=11>")
       document.write("<font color=#FF6600 size= 1 face=Verdana, Arial, Helvetica, sans-serif>" + tab[counter][0] + "</font>") }
     else
      { 
       if (doc.indexOf("javascript:") > 0) {
         loc = tab[counter][1]
         } else {
         loc = mainpath + tab[counter][1]
         }
       document.write("<img src=images/menu/menu_arrow.gif width=13 height=11>")
       document.write("<font color=#FFFFFF size= 1 face=Verdana, Arial, Helvetica, sans-serif><a href=" + loc + ">" + tab[counter][0] + "</a>") }
    document.write("<br>" )
   }
}

// ############################################################################################
// ## show main menu with applet
// ############################################################################################
function Showmenu(){
  document.write("<table width=155 cellpadding=0 cellspacing=0 border=0><tr><td valign=top>")


  drawarray1("menu_02.gif",menumerchants)
  document.write("<br>")
  
  drawarray2("menu_02.gif",menuconsumers)
  document.write("<br>")
document.write("<a href=\"mailto:jwpowell@world.std.com\"><font color=#FF6600 size= 1 face=Verdana, Arial, Helvetica, sans-serif>Send me an e-mail</font></a>")
  
  //drawarray("menu_01.gif",menuabout)
  //document.write("<br>")
  //drawarray("menu_03.gif",menuconsumers)
  //document.write("<br>")
  
   
  document.write("</td></tr></table>")
}

// ############################################################################################
// ## setup for the menu
// ############################################################################################
AddmerchantsItem( 1,"Home","index.html")
AddmerchantsItem( 2,"Statement","statement.html")
AddmerchantsItem( 3,"CV & Contact","resume.html")


AddconsumersItem( 1,"Arsenal Center for the Arts","arsenalarts.html")
AddconsumersItem( 2,"Zoetrope Plaza","zoetrope.html")
AddconsumersItem( 3,"Charles River","charlesbridges.html")
AddconsumersItem( 4,"Simmons College","simmons.html")
AddconsumersItem( 5,"American Academy of Arts and Sciences","aas.html")
AddconsumersItem( 6,"Words on Fire","words.html")
AddconsumersItem( 7,"125 Summer","sumner.html")
AddconsumersItem( 8,"Decks","decks.html")
AddconsumersItem( 9,"Murals","murals.html")
AddconsumersItem( 10,"Fort Point Channel","3b.html")
AddconsumersItem( 91,"Nikolaj","nikolaj.html")
AddconsumersItem( 12,"Ringsted","ringsted.html")
AddconsumersItem( 13,"Charlottenborg","cb.html")
AddconsumersItem( 14,"Boston and Denver","cityplaza.html")
AddconsumersItem( 15,"Boston Public Library","bpl.html")
AddconsumersItem( 16,"Ring of Fire","ringfire.html")
AddconsumersItem( 17,"Concept Projects","concept.html")


