// JavaScript Document
//--------------------------------------//
//--------------------------------------//
function expandDiv(whichDiv,whatHeight,whichToLoad) {
	//window.alert(whichDiv + " " + whatHeight);
	thisDiv = document.getElementById(whichDiv);
	newH = parseInt(whatHeight);
	thisDiv.style.height = newH+"px";
	
	if (thisDiv.style.height<newH) {
	thisDiv.style.overflow = 'visible';	}
	else
	{
		thisDiv.style.overflow='hidden';
		}
	if (whichToLoad=="risk" ) {
		setTimeout ( "showRiskProfiler()", 1000 );
			//thisMovie("landingbanner").showRiskProfiler();
		} else 	if (whichToLoad=="health" ) {
		setTimeout ( "showHealthCheck()", 1000 );
			//thisMovie("landingbanner").showRiskProfiler();
		} else if (whichToLoad==null) {
			null;
		}
	}

//--------------------------------------//
//--------------------------------------//
function showHideDiv(whichDiv,btn,defaultTxt) {
	var showThis = document.getElementById(whichDiv);
	var status = showThis.style.display;
	if (defaultTxt==undefined) {
		defaultTxt = "Read more";
		}
	if (status == "none" || status=="") {
		showThis.style.display = "block";
		document.getElementById(btn).innerHTML ="Close -";
	}
	else {
		showThis.style.display = "none";
		document.getElementById(btn).innerHTML =defaultTxt+" +"

	}
}	
//--------------------------------------//
