function OpenTab() {
	document.getElementById('note-short').style.display = "none";
	document.getElementById('note').style.display = "block";
	return false;
}
function CloseTab() {
	document.getElementById('note').style.display = "none";
	document.getElementById('note-short').style.display = "block";
	return false;
}
function showSub(ul_id) {

	if(document.getElementById(ul_id)){
		document.getElementById(ul_id).style.display = "block";
		var mylist=document.getElementById(ul_id);
		var maxwidth=0;
		for (i=0; i<mylist.childNodes.length; i++){
			if (mylist.childNodes[i].offsetWidth > maxwidth)
				maxwidth=mylist.childNodes[i].offsetWidth;
		}	
			document.getElementById(ul_id).style.width = maxwidth+"px";
		for (i=0; i<mylist.childNodes.length; i++){
			if (mylist.childNodes[i].nodeName=="LI"){
				mylist.childNodes[i].style.width=maxwidth+'px';
				mylist.childNodes[i].style.styleFloat='none';
				mylist.childNodes[i].style.cssFloat='none';
			}
		}	
	}
	return false;
}

function hideSub(ul_id) {
	if(document.getElementById(ul_id)){
		document.getElementById(ul_id).style.display = "none";
	}
	return false;
}
function ChangeNote(img_id) {
	document.getElementById('img-head-picture').src = ".assets/images/head/picture"+img_id+".jpg";
	for (i=1; i<5; i++){
		if(i==img_id){
			document.getElementById('nc'+i).style.display = "block";
		}else{
			document.getElementById('nc'+i).style.display = "none";
		}
	}
	return false;
}
