var type=false;var input=false;var linkAnchor=false;function getData(c,a,b){type=c;input=a;linkAnchor=b;if(Ajax==false){Event.observe(window,"load",performBrowseRequest,false)}else{performBrowseRequest()}}function performBrowseRequest(){if(!input){return false}if($("employerSection")){$("employerSection").show()}if($("stateSection")){$("stateSection").show()}changeElement="postload";if(type=="employer"){sendURL="/includes/grabBrowseContent.php?type=employer&letter="+input;changeElement="employerSection"}else{sendURL="/includes/grabBrowseContent.php?type=state&state="+input;changeElement="stateSection"}if(linkAnchor.href){linkAnchor.href="#"+type+"-"+input}$(changeElement).update('<img src="/images/loading.gif" style="border:0;display:block;margin:0 auto;" alt="Loading"/>');var a=new Ajax.Request(sendURL,{method:"post",asynchronous:true,onSuccess:function(b){result=b.responseText;$(type+"Section").setStyle({visibility:"visible"});$(changeElement).update(result);new Effect.Highlight(changeElement)}});if(!linkAnchor){return false}else{window.location.hash=type+"-"+input;prevHash=window.location.hash;return false}};