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 = false; // if false activates translation below

update.reloadTime  = 5000; // can not be less than 5000 (5 sec)
update.maxupdates  = 0;
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.


wxIcon.src    = imgDir+"{PIC}.jpg"; // replacements: {PIC}=[skc|nskc..sunset], {NR}=[0..37], {0NR}=[00..37],
wxIcon.width  = 55;
wxIcon.height = 58;
wxIcon.useName= 1; // 0=Anole ,1=NWS, 2=YoWindow, 9=Dynamic
//wxIcon.hspace = 0;
//wxIcon.vspace = 0;
//wxIcon.border = 0;
//wxIcon.style  = "";
//wxIcon.align  = "";
//wxIcon.useTag = "ajaxconditionicon2";


// 1: NWS icons (55x58)
wxIconSet1 =
   {src    : imgDir+"#PIC#.jpg" // where #PIC# will be replaced by picname from table in ajax_getIconName1() function
   ,width  : 55 ,height: 58 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style  : ""  // eg. "border: 2px solid silver"
   ,align  : ""  // [ left | right | top | bottom | middle | texttop | absbottom | absmiddle ]
   ,useName: 1   // must be 1 for this icon set ... NWS icon nameing convention ... see ajax_getIconName1())
   };

wrImg.src     = imgDir+"wr-{DIR}.gif"; // replacements: {LANG}=[af-..sv-}, {DIR}=[N..NNW]
wrImg.width   = 58;
wrImg.height  = 58;
//wrImg.hspace  = 0;
//wrImg.vspace  = 0;
//wrImg.border  = 0;
//wrImg.style   = "";
//wrImg.align   = "";
//wrImg.lang    = "";     // {LANG} eg. 'nl' i.e. initial icon set
//wrImg.calm    = "calm"; // {DIR}
//wrImg.xlate   = true;   // translate wind direction for icon names (multilingual system)
wrImg.useTag  = "ajaxwindiconwr";


fireImg.src   = imgDir+"Fire{IMGNR}.png"; // replacements: {IMGNR}=[0|16|25|31|32] or your specification below
fireImg.width = 50;
fireImg.height= 50;
//fireImg.hspace= 0;
//fireImg.vspace= 0;
//fireImg.border= 0;
//fireImg.style = "border: 2px solid silver;";
//fireImg.align = "";
fireImg.imgNrs[0]= "0"; // {IMGNR} = very low
fireImg.imgNrs[1]="16"; // {IMGNR} = low
fireImg.imgNrs[2]="25"; // {IMGNR} = moderate
fireImg.imgNrs[3]="31"; // {IMGNR} = high
fireImg.imgNrs[4]="32"; // {IMGNR} = extreem
fireImg.useTag   = "ajaxfireimg";


thermometerImg.src   = "./thermometer.php";
thermometerImg.width = 54;
thermometerImg.height= 170;
//thermometerImg.hspace = 0;
//thermometerImg.vspace = 0;
//thermometerImg.border = 0;
//thermometerImg.style  = "border: 2px solid silver;";
//thermometerImg.align  = "";
thermometerImg.useTag = "ajaxthermometer";


cloudImg.src    = "./cloud-base.php";
cloudImg.width  = 100;
cloudImg.height = 200
//cloudImg.hspace = 0;
//cloudImg.vspace = 0;
//cloudImg.border = 0;
//cloudImg.style  = "border: 2px solid silver;";
//cloudImg.align  = "";
//cloudImg.stationAlt = 0;
//cloudImg.useTag = "ajaxcloudheightimg";


uvImg.src     = imgDir+"UV{INDEX}.gif"; // replacements: {INDEX}=[0..18]
uvImg.width   = 34;
uvImg.height  = 65;
//uvImg.hspace  = 0;
//uvImg.vspace  = 0;
//uvImg.border  = 0;
//uvImg.style   = "";
//uvImg.align   = "";
uvImg.useTag  = "ajaxuvimg";


moonImg.src   = imgDir+"moon{AGE}.gif"; // replacements: {BG}=[w=white|b=black], {NS}=[NH|SH], {AGE}=[00..27]
moonImg.bg    = "b"; // {BG} = [ w | b ]
moonImg.width = 50;
moonImg.height= 50;
//moonImg.hspace= 0;
//moonImg.vspace= 0;
//moonImg.border= 0;
//moonImg.style = "";
//moonImg.align = "";
moonImg.useTag= "ajaxmoonimg";


webcamImg.src   ="./VidCap.jpg";
webcamImg.srcNgt="./VidCap.jpg";
webcamImg.width = 275;
webcamImg.height= 200;
//webcamImg.hspace= 0;
//webcamImg.vspace= 0;
webcamImg.border= 1;
webcamImg.style = "border: 2px solid silver;";
//webcamImg.align = "";
webcamImg.webcamUpdate = 5; // minutes
webcamImg.swapIconWithWebcam = true;
webcamImg.useCamAtNight = true;
//webcamImg.delayDayNight = 15; // wait after sunrise / before sunset
webcamImg.useTag  = "ajaxwebcamimg";


//tideImg.src     = "./tides.php";
//tideImg.width   = 150;
//tideImg.height  = 150;
//tideImg.hspace  = 0;
//tideImg.vspace  = 0;
//tideImg.border  = 0;
//tideImg.style   = "";
//tideImg.align   = "";
//tideImg.interval = 5; // image update interval in minutes (0=no updates)
//tideImg.useTag  = "ajaxtideimg";



// 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   = 1;



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


