var scrollPos = 0;

function scrllTp()
{
//document.body.scrollTop = scrollPos;
window.scroll(0,scrollPos);
}


function openItem(itemNo)
{
scrollPos = document.body.scrollTop;
itemWin = window.open('archives/'+itemNo+'.html','itemWin','toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=400,height=350, background="images/background.jpg" ');
itemWin.focus();
}

var ns6 = (!document.all && document.getElementById); 
var ie4 = (document.all);
var ns4 = (document.layers);

function showItem(itemNum) {
// currentY is the current position of the div
// scrollTop is how far down the user has scrolled
var itemId = 'a' + itemNum;
if (ns4) { 
  this.currentY 	= document.eval(itemId).top; 
  this.scrollTop	= window.pageYOffset;
  document.eval(itemId).top = this.scrollTop;
 }
 else if(ns6) {
  this.currentY = parseInt(document.getElementById(itemId).style.top); 
  this.scrollTop = scrollY;
  document.getElementById(itemId).style.top = this.scrollTop + "px";
 }
 else if(ie4) { 
  this.currentY 	= eval(itemId).style.pixelTop;
  this.scrollTop	= document.body.scrollTop; 
  eval(itemId).style.pixelTop = this.scrollTop;
 } 
 changeObjectVisibility('a' + itemNum, 'visible');

}
function hideItem(itemNum)
{
		changeObjectVisibility('a' + itemNum, 'hidden');
}
