	function init(gr_id){
		var stretchers = $$('div.menu_content'); 
		var togglers = $$('div.mnr');
		
		preLoad = new Image(); preLoad.src = '/templates/ipr/images/mnla.gif';
		
		var myAccordion = new Fx.Accordion(togglers, stretchers, { opacity: true, alwaysHide: true,
		 transition: Fx.Transitions.quadOut, show: gr_id, duration: 400,
			
			onActive: function(toggler, stretcher){
				toggler.className="mnrAc";
			},
				onBackground: function(toggler, stretcher){
				toggler.className="mnr";
			}
		});
		document.getElementById('menuR').style.visibility = 'visible';
	}

function show_menu(id,evt)

{
var inf = document.getElementById('ili'+id);
var innerHeight_ = window.innerHeight ? window.innerHeight : document.documentElement.offsetHeight;
evt = (evt) ? evt : ((window.event) ? window.event : null);
inf.style.left=evt.clientX +'px';
inf.style.top=evt.clientY + document.documentElement.scrollTop + 'px';
inf.style.display = "block";
}
function hide(id){
	document.getElementById('ili'+id).style.display = "none";
}

function on1(a){
	document.getElementById('mn'+a).src="/templates/ipr/images/mnia.gif";
}
function off1(a){
	document.getElementById('mn'+a).src="/templates/ipr/images/mni.gif";
}

function on(mn){
	mn.className="mna";
}
function off(mn){
	mn.className="mn";
}
function on2(mnv){
	mnv.className="mnv2o";
}
function off2(mnv){
	mnv.className="mnv2";
}
function on3(mnv3){
	mnv3.className="mnvo";
}
function off3(mnv3){
	mnv3.className="mnv";
}
function popup_img(filename)
{
   var newImage = new Image();
   newImage.src = filename;
   newWin = window.open(filename,'image',
"width="+newImage.width+",height="+newImage.height+",resizable=no,scrollbars=no,status=no");
}

function ShowForm() {
			var win = document.getElementById("questionLayer");
			win.style.left = document.body.clientWidth/2 - 190 + 'px';
			win.style.top  = document.documentElement.scrollTop + 50 + 'px';
			ShowShadowBlock();
			win.style.display = 'block';
}
function ShowSent() {
			var sent = document.getElementById("sendLayer");
			sent.style.left = document.body.clientWidth/2 - 190 + 'px';
			sent.style.top  = document.documentElement.scrollTop + 250 + 'px';
			ShowShadowBlock();
			sent.style.display = 'block';
			setTimeout("HideSent();",5000);
}
function ShowShadowBlock() {
			var layer = document.getElementById("layerShadow");
			var img	  = document.images["bg"];

			layer.style.width  = document.body.clientWidth;
			layer.style.height = document.body.clientHeight;		

			img.width  = document.body.clientWidth;
			img.height = document.body.clientHeight;

			setElementOpacity(document.getElementById('layerShadow'), 0.7);
			layer.style.display = "block";
}

function HideForm(){
	document.getElementById('questionLayer').style.display = 'none';
	HideShabowBlock();
}
function HideSent(){
	document.getElementById('sendLayer').style.display = 'none';
	HideShabowBlock();
}

function HideShabowBlock(){
	var layer = document.getElementById("layerShadow");
	var img	  = document.images["bg"];

	img.width  = 0;
	img.height = 0;

	layer.style.display = "none";
}