function doHomeFlash_1() {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="946" height="330" id="harvest_foundation" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="flash/harvest_foundation_1.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<param name="bgcolor" value="#ffffff" />\n');
	document.write('<embed src="flash/harvest_foundation_1.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="946" height="330" name="harvest_foundation" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
}

function doHomeFlash_2() {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="946" height="330" id="harvest_foundation" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="flash/harvest_foundation_2.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<param name="bgcolor" value="#ffffff" />\n');
	document.write('<embed src="flash/harvest_foundation_2.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="946" height="330" name="harvest_foundation" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
}

function doHomeFlash_3() {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="946" height="330" id="harvest_foundation" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="flash/harvest_foundation_3.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<param name="bgcolor" value="#ffffff" />\n');
	document.write('<embed src="flash/harvest_foundation_3.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="946" height="330" name="harvest_foundation" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
}

function doHomeFlash_4() {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="946" height="330" id="harvest_foundation" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="flash/harvest_foundation_4.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<param name="bgcolor" value="#ffffff" />\n');
	document.write('<embed src="flash/harvest_foundation_4.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="946" height="330" name="harvest_foundation" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
}

function doSRSCFlash() {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="575" height="500" id="srsc" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="flash/srsc.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="wmode" value="window" />\n');
	document.write('<param name="bgcolor" value="#00461b" />\n');
	document.write('<embed src="flash/srsc.swf" quality="high" wmode="window" bgcolor="#00461B" width="575" height="500" name="srsc" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
	document.write('<p align="center"><input type="button" value="Back" onclick="location.href=\'index.cfm\';"></p>\n');
}

function do_SRSC_opening_Flash() {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="575" height="500" id="srsc" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="flash/srsc_opening.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="wmode" value="window" />\n');
	document.write('<param name="bgcolor" value="#FFFFFF" />\n');
	document.write('<embed src="flash/srsc_opening.swf" quality="high" wmode="window" bgcolor="#FFFFFF" width="575" height="500" name="srsc" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
	document.write('<p align="center"><input type="button" value="Back" onclick="location.href=\'index.cfm\';"></p>\n');
}

function emlShow(uname,srvr) {
	document.write("<a href='mailto:" + uname + "@" + srvr + "'>");
	document.write(uname + "@" + srvr);
	document.write("</a>"); 
}

function getWindowHeight() {
	var windowHeight=0;
	if (typeof(window.innerHeight)=='number') {
		windowHeight=window.innerHeight;
		}
		else {
		if (document.documentElement&&
			document.documentElement.clientHeight) {
			windowHeight=
			document.documentElement.clientHeight;
		}
		else {
			if (document.body&&document.body.clientHeight) {
			windowHeight=document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}

function setFooter() {
	if (document.getElementById) {
		var windowHeight=getWindowHeight();
		if (windowHeight>0) {
			var contentHeight = document.getElementById('content').offsetHeight;
			var footerElement = document.getElementById('footer');
			var footerHeight=footerElement.offsetHeight;
			if (windowHeight-(contentHeight+footerHeight)>=0) {
				footerElement.style.position='relative';
				footerElement.style.top=(windowHeight-(contentHeight+footerHeight))+'px';
			}
			else {
				footerElement.style.position='static';
			}
		}
	}
}

function swapImg(obj) {
	obj.src = obj.src.replace('_off', '_on');
}

function swapImgBk(obj) {
	obj.src = obj.src.replace('_on', '_off'); 
}


window.onload = function() {
  setFooter();
}
window.onresize = function() {
  setFooter();
}


