$(function(){initExternalLinks();$(".printPage").click(function(){printPage();return false});$(".bookmark").click(function(){fnAddBookmark($(this).attr("href"));return false});initTopnavLinks()});function initTopnavLinks(){var a="subOpen";$(".topNav li div").hover(function(){$(this).prev().addClass(a)},function(){$(this).prev().removeClass(a)});$(".topNav li a:not(li div ul li a):not(.topNav li.topNavFirst a)").click(function(){return false})}function fnAddBookmark(a){var b=document.title;if(window.sidebar){window.sidebar.addPanel(b,a,"")}else{if(document.all){window.external.AddFavorite(a,b)}else{if(window.opera&&window.print){}}}}function fnTrapKBDoNothingOnReturn(a){if(document.all){if(a.keyCode==13){a.returnValue=false;a.cancel=true}}else{if(document.getElementById){if(a.which==13){a.returnValue=false;a.cancel=true}}else{if(document.layers){if(a.which==13){a.returnValue=false;a.cancel=true}}}}}function fnTrapKBSubmitForm(a){if(document.all){if(a.keyCode==13){a.returnValue=true;a.cancel=true}}else{if(document.getElementById){if(a.which==13){a.returnValue=true;a.cancel=true}}else{if(document.layers){if(a.which==13){a.returnValue=true;a.cancel=true}}}}}function ConfirmNotBlank(b){var a=$("#"+b).val();if(a.length==0||a=="Enter search text"||a=="Search the site"){alert("Please enter a search term");return false}else{return true}}function ClearText(a){var b=document.getElementById(a);b.value=""}function ResetText(a,c){var b=document.getElementById(a);if(b.value==""){b.value=c}}function initExternalLinks(){$("a").each(function(a){var b=$(this);if(b.attr("href")&&b.attr("rel")=="external"){b.attr("target","_blank")}})}function printPage(){print()}function breakOutOfFrame(){if(top.location!=location){top.location.href=document.location.href}};