	function init(gr_id){
		var stretchers = $$('div.menu_content'); 
		var togglers = $$('div.mn');
		
		preLoad = new Image(); preLoad.src = '/templates/belart/images/mna.gif';
		
		var myAccordion = new Fx.Accordion(togglers, stretchers, { opacity: false, alwaysHide: true,
		 transition: Fx.Transitions.quadOut, show: gr_id, duration: 400,
			
			onActive: function(toggler, stretcher){
				toggler.setStyle('backgroundImage', 'url(\'/templates/belart/images/mna.gif\')');
				toggler.setStyle('backgroundRepeat', 'no-repeat');
				toggler.setStyle('backgroundPosition', '35px');
				toggler.className='mna';
				
			},
		
			onBackground: function(toggler, stretcher){
				toggler.setStyle('backgroundImage', 'url(\'/templates/belart/images/mna_.gif\')');
				toggler.setStyle('backgroundRepeat', 'no-repeat');
				toggler.setStyle('backgroundPosition', '35px');
				toggler.className='mn';
			}
		});
		document.getElementById('menu').style.visibility = 'visible';
	}
	
 	function on(a){
		document.getElementById('bg'+a).className = 'on';
		document.getElementById("mni"+a).src='/templates/belart/images/mn_'+a+'.gif';}
	function off(a){
		document.getElementById('bg'+a).className = 'off';
		document.getElementById("mni"+a).src='/templates/belart/images/mn'+a+'.gif';}
 	function onA(aa){
		document.getElementById('bg'+aa).className = 'onA';
		document.getElementById("mni"+aa).src='/templates/belart/images/mn_'+aa+'.gif';}
	function offA(aa){
		document.getElementById('bg'+aa).className = 'offA';
		document.getElementById("mni"+aa).src='/templates/belart/images/mn'+aa+'.gif';}
		
 	function on3(v){
		document.getElementById('mnv'+v).className = 'on3';
		document.getElementById("mnvL"+v).style.backgroundColor="#525252";
		document.getElementById("mnvR"+v).style.backgroundColor="#525252";
		}
	function off3(v){
		document.getElementById('mnv'+v).className = 'mnv_';
		document.getElementById("mnvL"+v).style.backgroundColor="#333333";
		document.getElementById("mnvR"+v).style.backgroundColor="#333333";
		}
		
	function setscroll(obj) {
	var obj=document.body.scrollTop;
	if(navigator.appName=="Netscape")
		{
		document.getElementById('ban').style.top=obj+document.body.clientHeight/2-150+"px";
		}
	else if(window.opera && window.print){
        document.getElementById('ban').style.top=obj+document.body.clientHeight/2-150+"px";
		}
	else {
	//alert('E');
	document.getElementById('ban').style.top=obj+document.body.clientHeight/2-150+"px";
	}
	}
	
	function hideBaner(){
	document.getElementById('ban').style.display='none';
	}

function wo(link,ww,hh,title) {
	w=window.open(link,'',(ww ? 'width='+ww+',' : '')+(hh ? 'height='+hh+',' : '')+'toolbar=0,scrollbars=0,resizable');
	if (link.indexOf('.html')==-1) {
		if (document.layers) title='';
		w.document.open();
		w.document.write('<html><head><title>'+title+'</title><meta http-equiv=Content-Type content="text/html; charset=windows-1251"></head>');
		w.document.write('<body bgcolor=white marginwidth=0 marginheight=0 topmargin=0 leftmargin=0><table width=100% height=100% border=0 cellspacing=0 cellpadding=0><tr><td align=center><img src='+link+' width='+ww+' height='+hh+' border=0 alt=""></td></tr></table></body></html>');
		w.document.close();
	}
	w.focus();
}
function chIMG(nam,k){
	s=nam.src;
	n=s.lastIndexOf(".");
	document.getElementById("img_big").src=s.substring(0,n)+s.substring(n,s.length);
	//document.getElementById("img_big").src="/var/show_uploads/"+nam;
	document.getElementById("img_sign").innerHTML = k;
	//document.getElementById("print_link").href="?print=1&img="+nam;
}
