var target = null;
var target2 = null;

function p(el) {
	el.style.cursor = 'pointer';
	var cl = el.className;
	var sp = el.getElementsByTagName('span');
	sp[0].style.backgroundColor = '#015641';
	sp[1].style.backgroundColor = '#015641';
	el.getElementsByTagName('a')[0].style.backgroundColor = '#015641';
	if(cl=='l1 sub' || cl=='l1 sub act') {
		target=el.nextSibling;
		target.style.display = 'block';
		target.style.marginTop = '-'+el.offsetHeight+'px';
	}
	if(cl=='l2 sub' || cl=='l2 sub act') {
		target.style.display = 'block';
		target2=el.nextSibling;
		target2.style.display = 'block';
		target2.style.marginTop = '-'+el.offsetHeight+'px';
	}
	if(cl=='l2' || cl=='l2 act') {
		target.style.display = 'block';
	}
	if(cl=='l3' || cl=='l3 act') {
		target.style.display = 'block';
		target2.style.display = 'block';
	}
}
function u(el){
	el.style.cursor = 'pointer';
	var cl = el.className;
	var sp = el.getElementsByTagName('span');
	sp[0].style.backgroundColor = '';
	sp[1].style.backgroundColor = '';
	el.getElementsByTagName('a')[0].style.backgroundColor = '';
	if(cl=='l1 sub' || cl=='l1 sub act') {
		target.style.display = 'none';
	}
	if(cl=='l2 sub' || cl=='l2 sub act') {
		target2.style.display = 'none';
		target.style.display = 'none';
	}
	if(cl=='l2' || cl=='l2 act') {
		target.style.display = 'none';
	}
	if(cl=='l3' || cl=='l3 act') {
		target2.style.display = 'none';
		target.style.display = 'none';
	}
}
/**********************/
function a(el){
	var sp = el.getElementsByTagName('span');
	sp[0].style.backgroundColor = '#015641';
	sp[1].style.backgroundColor = '#015641';
	el.getElementsByTagName('a')[0].style.backgroundColor = '#015641';
}
function n(el){
	var sp = el.getElementsByTagName('span');
	sp[0].style.backgroundColor = '';
	sp[1].style.backgroundColor = '';
	el.getElementsByTagName('a')[0].style.backgroundColor = '';
}