function picRotate_(curPic, maxPic, tm){
	var cntr=document.getElementById("topPicPlace");
	var iobj=cntr.getElementsByTagName("DIV").item(curPic-1);
	iobj.style.display="none";
	curPic=(curPic+1)>maxPic?1:(curPic+1)
	iobj=cntr.getElementsByTagName("IMG").item(curPic-1);
	iobj.style.display="block";
	
	var codeTxt="picRotate("+curPic+","+maxPic+","+tm+");";
	setTimeout(codeTxt, tm);
}
function picRotate(curPic, maxPic, tm){
	var lst=document.getElementsByName("headPicHolder");
	var iobj=lst.item(curPic-1);
	iobj.style.display="none";
	curPic=(curPic+1)>maxPic?1:(curPic+1)
	iobj=lst.item(curPic-1);
	iobj.style.display="block";
	
	var codeTxt="picRotate("+curPic+","+maxPic+","+tm+");";
	setTimeout(codeTxt, tm);
}

function showSubMenu(ind){
	var obj=document.getElementById("subBlock"+ind);
	if(!obj) return;
	obj.style.display="block";
	window.status=obj.parentNode.childNodes[0].className="topMPact";
}
function hideSubMenu(ind){
	var obj=document.getElementById("subBlock"+ind);
	if(!obj) return;
	obj.style.display="none";
	window.status=obj.parentNode.childNodes[0].className="topMP";
}