// JavaScript source code

function SolutionsBoxMouseOver(sModuleID, sModule) {
	var oNonBox = document.getElementById;
	var oBox = document.getElementById(sModuleID);
	var sDivFindMore = "div" + sModuleID + "FindMore";
	var sDivDescription = "div" + sModuleID + "Desc";
	var oDescription = document.getElementById(sDivDescription);
	var oFindMore = document.getElementById(sDivFindMore);
	var bgImage = "url(images/SolutionsBoxDark" + sModule + ".gif)";
	var arrSolutions = new Array("SolutionsBoxERM","SolutionsBoxFCM","SolutionsBoxAIM","SolutionsBoxIA","SolutionsBoxIssues","SolutionsBoxPolicy");
	var strFindOutMore = "<p style='font-size: 11pt;color: red;font-weight:bold;'>Click Here To <br>Find Out More</p>";
	
	for (var i=0;i<=5;i++) {
		if (sModuleID != arrSolutions[i]) {
			document.getElementById(arrSolutions[i]).style.filter = "alpha(opacity=50)";
			document.getElementById(arrSolutions[i]).style.MozOpacity = "0.7";
			document.getElementById(arrSolutions[i]).style.opacity = "0.7";
		}
		else {
			oBox.setAttribute("className", "divSolutionsBoxMouseOver");
			oBox.setAttribute("class", "divSolutionsBoxMouseOver");
			oBox.style.backgroundImage = bgImage;
			oDescription.style.display = 'none';
			oFindMore.innerHTML = strFindOutMore;
			oFindMore.style.display="block";
			SolutionsText(sModule);
		} 
	}
	
	return false;

}

function SolutionsBoxMouseOut(sModuleID) {
	var oBox = document.getElementById(sModuleID);
	var bgImage = "url(images/SolutionsBox.gif)";
	var arrSolutions = new Array("SolutionsBoxERM","SolutionsBoxFCM","SolutionsBoxAIM","SolutionsBoxIA","SolutionsBoxIssues","SolutionsBoxPolicy");
	var contentImage = document.getElementById("divInnerContent");
	var defaultContent = document.getElementById("divInnerContentImageDefault");
	var sDivFindMore = "div" + sModuleID + "FindMore";
	var sDivDescription = "div" + sModuleID + "Desc";
	var oFindMore = document.getElementById(sDivFindMore);
	var oDescription = document.getElementById(sDivDescription);
	
	for (var x=0; x<=5; x++) {
		document.getElementById(arrSolutions[x]).style.filter="alpha(opacity=100)";
		document.getElementById(arrSolutions[x]).style.MozOpacity = "1";
		document.getElementById(arrSolutions[x]).style.opacity = "1";
	}
	oBox.setAttribute("class", "divSolutionsGridBox");
	oBox.style.backgroundImage = bgImage;
	
	oFindMore.style.display = "none";
	oDescription.style.display = "block"
	
	contentImage.style.zIndex="998";
	defaultContent.style.zIndex = "990";
	defaultContent.style.display = "block";
	contentImage.style.display = "none";
	
	return false;

}

function SolutionsText(sModule) {
	var contentImage = document.getElementById("divInnerContent");
	var defaultContent = document.getElementById("divInnerContentImageDefault");
	var sText;
	var arrSolutions = new Array("ERM","FCM","AIM","IA","Issues","Policy");
	var arrSolFeat = new Array();
	arrSolFeat[0] = "<p class='pMainBanner'>Got Risks? e-Gility<sup>+</sup> Enterprise Risk Management will help to uncover, document, track and mitigate all corporate wide risks.</p><p id='pMainBannerSubtext'>Our straight-forward solution allows you to plan ahead and not get caught flat-footed.</p>";
	arrSolFeat[1] = "<p class='pMainBanner'>e-Gility<sup>+</sup> Financial Controls Management provides a straight-forward adaptable solution.</p><p id='pMainBannerSubtext'>Whether you're automating your Financial Controls Management program or building it from scratch, <br>e-Gility<sup>+</sup> FCM is the solution that will save your company time and man power.</p>";
	arrSolFeat[2] = "<p class='pMainBanner'>Have all your important corporate information at your fingertips.</p><p id='pMainBannerSubtext'>e-Gility<sup>+</sup> Agreement Information Management helps you to maintain all the information that matters to your business, such as contracts, licenses, assets, pricing, non-disclosure agreements. You name it we've got it!</p>";
	arrSolFeat[3] = "<p class='pMainBanner'>Achieve a higher rate of accuracy while reducing costs and man hours through e-Gility<sup>+</sup>'s highly intuitive Internal Audit solution</p><p id='pMainBannerSubtext'>Enough said.</p>";
	arrSolFeat[4] = "<p class='pMainBanner'>e-Gility<sup>+</sup> Issues Management solution ensures a high level of collaboration amongst team members.</p><p id='pMainBannerSubtext'>Ensure that all I's are dotted and T's are crossed for all issues that need guaranteed resolution.</p>";
	arrSolFeat[5] = "<p class='pMainBanner'>e-Gility<sup>+</sup> Policy Management handles all the heavy lifting for you.</p><p id='pMainBannerSubtext'>The e-Gility<sup>+</sup> Policy Management solution efficiently maintains the updating, approving and distributing of policies at the corporate, division and/or department level.</p>";
	
	for (var z=0;z<=5;z++) {
		
		if (arrSolutions[z] == sModule) {
			sText = arrSolFeat[z];
			contentImage.style.zIndex="990";
			defaultContent.style.zIndex = "998";
			contentImage.style.display = "block";
			defaultContent.style.display = "none";
			/*contentImage.style.height="150px";*/
			contentImage.innerHTML = sText;	
			}
	}
	
	return false;
}
