function Control() { 
Control.prototype.Menu=function(menu){
  var parent=document.getElementById('wrapper')
  var main=document.getElementById('main')
  // menu
  var border=document.createElement('div')
  border.setAttribute('class','dropShadow')
  var border2=document.createElement('div')
  border2.setAttribute('class','dropShadow2')
  var border3=document.createElement('div')
  border3.setAttribute('class','dropShadow3')
  var border4=document.createElement('div')
  border4.setAttribute('class','dropShadow4')
  var content=document.createElement('div')
  content.setAttribute('id',menu)
  var result=parent.insertBefore(content,main)
  content.appendChild(border4)
  border4.appendChild(border3)
  border3.appendChild(border2)
  border2.appendChild(border)
  this.menuID=document.createElement('ul')
//  this.menuID.appendChild(ul)
//  border.appendChild(content)
  border.appendChild(this.menuID)
  menu='boss'
  this.menuID.setAttribute('id',menu)
//  this.menuID=document.getElementById(menu)
  // title
  div=document.createElement('div')
  menu='title'
  div.setAttribute('id',menu)
  var title=parent.insertBefore(div,main)
  var anchor=document.createElement('a')
  anchor.setAttribute('class','toy')
  anchor.setAttribute('href','index.html')
  title.appendChild(anchor)
  div=document.createElement('img')
  div.setAttribute('alt',"information transformation")
  div.setAttribute('src','it/it285x85.png')
  anchor.appendChild(div)

}
Control.prototype.Link=function(item,picture,words,url){
  //item - text name of the menu item, blank item name gets no checkbox
  //newline - boolean
  //filler - text img.src of image to occur before the link
  //label - text img.src of image to click
  //padding - text img.src of image before label to include in anchor
  //img.src can be '' if no space is required
  var klass = 'toy'
  var itemID=document.createElement('li')
  itemID.setAttribute('id',item+'Item')
  this.menuID.appendChild(itemID)
//  itemID=document.getElementById(item+'Item')
  var anchor=document.createElement('a')
  anchor.setAttribute('id',item+'Anchor')
  anchor.setAttribute('class',klass)
  anchor.setAttribute('href',url)
  itemID.appendChild(anchor)
  if(picture!=''){//ignore empty items
    var image=document.createElement('img')
    image.setAttribute('src',picture)
    image.setAttribute('alt',words)
    image.setAttribute('id',words)
    anchor.appendChild(image)
  }
  if(words!=''){
    anchor.innerHTML=words
  }
  return anchor
}
Control.prototype.IT=function(){
  var menu='menuBar'
  var header="../mt/mt13x17.png"
//  var header=''
  this.Menu(menu,header)
  menu='index'
  var picture="it/it75x75hilite.png"
  var url="index.html"
  var words=''
  this.Link(menu,picture,words,url)
  menu='projects'
  picture=''
  url='projects.html'
  words='Projects'
  this.Link(menu,picture,words,url)
  menu='hobbies'
  picture=''
  url='hobbies.html'
  words='Hobbies'
  this.Link(menu,picture,words,url)
  menu='forum'
  url='http://forum.info-tran.com'
  words='Forum'
  var cool=this.Link(menu,picture,words,url)
  cool.setAttribute('rel','external')
  menu='about'
  url='about.html'
  words='About'
  this.Link(menu,picture,words,url)
 }
}