function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}




pm_01_on = new Image();
pm_01_on.src = "/images/pic_m01_on.jpg";
pm_01_off = new Image();
pm_01_off.src = "/images/pic_m01.jpg";

pm_02_on = new Image();
pm_02_on.src = "/images/pic_m02_on.jpg";
pm_02_off = new Image();
pm_02_off.src = "/images/pic_m02.jpg";

pm_03_on = new Image();
pm_03_on.src = "/images/pic_m03_on.jpg";
pm_03_off = new Image();
pm_03_off.src = "/images/pic_m03.jpg";

pm_04_on = new Image();
pm_04_on.src = "/images/pic_m04_on.jpg";
pm_04_off = new Image();
pm_04_off.src = "/images/pic_m04.jpg";

pm_05_on = new Image();
pm_05_on.src = "/images/pic_m05_on.jpg";
pm_05_off = new Image();
pm_05_off.src = "/images/pic_m05.jpg";

pm_06_on = new Image();
pm_06_on.src = "/images/pic_m06_on.jpg";
pm_06_off = new Image();
pm_06_off.src = "/images/pic_m06.jpg";

pm_07_on = new Image();
pm_07_on.src = "/images/pic_m07_on.jpg";
pm_07_off = new Image();
pm_07_off.src = "/images/pic_m07.jpg";

pm_08_on = new Image();
pm_08_on.src = "/images/pic_m08_on.jpg";
pm_08_off = new Image();
pm_08_off.src = "/images/pic_m08.jpg";

pm_19_on = new Image();
pm_19_on.src = "/images/pic_m019_on.jpg";
pm_19_off = new Image();
pm_19_off.src = "/images/pic_m019.jpg";

//

sm_01_on = new Image();
sm_01_on.src = "/images/sm_on.gif";
sm_01_off = new Image();
sm_01_off.src = "/images/sm.gif";

sm_02_on = new Image();
sm_02_on.src = "/images/sm_on.gif";
sm_02_off = new Image();
sm_02_off.src = "/images/sm.gif";

sm_03_on = new Image();
sm_03_on.src = "/images/sm_on.gif";
sm_03_off = new Image();
sm_03_off.src = "/images/sm.gif";

sm_04_on = new Image();
sm_04_on.src = "/images/sm_on.gif";
sm_04_off = new Image();
sm_04_off.src = "/images/sm.gif";

sm_05_on = new Image();
sm_05_on.src = "/images/sm_on.gif";
sm_05_off = new Image();
sm_05_off.src = "/images/sm.gif";

sm_06_on = new Image();
sm_06_on.src = "/images/sm_on.gif";
sm_06_off = new Image();
sm_06_off.src = "/images/sm.gif";

sm_07_on = new Image();
sm_07_on.src = "/images/sm_on.gif";
sm_07_off = new Image();
sm_07_off.src = "/images/sm.gif";

sm_08_on = new Image();
sm_08_on.src = "/images/sm_on.gif";
sm_08_off = new Image();
sm_08_off.src = "/images/sm.gif";

sm_09_on = new Image();
sm_09_on.src = "/images/sm_on.gif";
sm_09_off = new Image();
sm_09_off.src = "/images/sm.gif";

sm_10_on = new Image();
sm_10_on.src = "/images/sm_on.gif";
sm_10_off = new Image();
sm_10_off.src = "/images/sm.gif";

sm_11_on = new Image();
sm_11_on.src = "/images/sm_on.gif";
sm_11_off = new Image();
sm_11_off.src = "/images/sm.gif";

sm_12_on = new Image();
sm_12_on.src = "/images/sm_on.gif";
sm_12_off = new Image();
sm_12_off.src = "/images/sm.gif";

sm_13_on = new Image();
sm_13_on.src = "/images/sm_on.gif";
sm_13_off = new Image();
sm_13_off.src = "/images/sm.gif";


ic_01_on = new Image();
ic_01_on.src = "/images/ic_01_on.gif";
ic_01_off = new Image();
ic_01_off.src = "/images/ic_01.gif";

ic_02_on = new Image();
ic_02_on.src = "/images/ic_02_on.gif";
ic_02_off = new Image();
ic_02_off.src = "/images/ic_02.gif";

ic_03_on = new Image();
ic_03_on.src = "/images/ic_03_on.gif";
ic_03_off = new Image();
ic_03_off.src = "/images/ic_03.gif";

//

mp_01_on = new Image();
mp_01_on.src = "/images/mp_01_on.gif";
mp_01_off = new Image();
mp_01_off.src = "/images/mp_01.gif";

mp_02_on = new Image();
mp_02_on.src = "/images/mp_02_on.gif";
mp_02_off = new Image();
mp_02_off.src = "/images/mp_02.gif";

mp_03_on = new Image();
mp_03_on.src = "/images/mp_03_on.gif";
mp_03_off = new Image();
mp_03_off.src = "/images/mp_03.gif";

mp_04_on = new Image();
mp_04_on.src = "/images/mp_04_on.gif";
mp_04_off = new Image();
mp_04_off.src = "/images/mp_04.gif";

mp_05_on = new Image();
mp_05_on.src = "/images/mp_05_on.gif";
mp_05_off = new Image();
mp_05_off.src = "/images/mp_05.gif";

mp_06_on = new Image();
mp_06_on.src = "/images/mp_06_on.gif";
mp_06_off = new Image();
mp_06_off.src = "/images/mp_06.gif";

mp_07_on = new Image();
mp_07_on.src = "/images/mp_07_on.gif";
mp_07_off = new Image();
mp_07_off.src = "/images/mp_07.gif";

mp_08_on = new Image();
mp_08_on.src = "/images/mp_08_on.gif";
mp_08_off = new Image();
mp_08_off.src = "/images/mp_08.gif";

mp_09_on = new Image();
mp_09_on.src = "/images/mp_09_on.gif";
mp_09_off = new Image();
mp_09_off.src = "/images/mp_09.gif";

//

arr_01_on = new Image();
arr_01_on.src = "/images/arr_or.gif";
arr_01_off = new Image();
arr_01_off.src = "/images/arr_gr.gif";

arr_02_on = new Image();
arr_02_on.src = "/images/arr_or.gif";
arr_02_off = new Image();
arr_02_off.src = "/images/arr_gr.gif";

arr_03_on = new Image();
arr_03_on.src = "/images/arr_or.gif";
arr_03_off = new Image();
arr_03_off.src = "/images/arr_gr.gif";

arr_04_on = new Image();
arr_04_on.src = "/images/arr_or.gif";
arr_04_off = new Image();
arr_04_off.src = "/images/arr_gr.gif";

arr_05_on = new Image();
arr_05_on.src = "/images/arr_or.gif";
arr_05_off = new Image();
arr_05_off.src = "/images/arr_gr.gif";

arr_06_on = new Image();
arr_06_on.src = "/images/arr_or.gif";
arr_06_off = new Image();
arr_06_off.src = "/images/arr_gr.gif";

arr_07_on = new Image();
arr_07_on.src = "/images/arr_or.gif";
arr_07_off = new Image();
arr_07_off.src = "/images/arr_gr.gif";

arr_08_on = new Image();
arr_08_on.src = "/images/arr_or.gif";
arr_08_off = new Image();
arr_08_off.src = "/images/arr_gr.gif";

arr_09_on = new Image();
arr_09_on.src = "/images/arr_or.gif";
arr_09_off = new Image();
arr_09_off.src = "/images/arr_gr.gif";

arr_10_on = new Image();
arr_10_on.src = "/images/arr_or.gif";
arr_10_off = new Image();
arr_10_off.src = "/images/arr_gr.gif";

arr_11_on = new Image();
arr_11_on.src = "/images/arr_or.gif";
arr_11_off = new Image();
arr_11_off.src = "/images/arr_gr.gif";

arr_12_on = new Image();
arr_12_on.src = "/images/arr_or.gif";
arr_12_off = new Image();
arr_12_off.src = "/images/arr_gr.gif";

arr_13_on = new Image();
arr_13_on.src = "/images/arr_or.gif";
arr_13_off = new Image();
arr_13_off.src = "/images/arr_gr.gif";

arr_14_on = new Image();
arr_14_on.src = "/images/arr_or.gif";
arr_14_off = new Image();
arr_14_off.src = "/images/arr_gr.gif";

arr_15_on = new Image();
arr_15_on.src = "/images/arr_or.gif";
arr_15_off = new Image();
arr_15_off.src = "/images/arr_gr.gif";

arr_16_on = new Image();
arr_16_on.src = "/images/arr_or.gif";
arr_16_off = new Image();
arr_16_off.src = "/images/arr_gr.gif";

arr_17_on = new Image();
arr_17_on.src = "/images/arr_or.gif";
arr_17_off = new Image();
arr_17_off.src = "/images/arr_gr.gif";

arr_18_on = new Image();
arr_18_on.src = "/images/arr_or.gif";
arr_18_off = new Image();
arr_18_off.src = "/images/arr_gr.gif";

arr_19_on = new Image();
arr_19_on.src = "/images/arr_or.gif";
arr_19_off = new Image();
arr_19_off.src = "/images/arr_gr.gif";

arr_20_on = new Image();
arr_20_on.src = "/images/arr_or.gif";
arr_20_off = new Image();
arr_20_off.src = "/images/arr_gr.gif";

arr_21_on = new Image();
arr_21_on.src = "/images/arr_or.gif";
arr_21_off = new Image();
arr_21_off.src = "/images/arr_gr.gif";

arr_22_on = new Image();
arr_22_on.src = "/images/arr_or.gif";
arr_22_off = new Image();
arr_22_off.src = "/images/arr_gr.gif";

arr_23_on = new Image();
arr_23_on.src = "/images/arr_or.gif";
arr_23_off = new Image();
arr_23_off.src = "/images/arr_gr.gif";

arr_24_on = new Image();
arr_24_on.src = "/images/arr_or.gif";
arr_24_off = new Image();
arr_24_off.src = "/images/arr_gr.gif";

arr_25_on = new Image();
arr_25_on.src = "/images/arr_or.gif";
arr_25_off = new Image();
arr_25_off.src = "/images/arr_gr.gif";

arr_26_on = new Image();
arr_26_on.src = "/images/arr_or.gif";
arr_26_off = new Image();
arr_26_off.src = "/images/arr_gr.gif";

arr_27_on = new Image();
arr_27_on.src = "/images/arr_or.gif";
arr_27_off = new Image();
arr_27_off.src = "/images/arr_gr.gif";

arr_28_on = new Image();
arr_28_on.src = "/images/arr_or.gif";
arr_28_off = new Image();
arr_28_off.src = "/images/arr_gr.gif";

arr_29_on = new Image();
arr_29_on.src = "/images/arr_or.gif";
arr_29_off = new Image();
arr_29_off.src = "/images/arr_gr.gif";

arr_30_on = new Image();
arr_30_on.src = "/images/arr_or.gif";
arr_30_off = new Image();
arr_30_off.src = "/images/arr_gr.gif";




function img_inact(img)
{
	imgOn = eval(img+"_off.src");
	document[img].src = imgOn;

}

function img_act(img)
{
	imgOn = eval(img+"_on.src");
	document[img].src = imgOn;


}


function view(ww, wh, picname) {
	
	wleft=window.screenLeft;
	wtop=window.screenTop;
	
	w=document.body.clientWidth;
	h=document.body.clientHeight;
	
	w1=wleft+(w/2)-(ww/2);
	h1=wtop-40;
	
	feat=' "toolbar=no,location=no,directories=no,status=no,menubar=no,fullscreen=no,scrollbars=yes, resizable=yes, width=' +ww+ ', height=' +wh+  ', left='+w1+', top='+h1+' "';
	
	newWindow=window.open('','Photos', feat);
	// Set Content
	newWindow.resizeTo(ww+28, wh+27);
	newContent='<html><head><title>Photos</title></head>';
	newContent+='<link rel=stylesheet href=/style.css type=text/css>';
	newContent+='<body topmargin=5 leftmargin=0 bgcolor=#FFFFFF link=#003399 vlink=#000066 alink=#000066>';
	newContent+='<table border=0 cellspacing=0 cellpadding=0 Width="100%" height="100%"><tr><td Align="center">';
	newContent+='<table border=0 cellspacing=1 cellpadding=0 bgcolor=#000000><tr><td bgcolor=#000000><a href="javascript:self.close();">';
	newContent+='<img src=' + picname  + ' border=1 alt=Закрыть></a></td></tr></table>';
	newContent+='<script>window.focus();window.scrollTo(0,20000000);</script>';
	newContent+='<a href="javascript:self.close();">[ закрыть ]</a></td></tr></table></body></html>';

	
	// Write content
	newWindow.document.write(newContent);
	newWindow.document.close();
	
	

}

