

// link dots remover

function unblur() {
this.blur();
}

function blurLinks() {
if (!document.getElementById) return;
theLinks = document.getElementsByTagName("a");
for(i=0; i<theLinks.length; i++) {
theLinks[i].onfocus = unblur;
}
}

// popup
var newwin=0;
function ShowIm(n, h, w){
if(newwin){try{newwin.close();}catch(e){}}
var u = n + '.html';
var par = "'toolbar=no,status=no,height=" + h + ",width=" + w + "'";
newwin=window.open(u, '', par);
}

function ShowImage(imgName, h, w){
if(newwin){try{newwin.close();}catch(e){}}
var content="<html><head><title>Documents</title></head><body><div align=center style='cursor: pointer;'><img border=0 name=pg alt=Закрыть onclick=window.close()";
content+=" width="+w+" height="+h+" src=photos/"+imgName;
content+="></div></body></html>";
wsize=w+50;
hsize=h+50;
if(wsize>1000){wsize=1000;}
if(hsize>800){hsize=800;}
newwin=window.open('', 'pagewin', 'toolbar=no,status=no,height='+hsize+',width='+wsize+',scrollbars=1');
newwin.document.write(content);
newwin.document.close();
newwin.focus();
}