3 function _(s) { return s } // dummy function for gettext
5 $(document).ready(function() {
7 $('#header_search > ul').tabs().bind('show.ui-tabs', function(e, ui) { $('#header_search > div:not(.ui-tabs-hide)').find('input').eq(0).focus(); });
8 $(".close").click(function(){ window.close(); });
9 if($("#header_search #checkin_search")){
10 $.hotkeys.add('Alt+r',function (){ $("#header_search > ul").tabs("select","#checkin_search"); }); }
11 if($("#header_search #circ_search")){ $.hotkeys.add('Alt+u',function (){ $("#header_search > ul").tabs("select","#circ_search"); }); }
12 if($("#header_search #catalog_search")){ $.hotkeys.add('Alt+q',function (){ $("#header_search > ul").tabs("select","#catalog_search"); }); }
15 YAHOO.util.Event.onContentReady("header", function () {
16 var oMoremenu = new YAHOO.widget.Menu("moremenu", { zindex: 2 });
18 function positionoMoremenu() {
19 oMoremenu.align("tl", "bl");
22 oMoremenu.subscribe("beforeShow", function () {
23 if (this.getRoot() == this) {
30 oMoremenu.cfg.setProperty("context", ["showmore", "tl", "bl"]);
32 function onShowMoreClick(p_oEvent) {
33 // Position and display the menu
36 // Stop propagation and prevent the default "click" behavior
37 YAHOO.util.Event.stopEvent(p_oEvent);
40 YAHOO.util.Event.addListener("showmore", "click", onShowMoreClick);
42 YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionoMoremenu);
45 YAHOO.util.Event.onContentReady("changelanguage", function () {
46 var oMenu = new YAHOO.widget.Menu("sublangs", { zindex: 2 });
48 function positionoMenu() {
49 oMenu.align("bl", "tl");
52 oMenu.subscribe("beforeShow", function () {
53 if (this.getRoot() == this) {
60 oMenu.cfg.setProperty("context", ["showlang", "bl", "tl"]);
62 function onYahooClick(p_oEvent) {
63 // Position and display the menu
66 // Stop propagation and prevent the default "click" behavior
67 YAHOO.util.Event.stopEvent(p_oEvent);
70 YAHOO.util.Event.addListener("showlang", "click", onYahooClick);
72 YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionoMenu);