function addLoadEvent(func){if(window.addEventListener)window.addEventListener("load",func,false);else if(window.attachEvent)window.attachEvent("onload",func);else{var old=window.onload;window.onload=function(){if(old)old();func();};}}
addLoadEvent(indexBoxEvents);addLoadEvent(loadJavaScripts);window.fbAsyncInit=function(){FB.init({appId:'219017301468613',status:true,cookie:true,xfbml:true});var fb=document.createElement('fb:like');fb.setAttribute("id","fblike");fb.setAttribute("href","http://www.bettertenantscreening.com");fb.setAttribute("send","true");fb.setAttribute("width","375");fb.setAttribute("show_faces","true");fb.setAttribute("layout","standard");fb.setAttribute("font","verdana");document.getElementById("socialmedia").appendChild(fb);FB.XFBML.parse(document.getElementById('socialmedia'));};function loadJavaScripts(){var asyncJsLoader=(function(){var load=function(url){var jsPlaceholder=document.createElement('script');jsPlaceholder.type='text/javascript';jsPlaceholder.async=true;jsPlaceholder.src=url;document.getElementsByTagName('head')[0].appendChild(jsPlaceholder);};return function(url){setTimeout(function(){load(url);},1);};})();asyncJsLoader(document.location.protocol+'//apis.google.com/js/plusone.js');asyncJsLoader(document.location.protocol+'//connect.facebook.net/en_US/all.js');asyncJsLoader(document.location.protocol+'//platform.twitter.com/widgets.js');}
function indexBoxEvents(){for(i=1;i<=2;i++)document.getElementById('e'+i).onclick=function(){var p=this.parentNode;if(p.className=="boxcontent"){p.className="boxexpanded";if(this.firstChild.nodeValue=='Learn more')this.firstChild.nodeValue='Hide details';}
else{p.className="boxcontent";if(this.firstChild.nodeValue=='Hide details')this.firstChild.nodeValue='Learn more';}
return false;}}
var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-9454150-1']);_gaq.push(['_trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();
