;$(window).load(function () { var roadInit = new RoadUI.Init(); roadInit.calendar(); roadInit.dict(); roadInit.validate(); roadInit.select(); roadInit.combox(); roadInit.table(); roadInit.editor(); roadInit.text(); roadInit.textarea(); roadInit.button(); roadInit.textFocus(); }); ;RoadUI.Init = function () { this.validate = function () { new RoadUI.Validate().bind($("[validate]")); }; this.textFocus = function () { var $txt = $(''); try { $("body").prepend($txt); $txt.get(0).focus(); $txt.remove(); } catch (e) { } }; this.text = function () { new RoadUI.Text().init($(".mytext")); }; this.textarea = function () { new RoadUI.Textarea().init($(".mytextarea")); }; this.editor = function () { new RoadUI.Editor().init($(".myeditor")); }; this.calendar = function () { new RoadUI.Calendar().init($(".mycalendar")); }; this.select = function () { new RoadUI.Select().init($(".myselect")); }; this.combox = function () { new RoadUI.Combox().init($(".mycombox")); }; this.button = function () { new RoadUI.Button().init($(".mybutton")); }; this.dict = function () { new RoadUI.Dict().init($(".mydict,.mylrselect")); }; this.table = function () { $(".listtable tbody tr:even td").removeClass().addClass("listtabletrout"); $(".listtable tbody tr:odd td").removeClass().addClass("listtabletrover"); }; }