/** * @author henry.postulart */ br.myProfile = {}; br.myProfile.container = {}; br.myProfile.init = function() { var tabView = new YAHOO.widget.TabView('profileMainTabs'); tabView.addListener('contentReady', function(t) { var t = queryString("tab"); if (t != "false") { t = parseInt(t, 10); try { tabView.set( "activeIndex", t ); } catch(e){//NOP} } } }) }; function init() { br.myProfile.container.module1 = new YAHOO.widget.Module("module1"); br.myProfile.container.show1 = new YAHOO.widget.Module("show1"); br.myProfile.container.hide1 = new YAHOO.widget.Module("hide1"); br.myProfile.container.module1.render(); br.myProfile.container.module1.hide(); br.myProfile.container.show1.render(); br.myProfile.container.hide1.render(); br.myProfile.container.hide1.hide(); $E.addListener("show1", "click", br.myProfile.container.module1.show,br.myProfile.container.module1, true); $E.addListener("show1", "click", br.myProfile.container.hide1.show,br.myProfile.container.hide1, true); $E.addListener("show1", "click", br.myProfile.container.show1.hide,br.myProfile.container.show1, true); $E.addListener("hide1", "click", br.myProfile.container.module1.hide, br.myProfile.container.module1, true); $E.addListener("hide1", "click", br.myProfile.container.show1.show,br.myProfile.container.show1, true); $E.addListener("hide1", "click", br.myProfile.container.hide1.hide,br.myProfile.container.hide1, true); br.myProfile.container.module2 = new YAHOO.widget.Module("module2"); br.myProfile.container.show2 = new YAHOO.widget.Module("show2"); br.myProfile.container.hide2 = new YAHOO.widget.Module("hide2"); br.myProfile.container.module2.render(); br.myProfile.container.module2.hide(); br.myProfile.container.show2.render(); br.myProfile.container.hide2.render(); br.myProfile.container.hide2.hide(); $E.addListener("show2", "click", br.myProfile.container.module2.show,br.myProfile.container.module2, true); $E.addListener("show2", "click", br.myProfile.container.hide2.show,br.myProfile.container.hide2, true); $E.addListener("show2", "click", br.myProfile.container.show2.hide,br.myProfile.container.show2, true); $E.addListener("hide2", "click", br.myProfile.container.module2.hide, br.myProfile.container.module2, true); $E.addListener("hide2", "click", br.myProfile.container.show2.show,br.myProfile.container.show2, true); $E.addListener("hide2", "click", br.myProfile.container.hide2.hide,br.myProfile.container.hide2, true); br.myProfile.container.module3 = new YAHOO.widget.Module("module3"); br.myProfile.container.show3 = new YAHOO.widget.Module("show3"); br.myProfile.container.hide3 = new YAHOO.widget.Module("hide3"); br.myProfile.container.module3.render(); br.myProfile.container.module3.hide(); br.myProfile.container.show3.render(); br.myProfile.container.hide3.render(); br.myProfile.container.hide3.hide(); $E.addListener("show3", "click", br.myProfile.container.module3.show,br.myProfile.container.module3, true); $E.addListener("show3", "click", br.myProfile.container.hide3.show,br.myProfile.container.hide3, true); $E.addListener("show3", "click", br.myProfile.container.show3.hide,br.myProfile.container.show3, true); $E.addListener("hide3", "click", br.myProfile.container.module3.hide, br.myProfile.container.module3, true); $E.addListener("hide3", "click", br.myProfile.container.show3.show,br.myProfile.container.show3, true); $E.addListener("hide3", "click", br.myProfile.container.hide3.hide,br.myProfile.container.hide3, true); } $E.addListener(window, "load", init); $E.addListener(window, "load", br.myProfile.init);