function toggleDataArrowBlue(obj) {
	if (obj) {
		var obj_data = obj;
		while (obj_data.tagName != "DD") obj_data = obj_data.nextSibling;
		
		if (obj_data.style.display == 'block') {
			obj_data.style.display = 'none';
			obj.className = 'arrow-blue';
		}
		else {
			obj_data.style.display = 'block';
			obj.className = 'arrow-blue-down';
		}
		
	}
	else {
		alert('You did not pass DT object as an argument.');
	}
	document.getElementById('right').style.height = 'auto';
}

function toggleDataArrowMaroon(obj) {
	if (obj) {
		var obj_data = obj;
		while (obj_data.tagName != "DD") obj_data = obj_data.nextSibling;
		
		if (obj_data.style.display == 'block') {
			obj_data.style.display = 'none';
			obj.className = 'arrow';
		}
		else {
			obj_data.style.display = 'block';
			obj.className = 'arrow-maroon-down';
		}
		
	}
	else {
		alert('You did not pass DT object as an argument.');
	}
	document.getElementById('right').style.height = 'auto';
}

function toggleDataArrowBlueh5(obj) {
	if (obj) {
		var obj_data = obj;
		while (obj_data.tagName != "DD") obj_data = obj_data.nextSibling;
		
		if (obj_data.style.display == 'block' || obj_data.style.display =='') {
			obj_data.style.display = 'none';
			obj.className = 'arrow-blue-h5';
		}
		else if(obj_data.style.display == 'none') {
			obj_data.style.display = 'block';
			obj.className = 'arrow-blue-down-h5';
		}
		
	}
	else {
		alert('You did not pass DT object as an argument.');
	}
	document.getElementById('right').style.height = 'auto';
}

function toggleAllDataArrowBlueh5(obj, count) {
						
	var bAllOpen = true;
	
	for(j=1; j<count+1; j++){
		var id = obj.id.substring(0, obj.id.search(/-all/));
		id = id+""+j;

		obj_list = document.getElementById(id);
		
		if (obj_list) {
		
			for (var i=0; i<obj_list.childNodes.length; i++) {
				if (obj_list.childNodes[i].tagName == "DT") {
					obj_data = obj_list.childNodes[i].nextSibling;
					while (obj_data.tagName != "DD") obj_data = obj_data.nextSibling;
					if (obj_data.style.display == 'none' || obj_data.style.display =='') {
						obj_data.style.display = 'block';
						obj_list.childNodes[i].className = 'arrow-blue-down-h5';
						bAllOpen = false;
					}
				}
			}
			
			obj.className = 'arrow-blue-down-h5';
			
			if (bAllOpen) {
				for(var i=0; i<obj_list.childNodes.length; i++) {
					if (obj_list.childNodes[i].tagName == "DT") {
						obj_data = obj_list.childNodes[i].nextSibling;
						while (obj_data.tagName != "DD") obj_data = obj_data.nextSibling;
						
						obj_data.style.display = 'none';
						obj_list.childNodes[i].className = 'arrow-blue-h5';
					}
				}
				
				obj.className = 'arrow-blue-h5';
			}
		}
	}
	document.getElementById('right').style.height = 'auto';
	
}


function ArrowBlue(obj, obj2) {

	if (obj) {
		if (obj.className == 'arrow-blue-down') {
			document.getElementById(obj2).style.display = 'none';
			obj.className = 'arrow-blue';
		}
		else {
			document.getElementById(obj2).style.display = 'block';
			obj.className = 'arrow-blue-down';
		}
		
	}
	document.getElementById('right').style.height = 'auto';
}

