function PrintThisPage()
{
	var sOption="toolbar=yes,location=no,directories=no,menubar=yes,scrollbars=yes,width=550,height=450,left=100,top=25"; 
	var sWinHEAD = document.getElementById('header').innerHTML;
	var sWinHTML = document.getElementById('contentstart').innerHTML;
	var winprint=window.open("","print",sOption);

	winprint.document.open();
	winprint.document.write('<html><head><title></title><link href="../stylesheet_print.css" rel="stylesheet" type="text/css"></head><body>');
	winprint.document.write('<H4 align="right"><a href="javascript:window.print()">Send to Printer</a></H4>');
	winprint.document.write(sWinHEAD);
	winprint.document.write(sWinHTML);
	winprint.document.write('</body></html>');
	winprint.document.close();
	winprint.focus();
}

function openSampleResult(theURL) { //v2.0
  //window.open(theURL,'sample','scrollbars=yes,width=640,height=520');
  window.open(theURL,'sample','scrollbars=yes,width=800,height=558');
}

function popMethods(theTarget) { //v2.0
  var theURL="../methods.html#" + theTarget;
  window.open(theURL,'pop','scrollbars=yes,toolbar=yes,width=550,height=400');
}

function popEffects() { //v2.0
  window.open('../effects_of_urban_tree.html','pop','scrollbars=yes,toolbar=yes,width=550,height=400');
}

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Patrick Lewis (gtrwiz@aol.com) -->
<!-- Web Site:  http://www.patricklewis.net -->
<!-- Begin
//   ##############  SIMPLE  BROWSER SNIFFER
if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko"}

//  #########  popup text 
//var descarray;
var descarray = [
"<!--Big-Leaf Model:0:-->A canopy-level model that predicts photosynthesis and gas exchange at the leaf level with results applied to the canopy. This approach assumes that canopy fluxes have the same relative responses to the environment as any single leaf, and that the scaling from leaf to canopy is therefore linear.",
"<!--Biogenic:1:-->Resulting from the activity of living organisms. Used in reference to biogenic VOC emissions (see VOC).",
"<!--Biomass:2:-->The total quantity or weight of living organisms in a particular area or volume.",
"<!--Boundary Layer:3:-->A layer of air in the lower atmosphere that is directly connected to and influenced by the forces affecting the earth’s surface.",
"<!--DBH:4:-->Tree diameter at breast height -- measured at 4.5 ft (1.37 m) above the ground.",
"<!--Dry disposition:5:-->The transfer of trace gases or particles such as air pollutants from the atmosphere to leaves and other surfaces by diffusion or settling without active precipitation.",
"<!--Environmental Equity:6:-->A federally initiated effort to make certain that the consequences of environmental pollution should not be borne unequally by any segment of the population.",
"<!--Hectare:7:-->A measurement of area in the metric system.  One hectare is equivalent to 10,000 square meters or 2.471 acres.",
"<!--Invasive Trees:8:-->Introduced or non-native tree species that out-compete and displace native species in a particular region, thus disrupting the ecology of a natural community.",
"<!--Landsat Project:9:-->A project beginning in 1972 involving the use of a series of satellites to acquire remotely sensed images of the Earth's land surface and surrounding coastal regions.",
"<!--Multi-layer model:10:-->A canopy model that calculates photosynthesis for multiple tree canopy layers and is especially useful for estimating the role of shaded leaves.",
"<!--Particulate Matter:11:-->Solid or liquid particles with diameters between ~0.002 microns and ~100 microns. Air pollutants called particulate matter include dust, dirt, soot, smoke, aerosols, and liquid droplets directly emitted into the air by sources such as factories, power plants, cars, construction activity, fires and natural windblown dust.",
"<!--PDA:12:-->A handheld 'personal digital assistant' that runs on one of two platforms: Palm OS&reg; or Windows Mobile&reg;.  Well-known examples include Palm's Pilot and Compaq's iPAQ.",
"<!--Photochemical model (ozone):13:-->An atmospheric model that simulates the movement and processes (physical and chemical) of air pollutants.",
"<!--Project:14:-->A UFORE 'project' consists of one or more sets of data files plus any saved analyses of those data.",
"<!--SAS:15:-->SAS ('Statistical Analysis System,' marketed by the SAS Institute Inc.) is a powerful and flexible computer program for entering, storing and analyzing data.",
"<!--Sequestration (carbon):16:-->The removal of carbon dioxide from the air by plants through photosynthesis.",
"<!--Storage (carbon):17:-->The amount of carbon bound up in the above- and below-ground parts of vegetation.",
"<!--Stratification:18:-->The process of grouping members of a population into subgroups (e.g., land use types) before sampling. Stratification can lead to more precise estimates of population, as well as allow for analyses of subgroup attributes.",
"<!--Structure (forest):19:-->The way in which parts are connected together, arranged or organized. For forests, structure includes measurements of the species and size distribution, number of trees, etc.",
"<!--UFORE:20:-->The acronym for a computer model that calculates <B>U</B>rban <B>For</B>est <B>E</B>ffects.",
"<!--VOC (Volatile organic compound):21:-->Gases containing carbon, such as isoprenes and monoterpenes, that are released by vegetation and others sources at ambient air temperatures. These compounds can contribute to ground-level ozone formation."
];

//var namearray;
var namearray = [
"Big-Leaf Model<!--0-->",
"Biogenic<!--1-->",
"Biomass<!--2-->",
"Boundary Layer<!--3-->",
"DBH<!--4-->",
"Dry disposition<!--5-->",
"Environmental Equity<!--6-->",
"Hectare<!--7-->",
"Invasive Trees<!--8-->",
"Landsat Project<!--9-->",
"Multi-layer model<!--10-->",
"Particulate Matter<!--11-->",
"PDA<!--12-->",
"Photochemical model<!--13-->",
"Project<!--14-->",
"SAS<!--15-->",
"Sequestration (carbon)<!--16-->",
"Storage (carbon)<!--17-->",
"Stratification<!--18-->",
"Structure (forest)<!--19-->",
"UFORE<!--20-->",
"VOC (Volatile organic compound)<!--21-->"
];
overdiv="0";


function openGlossary(){
	window.open('../glossary/glossary.html','Glossary','scrollbars=yes,width=550,height=550');
}

//  #########  GLOSSARY DUMP
function GlossaryDump(){
	var i;
	var namearrayLocal;
	var descarrayLocal;
	
	namearrayLocal = new Array;
	descarrayLocal = new Array;
	
	for(i=0; i<namearray.length; i++)
	{
		namearrayLocal[i] = namearray[i];
		descarrayLocal[i] = descarray[i];	
	}

	if(navigator.family =="ie4"){
		i = 0;
		document.writeln('<html><head><title></title><link href="../stylesheet_print.css" rel="stylesheet" type="text/css"></head><body>');
		document.writeln("<CENTER><H1>Glossary of Terms</H1>");
		document.writeln("<TABLE WIDTH=500 COLS=2 CELLPADDING=5 BGColor=#d3d3d3>");
		
		for(i=0; i<namearray.length; i++)
		{
			document.writeln("<TR><TD WIDTH=25% VALIGN=TOP><font color=#228b22><B>" + namearray[i] + ":</B></FONT></TD><TD WIDTH=75%><font color=#228b22>" + descarray[i] + "</font></TD></TR>");
			document.writeln("<TR><TD COLSPAN=2><HR color=#228b22></HR></TD></TR>");
		}
		document.writeln("</TABLE></CENTER></BODY>");	
	}
	else
	{
		i = 0;
		document.open();

		document.writeln('<html><head><title></title><link href="../stylesheet_print.css" rel="stylesheet" type="text/css"></head>');
		
		document.writeln("<CENTER><H1>Glossary of Terms</H1>");
			
		document.writeln("<TABLE WIDTH=500 COLS=2 CELLPADDING=5 BGColor=#d3d3d3>");
		document.close
		
		for(i=1; i<namearrayLocal.length; i++)
		{
			document.write("<TR><TD WIDTH=25% VALIGN=TOP><FONT color=#228b22><B>" + namearrayLocal[i] + ":</B></FONT></TD><TD WIDTH=75%><font color=#228b22>" + descarrayLocal[i] + "</font></TD></TR>");
			document.write("<TR><TD COLSPAN=2><HR color=#228b22></HR></TD></TR>");
		}
		document.open();
		document.write("</TABLE></CENTER>");
		document.close();
	}
}

//  #########  CREATES POP UP BOXES 
function popLayer(a){
if (a=="Big_Leaf_Model"){a=0;}
if (a=="Biogenic"){a=1;}
if (a=="Biomass"){a=2;}
if (a=="Boundary_Layer"){a=3;}
if (a=="DBH"){a=4;}
if (a=="Dry_Disposition"){a=5;}
if (a=="Environmental_Equity"){a=6;}
if (a=="Hectare"){a=7;}
if (a=="Invasive_Trees"){a=8;}
if (a=="Landsat"){a=9;}
if (a=="Multi_Layer_Model"){a=10;}
if (a=="Particulate_Matter"){a=11;}
if (a=="PDA"){a=12;}
if (a=="Photochemical_Model"){a=13;}
if (a=="Project"){a=14;}
if (a=="SAS"){a=15;}
if (a=="Sequestration"){a=16;}
if (a=="Storage"){a=17;}
if (a=="Stratification"){a=18;}
if (a=="Structure"){a=19;}
if (a=="UFORE"){a=20;}
if (a=="VOC"){a=21;}

if(!descarray[a]){descarray[a]="";}
if (navigator.family == "gecko") {pad="0"; bord="1 bordercolor=black";}
else {pad="1"; bord="0";}
desc = "<table cellspacing=0 cellpadding="+pad+" border="+bord+" bgcolor=#000000 width=233><tr><td>\n"
	+"<table cellspacing=0 cellpadding=3 border=0 width=100%><tr><td bgcolor=#d3d3d3><font color=#228b22>\n"
	+descarray[a]
	+"\n</td></tr></table>\n"
	+"</td></tr></table>";
if(navigator.family =="nn4") {
	document.object1.document.write(desc);
	document.object1.document.close();
	yAdjust = (descarray[a].length - (descarray[a].length % 35)) / 35;  //y Axis needs to be adjustable.
	
	if ((window.innerWidth - X) < 250)
	{
	
		document.object1.left=x-245;
	}
	else
	{
		document.object1.left=x+15;
	}
	if (y > (screen.width / 2)-70)
	{
		document.object1.top=y-(yAdjust * 20);
	}
	else
	{
		document.object1.top=y-5;
	}
	}
else if(navigator.family =="ie4"){

	object1.innerHTML=desc;
	yAdjust = (descarray[a].length - (descarray[a].length % 35)) / 35;  //y Axis needs to be adjustable.
	
	//alert("Width is: " + document.body.clientWidth + " X is: " + x + " ScreenX is: " + event.screenX);
	
	if ((document.body.clientWidth - x) < 250)
	{
	
		object1.style.pixelLeft=x-245;
	}
	else
	{
		object1.style.pixelLeft=x+15;
	}
	if (y > (screen.width / 2)-70)
	{
		object1.style.pixelTop=y-(yAdjust * 20);
	}
	else
	{
		object1.style.pixelTop=y-5;
	}
	}
else if(navigator.family =="gecko"){
	document.getElementById("object1").innerHTML=desc;
	yAdjust = (descarray[a].length - (descarray[a].length % 35)) / 35;  //y Axis needs to be adjustable.
	
	if (x > ((screen.width / 2)-100))
	{
	
		document.getElementById("object1").style.left=x-245;
	}
	else
	{
		document.getElementById("object1").style.left=x+15;
	}
	if (y > (screen.width / 2)-70)
	{
		document.getElementById("object1").style.top=y-(yAdjust * 20);
	}
	else
	{
		document.getElementById("object1").style.top=y-5;
	}
	}
//alert("Exiting Popup Function");
}

//  ########  TRACKS MOUSE POSITION FOR POPUP PLACEMENT
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function handlerMM(e){
x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
}
if (isNav){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove = handlerMM;

function hideLayer(){
if (overdiv == "0") {
	//alert("HideLayer triggered");
	if(navigator.family =="nn4") {eval(document.object1.top="-500");}
	else if(navigator.family =="ie4"){object1.innerHTML="";}
	else if(navigator.family =="gecko") {document.getElementById("object1").style.top="-500";}
	}
}

//  End -->