// JavaScript Document

function WinOp(Name,Width,Height,alt) {
	smWin = window.open("","smWin","width="+Width+",height="+Height+",left=100,top=100");
	smWin.document.open();
	smWin.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" style="margin:0pt" onBlur="self.close()">'); 
	smWin.document.write('<img src='+Name+' width='+Width+' height='+Height+' alt='+alt+'>'); 
	smWin.document.write('</body></html>');
	smWin.document.close();
	smWin.focus();
}

function pageX(e)
{
return e.offsetParent ? e.offsetLeft + pageX( e.offsetParent ) : e.offsetLeft;
}
function pageY(e)
{
return e.offsetParent ? e.offsetTop + pageY( e.offsetParent ) : e.offsetTop;
}
function ShowHome()
{
var logo=document.getElementById('apnlogo');
var x=pageX(logo);
var y=pageY(logo);
document.getElementById('homeicon').style.left=x+5;
document.getElementById('homeicon').style.top=y+125;
document.getElementById('homeicon').style.display='block';
}
function ShowItem(idpar,id,xplus,yplus)
{
var Item=document.getElementById(idpar);
document.getElementById(id).style.left=pageX(Item)+xplus;
document.getElementById(id).style.top=pageY(Item)+yplus;
document.getElementById(id).style.display='block';
}

