var init=0;
function meOnLoad(){
	init=1;
	hide(document.getElementById('navi').firstChild.firstChild,'next');
	hide(document.getElementById('navi').firstChild.lastChild,'prev');
	init=0;
}
function hide(elementLi,direction){
	var leave;
	if(elementLi){
		if(direction=='prev'){
			curnode=elementLi.previousSibling; 	
		}else{
			curnode=elementLi.nextSibling; 	
		}
		while(curnode){
			for(x=0;x<curnode.attributes.length;x++){
				if(curnode.attributes[x].name=='class'){
					if((curnode.attributes[x].value=='act' || curnode.attributes[x].value=='cur') && init==1){
						leave=1;
						break;
					}else{
						leave=0;
					}
				}
			}
			if(leave==0)
			for(x=0;x<curnode.childNodes.length;x++){
				aktnode=curnode.childNodes[x];
				if(aktnode.nodeName=='UL'){
					if(aktnode.style.display!='none'){
						/*myfx=new Fx.Style('dummy','opacity');
						myfx.element=aktnode;
						myfx.start(1,0);
						
						myfx=new Fx.Slide('dummy', {mode: 'horizontal'});
						myfx.element=aktnode;
						myfx.slideIn();
						*/aktnode.style.display='none';
					}
				}
			}
			if(direction=='prev'){
				curnode=curnode.previousSibling; 	
			}else{
				curnode=curnode.nextSibling; 	
			}
		}
	}
}
function show(elementLi){
		hide(elementLi,'prev');
		hide(elementLi,'next');
		for(x=0;x<elementLi.childNodes.length;x++){
			aktnode=elementLi.childNodes[x];
			if(aktnode.nodeName=='UL')
				if(aktnode.style.display!='block'){
					/*myfx=new Fx.Style('dummy','opacity');
					myfx.element=aktnode;
					myfx.start(0,1);
					
					myfx=new Fx.Slide('dummy', {mode: 'horizontal'});
					myfx.element=aktnode;
					myfx.slideOut();
					*/
					aktnode.style.display='block';
					
				}
		}
}