function imgswap(img,newsrc)
{
img.oldsrc=img.src;
img.src=newsrc;
}
function imgback(img)
{
img.src=img.oldsrc;
}

function infoWrite(str)
{
document.world.infobox.value=str;
}

function youarehere()
{
alert('YOU ARE HERE. Click on the other markers on the map to move to that place. Click and drag slowly on the view to look around. You can click on objects or areas of interest for more information or to move in that direction');
}

useimgbox = 0;

function showImage(file, blurb, title, w, h)
{
   if (useimgbox)
      setImageBox(file, blurb, title, w, h);
   else
      popImage(file,blurb,title,w,h);
}


function setImageBox(file,blurb,title,w,h)
{
   infoWrite(blurb);
   document.images.imagebox.style.visibility = "hidden";
   document.images.imagebox.style.width = w + "px";
   document.images.imagebox.style.height = h + "px";
   document.images.imagebox.src = file;
   document.images.imagebox.style.visibility = "visible";
}

function popImage(file,blurb,title,w,h)
{
var height = h + 60;
if (blurb && blurb.length)
{
    height += (Math.ceil(blurb.length /50) * 10);
}
var win=window.open('','picwin',"width=" + (w + 50) + ",height=" + height + ",resizable=yes,status=no,scrollbars=yes");
win.document.write("<html><title>" + ( title ? title : 'Picture')  + "</title><body><div align=center><p><img src='" + file + "' width='" + w + "' height='" + h + "'><br><p style='font-family: verdana,arial; font-size: 10px'>" + ( blurb ? blurb : '') + "<br><a href='#' onclick='window.close()'>Close Window</a></div></body></html>");
win.document.close();
}



