function dlwin()
{
	window.open("","dlocator","width=720,height=600,status=no,scrollbars=yes,resizable=yes,location=no,menubar=no,toolbar=yes,top=30,left=50");
}

function _in(obj,tmp1,tmp2){
	_obj = obj;
	_tmp1 = tmp1;
	_tmp2 = tmp2;
	if(_tmp2 != 0){ 
	obj.style.height = _tmp1-_tmp1/10*_tmp2+'px';
	setTimeout("_in(_obj,_tmp1,_tmp2)",10);
	_tmp2--;
 	}
	else {
	var aaa = obj.getElementsByTagName('a');
	for(var di=0;di<aaa.length;di++){
	aaa[di].style.display='block';}
	
	}
}

function _out(obj,tmp1,tmp2){
	_obj = obj;
	_tmp1 = tmp1;
	_tmp2 = tmp2;
	if(_tmp2 != 0){ 
	obj.style.height = _tmp1/10*_tmp2+'px';
	setTimeout("_out(_obj,_tmp1,_tmp2)",10);
	_tmp2--;
 	}
	else {obj.style.display='none'};
}

function show_hide(id){
	var root = document.getElementById(id);
	var aaa = root.getElementsByTagName('a');
	var _height = 40*aaa.length;
	for(var di=0;di<aaa.length;di++){
	aaa[di].style.display='none';}
	if(root.style.display=='block') {root.style.height=_height+'px'; _out(root,_height,10);}
	else { root.style.height=0+'px'; root.style.display='block'; _in(root,_height,10);}
}

function menu_init(){
	try {
		var menu = document.getElementById("menu");
		var anchors = menu.getElementsByTagName('a');
		for(var i=0; i<anchors.length; i++)
			if(anchors[i].className=="lead_active" && anchors[i].href) eval(anchors[i].href);
	}
	catch(e) {}
}

