
	ITEMS_OFFSET_LEFT=0;
	ITEMS_OFFSET_TOP=0;

	d=document;
	d.OBJ=d.getElementById;
	d.TAG=d.getElementsByTagName;

	Array.prototype.l=String.prototype.l=function(){return this.length};

 /* IE 5 proto */

 if(!Array.prototype.push)
     Array.prototype.push=function(){
	for(var i=0,a=arguments;i<a.length;i++) this[this.l()]=a[i];
	return this.l()}

 if(!Array.prototype.pop)
     Array.prototype.pop=function(){
	this.t=this[this.l()-1];this.length--;return this.t}

 /* IE 5 end */

    function _P(O,D){if(D>0) return _P(O.parentNode,D-1); return O}
    function _C(O,P){if(P.l()) return _C(O.childNodes[P.pop()],P); return O}


	B_all_id=[];
	A_all_id=[]; path=[0];


    function re_id(obj){var A,B;
	for(var i=0,CN=obj.childNodes;i<CN.length;i++){
	    if(CN[i].nodeName=='A'){
		A=CN[i];
		    ++path[path.l()-1];
		    A.id='a'+($P=path.join('.'));
		    A_all_id.push($P)}
	    if(CN[i].nodeName=='TABLE'){
		B=CN[i];
		    B.id='b'+$P;
		    B_all_id.push($P);
		    path.push(0);
		    re_id(_C(B,[0,0,0]))}
	    if(i==CN.length-1) path.pop()}}


    function menu_build(sel_item){d.b=d.TAG('BODY')[0]; var i,A,B;
	re_id(_C(d.OBJ('menu'),[0,0,0]));
     // ---
	for(i=0;i<B_all_id.l();i++){
	    with(d.OBJ('a'+B_all_id[i])) if(className!='selected') className='parent';
	    d.b.appendChild(d.OBJ('b'+B_all_id[i]))}
     // ---
	for(i=0;i<A_all_id.l();i++){
	    A=d.OBJ('a'+A_all_id[i]);
		if((new RegExp('.*'+(sel_item?sel_item:null)+'$')).test(A.href)) A.className='selected';
		A.onmouseover=open;
		A.onmouseout=function(){tmr=setTimeout('close("")',1000)}}
	close('')}


    function close(prefix){
	try{for(var i=0;i<B_all_id.l();i++)
	   if(('a'+B_all_id[i]).indexOf(prefix)==0)
		d.OBJ('b'+B_all_id[i]).style.display='none'}catch(e){}};


    function open(){var A=this;
	try{clearTimeout(tmr)}catch(e){};
	close(A.id.slice(0,A.id.lastIndexOf('.')+1));
	try{
	    var P=_P(A,4),B=d.OBJ('b'+A.id.slice(1));
	    with(B.style){
		left=P.offsetLeft+P.clientWidth+ITEMS_OFFSET_LEFT+'px';
		top=P.offsetTop+A.offsetTop+ITEMS_OFFSET_TOP+'px';
		display='';}}catch(e){}
	return!0}
