SettingsVersion = "9.11";
SettingsDate    = "19-Jan-2010";
function loadSettings () {
/* --------------------- ajaxWDwx.js Setup File -------------------------------*\
|  Uncomment those you need to change. All values are set to their defaults.    |
|  You only need to keep those you have changed. The rest can be deleted.       |
|  See how I've done it here: http://www.bashewa.com/ajaxWDwx-settings-bws.js   |
|  Read notes in ajaxWDwx.js                                                    |
\* ----------------------------------------------------------------------------*/
wxStation.problemNr= 0; // select problem from below
wxStation.problemMsg[0] = 'No problems';
wxStation.problemMsg[1] = '<b style="color:red">...your msg here...</b><br />...your msg here...<br />';
wxStation.problemMsg[2] = '<b style="color:red">Note: our station is currently out of order.</b><br />We hope to have it up and running by next week.<br />';
wxStation.problemMsg[3] = '<b style="color:red">Note: our anemometer is currently frozen.</b><br />Wind speed and direction may be affected.<br />';
wxStation.problemMsg[4] = '<b style="color:red">Note: our UV meter is currently out of order.</b><br />We hope to have it fixed in due cause.<br />';
//wxStation.stopUpdates = false;
//wxStation.showAlert   = false;
//wxStation.useTag      = "ajaxindicator"; // or "ajaxProblems" or whatever
// -----------------------------------------------------------------------------

useUOM  = 'E';
showUOM = true;
clientrawFile = './clientraw.txt';
MultilingualSystem = true; // if false activates translation below

update.reloadTime  = 5000; // can not be less than 5000 (5 sec)
update.maxupdates  = 36;
update.showRefresh = true;

flash.color = '#00CC00';
flash.red   = '#FF0000';
flash.time  = 2000;


imgDir = './ajax-images/';


// NOTE: do not delete any of the words enclosed in {} in the src parts eg. {PIC}
//       They'll get replaced by their corresponding values later in the script.


fireImg.src   = imgDir+"Fire{IMGNR}.png"; // replacements: {IMGNR}=[0|16|25|31|32] or your specification below
fireImg.width = 60;
fireImg.height= 65;

thermometerImg.src   = "./thermometer.php";
thermometerImg.width = 54;
thermometerImg.height= 170;

cloudImg.src    = "./cloud-base.php";
cloudImg.width  = 100;
cloudImg.height = 200


moonImg.src   = imgDir+"moon/{BG}/{NS}-moon{AGE}.gif"; // replacements: {BG}=[w=white|b=black], {NS}=[NH|SH], {AGE}=[00..27]
moonImg.bg    = "w"; // {BG} = [ w | b ]
moonImg.width = 50;
moonImg.height= 50;

webcamImg.src   = "./webcam/webcamimage-cached.jpg";

// ENGLISH UOM ---------------
imperialUOM.Temp = '&deg;F';
imperialUOM.Wind = 'mph';
imperialUOM.Baro = 'inHg';
imperialUOM.Rain = 'in';
imperialUOM.Snow = 'in';
imperialUOM.Alti = 'ft';
imperialUOM.Dist = 'miles';
imperialUOM.Deg  = '&deg;';
imperialUOM.dateFmt = "m/j/Y";
imperialUOM.timeFmt = "g:i:s a";
imperialUOM.timeHM  = "g:i a";

// English decimal places
imperialDP.Temp = 1;
imperialDP.Wind = 1;
imperialDP.Baro = 2;
imperialDP.Rain = 2;
imperialDP.Snow = 2;
imperialDP.Alti = 0;
imperialDP.Dist = 2;
imperialDP.UV   = 0;


// METRIC UOM --------------
metricUOM.Temp = '&deg;C';
metricUOM.Wind = 'kph';
metricUOM.Baro = 'hPa';
metricUOM.Rain = 'mm';
metricUOM.Snow = 'cm';
metricUOM.Alti = 'm';
metricUOM.Dist = 'km';
metricUOM.Deg  = '&deg;';
metricUOM.dateFmt = "j-M-Y";
metricUOM.timeFmt = "H:i:s";
metricUOM.timeHM  = "H:i";

// Metric decimal places
metricDP.Temp = 1;
metricDP.Wind = 1;
metricDP.Baro = 0;
metricDP.Rain = 1;
metricDP.Snow = 0;
metricDP.Alti = 0;
metricDP.Dist = 2;
metricDP.UV   = 0;

// -----------------------------------------------------------------------------
}; // end of loadSettings function
gotSettings = true; // must not be deleted and must stay true for implementation of above settings

