NDAWN={};NDAWN.init=function(){try{NDAWN.yahooLogger=new YAHOO.widget.LogReader();NDAWN.yahooLogger.show()}catch(a){}};NDAWN.log=function(a){if(YAHOO.widget.LogReader){YAHOO.log(a)}};NDAWN.showWaitPanel=function(a){if(!NDAWN.waitPanel){NDAWN.waitPanel=new YAHOO.widget.Panel("wait",{close:false,draggable:false,fixedcenter:true,modal:true,visible:false});NDAWN.waitPanel.setBody('<img src="/activity.gif" />')}if(a){NDAWN.waitPanel.setHeader(a)}NDAWN.waitPanel.render(document.body);NDAWN.waitPanel.show()};NDAWN.hideWaitPanel=function(){if(NDAWN.waitPanel){NDAWN.waitPanel.hide()}};NDAWN.preloadImages=function(){for(var a=0;a<arguments.length;++a){$("<img>").attr("src",arguments[a])}};NDAWN.getKeys=function(a){var c=[];for(var b in a){c.push(b)}return c};NDAWN.setDebug=function(){$.ajax({type:"GET",url:"/admin-debug",error:function(c,b,a){alert("error: "+c.status+": "+b)},success:function(a){window.location.reload(false)}})};NDAWN.arrayIndexOf=function(a,c){var b=0;for(var d in a){if(a[d]==c){return b}++b}return -1};NDAWN.clearDebug=function(){document.cookie="debug=; expires=Mon, 1 Jan 1900 00:00:00 UTC; path=/";window.location.reload(false)};NDAWN.fpLinkMouseOut=function(a){a.style.color="black";a.style.backgroundColor="#fff"};NDAWN.fpLinkMouseOver=function(a){a.style.color="white";a.style.backgroundColor="#293d98"};NDAWN.initResetPasswordForm=function(){document.getElementById("name").focus()};NDAWN.initLogInForm=NDAWN.initResetPasswordForm;NDAWN.initSignUpForm=NDAWN.initResetPasswordForm;NDAWN.initAccountForm=function(){document.getElementById("password").focus()};function selectAll(a){a.options[0].selected=false;for(i=a.options.length-1;i>=0;--i){a.options[i].selected=true}}function selectAllVariables(){if(document.getElementById("variable")!=null){selectAll(document.getElementById("variable"))}else{alert("internal error: no variable")}}function selectAllStations(){selectAll(document.forms[0].station)}function submit(a){document.forms[0].quick_pick.value=a;document.forms[0].submit()};