<!--
	var SM;
	var pos;
	var visible;

	function SubMenuMove()
		{
		SM.style.top = pos.y + 33;
		SM.style.left = pos.x;
		}

	function SubMenuShow()
		{
		SM.style.visibility = "visible";
		}

	function SubMenuHide()
		{
		SM.style.visibility = "hidden";
		}

	function Main()
		{
		if (visible == true)
			{
			SubMenuShow();
			link = setTimeout("Main();", 1000);
			}
		else
			{
			SubMenuHide();
			clearTimeout(link);
			}
		}

	function MenuRootMouseOver(obj, parent)
		{
		if(SM)
			SubMenuHide();

		SM = obj;
		pos = getAbsolutePos(parent);
		visible = true;

		SubMenuMove();
		Main();
		}

	function MenuRootMouseOut()
		{
		visible = false;
		}

	function SubMenuMouseOver()
		{
		visible = true;
		}

	function getAbsolutePos(el)
		{
		var r = { x: el.offsetLeft, y: el.offsetTop };
		if (el.offsetParent)
			{
			var tmp = getAbsolutePos(el.offsetParent);
			r.x += tmp.x;
			r.y += tmp.y;
			}
		return r;
		}

	function SubMenuMouseOut()
		{
		visible = false;
		}

	function TitleImage()
		{
		var pics = new Array('man1.jpg', 'man2.jpg', 'man3.jpg','man4.jpg', 'man6.jpg', 'man9.jpg','man11.jpg');

		var index_pages = new Array('http://www.vermi.com.ua/index.php', 'http://vermi.com.ua/index.php',
									'http://www.vermi.com.ua', 'http://vermi.com.ua',
									'http://www.vermi.com.ua/', 'http://vermi.com.ua/');

		if(in_array(document.location.href, index_pages))
			document.write("<img src=\"/images/" + pics[1] + "\" width=\"498\" height=\"197\">");
		else
			document.write("<img src=\"/images/" + pics[Math.round(Math.random() * (pics.length - 1))] + "\" width=\"498\" height=\"197\">");

		}

	function in_array(val, arr)
		{
		for(i = 0; i < arr.length; i++)
			if(arr[i] == val)
				return true;
		return false;
		}

//-->
