strCurrentMenu = "";
oTimer = null;
strCurrentMenu = "";
strCurrentBio = "";
boolHideForms = false;

function fShowDropdown(strID) {
	if(strCurrentMenu != "") {
		fHideDiv(strCurrentMenu);
	}
	if(boolHideForms && (strID == "divClaims" || strID == "divPrograms")) {
		document.getElementById("Select1").style.visibility = "hidden";
		document.getElementById("Select2").style.visibility = "hidden";
	}
	strCurrentMenu = strID;
	var oDiv = document.getElementById(strID);
	oDiv.style.visibility = "visible";
	oDiv.style.display = "block";
	if(oTimer != null) {
		clearTimeout(oTimer);
	}
}

function fHideDropdown(strID) {
	oTimer = setTimeout('fHideDiv(\"' + strID + '\");', 250);
}

function fHideDiv(strID) {
	var oDiv = document.getElementById(strID);
	oDiv.style.display = "none";
	oDiv.style.visibility = "hidden";
	if(boolHideForms && (strID == "divClaims" || strID == "divPrograms")) {
		document.getElementById("Select1").style.visibility = "visible";
		document.getElementById("Select2").style.visibility = "visible";
	}	
}

function fShowDiv(strID) {
	var oDiv = document.getElementById(strID);
	oDiv.style.display = "block";
	oDiv.style.visibility = "visible";
}

function fAdjustDivs2(strDiv1, strDiv2) {
	var oDiv1 = document.getElementById(strDiv1);
	var oDiv2 = document.getElementById(strDiv2);
	var intDiv1Height = 0;
	var intDiv2Height = 0;
	var intHeight = 0;
	if(oDiv1.offsetHeight) {
		intDiv1Height = oDiv1.offsetHeight;
		intDiv2Height = oDiv2.offsetHeight;
	}
	if(oDiv1.style.pixelHeight) {
		intDiv1Height = oDiv1.style.pixelHeight;
		intDiv2Height = oDiv2.style.pixelHeight;
	}
	intHeight = Math.max(intDiv1Height,intDiv2Height); 			
	document.getElementById(strDiv1).style.height = intHeight;
	document.getElementById(strDiv2).style.height = intHeight;
}

function fAdjustDivs3(strDiv1, strDiv2, strDiv3) {
	var oDiv1 = document.getElementById(strDiv1);
	var oDiv2 = document.getElementById(strDiv2);
	var oDiv3 = document.getElementById(strDiv3);
	var intDiv1Height = 0;
	var intDiv2Height = 0;
	var intDiv3Height = 0;
	var intHeight = 0;
	if(oDiv1.offsetHeight) {
		intDiv1Height = oDiv1.offsetHeight;
		intDiv2Height = oDiv2.offsetHeight;
		intDiv3Height = oDiv3.offsetHeight;
	}
	if(oDiv1.style.pixelHeight) {
		intDiv1Height = oDiv1.style.pixelHeight;
		intDiv2Height = oDiv2.style.pixelHeight;
		intDiv3Height = oDiv3.style.pixelHeight;
	}
	intHeight = Math.max(intDiv1Height,intDiv2Height); 			
	intHeight = Math.max(intDiv3Height,intHeight); 			
	document.getElementById(strDiv1).style.height = intHeight;
	document.getElementById(strDiv2).style.height = intHeight;
	document.getElementById(strDiv3).style.height = intHeight;
}

function fAdjustDivHeight(strDivContainer, strDiv1, strDiv2) {
	var oDiv1 = document.getElementById(strDiv1);
	var oDiv2 = document.getElementById(strDiv2);
	var intDiv1Height = 0;
	var intDiv2Height = 0;
	if(oDiv1.offsetHeight) {
		intDiv1Height = oDiv1.offsetHeight;
		intDiv2Height = oDiv2.offsetHeight;
	}
	if(oDiv1.style.pixelHeight) {
		intDiv1Height = oDiv1.style.pixelHeight;
		intDiv2Height = oDiv2.style.pixelHeight;
	}
	document.getElementById(strDivContainer).style.height = intDiv1Height+intDiv2Height;
}

function fOpenChecklist(strName) {
	win = window.open("checklist.asp?txtName="+strName,"checklist","width=600,height=500,scrollbars=yes");
	win.focus();
}

function fOpenGallery(strName) {
	win = window.open("gallery.asp?txtName="+strName,"gallery","width=600,height=490,scrollbars=yes");
	win.focus();
}

function fOpenLegal() {
	win = window.open("legal.asp","legal","width=600,height=500,scrollbars=yes");
	win.focus();
}
function fOpenVidQ(strFilename) {
	window.open ('video.asp?strFormat=q&strFilename=' + strFilename, strFilename, 'width=320,height=330,toolbar=0,status=0,location=0,menubar=0,resizable=0,scrollbars=0');
	}
function fOpenVidW(strFilename) {
	window.open ('video.asp?strFilename=' + strFilename, strFilename, 'width=400,height=420,toolbar=0,status=0,location=0,menubar=0,resizable=0,scrollbars=0');
}
