function setViews(B,A){toggleView(B);toggleTagCloud(A)}function toggleView(C){var B=document.getElementById("ResultsView");var E=B.childNodes;for(i=0;i<E.length;i++){if(E[i].id==C){E[i].className="activesection"}else{E[i].className="hiddensection"}}var A=document.getElementById("TabList");var G=A.getElementsByTagName("LI");for(i=0;i<G.length;i++){if(G[i].id.substring(4)==C.substring(2)){G[i].className="selectedTab"}else{G[i].className="unselectedTab"}}var H=document.getElementById("Tabs");var F=H.getElementsByTagName("DIV");for(i=0;i<F.length;i++){if(F[i].id.substring(8)==C.substring(2)){F[i].className="activesection"}else{F[i].className="hiddensection"}}var D=document.getElementById("SortControls");if(C!="v_results"){D.className="hiddensection"}else{D.className="activesection"}}function toggleTagCloud(B){var A=document.getElementById("v_tags");var C=A.childNodes;for(i=0;i<C.length;i++){if(C[i].nodeName=="DIV"){if(C[i].id==B){C[i].className="activesection"}else{C[i].className="hiddensection"}}else{if(C[i].nodeName=="A"){if(C[i].id.substring(2)==B){C[i].className="activelink"}else{C[i].className="inactivelink"}}}}}function switchView(F,A){var D=window.location.search.substring(1);var E=D.split("&");var C="";for(var B=0;B<E.length;B++){var G=E[B].split("=");if(G[0]!=F){if(F!="view"||(F=="view"&&G[0]!="tcview")){C=C+G[0]+"="+G[1]+"&"}}}window.location=window.location.pathname+"?"+C+F+"="+A}function submitSearch(){if(document.searchForm.newNtt.value==""){alert("Please enter a search term")}else{if(document.searchForm.searchWithin!=null&&document.searchForm.searchWithin.checked){document.hiddenSearchForm.N.value=document.searchForm.N.value;document.hiddenSearchForm.Ntk.value="All";document.hiddenSearchForm.Ntx.value=document.searchForm.Ntx.value+"|"+document.searchForm.newNtx.value;document.hiddenSearchForm.Ntt.value=document.searchForm.Ntt.value+"|"+document.searchForm.newNtt.value}else{document.hiddenSearchForm.Ntk.value="All";document.hiddenSearchForm.Ntx.value=document.searchForm.newNtx.value;document.hiddenSearchForm.Ntt.value=document.searchForm.newNtt.value}document.hiddenSearchForm.submit()}}function submitOnEnter(A){if(A.keyCode==13){submitSearch();return false}else{return true}}function showNumRecords(A){location=document.recsPerPageForm.recsPerPage.options[A].value}function submitPostalCode(B,A){alert(B)}function lookupGeocode(A,B){alert(A)};
