3 function _(s) { return s } // dummy function for gettext
5 $(document).ready(function() {
7 $('#header_search').tabs({
9 $('#header_search').find('div.residentsearch').not('.tabs-hide').find('input').eq(0).focus();
12 $(".close").click(function(){
18 YAHOO.util.Event.onContentReady("header", function () {
19 var oMoremenu = new YAHOO.widget.Menu("moremenu", { zindex: 2 });
21 function positionoMoremenu() {
22 oMoremenu.align("tl", "bl");
25 oMoremenu.subscribe("beforeShow", function () {
26 if (this.getRoot() == this) {
33 oMoremenu.cfg.setProperty("context", ["showmore", "tl", "bl"]);
35 function onShowMoreClick(p_oEvent) {
36 // Position and display the menu
39 // Stop propagation and prevent the default "click" behavior
40 YAHOO.util.Event.stopEvent(p_oEvent);
43 YAHOO.util.Event.addListener("showmore", "click", onShowMoreClick);
45 YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionoMoremenu);
48 YAHOO.util.Event.onContentReady("changelanguage", function () {
49 var oMenu = new YAHOO.widget.Menu("sublangs", { zindex: 2 });
51 function positionoMenu() {
52 oMenu.align("bl", "tl");
55 oMenu.subscribe("beforeShow", function () {
56 if (this.getRoot() == this) {
63 oMenu.cfg.setProperty("context", ["showlang", "bl", "tl"]);
65 function onYahooClick(p_oEvent) {
66 // Position and display the menu
69 // Stop propagation and prevent the default "click" behavior
70 YAHOO.util.Event.stopEvent(p_oEvent);
73 YAHOO.util.Event.addListener("showlang", "click", onYahooClick);
75 YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionoMenu);