function hideTab(A,B){if(undefined!=$(A)){$(A).style.display="none";$(A+"Tab").src=B+"/tab_"+A+"_off.gif"}}function showTab(A,B){var C=$(A);if(C!=null){C.style.display="block";$(A+"Tab").src=B+"/tab_"+A+".gif"}}function switchTo(C,A,B){var D=document.getElementById("imageUrl").value;if(C==panes[0]){hideTab(panes[1],D);hideTab(panes[2],D);hideTab(panes[3],D);showTab(panes[0],D)}else{if(C==panes[1]){hideTab(panes[0],D);hideTab(panes[2],D);hideTab(panes[3],D);showTab(panes[1],D)}else{if(C==panes[2]){hideTab(panes[0],D);hideTab(panes[1],D);hideTab(panes[3],D);showTab(panes[2],D)}else{if(C==panes[3]){hideTab(panes[0],D);hideTab(panes[1],D);hideTab(panes[2],D);showTab(panes[3],D)}}}}if(A!=null){A(C)}}function fetchMetrics(){new Ajax.Updater("metrics_section","Metrics.action",{parameters:{key:$F("researcherPk")}})}function fetchOtherResearcherMetrics(){new Ajax.Updater("metrics_section","Metrics.action",{parameters:{key:$F("researcherPk"),publicProfile:true}})}function fetchPublications(){new Ajax.Updater("institute_section","InstituteUploadedPublications.action",{parameters:{key:$F("researcherPk")}})}function fetchManagePublications(){eval("window.location = 'ManagePublications.action'")};
