function openPerson(id) {
href = "/openperson/person_" + id + "_5.htm";
w = 570; h = 350;
sh = screen.height - 80;
if (document.all) sh -= 40;
if (h > sh) h = sh;
sw = screen.width;
if (w > sw) w = sw;
posX = sw/2 - w/2; posY = sh/2 - h/2;
if (posY < 0) posY = 0;
if (posX < 0) posX = 0;
posCode = (document.all) ? ",left=" + posX + ",top=" + posY : ",screenX=" + posX + ",screenY=" + posY;
moreWin = window.open (href, "asv", "status=no, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, width=" + w + ", height=" + h + posCode);
moreWin.focus();
}
function showImage(id, w, h) {
href = "/screenshot/image_" + id + ".htm";
w += 20; 
h += 10; 
sh = screen.height - 80; 
sw = screen.width;
if (document.all) sh -= 40; 
if (h > sh) h = sh; 
if (w > sw) w = sw;
posX = sw/2 - w/2; 
posY = sh/2 - h/2;
if (posY < 0) posY = 0; 
if (posX < 0) posX = 0;
posCode = (document.all) ? ",left=" + posX + ",top=" + posY : ",screenX=" + posX + ",screenY=" + posY;
moreWin = window.open (href, "asv", "status=no, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, width=" + w + ", height=" + h + posCode);
moreWin.focus();
}
function moreImage(id, imageid) {
obj = document.getElementById("img"+id);
s = "/default.aspx?mode=image&id="+imageid;
obj.src=s;
}
function moreBigImage(id, bigid, bigw, bigh) {
obj2 = document.getElementById("href"+id);
h = "javascript:showImage(" + bigid + "," + bigw + "," + bigh + ")";
obj2.href=h;
}
