function setupNavigation() { jQuery('ul#nav li').click( function() { window.location = jQuery('a', this).attr('href'); }); } /**/ function popupWorkerProfile(path) { /**/ return popupProfile(path, "fTWProfile", 530, 600); } function popupEmployerProfile(path, event) { cancelBubble(event); /**/ return popupProfile(path, "fTEProfile", 530, 500); } function popupProfile(url, windowName, width, height) { var params = "resizable=yes, width=" + width + ", height=" + height + ", scrollbars=yes, menubar=yes, toolbar=no, directories=no, location=no, status=no"; return popup(url, windowName, params); } function popupMap(url) { var params = "resizable=yes, width=800, height=600, scrollbars=yes, menubar=yes, toolbar=yes, directories=no, location=yes, status=yes"; return popup(url, 'ftMap', params); } function popupWindow(url, windowName) { var params = "resizable=yes, width=800, height=600, scrollbars=yes, menubar=yes, toolbar=yes, directories=no, location=yes, status=yes"; return popup(url, windowName, params); } function popupHelp(userType, topic, section) { var params = "resizable=yes, width=325, height=450, scrollbars=yes, menubar=no, toolbar=no, directories=yes, location=no, status=yes"; /**/ var url = "/help/helpviewer.php?user=" + userType + "&topic=" + topic + "§ion=" + section + "#" + section; return popup(url, 'ftHelp', params); } function popup(url, windowName, params) { var w = window.open(url, windowName, params); w.focus(); return false; } /**/ function cancelBubble(e) { if (!e) { e = window.event; } e.cancelBubble = true; if (e.stopPropagation) { e.stopPropagation(); } } function toggleDisplay(id, source) { var obj = document.getElementById(id); obj.style.display = (obj.style.display == "none") ? "" : "none"; if (source) { source.innerHTML = (source.innerHTML == "hide") ? "show" : "hide"; } return false; } /**/ function setCaretTo(obj, pos) { if(obj.createTextRange) { var range = obj.createTextRange(); range.move('character', pos); range.select(); } else if(obj.selectionStart) { obj.focus(); obj.setSelectionRange(pos, pos); } }