var dog="@opty";
var ph="152";

function preload(url){var a = new Image; a.src = url; return a}
	preload("/pictures/menu1_on.gif");
	preload("/pictures/menu2_on.gif");
	preload("/pictures/menu3_on.gif");
	preload("/pictures/menu4_on.gif");
	preload("/pictures/mail_on.gif");
	preload("/pictures/zoom_on.gif");

function Menu(imgName,menuName){
if(document.images){eval('document.' + imgName + '.src="pictures/' + menuName + '"');}
}

function new_win(url,w,h,alt) {
var w1=window.open('','zoom_window','resizable=no,menubar=no,status=no,scrollbars=no,width=1,height=1');
w1.close();
ScrWindow=window.open('zoom.html','zoom_window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=15,top=15,width='+w+',height='+h);
if (ScrWindow != null && ScrWindow.opener == null) ScrWindow.opener=window;
	ScrWindow.document.open();
	ScrWindow.document.writeln ("<html><head><title>"+alt+"</title></head><meta HTTP-EQUIV='Content-Type' content='text/html; charset=windows-1251'><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"+
	"<a href='javascript:window.close()'><img src='"+url+"' alt='Закрыть окно' border='0'></a>"+
	"</body></html>");
	ScrWindow.document.close();
ScrWindow.onload=ScrWindow.focus;
ScrWindow.focus();
}

function getHeight(){
	var ver = navigator.appVersion;                         
	if (ver.indexOf("MSIE") != -1){
		var nHeight = document.body.clientHeight-300;
		}
	else{
		var nHeight = window.innerHeight-300;
		}
	if (nHeight<=0){
		nHeight=1;
		}
	else{
		document.getElementById("divTable").style.height=nHeight;
	}
}
	

function new_win2(url,w,h){
	if(nw!=null && !nw.closed) nw.close();
	var nw=window.open(url,'new_window','resizable=no,menubar=no,status=no,scrollbars=no,width='+w+',height='+h+',top=10,left=10');
	nw.focus();
return false;
}


function foto_win(url){
	if(nw!=null && !nw.closed) nw.close();
	var nw=window.open(url,'foto_window','resizable=no,menubar=no,status=no,scrollbars=no,width=300,height=300,top=50,left=150');
	nw.focus();
return false;
}
