function prepare_scrollers(id)
{
	if(document.getElementById('collect_scroll_prnt'))
	{
		
		prnt=document.getElementById('collect_scroll_prnt');
		thumb=document.getElementById('collect_thumb');
		thumb_place=thumb.parentNode.parentNode;
		Ratio=(prnt.scrollHeight!=0)?prnt.clientHeight/prnt.scrollHeight:1;
		thumb.style.top=Ratio*prnt.scrollTop+"px";
		
		if(Ratio>=1)
		{
			thumb_place.style.visibility='hidden';
			Ratio=1;
		}
		else
		{
			thumb_place.style.visibility='visible';
 			if (prnt.addEventListener)
 			{
 				prnt.addEventListener('DOMMouseScroll',function(event){ wheel(event,'collect_scroll_prnt','collect_thumb')}, false);
 			}
 			prnt.onmousewheel =function(event){ wheel(event,'collect_scroll_prnt','collect_thumb')};
		}
		thumb.style.height=(Math.round(Ratio*thumb.parentNode.clientHeight)-1)+"px";
	}
	if(document.getElementById('catalog_scrll_prnt'))
	{
		prnt=document.getElementById('catalog_scrll_prnt');
		Ratio=(prnt.scrollWidth!=0)?prnt.clientWidth/prnt.scrollWidth:1;
		if(Ratio<1)
		{
 			if (prnt.addEventListener)
 			{
 				prnt.addEventListener('DOMMouseScroll',function(event){ wheel(event,'catalog_scrll_prnt',null,234,'X')}, false);
 			}
 			prnt.onmousewheel =function(event){ wheel(event,'catalog_scrll_prnt',null,234,'X')};
		}
	}
	if(document.getElementById('proj_imgs_prnt'))
	{
		prnt=document.getElementById('proj_imgs_prnt');
		Ratio=(prnt.scrollWidth!=0)?prnt.clientWidth/prnt.scrollWidth:1;
		if(Ratio<1)
		{
 			document.getElementById('dop_imgs_left').style.visibility="visible"
			document.getElementById('dop_imgs_right').style.visibility="visible"
			if (prnt.addEventListener)
 			{
 				prnt.addEventListener('DOMMouseScroll',function(event){ wheel(event,'proj_imgs_prnt',null,234,'X')}, false);
 			}
 			prnt.onmousewheel =function(event){ wheel(event,'proj_imgs_prnt',null,234,'X')};
		}
		else
		{
			document.getElementById('dop_imgs_left').style.visibility="hidden"
			document.getElementById('dop_imgs_right').style.visibility="hidden"
		}
	}
	if(document.getElementById('page_text_prnt'))
	{
		prnt=document.getElementById('page_text_prnt');
		thumb=(document.getElementById('page_text_thumb'))?document.getElementById('page_text_thumb'):null;
		if(thumb) thumb_place=thumb.parentNode.parentNode;
		Ratio=(prnt.scrollHeight!=0)?prnt.clientHeight/prnt.scrollHeight:1;
		if(thumb) thumb.style.top=Ratio*prnt.scrollTop+"px";
		if(Ratio>=1)
		{
			if(thumb) thumb_place.style.visibility='hidden';
			Ratio=1;
		}
		else
		{
			thumb_id=(thumb)?thumb.id:null;
 			if (prnt.addEventListener)
 			{
 				prnt.addEventListener('DOMMouseScroll',function(event){ wheel(event,'page_text_prnt',thumb_id,36,'Y')}, false);
 			}
 			prnt.onmousewheel =function(event){ wheel(event,'page_text_prnt',thumb_id,36,'Y')};
		}
		if(thumb) thumb.style.height=(Math.round(Ratio*thumb.parentNode.clientHeight)-1)+"px";
	}
}
