var y1 = 20;   // change the # on the left to adjuct the Y co-ordinate
(document.getElementById) ? dom = true : dom = false;

function hideIt() {
  if (dom) {document.getElementById("layer1").style.visibility='hidden';}
  if (document.layers) {document.layers["layer1"].visibility='hide';} }

function showIt(pic) {
	document.getElementById("layer1").style.right=(10);
	document.getElementById("layer1").style.top=(20);
	document.getElementById("myImage").src=pic;	
  if (dom) {document.getElementById("layer1").style.visibility='visible';}
  if (document.layers) {document.layers["layer1"].visibility='show';} }

function placeIt() {
  if (dom && !document.all) {document.getElementById("layer1").style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
  if (document.layers) {document.layers["layer1"].top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
  if (document.all) {document.all["layer1"].style.top = document.body.scrollTop + (document.body.clientHeight - (document.body.clientHeight-y1));}
  window.setTimeout("placeIt()", 10); }
//function show_coords(event)
//{
//x=event.clientX;
//y=event.clientY;
//if (dom && !document.all) {document.getElementById("layer1").style.top = 400}
 // if (document.layers) {document.layers["layer1"].top = 400}
 // if (document.all) {document.all["layer1"].style.top = 400;}
//alert("X coords: " + x + ", Y coords: " + y);
//document.layers["layer1"].top = x;
//layer1.style.top="400px";
//layer1.style.left="400px";
//}
//window.onload=placeIt();
onResize="window.location.href = window.location.href"
