function hideHelp() { unselected('menu_help'); unhilite('help_close'); hideElem('help'); } function showHelp() { if (!isDraggable()) hideAll(); else raiseWindow('help'); showElem('help'); selected('menu_help'); } function toggleHelp() { if (document.getElementById('help').style.display!='block') showHelp(); else hideHelp(); } function initHelp() { placeElem('help'); if (isDraggable()) getFile('help_menu_drag.html','help_top_drag','switchHelp()'); else getFile('help_menu_dock.html','help_top_drag','switchHelp()'); } function switchHelp() { showHelpInterface(); } function setAdminHelp(onoff) { if (onoff) getFile('help_admin_menu_dock.html','help_top_drag','showHelpInterface()'); else getFile('help_menu_dock.html','help_top_drag','showHelpInterface()'); } // Interface functions function showHelpInterface() { selected('help_interface'); unselected('help_search'); unselected('help_results'); unselected('help_admin'); unselected('help_data'); unselected('help_contact'); getFile('help_interface.html','help_body','if (isMac) { document.getElementById("mac_key").innerHTML="CMD"; }; fixShadow();'); } // Search functions function showHelpSearch() { unselected('help_interface'); selected('help_search'); unselected('help_results'); unselected('help_admin'); unselected('help_data'); unselected('help_contact'); getFile('help_search.html','help_body','fixShadow();'); } function toggleMenu() { if (isSelected('help_menuitem1')) { unselected('help_menuitem1'); selected('help_menuitem2'); } else { unselected('help_menuitem2'); selected('help_menuitem1'); } } function toggleOption() { if (isSelected('help_option1')) { unselected('help_option1'); selected('help_option2'); } else { unselected('help_option2'); selected('help_option1'); } } // Results functions function showHelpResults() { unselected('help_interface'); unselected('help_search'); selected('help_results'); unselected('help_admin'); unselected('help_data'); unselected('help_contact'); getFile('help_results.html','help_body','fixShadow();'); } // Admin functions function showHelpAdmin() { unselected('help_interface'); unselected('help_search'); unselected('help_results'); selected('help_admin'); unselected('help_data'); unselected('help_contact'); getFile('help_admin.html','help_body','fixShadow();'); } // Data functions function showHelpData() { unselected('help_interface'); unselected('help_search'); unselected('help_results'); unselected('help_admin'); selected('help_data'); unselected('help_contact'); getFile('help_data.php','help_body','fixShadow();'); } // Contact functions function showHelpContact() { unselected('help_interface'); unselected('help_search'); unselected('help_results'); unselected('help_admin'); unselected('help_data'); selected('help_contact'); getFile('help_contact.php','help_body','fixShadow();'); } // Send Email via contact form function doContactHelp() { var vars=new Array(); vars.push('c_name='+document.getElementById('c_name').value); vars.push('c_email='+document.getElementById('c_email').value); vars.push('c_text='+document.getElementById('c_text').value); runAJAX('help_contact.php',vars,'write','help_body'); }