function printPage(){if(window.print)window.print()}
function ppmon(){if(document.getElementById)document.getElementById('PrintNote').style.display='block';}
function ppmoffold(){id=window.setTimeout("timer()",1000);}
function ppmoff(){if(document.getElementById)document.getElementById('PrintNote').style.display='none';}
function printInstructions(){return'<div onmouseover="javascript:ppmon();" onmouseout="javascript:ppmoff();" style="height:10px" class="ScreenOnly TextXXSmall"><strong><a href="javascript:printPage()">Print this webpage</A></strong><div ID="PrintNote" onclick="javascript;ppmoff()" onmouseover="javascript:ppmon();" onmouseout="javascript:ppmoff();"><p>This page designed print cleanly without extraneous menus, ads, etc. and may make a great classroom handout.</p><p>To print the background colors of any tables follow these directions:</p><ul><li><strong>Internet Explorer:</strong> go to "Tools" &gt; "Internet Options"&gt; "Advanced" &gt; "Printing" and make sure "Print background colors and images" is checked.</li><li><strong>Firefox:</strong> go to "File" &gt; "Print Setup" and check "Print Background (colors & images)".</li></ul></div></div>';}
function CareerMenu(CC){var oLCA=document.getElementById('CareerLCA');var oCA=document.getElementById('CareerCA');var oLIN=document.getElementById('CareerLIN');var oIN=document.getElementById('CareerIN');var oLUK=document.getElementById('CareerLUK');var oUK=document.getElementById('CareerUK');var oLUS=document.getElementById('CareerLUS');var oUS=document.getElementById('CareerUS');var aC="#e7d39c url('/images/arrow-cm.gif') no-repeat left";var aD="#e7d39c url('/images/arrow-dm.gif') no-repeat left";var aU="#e7d39c url('/images/arrow-um.gif') no-repeat left";var cookie_date=new Date();cookie_date.setTime(cookie_date.getTime()-1);document.cookie="CareerCountry=; expires="+cookie_date.toGMTString()+"; domain=.environmentalchemistry.com";document.cookie="CareerCountry="+CC+";domain=.environmentalchemistry.com;path=/;";if(CC=="CA"){oLCA.style.display='block';oLIN.style.display='none';oLUK.style.display='none';oLUS.style.display='none';oCA.style.background=aC;oIN.style.background=aU;oUK.style.background=aU;oUS.style.background=aU;oCA.style.color="#000000";oIN.style.color="#7E2C04";oUK.style.color="#7E2C04";oUS.style.color="#7E2C04";oCA.style.textDecoration="none";oIN.style.textDecoration="underline";oUK.style.textDecoration="underline";oUS.style.textDecoration="underline";oCA.style.cursor="default";oIN.style.cursor="pointer";oUK.style.cursor="pointer";oUS.style.cursor="pointer";}
else if(CC=="IN"){oLCA.style.display='none';oLIN.style.display='block';oLUK.style.display='none';oLUS.style.display='none';oCA.style.background=aD;oIN.style.background=aC;oUK.style.background=aU;oUS.style.background=aU;oCA.style.color="#7E2C04";oIN.style.color="#000000";oUK.style.color="#7E2C04";oUS.style.color="#7E2C04";oCA.style.textDecoration="underline";oIN.style.textDecoration="none";oUK.style.textDecoration="underline";oUS.style.textDecoration="underline";oCA.style.cursor="pointer";oIN.style.cursor="default";oUK.style.cursor="pointer";oUS.style.cursor="pointer";}
else if(CC=="UK"){oLCA.style.display='none';oLIN.style.display='none';oLUK.style.display='block';oLUS.style.display='none';oCA.style.background=aD;oIN.style.background=aD;oUK.style.background=aC;oUS.style.background=aU;oCA.style.color="#7E2C04";oIN.style.color="#7E2C04";oUK.style.color="#000000";oUS.style.color="#7E2C04";oCA.style.textDecoration="underline";oIN.style.textDecoration="underline";oUK.style.textDecoration="none";oUS.style.textDecoration="underline";oCA.style.cursor="pointer";oIN.style.cursor="pointer";oUK.style.cursor="default";oUS.style.cursor="pointer";}
else{oLCA.style.display='none';oLIN.style.display='none';oLUK.style.display='none';oLUS.style.display='block';oCA.style.background=aD;oIN.style.background=aD;oUK.style.background=aD;oUS.style.background=aC;oCA.style.color="#7E2C04";oIN.style.color="#7E2C04";oUK.style.color="#7E2C04";oUS.style.color="#000000";oCA.style.textDecoration="underline";oIN.style.textDecoration="underline";oUK.style.textDecoration="underline";oUS.style.textDecoration="none";oCA.style.cursor="pointer";oIN.style.cursor="pointer";oUK.style.cursor="pointer";oUS.style.cursor="default";}CC=CC.toLowerCase();document.getElementById('CareerCountry').value=CC;}
function SLI(s,qu,qt,qd,i,n,c){var str="<li><a href=\"http://"+s+"\" onclick=\"window.open('http://"+s+qu+"'+encodeURIComponent(location.href)+'"+qt+"'+t";if(qd!=""){str+="+'"+qd+"'+desc";}return(str+",'Social','height=440,width=700,scrollbars=yes,resizable=yes,location=yes,directories=no');return false;\"><img src=\"http://envirochem.us/images/"+i+"\" alt=\""+n+"\" title=\""+n+"\" class=\""+c+"\"></a></li>");}
function printSocial(){var str="<"+"script type=\"text/javascript\">var desc;if(!document.getElementsByName('DESCRIPTION')){desc='';}else{desc=document.getElementsByName('DESCRIPTION')[0].content;}var t=document.title;t=t.replace(' (EnvironmentalChemistry.com)','');t=t.replace('Editors\\' Blog: ','');t=encodeURIComponent(t);<"+"/script>";
str+="<div style=\"width:435px\" class=\"NoPrint\"><h3>Share this Article</h3><ul class=\"SocialPlugs\">"+
SLI("www.myspace.com/index.cfm","?fuseaction=postto&amp;l=1&amp;u=","&amp;t=","&amp;c=","myspace.gif","MySpace","w19 h16")+
SLI("www.facebook.com/sharer.php","?u=","&amp;t=","","facebook.gif","Facebook","w16 h16")+
SLI("envirochem.us/twitter.html","?url=","&amp;title=","","twitter.gif","Twitter","w16 h16")+
SLI("del.icio.us/post","?v=4&amp;partner=csm&amp;noui&amp;jump=close&amp;url=","&amp;title=","&amp;notes=","delicious.gif","del.icio.us","w16 h16")+
SLI("digg.com/submit","?phase=2&amp;url=","&amp;title=","&amp;bodytext=","digg_16x16.gif","Digg","w16 h16")+
SLI("www.google.com/bookmarks/mark","?op=edit&bkmk=","&amp;title=","","google.gif","Google Bookmarks","w16 h16")+
SLI("www.mixx.com/submit/story","?page_url=","&amp;title=","","mixx.gif","Mixx","w16 h16")+
SLI("www.newsvine.com/_tools/seed&amp;save","?u=","&amp;h=","","button_seednewsvine.gif","Newsvine","w13 h16")+
SLI("reddit.com/submit","?url=","&amp;title=","","reddit.gif","Reddit","w18 h18")+
SLI("slashdot.org/bookmark.pl","?url=","&amp;title=","","slashdot.gif","Slashdot","w13 h13")+
SLI("www.stumbleupon.com/submit","?url=","&amp;title=","","stumbleit.gif","StumbleUpon","w16 h16")+
SLI("www.technorati.com/faves","?add=","","","Technorati.gif","Technorati","w16 h16");
// str+=SocLI("envirochem.us/email.html","?url=","&amp;title=","","email.gif","Email","w16 h16");
return(str+"</ul></div>");}
//SciAm ad code
_version=11;if(navigator.userAgent.indexOf('Mozilla/3')!=-1){_version=10;}var oas='http://oascentral.sciam.com/RealMedia/ads/';var sitepage="environmentalchemistry.com";var RN=new String(Math.random());var RNS=RN.substring(2,11);function DisplayAds(position,width,Height){var oaspage=sitepage+'/1'+RNS+'@'+position;if(_version<11){var temp_write='<A HREF="'+oas+'click_nx.cgi/'+oaspage+'" TARGET="_top"><IMG SRC="'+oas+'adstream_nx.cgi/'+oaspage+'" BORDER="0" WIDTH="'+width+'" HEIGHT="'+Height+'"></a>';document.write(temp_write);}else{var temp_write='<SCRIPT type="text/javascript" SRC="'+oas+'adstream_jx.cgi/'+oaspage+'">';document.write(temp_write);document.write('\<\!-- --\>');document.write('\<\/SCRIPT\>');document.write('\<\!-- --\>');}}

