	function ret()
	{
		return false;
	}
	
	function highLightBack(showIndex)
	{
		document.getElementById(showIndex).style.fontWeight='bold';
		document.getElementById(showIndex).style.backgroundColor='#0093dd';
		document.getElementById(showIndex).style.color='#ffffff';
		
	}
	
	function noLightBack(showIndex)
	{
		document.getElementById(showIndex).style.fontWeight='normal';
		document.getElementById(showIndex).style.backgroundColor='white';
		document.getElementById(showIndex).style.color='#0000ff';
	}
	
	function displayDiv(itemIndex, colorVal)
	{
		var mainBox = "showHead" + itemIndex;
		var subBox = "showText" + itemIndex;
		var inBox = "showInline" + itemIndex;
		var inBoxMore = "showInlineMore" + itemIndex;
		
		if( document.getElementById('holdTemp').value != 0 )
		{
			hideDiv(document.getElementById('holdTemp').value,colorVal)
		}
		
		//document.getElementById(inBox).innerHTML="<a href=\"javascript:ret();\" onClick=\"hideDiv(\'" + itemIndex + "\','" + colorVal + "');\" class=\"bulletHeader\"><img src=\"images\/bullet_minus_long.gif\" border=\"0\" /></a> ";
		document.getElementById(inBoxMore).innerHTML="[<a href=\"javascript:hideDiv(\'" + itemIndex + "\','" + colorVal + "');\" style=\"color:white;\">close</a>] ";
		/* if(itemIndex >= 1 && itemIndex <= 12)
		{
			document.getElementById(subBox).style.width="312px";
		}
		else
		{
			document.getElementById(subBox).style.width="282px";
		} */
		document.getElementById(subBox).style.display="block";
		document.getElementById(mainBox).style.backgroundColor='#' + colorVal;
		document.getElementById(mainBox).style.fontWeight='bold';
		document.getElementById(mainBox).style.color='#ffffff';
		document.getElementById(mainBox).style.border='1px solid black';
		
		
		
		//document.getElementById(mainBox).style.width='286px';
		
		
		document.getElementById('holdTemp').value = itemIndex;
	}
	
	
	function hideDiv(itemIndex, colorVal)
	{
		var mainBox = "showHead" + itemIndex;
		var subBox = "showText" + itemIndex;
		var inBox = "showInline" + itemIndex;
		var inBoxMore = "showInlineMore" + itemIndex;
		
		//document.getElementById(inBox).innerHTML="<a href=\"javascript:ret();\" onClick=\"displayDiv(\'" + itemIndex + "\','" + colorVal + "');\" class=\"bulletHeader\" onMouseOut=\"javascript:unBoldHeader(\'" + itemIndex + "\');\" onMouseOver=\"javascript:boldHeader(\'" + itemIndex + "\');\"><img src=\"images\/bullet_plus_green_long.gif\" border=\"0\" /></a> ";
		document.getElementById(inBoxMore).innerHTML="<span class=\"moreLink\">[<a href=\"javascript:displayDiv(\'" + itemIndex + "\','" + colorVal + "');\" class=\"bulletHeader\">more</a>]<\/span> ";
		document.getElementById(subBox).style.display="none";
		document.getElementById(mainBox).style.backgroundColor='#ffffff';
		document.getElementById(mainBox).style.fontWeight='normal';
		document.getElementById(mainBox).style.color='#000000';
		document.getElementById(mainBox).style.border='0px';
		//document.getElementById(mainBox).style.width='280px';
		//alert(document.getElementById('showHead11').style.innerHTML);
	}
	
	function boldHeader(useIndex)
	{
		var mainBox = "showHead" + useIndex;
		document.getElementById(mainBox).style.fontWeight='bold';
	}
	function unBoldHeader(useIndex)
	{
		var mainBox = "showHead" + useIndex;
		document.getElementById(mainBox).style.fontWeight='normal';
	}
	
	
	
	
			var trackLoop = 0;
			
			function showSubMenu(useMenu,useTop,useCategory,useLink)
			{
				if(trackLoop==0)
				{
					trackLoop=1;
					//alert(useLink);
					//document.getElementById(useTop).style.backgroundColor = "#008adb";
					//document.getElementById(a.headNav).style.color="#ffffff";
					increment();
					var stringItem = document.getElementById(useCategory).innerHTML;
					//document.getElementById(useCategory).innerHTML = stringItem.replace("headNav","xheadNav") ;
					//alert(document.getElementById(useCategory).innerHTML);
					document.getElementById(useLink).style.color="#ffffff";
					document.getElementById(useCategory).style.backgroundColor="#008adb";
					document.getElementById(useTop).style.color = "#ffffff";
					document.getElementById(useTop).style.overflow = "visible";
					document.getElementById(useMenu).style.visibility = "visible";
				}
			}
			
			function hideSubMenu(useMenu,useTop,useCategory,useLink)
			{
				//document.getElementById(useTop).style.backgroundColor = "transparent";
				var stringItem = document.getElementById(useCategory).innerHTML;
				//document.getElementById(useCategory).innerHTML = stringItem.replace("xheadNav","headNav") ;
				
				
					document.getElementById(useLink).style.color="#008adb";
					
				document.getElementById(useCategory).style.backgroundColor="transparent";
				document.getElementById(useTop).style.color = "#000000";
				document.getElementById(useTop).style.overflow = "hidden";
				document.getElementById(useMenu).style.visibility = "hidden";
				trackLoop = 0;
					increment();
			}
			
			function highlightBkColor(useDiv)
			{
				document.getElementById(useDiv).style.backgroundColor="yellow";
			}
			
			function undoBkColor(useDiv)
			{
				document.getElementById(useDiv).style.backgroundColor="transparent";
			}
			
			function increment()
			{
				document.getElementById('test').value = eval(document.getElementById('test').value) + 1;
			}
			
function closeTextBoxes(displayTotal)
{
	
	for(i=1; i<=displayTotal; i++)
	{
		panelDivBox = "showText" + i;
		document.getElementById(panelDivBox).style.display="none";
		//alert(panelDivBox); 
	}
}