/* Javascript used for rollover and dropdown navigation. Additional code is integrated below in 2 hidden DIV tags and the images are preloaded just below the body tag in a 3rd hidden DIV */ var timeoutID; var subnavCounselingHTML; var subnavResourcesHTML; var subnavHelpHTML; var subnavEmptyHTML = ''; function subnavSetup() { subnavHelpHTML = document.getElementById('subnavHelp').innerHTML; document.getElementById('subnavHelp').innerHTML = ''; subnavResourcesHTML = document.getElementById('subnavResources').innerHTML; document.getElementById('subnavResources').innerHTML = ''; subnavCounselingHTML = document.getElementById('subnavCounseling').innerHTML; document.getElementById('subnavCounseling').innerHTML = ''; subnavHideDelay(true); } function subnavSwap(content) { subnavHideDelay(true); document.getElementById('subnav').innerHTML = content; imgSwap('start','1a'); imgSwap('help','2a'); imgSwap('resources','3a'); imgSwap('counseling','4a'); } function subnavHideDelay(killCommand) { if (timeoutID != null && killCommand) { clearTimeout(timeoutID); } else { timeoutID = setTimeout("subnavHide()", 1000); } } function subnavHide() { document.getElementById('subnav').innerHTML = ''; imgSwap('help', '2a'); imgSwap('resources', '3a'); imgSwap('counseling', '4a'); } function imgSwap(target, src) { document.getElementById(target).src = '/images/nav_' + src + '.gif'; } function PrintableVersion(){ var Win=window.open('','Ranking','scrollbars=yes,menubar=yes,height=600,width=800'); Win.document.open(); Win.document.write("
print
"); Win.document.write("Printable Version"); Win.document.write(document.getElementById("maincontent").innerHTML); Win.document.write("
print
"); Win.document.close(); } function DisableEnter (field, event) { var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode; if (keyCode == 13) { return false; } else return true; } function mailpage() { var title = document.title.replace(String.fromCharCode(8211), "-"); mail_str = "mailto:?subject=Check out the " + title; mail_str += "&body=I thought you might be interested in the " + title; mail_str += ". You can view it at, " + location.href; location.href = mail_str; }