function lefthover(a_nomer,a_check) {
Elmt="trleft_"+a_nomer
if (document.all(Elmt).className !="trleft_on"){
document.all(Elmt).className = (a_check) ? "trleft_hover" : "";
};
event.returnValue = false;
}

function showpic(str_link,str_target,a_resizable) {
int_width=600;
int_left=(screen.width-15-int_width)/2;
if (int_width>screen.width-15){
	int_width=screen.width-15;
	int_left=0;
}
int_height=580;
int_top=(screen.height-60-int_height)/2;
if (int_height>screen.height-60){
	int_height=screen.height-60;
	int_top=0;
}
window.open(str_link,str_target,"resizable=" + a_resizable + ",scrollbars=" + a_resizable + ",toolbar=no,width="+int_width+",height="+int_height+",left="+int_left+", top="+int_top);
event.returnValue = false;
}


//открытие ссылки в новом окне
function ShowWindows(a_resizable, a_width, a_height, a_toolbar){
var objElement
objElement=event.srcElement
while (objElement.tagName!="A"){objElement=objElement.parentElement;}
if (objElement.tagName=="A"){
var str_resizable="no";
var str_toolbar="no";
var int_deltaHeight=20;
var int_screenWidth=screen.availWidth-10;
var int_screenHeight=screen.availHeight-10;
var int_width=int_screenWidth;
var int_height=int_screenHeight;

if (a_width==undefined){a_width=500};
if (a_height==undefined){a_height=500};

if (a_resizable!=undefined){str_resizable=a_resizable};
if (a_width!=undefined){
	if(a_width!=0){
		int_width=a_width;
		};
	};
if (a_height!=undefined){
	if(a_height!=0){
		int_height=a_height;
		};
	};
if (a_toolbar!=undefined){str_toolbar=a_toolbar};
if (str_toolbar=="yes") {int_deltaHeight=150;};

int_left=(int_screenWidth-int_width)/2;
if (int_width>int_screenWidth){
	int_width=int_screenWidth;
	int_left=0;
}
int_top=(int_screenHeight-int_deltaHeight-int_height)/2;
if (int_height>int_screenHeight-int_deltaHeight){
	int_height=int_screenHeight-int_deltaHeight;
	int_top=0;
}
window.open(objElement.href,objElement.target,"resizable=" + str_resizable + ",scrollbars=" + str_resizable + ",toolbar=" + str_toolbar + ",width="+int_width+",height="+int_height+",left="+int_left+", top="+int_top);
event.returnValue = false;
}
}

