DW=(navigator.appName=="Netscape")?14:20 //20 DH=(navigator.appName=="Netscape")?16:16 //:24 var ntop=40; var nleft=50; var numold=0; var photoW; var DWidth=0; text=new Array(); text[0]=""; function nullpic() { if (numold != 0) { if (!photoW.closed) photoW.close(); } } function loadpic(num,pic,width,height) { if (navigator.appName=="Netscape"){ DWidth=screen.width DHeight=screen.height; width=width-14; } else { DWidth=screen.width; DHeight=screen.height; width=width-4; } width=width + DW; height=height + DH; //alert(DW); width=(width>DWidth)?DWidth:width; height=(height>DHeight)?DHeight-DH:height; www="../russ/pic/" + pic; if (numold != 0) { if (!photoW.closed) photoW.close(); } photoW=window.open('',num,'width='+width+',height='+height+',top='+ntop+',left='+nleft+',resizable=0,scrollbars=1,dependent=0,copyhistory=yes,directories=no'); photoW.document.open() photoW.document.write(""); photoW.document.write("" + text[num] + "
"); photoW.document.write("\"""); photoW.document.write("
"); photoW.document.close() numold=num; } //Функции предварительного просмотра фотографий function elem(obj) { return document.all[obj]; } function show(object) { if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'visible'; else if (document.all) { // document.all[object].style.visibility = 'visible'; if(!object) return; var p = elem(object); //p.style.pixelLeft = 180 - p.offsetWidth; //p.style.pixelLeft = event.clientX + 50; //left = event.clientX - p.offsetWidth - 20; //if(left < 0) // left = event.clientX + 20; //p.style.pixelLeft = left + window.document.body.scrollLeft; //p.style.pixelTop = event.clientY +2 + window.document.body.scrollTop; p.style.visibility = 'visible'; } } function hide(object) { if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'hidden'; else if (document.all) document.all[object].style.visibility = 'hidden'; }