function over(x){

	document.images[x].src="i/"+x+"_.gif";

}

function out(x){

	document.images[x].src="i/"+x+".gif";

}

function over_j(x){

	document.images[x].src="i/"+x+"_.jpg";

}

function out_j(x){

	document.images[x].src="i/"+x+".jpg";

}


function over_li(x){

	document.images[x].src="i/li_.gif";

}

function out_li(x){

	document.images[x].src="i/li.gif";

}



function t_over(x){

	document.all[x].style.background="#f5f0df";

}

function t_out(x){

	document.all[x].style.background="white";

}



function m_over(x){

	document.all[x].style.background="#ebe2c0";

}

function m_out(x){

	document.all[x].style.background="#f9f6ec";

}


function show_map(x){
	if(x==1){ namePage="map1.htm"; nameWindow="map1";}
	if(x==2){ namePage="map2.htm"; nameWindow="map2";}
	if(x==3){ namePage="map3.htm"; nameWindow="map3";}
	if(x==4){ namePage="map4.htm"; nameWindow="map4";}
	if(x==5){ namePage="map5.htm"; nameWindow="map5";}	
	if(x==6){ namePage="news1_25_1.htm"; nameWindow="news1_25_1";}	
	newWindow=window.open(namePage,nameWindow,"top=10,left=10,width=510,height=440");
	newWindow.focus();
}

function show_golos(x){
	if(x==1){namePage="http://nekrasovka.ru/voting/form.php?name=golos&type=2"; nameWindow="news_golos";}
	if(x==2){namePage="http://nekrasovka.ru/voting/echo.php?name=golos&type=2"; nameWindow="news_golos";}
	
	newWindow=window.open(namePage,nameWindow,"top=10,left=10,width=600,height=576,scrollbars=yes");
	newWindow.focus();
}

function show_wind(x){
	if(x==1){namePage="http://www.nekrasovka.ru/forumlib/viewtopic.php?t=125"; nameWindow="wind";}
	newWindow=window.open(namePage,nameWindow,"top=10,left=10");
	newWindow.focus();
}

function show_im(x){
	if(x==1){ namePage="news_im1.htm"; nameWindow="news_im1";}
	if(x==2){ namePage="news_im2.htm"; nameWindow="news_im2";}
	if(x==3){ namePage="news_im3.htm"; nameWindow="news_im3";}
	
	newWindow=window.open(namePage,nameWindow,"top=10,left=10,width=720,height=576");
	newWindow.focus();
}

function show_rio(x){
	if(x==1){ namePage="news_rio1.htm"; nameWindow="news_rio1";}
	if(x==2){ namePage="news_rio2.htm"; nameWindow="news_rio2";}
	if(x==3){ namePage="news_rio3.htm"; nameWindow="news_rio3";}
	if(x==4){ namePage="news_rio4.htm"; nameWindow="news_rio4";}
	if(x==5){ namePage="news_rio5.htm"; nameWindow="news_rio5";}
	if(x==6){ namePage="news_rio6.htm"; nameWindow="news_rio6";}
	if(x==7){ namePage="news_rio7.htm"; nameWindow="news_rio7";}
	if(x==8){ namePage="news_rio8.htm"; nameWindow="news_rio8";}
	if(x==9){ namePage="news_rio9.htm"; nameWindow="news_rio9";}
	if(x==10){ namePage="news_rio10.htm"; nameWindow="news_rio10";}

	newWindow=window.open(namePage,nameWindow,"top=10,left=10,width=720,height=576");
	newWindow.focus();
}

function show_ivo(x){
	if(x==1){ namePage="news_ivo1.htm"; nameWindow="news_ivo1";}
		
	newWindow=window.open(namePage,nameWindow,"top=10,left=10,width=720,height=576");
	newWindow.focus();
}

function show_oms(x){
	if(x==1){ namePage="news_oms1.htm"; nameWindow="news_oms1";}
		
	newWindow=window.open(namePage,nameWindow,"top=10,left=10,width=720,height=576");
	newWindow.focus();
}

function show_vctr(x){
	if(x==1){ namePage="victorina/index.php"; nameWindow="victorina";}
	if(x==2){ namePage="victorina2/index.php"; nameWindow="victorina2";}
	if(x==3){ namePage="big_read/index.php"; nameWindow="reg_big_read";}
	if(x==4){ namePage="victorina3/index.php"; nameWindow="victorina3";}
	
	newWindow=window.open(namePage,nameWindow,"top=10,left=10,width=796,height=600,scrollbars=yes");
	newWindow.focus();
}

function show_diplom(x){
	if(x==1){ namePage="news1_18_5_1.htm"; nameWindow="news1_18_5_1";}
	if(x==2){ namePage="news1_18_5_2.htm"; nameWindow="news1_18_5_2";}
	if(x==3){ namePage="news1_18_5_3.htm"; nameWindow="news1_18_5_3";}
	if(x==4){ namePage="news1_18_5_4.htm"; nameWindow="news1_18_5_4";}
	if(x==5){ namePage="news1_18_5_5.htm"; nameWindow="news1_18_5_5";}
	if(x==6){ namePage="news1_18_5_6.htm"; nameWindow="news1_18_5_6";}
	if(x==7){ namePage="news1_18_5_7.htm"; nameWindow="news1_18_5_7";}
	if(x==8){ namePage="news1_18_5_8.htm"; nameWindow="news1_18_5_8";}


	if(x==9){ namePage="news1_25_2.htm"; nameWindow="news1_25_2";}
	if(x==10){ namePage="news1_25_3.htm"; nameWindow="news1_25_3";}
	if(x==11){ namePage="news1_25_4.htm"; nameWindow="news1_25_4";}

	if(x==12){ namePage="news1_18_5_9.htm"; nameWindow="news1_18_5_9";}
	
	if(x==13){ namePage="ev11_1.htm"; nameWindow="ev11_1";}
	if(x==14){ namePage="ev11_2.htm"; nameWindow="ev11_2";}
	if(x==15){ namePage="ev11_3.htm"; nameWindow="ev11_3";}
	if(x==16){ namePage="ev11_4.htm"; nameWindow="ev11_4";}
	
	if(x==17){ namePage="news1_25_5.htm"; nameWindow="news1_25_5";}
	if(x==18){ namePage="news1_25_6.htm"; nameWindow="news1_25_6";}
	if(x==19){ namePage="news1_25_7.htm"; nameWindow="news1_25_7";}
	
	if(x==20){ namePage="news1_18_5_19.htm"; nameWindow="news1_18_5_19";}	
	if(x==21){ namePage="news1_18_5_20.htm"; nameWindow="news1_18_5_20";}	
	if(x==22){ namePage="news1_18_5_21.htm"; nameWindow="news1_18_5_21";}	
	if(x==23){ namePage="news1_18_5_22.htm"; nameWindow="news1_18_5_22";}	
	if(x==24){ namePage="news1_18_5_23.htm"; nameWindow="news1_18_5_23";}	
	if(x==25){ namePage="news1_18_5_24.htm"; nameWindow="news1_18_5_24";}	
	if(x==26){ namePage="news1_18_5_25.htm"; nameWindow="news1_18_5_25";}	
	if(x==27){ namePage="news1_18_5_26.htm"; nameWindow="news1_18_5_26";}	
		
	if(x==28){ namePage="news1_18_5_28.htm"; nameWindow="news1_18_5_28";}	
	if(x==29){ namePage="news1_18_5_29.htm"; nameWindow="news1_18_5_29";}	

	newWindow=window.open(namePage,nameWindow,"top=10,left=10,width=500,height=750");
	newWindow.focus();
}

function show_kiosk(x){
	if(x==1){ namePage="ev11_1.htm"; nameWindow="ev11_1";}
	if(x==2){ namePage="ev11_2.htm"; nameWindow="ev11_2";}
	if(x==3){ namePage="ev11_3.htm"; nameWindow="ev11_3";}
	if(x==4){ namePage="ev11_4.htm"; nameWindow="ev11_4";}
	
	if(x==5){ namePage="news1_18_5_27.htm"; nameWindow="news1_18_5_27";}
	
		
	newWindow=window.open(namePage,nameWindow,"top=10,left=10,width=820,height=580");
	newWindow.focus();
}


function show_pozdravlenie(x){
	if(x==1){ namePage="pozdravlenie_1.htm"; nameWindow="pozdravlenie_1";}

	newWindow=window.open(namePage,nameWindow,"top=10,left=10,width=640,height=600");
	newWindow.focus();
}


/* Инициализация слоев */		 

var leftref="null", topRef="null";



isIE=document.all&&document.all.item

isNC6=document.getElementById

isNC4=document.layers

isDyn=isIE||isNC6||isNC4



if(isDyn){

	layerLoading=(isIE||isNC6)?"<div ID='loading' style='position: absolute; z-index:2; visibility:visible; width:100%; height:100%'>":"<layer name='loading' z-index=2 width=100% height=100% visibility=show>"

	layerDefault=(isIE||isNC6)?"<div ID='def' style='position: absolute; z-index:6; top:69; visibility:hidden; width:100%; height:170'>":"<layer name='def' z-index=6 top=69 width=100% height=170 visibility=hide>"

	layerMain=(isIE||isNC6)?"<div ID='main' style='position: absolute; z-index:4; visibility:hidden; width:100%; height:100%'>":"<layer name='main' z-index=4 width=100% height=100% visibility=hide>"

	layerEnd=(isIE||isNC6)?"</div>":"</layer>"

}

if(isDyn){

	baseMain=(isIE||isNC6)?"<div ID='main' style='position: absolute; z-index:4; width:100%; height:100%'>":"<layer name='main' z-index=4 width=100% height=100%>"

}

if(isDyn){

	layerShow=(isIE||isNC6)?"visible":"show"

	layerHide=(isIE||isNC6)?"hidden":"hide"

}



function showLayer(layerName){

		if(isIE){

			eval('document.all["'+layerName+'"].style.visibility="'+layerShow+'"')}else{

			if(isNC6){

				eval('document.getElementById("'+layerName+'").style.visibility="'+layerShow+'"')}else{

				eval('document.layers["'+layerName+'"].visibility="'+layerShow+'"')}

		}

}

function hideLayer(layerName){

		if(isIE){

			eval('document.all["'+layerName+'"].style.visibility="'+layerHide+'"')}else{

			if(isNC6){

				eval('document.getElementById("'+layerName+'").style.visibility="'+layerHide+'"')}else{

				eval('document.layers["'+layerName+'"].visibility="'+layerHide+'"')}

		}

}

function startLoad(){

		setTimeout("hideLayer('loading'); showLayer('def'); showLayer('main')",1000);

}



/*function over(p1,p2,p3,p4,p5){

	if(isNC4){

		document.main.document.images[p1].src="i/m/"+p2+".gif";

		document.main.document.images[p3].src="i/m/pol.gif";

		document.def.document.images["mini"].src="i/"+p4+".gif";

		document.def.document.images["txt"].src="i/"+p5+".gif";}else{

	document.images[p1].src="i/m/"+p2+".gif";

	document.images[p3].src="i/m/pol.gif";

	document.images["mini"].src="i/"+p4+".gif";

	document.images["txt"].src="i/"+p5+".gif";

	}



}

function out(p6,p7,p8){

	if(isNC4){

	document.main.document.images[p6].src="i/m/"+p7+".gif";

	document.main.document.images[p8].src="i/p.gif";

	document.def.document.images["mini"].src="i/imdef.gif";

	document.def.document.images["txt"].src="i/p.gif";}else{

document.images[p6].src="i/m/"+p7+".gif";

	document.images[p8].src="i/p.gif";

	document.images["mini"].src="i/imdef.gif";

	document.images["txt"].src="i/p.gif";

	}

}

*/

function change(p9,p10){

	if(isNC4){

		document.main.document.images[p9].src="i/m/"+p10+".gif"}else{

		document.images[p9].src="i/m/"+p10+".gif"

	}

}



function change4(p9,p10){

		document.images[p9].src="i/m/"+p10+".gif"

}

function change2(p11,p12){

	document.images[p11].src="../i/m/"+p12+".gif"

}



function showObject(obj) {obj.className="visible"}

function hideObject(obj) {obj.className="hidden"}





function showImg(){

	if (document.images.length > 0)

	{

	wnd = window.open("about:blank")

	wnd.document.write("<p align='center'>Коллекция картинок</p>")

	wnd.document.write("<table border=0  width=100% cellPadding=0 cellSpacing=0 align=center><tr><td>Номер</td><td>Файл</td><td>Размер</td></tr>")

	for (i=0; i < document.images.length; i++)

	{

		wnd.document.write("<tr><td><b>",i,"</b></td>",

		"<td>", document.images(i).src,"</td>",

		"<td>", document.images(i).width,"x",document.images(i).height,"</td></tr>")

	}

	wnd.document.write("</table>")

	}

}







function init(){

 if (navigator.appName == "Netscape") {

  layerStyleRef="layer.";

  layerRef="document.layers";

  styleSwitch="";

	leftref = ".left";

	topRef = ".top";

 }else{

  layerStyleRef="layer.style.";

  layerRef="document.all";

  styleSwitch=".style";

	leftref = ".pixelLeft";

	topRef = ".pixelTop";

 }

}


