function init(){
	for(i=1; i>0; i++){	
		if(document.getElementById('m_'+i)!=null){
			thisOne = document.getElementById('m_'+i);
			if(thisOne.getElementsByTagName('ul')[0]!=null){
				thisUl = thisOne.getElementsByTagName('ul')[0];
				thisUl.id = 'm_'+i+'_ul';
				thisOn = thisOne.innerHTML.indexOf("keepOn");
				if( thisOn < 0){
					new Effect.BlindUp('m_'+i+'_ul', {duration: 0});
				}
			}
		}else{
			i=-1;	
		}
	}
}
function initsubs(){
	for(i=1; i>0; i++){	
		if(document.getElementById('s_'+i)!=null){
			thisOne = document.getElementById('s_'+i);
			if(thisOne.getElementsByTagName('ul')[0]!=null){
				thisUl = thisOne.getElementsByTagName('ul')[0];
				thisUl.id = 's_'+i+'_ul';
				thisOn = thisOne.innerHTML.indexOf("keepOn");
				if( thisOn < 0){
					new Effect.BlindUp('s_'+i+'_ul', {duration: 0});
				}
			}
		}else{
			i=-1;	
		}
	}
	init();
}
function showIt(element){
	thaOne = element;
	thaA = element.getElementsByTagName('a')[0];
	for(i=1; i>0; i++){	
		if("m_"+i==thaOne.id){
			if(thaOne.getElementsByTagName('ul')[0]!=null){
				thaUl = thaOne.getElementsByTagName('ul')[0];
				new Effect.BlindDown('m_'+i+'_ul', {duration: .2});
				thaA.href = "";
			}else{
				window.location=thaA.href;
			}
		}else if(document.getElementById('m_'+i)!=null){
			thisOne = document.getElementById('m_'+i);
			if(thisOne.getElementsByTagName('ul')[0]!=null){
				thisUl = thisOne.getElementsByTagName('ul')[0];
				thisUl.id = 'm_'+i+'_ul';
				new Effect.BlindUp('m_'+i+'_ul', {duration: .2});
			}
		}else{
			i=-1;	
		}
	}
}
function showSub(element){
	thaOne = element;
	thaA = element.getElementsByTagName('a')[0];
	for(i=1; i>0; i++){	
		if("s_"+i==thaOne.id){
			if(thaOne.getElementsByTagName('ul')[0]!=null){
				thaUl = thaOne.getElementsByTagName('ul')[0];
				new Effect.BlindDown('s_'+i+'_ul', {duration: .2});
				thaA.href = "";
			}else{
				window.location=thaA.href;
			}
		}else if(document.getElementById('s_'+i)!=null){
			thisOne = document.getElementById('s_'+i);
			if(thisOne.getElementsByTagName('ul')[0]!=null){
				thisUl = thisOne.getElementsByTagName('ul')[0];
				thisUl.id = 's_'+i+'_ul';
				new Effect.BlindUp('s_'+i+'_ul', {duration: .2});
			}
		}else{
			i=-1;	
		}
	}
}
window.onload=initsubs;