	function init(bottom_pos) {
    adjust_rightmenu(bottom_pos);
/*
		setTimeout(readStateCheck, 0); 

		function readStateCheck()
		{
		    if( document.readyState == "complete" )
		    {
		        adjust_rightmenu(bottom_pos);
		    }
		    else
		    {
		        setTimeout(readStateCheck, 10);
		    }
		}
*/
	}

	function adjust_rightmenu(bottom_pos) {
		var apl = navigator.appName;
		var ver = navigator.appVersion;
		var top_pos = $('rightmenu_under').positionedOffset()[1];
		if(bottom_pos == null) {
			bottom_pos = $('footer_separator').positionedOffset()[1];
		}
		

//alert(bottom_pos);

		var new_height = bottom_pos - top_pos;
		if(new_height < 60) {
			new_height = 60;
		}
		$('rightmenu_under').style.height = new_height - 30 +'px';
		if(apl.indexOf("Microsoft") >= 0){
			if(ver.indexOf("MSIE 6") >= 0) {
				$('rightmenu_under').style.height = new_height - 130 +'px';
			}
		}

		var img_top = $('rightmenu_under_img').positionedOffset()[1];

		new_height -= 68;
		if(apl.indexOf("Microsoft") >= 0){
			if(ver.indexOf("MSIE 6") >= 0) {
				new_height -= 100;
			}
		}

		if(new_height < 0) {
			new_height = 0;
		}
		$('rightmenu_under_img').style.marginTop = new_height + 'px';
	}

	function open_submenu(menu_id) {
		var bottom_pos = $('footer_separator').positionedOffset()[1];
		var status = 'block';
		if($(menu_id).style.display == 'block') {
			status = 'none';
		}
		$('our_products').style.display = 'none';
//		$('our_services').style.display = 'none';
		$('about_us').style.display = 'none';
		$(menu_id).style.display = status;

		init(bottom_pos);
	}


