var CFG_IMG_CONTINUE_DISABLED="/images/buttons/submitted_disabled.gif";var bSubmitted=false;var imgSubmitDisabled=new Image;imgSubmitDisabled.src=CFG_IMG_CONTINUE_DISABLED;function MarkSubmitted(A){$("#"+A).attr("src",CFG_IMG_CONTINUE_DISABLED)}function clickSubmit(A){if(A==true){return false}else{return true}}$(document).ready(function(){var A="/images/buttons/btn_expanded.gif";var B="/images/buttons/btn_collapsed.gif";$("#quicksearch").submit(function(D){D.preventDefault();var C=jQuery.trim($("input#keyword").val());if(C.length==0){return false}else{C=C.replace(/\s/g,"+");C=C.replace(/\&/g,"%26");C=C.replace(/\?/g,"");C=C.replace(/[\/]/g,"~");location.href="/search/"+C+"/";return false}});$(".sidenavswitcher").click(function(D){var G=this.id;var E=$("#"+G+" > img.sidenavswitcherimg");var C=($(E).attr("alt")=="+")?false:true;var F=G.substr("switcher_".length)+"content";if(C){$(E).attr("alt","+").attr("title","Show navigation").attr("src",B);$("#"+F).hide("slow")}else{$(E).attr("alt","-").attr("title","Hide navigation").attr("src",A);$("#"+F).show("slow")}})});
// validate.js
function validate_focusElement(A,C){var B=document.forms[A].elements[C];B.focus();B.select()}function validate_focusElementSelect(A,C){var B=document.forms[A].elements[C];B.focus()}function validate_isNotEmpty(A){var B=A.value;if(B==null||B.length==0){alert("Please fill in the required field.");setTimeout("validate_focusElement('"+A.form.name+"', '"+A.name+"')",0);return false}else{return true}}function validate_isNotBad(B,A){var C=B.value;if(C==A){alert("Unacceptable value.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}else{return true}}function validate_isNumber(B){var D=B.value;var C=false;var E=0;D=D.toString();for(var A=0;A<D.length;A++){E=D.charAt(A).charCodeAt(0);if(E==45){if(A==0){continue}else{alert("Only the first character may be a minus sign.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}}if(E==46){if(!C){C=true;continue}else{alert("Only one decimal is allowed in a number.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}}if(E<48||E>57){alert("Enter only numbers into the field.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}}return true}function validate_isNumberInt(B){var C=B.value;var D=0;C=C.toString();for(var A=0;A<C.length;A++){D=C.charAt(A).charCodeAt(0);if(D<48||D>57){alert("Enter only numbers into the field.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}}return true}function validate_isLen16(A){var B=A.value;if(B.length!=16){alert("Entry does not contain the required 16 characters.");setTimeout("validate_focusElement('"+A.form.name+"', '"+A.name+"')",0);return false}else{return true}}function validate_isMinLen(B,A){var C=B.value;if(C.length<A){alert("Value must be at least "+A+" characters long.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}else{return true}}function validate_isEMailAddr(B){var D=B.value;D=D.toLowerCase();if(D.indexOf("@")>1){var E=D.substring(0,D.indexOf("@"));var C=D.substring(D.indexOf("@")+1,D.length);if(C.indexOf(".")==-1){alert("Verify the domain portion of the email address.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}for(var A=0;A<E.length;A++){oneChar=E.charAt(A).charCodeAt(0);if((A==0&&(oneChar==45||oneChar==46))||(A==E.length-1&&oneChar==46)){alert("Verify the user name portion of the email address.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}if(oneChar==45||oneChar==46||oneChar==95||(oneChar>47&&oneChar<58)||(oneChar>96&&oneChar<123)){continue}else{alert("Verify the user name portion of the email address.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}}for(A=0;A<C.length;A++){oneChar=C.charAt(A).charCodeAt(0);if((A==0&&(oneChar==45||oneChar==46))||((A==C.length-1||A==C.length-2)&&oneChar==46)){alert("Verify the domain portion of the email address.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}if(oneChar==45||oneChar==46||oneChar==95||(oneChar>47&&oneChar<58)||(oneChar>96&&oneChar<123)){continue}else{alert("Verify the domain portion of the email address.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}}return true}alert("The email address may not be formatted correctly. Please verify.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}function validate_isChosen(A){if(A.selectedIndex==0){alert("Please make a choice from the list.");setTimeout("validate_focusElementSelect('"+A.form.name+"', '"+A.name+"')",0);return false}else{return true}}function validate_isValidRadio(C){var B=false;for(var A=0;A<C.length;A++){if(C[A].checked){B=true}}if(B){return true}else{alert("Make a choice from the radio buttons.");return false}}function validate_comparePasswords(B,A){if(B.value!=A.value){alert("Passwords do not match. Please re-type passwords and try again.");setTimeout("validate_focusElement('"+B.form.name+"', '"+B.name+"')",0);return false}else{return true}};
	$(document).ready(function() {
	if ($(".tab_content").length > 0){
		$(".tab_content").hide();
		$("ul.tabs li:first").addClass("active").show();
		$(".tab_content:first").show();

		$("ul.tabs li").click(function() {
			$("ul.tabs li").removeClass("active"); 
			$(this).addClass("active");
			
			var activeTab = $(this).find("a").attr("href");
			$(".tab_content").hide();$(activeTab).show();
			return false;
		});
	}
	});



