function sendmail(n,t){var i=n+"@"+t,r=navigator.userAgent;$.ajax({type:"POST",url:"/dataServices/plnDataService.asmx/recordEmail",data:"{ema: '"+i+"', ua: '"+r+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(){},failure:function(n){alert(n)}});document.location.href="mailto:"+i}function printmail(n,t,i){return i==""&&(i=n+" at "+t),document.write("<a href=\"JavaScript:sendmail('"+n+"','"+t+"'); \">"+i+"<\/a>"),!0}function imgSize(n){for(i=1;i<=100;i++)document.getElementById("mapIcon"+i)&&(document.getElementById("a"+i).className="rlink",document.getElementById("mapIcon"+i).style.height="20px");var t=document.getElementById("mapIcon"+n),r=document.getElementById("a"+n);t.style.height=="34px"?(t.style.height="20px",r.className="rlink"):(t.style.height="34px",r.className="linktitle")}function displayDivNoNode(n){$("#"+n).slideToggle("slow");$("#h"+n).children("i").toggleClass("glyphicon-menu-down").toggleClass("glyphicon-menu-up");$("#s"+n).toggleClass("glyphicon-menu-down").toggleClass("glyphicon-menu-up")}function displayDiv(n,t){var i=document.getElementById(n),r=document.getElementById(t);i.style.display=="none"?(r.src="../images/minus.gif",i.style.display="block"):(r.src="../images/plus.gif",i.style.display="none")}function displayDivWImg(n,t,i){var r=document.getElementById(n),u=document.getElementById(t);r.style.display=="none"?(u.src="/images/"+i,r.style.display="block"):(u.src="/images/rArrow.png",r.style.display="none")}function loadMap(n,t,i){var f=new google.maps.LatLng(n,t),e={zoom:12,center:f,disableDefaultUI:!0,mapTypeId:google.maps.MapTypeId.TERRAIN},r=new google.maps.Map(document.getElementById("map"),e),o=new google.maps.Marker({position:f,map:r,animation:google.maps.Animation.DROP,icon:"https://www.landcan.org/images/map-marker-flag.png"}),u=document.createElement("DIV"),s=new HomeControl(u,r,i);u.index=1;r.controls[google.maps.ControlPosition.RIGHT_TOP].push(u)}function loadMarkers(n,t){for(var u,f=[],r=0;r<t.length;r++){var i=t[r],e=new google.maps.LatLng(i[2],i[3]),o="https://www.landcan.org/images/"+i[4]+".png";u=new google.maps.Marker({position:e,map:n,icon:o,title:i[0]});f.push(u);addInfo(n,u,i[1])}}function HomeControl(n,t,i){var r,u;n.style.padding="5px";r=document.createElement("DIV");r.style.backgroundColor="#F8F8F8";r.style.border="1px solid #7491D3";r.style.cursor="pointer";r.style.textAlign="center";r.title="Click to open map in a full page";n.appendChild(r);u=document.createElement("DIV");u.style.paddingLeft="4px";u.style.paddingRight="4px";u.innerHTML="Full Size Map";r.appendChild(u);google.maps.event.addDomListener(r,"click",function(){window.open(i)})}function addInfo(n,t,i){var r=i,u=new google.maps.InfoWindow({content:r});google.maps.event.addListener(t,"click",function(){u.open(n,t)})}function rffsites(n){var t="";$.get("/dataServices/sites.json",function(i){$.each(i.sites,function(i,r){r.state.toLowerCase()!=n.toLowerCase()&&(t+='<li><a href="'+r.url+'" target="_blank"><img class="asImg" src="'+r.icon+'">'+r.name+"<\/a><\/li>")});$("#AffSites").html(t)})}function getIToolBox(n,t,i){var f=encodeURIComponent(window.location.href),u=encodeURIComponent($("title").text()),e=encodeURIComponent($('meta[name="description"]').attr("content")),r='<a class="'+t+i+'" title="Email this Page to a friend" data-content="Send this page to someone who you think will be interested" data-toggle="modal" data-target="#iToolModal" data-height="600" data-title="<img src=\'https://www.landcan.org/images/emailpage.png\' /> Email Page to a friend" data-src="https://www.landcan.org/iTools.aspx?q=emp&s='+n+"&pt="+u+'"><img  src="https://www.landcan.org/images/emailPage.png" alt="Email page" /><\/a>';return r+='<a class="'+t+i+'" title="Feedback" data-content="Send us your comments" data-toggle="modal" data-target="#iToolModal" data-height="600" data-title="<img src=\'https://www.landcan.org/images/feedback.png\' /> Send Us Your Feedback And Suggestions" data-src="https://www.landcan.org/iTools.aspx?q=fb&s='+n+'" ><img src="https://www.landcan.org/images/feedback.png" alt="LandCAN Feedback" /><\/a>',r+='<a class="'+t+i+'" title="Add me to the Directory" data-content="If you want to be added to our directory of professionals or know somebody that should be in the directory click here" data-toggle="modal" data-target="#iToolModal" data-height="700" data-title="<img src=\'https://www.landcan.org/images/concon4040.png\' /> Add Me To The '+n+'" data-src="https://www.landcan.org/iTools.aspx?q=addme&s='+n+"\" onclick=\"ga('send', 'event', 'CTA', 'click', 'Add me to the Directory');\"><img src=\"https://www.landcan.org/images/concon4040.png\" alt=\"Add me to the Directory\" /><\/a>",r+='<a class="'+t+i+'" title="Create an Account" data-content="An account will provide you the ability to maintain your LandCAN profile in our directory" data-toggle="modal" data-target="#iToolModal" data-height="700" data-title="<img src=\'https://www.landcan.org/images/addme.png\' /> Create an Account" data-src="https://www.landcan.org/iTools.aspx?q=ca&s='+n+"\" onclick=\"ga('send', 'event', 'CTA', 'click', 'Create an Account');\"><img src=\"https://www.landcan.org/images/addMe.png\" style=\"width:40px;\" alt=\"Create an Account\" /><\/a>",r+='<a class="'+t+i+'" title="Receive the LandCAN Newsletter" data-content="If you want to receive the LandCAN e-newsletter click here" data-toggle="modal" data-target="#iToolModal" data-height="700" data-title="<img src = \'https://www.landcan.org/images/newsletter.png\' /> Sign up for the LandCAN monthly newsletter!" data-src = "https://resourcesfirstfoundation.us3.list-manage.com/subscribe/post?u=20636704b01885ead59f9c97d&id=05df3b62ec" ><img src="https://www.landcan.org/images/newsletter.png" alt="Receive the LandCAN Newsletter" /><\/a>',r+('<a class="'+t+'" title="Donate to LandCAN" data-content="Please send your tax-deductible donation today" href="https://www.landcan.org/donate" target="_blank"><img src="https://www.landcan.org/images/donate.png"  alt="donate to LandCAN" /><\/a>')}$(document).ready(function(){$("a.sLink, a.bmc").on("click",function(n){n.preventDefault();var t=$(this).attr("href"),i=$(t).offset().top-100;$("body, html").animate({scrollTop:i+"px"},500)})});$(function(){$("#xall").click(function(){$("#xall").toggleClass("btn-success").toggleClass("btn-warning");$("#xall").text()=="Expand All"?($(".cat-panel").show(),$(".resbox").show(),$("#xall").text("Collapse All"),$(".glyphicon").removeClass("glyphicon-menu-down").addClass("glyphicon-menu-up")):($(".cat-panel").hide(),$(".resbox").hide(),$("#xall").text("Expand All"),$(".glyphicon").removeClass("glyphicon-menu-up").addClass("glyphicon-menu-down"))})});$("#aboutLCAN").hover(function(){$(".ddsm").addClass("dropdown-menu").show()},function(){$(".ddsm").hide()})