ms = (document.all) ? true : false

function layerObj(vName) {
  return (ms) ? document.all[vName] : document.layers[vName]
}	

function moveTo(vLayer,x,y) {
  if (ms) {vLayer.style.left = x; vLayer.style.top = y}
  else {vLayer.left = x; vLayer.top = y}
}

function writeLayer(vLayer,vText) {
  if (ms) vLayer.innerHTML = vText
  else {
    with (vLayer.document) {open(); write(vText); close()}
  }
}  

function showLayer(vLayer) {
  if (ms) vLayer.style.visibility = "visible"
  else vLayer.visibility = "show"
}

function hideLayer(vLayer) {
  if (ms) vLayer.style.visibility = "hidden"
  else vLayer.visibility = "hide"
}

function init() {
dText = layerObj("TextLayer")
dImage = layerObj("ImageLayer")
dCloak = layerObj("CloakLayer")
}

function popImage(vImage,vText,vY) {
  hideLayer(dImage)
hideLayer(dCloak)
  moveTo(dImage,420,vY)
  vStr = "<table border='0' cellpadding='0' cellspacing='0' valign='top' align='left' width='250'><tr><td>"
  vStr += "<img src='"+vImage+"' border='0' hspace='0' vspace='0' align='left'></td></tr>"
  vStr += "<tr><td class='captiontext'>"+vText+"</td></tr></table>"
  writeLayer(dImage,vStr)
  showLayer(dImage)
}

function showOutline() {

// NOTE: You can adjust the size of the Outline window by
// changing the width and height parameters in the vStr variable below

  var vStr = "width=300,height=340,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no"
  wOrder = window.open("outline.htm",null,vStr)
}

function showOutline2() {
  var vStr = "width=250,height=150,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no"
  wOrder = window.open("outline2.htm",null,vStr)
}

function showOutline3() {

  var vStr = "width=305,height=230,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no"
  wOrder = window.open("outline3.htm",null,vStr)
}

function showWindow(vSrc,vWidth,vHeight) {
// Example of use in an <A> tag:
// href="javascript:showWindow('outline2.htm',250,225)"
  var vStr = "width="+vWidth+",height="+vHeight+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no"
  wOrder = window.open(vSrc,null,vStr)
}
