path="/d/imgs/team/";
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=path+a[i];}}
} 


function maxpic(name,titl,x,y) {
	var win = window.open('','_blank',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+x+",height="+y);
	win.document.open("text/html");
	with (win.document) {
	    write("<html><head><title>"+titl+"</title><script language='JavaScript'>self.focus()</script></head><body bgcolor='#FFFFFF' leftmargin=0 topmargin=0 marginheight=0 marginwidth=0><a href='#' onclick='window.close()'><img src='"+name+"'");
	    write(" alt='закрыть' border='0'></a></body></html>");
	    close();
 }
}
function turn_around(img,id) {
	
	window.document.getElementById('img'+id).src="/d/imgs/team/"+img;
	if (window.document.getElementById('text_'+id).className == 'dis_none') {
		window.document.getElementById('text_'+id).className = '';
		window.document.getElementById('back_'+id).className = 'dis_none';
		
	}
	else {
		
		window.document.getElementById('text_'+id).className = 'dis_none';
		window.document.getElementById('back_'+id).className = '';
	}
}
function gr_over(img,id) {
	
	window.document.getElementById(id).src="/d/imgs/team/"+img;

}
function gr_out(img,id){
window.document.getElementById(id).src="/d/imgs/team/"+"gr_"+img;
}