/*
 DESCRIPTION:	ExpandBusinessRules.js is to load the default state of the
				flush Right components.  Expanded if there are less than
				5 brief indexes displayed.  Collapsed if there are five
				or more.  If the brief index is Additional Information,
				the component will always be expanded.
*/

DOM = (document.getElementById) ? true : false;

function initIt(){

	if (DOM) {
		var j = 0;
		divColl = document.getElementsByTagName("DIV");

		for (i=0; i<divColl.length; i++) {
			if (divColl.item(i).className == "exChild"){
					j++;
				}
			}

		if (j >=3) {
			for (i=0; i<divColl.length; i++) {
				if (divColl.item(i).className == "exChild"){
					divColl.item(i).style.display="none";
					divColl.item(i).style.display="none";
					divColl.item(i).style.visibility="hidden";
				}

				if (divColl.item(i).className == "exImg") {
					divColl.item(i).style.display="block";
					divColl.item(i).style.visibility="visible";
				}

				// CHANGE Element ID to reflect proper 'Add Info' component
				if (document.getElementById("b2Child") !=null) {
					divAddi = document.getElementById("b2Child");
					divAddi.style.display="block";
					divAddi.style.visibility="visible";
					imgDisplay=document.getElementById("b2Image").style
					imgDisplay.display="none";
					imgDisplay.visibility="hidden";
				}
			}
		}
	}
}

//end