// JavaScript Document

function emailPage()
{
	var browser=navigator.appName;
	var SubjectLine='Take a look at this article from the Energy Information Administration! ';
	var BodyText='You can read the article at: '+top.location.href;
	var Message='<A HREF="mailto:?SUBJECT='+escape(SubjectLine)+'&BODY='+escape(BodyText)+'" class="report_summary" OnClick="pageEmail();" TITLE="Email someone about this page"><img src="images/email-this.jpg" width="25" height="25" border="0" align="absmiddle"/><div id="icon-text">Email this page</div></A>';
	var MessageIE='<A HREF="mailto:?SUBJECT='+(SubjectLine)+'&BODY='+(BodyText)+'" class="report_summary" OnClick="pageEmail();" Title="Email someone about this page"><img src="images/email-this.jpg" width="25" height="25" border="0" align="absmiddle"/><div id="icon-text">Email this page</div></A>';
	if(browser=="Microsoft Internet Explorer")
		{
			document.getElementById("topemail").innerHTML=MessageIE;
			if(document.getElementById("bottomemail")!= null)
			{
				document.getElementById("bottomemail").innerHTML=MessageIE;
			}
		}
	else
		{
			document.getElementById("topemail").innerHTML=Message;
			if(document.getElementById("bottomemail")!= null)
			{
				document.getElementById("bottomemail").innerHTML=Message;
			}
		}
}