var ie5=document.all
var ns6=document.getElementById&&!document.all

function thisme(me){
//	obj.onmouseout=delayhidemenu
	alert(me+'testing'+me.style.top);
}

function totalReset(id){
	var parent = document.getElementById(id);	
	var elements = parent.getElementsByTagName('div');
	var total_elem = elements.length;	
	for(var i=0; i<total_elem; i++){
		elements[i].style.display = "none";
	}
}

function resetAll(me,id){
	var parent = document.getElementById(id);
	var child = document.getElementById(me);
	var elements = parent.getElementsByTagName('div');
	var total_elem = elements.length;
	if(child!=null){
		for(var i=0; i<total_elem; i++){
			if(elements[i].id != child.id){
				elements[i].style.display = "none";
			}
		}
	}else{
		for(var i=0; i<total_elem; i++){
			elements[i].style.display = "none";
		}		
	}
}

function mydisplay(id,me,e){
	var child = document.getElementById(id);
	var parent = document.getElementById(me);
	if(document.all){
		if(child!=null){
			child.style.left = "0px";
			child.style.width = "160px";
			child.style.display = "block";
			child.style.textIndent = "3px";			
			child.style.padding = "1px";
			child.style.paddingBottom = "0px";
//			child.style.backgroundColor = "#ffffff";
			child.style.border = "1px";
			child.style.borderColor = "#BBB";
			child.style.borderStyle = "solid";			
			child.style.borderBottom = "1px";
			child.style.borderBottomColor = "#BBB";
			child.style.borderBottomStyle = "solid";
			child.style.fontFamily = "Verdana";
			child.style.textDecoration = "none";
			child.style.fontWeight = "bold";
			child.style.textIndent = "5px";
			child.style.fontSize = "12px";
			child.style.textAlign = "left";
			var setoff = parent.offsetTop - 1;
			var setleft = 158 + eval(child.style.left.replace("px",""));
			child.style.top = setoff+"px";
			child.style.left = setleft+"px";
			
			parent.style.display = "block";
		}		
	}else{
		if(child!=null){
			child.style.width = "160px";
			child.style.display = "block";
			child.style.textIndent = "3px";			
			child.style.padding = "1px";
			child.style.paddingBottom = "0px";
//			child.style.backgroundColor = "#ffffff";
			child.style.border = "1px";
			child.style.borderColor = "#BBB";
			child.style.borderStyle = "solid";			
			child.style.borderBottom = "1px";
			child.style.borderBottomColor = "#BBB";
			child.style.borderBottomStyle = "solid";
			child.style.fontFamily = "Verdana";
			child.style.textDecoration = "none";
			child.style.fontWeight = "bold";
			child.style.textIndent = "5px";
			child.style.fontSize = "12px";
			child.style.textAlign = "left";
		
			child.style.top = eval(parent.offsetTop - "1")+"px";
			child.style.left = eval("160"+parent.style.width.replace("px",""))+'px';
			
			parent.style.display = "block";
		}		
	}
}

function resetchild(id,me,e){
	var parent = document.getElementById(me);
	var child = document.getElementById(id);
	if(child!=null){
		child.style.display = "none";
	}
}

function undisplay(id,me,e){
	var parent = document.getElementById(me);
	var child = document.getElementById(id);
}
