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                                                    |
\* ----------------------------------------------------------------------------*/

useUOM  = 'M';
showUOM = true;
clientrawFile = '../script/clientraw.php';
MultilingualSystem = true; // if false activates translation below

reloadTime  = 10000; // can not be less than 5000 (5 sec)
maxupdates  = 100;
showRefresh = true;

flashcolor = '#999999';
flashred   = '#FF0000';
flashtime  = 400;


imgDir = '../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.


//------------------------------------------------------------------------------
// STICKER ICONS: optional settings for the current conditions graphic for Anole's wxsticker icon.
// tag: "ajaxconditionicon"
// e.g. graphic name: "./ajax-images/icon/0/day_partly_cloudy.jpg"
wxIconSet0 =
   {src    : imgDir+"icon/0/#PIC#.gif" // where #PIC# will = picname from table in ajax_getIconName0() function
   ,width  : 25 ,height: 25 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style  : ""  // eg. "border: 2px solid silver"
   ,align  : ""  // [ left | right | top | bottom | middle | texttop | absbottom | absmiddle ]
   ,useName: 0   // must be 0 for this icon set ... Anole's icon nameing convention ... see ajax_getIconName0()
   };


//------------------------------------------------------------------------------
// DASHBOARD ICONS: optional settings for current conditions graphic for dashboard
// tag: "ajaxconditionicon2"
// .... grab the animated icons for set 2 here: http://www.bashewa.com/downloads/bws-icons-current.zip

// Specify the "wxIconSet" to use further down below ... at the end of this section
// and set up the corresponding set below.

// NOTE: Do not delete the #PIC# part in the "src" settings.

// 1: NWS icons (55x58)
//    e.g. graphic name: "./ajax-images/bkn.gif"
wxIconSet1 =
   {src    : imgDir+"ajax-images/#PIC#.jpg" // where #PIC# will = picname from table in ajax_getIconName1() function
   ,width  : 55 ,height: 58 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style  : "padding: 1px; border: 1px #cccccc solid;"  // 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())
   };

// 2: Bashewa animated icons (75x60)
//    e.g. graphic name: "./ajax-images/icon/2/2-bkn.gif"
wxIconSet2 =
   {src    : imgDir+"ajax-images/2/#PIC#.gif" // where #PIC# will = picname from table in ajax_getIconName2() function
   ,width  : 75 ,height: 60 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style  : ""  // eg. "border: 2px solid silver"
   ,align  : ""  // [ left | right | top | bottom | middle | texttop | absbottom | absmiddle ]
   ,useName: 2   // must be 2 for this icon set ... Bashewa.com  icon nameing convention ... see ajax_getIconName2())
   };

// 3: Your own icons (any size)
//    e.g. graphic name: "./ajax-images/icon/3/bkn.gif"
wxIconSet3 =
   {src    : imgDir+"icon/3/#PIC#.jpg" // where #PIC# will = picname from table specified in wxIconSet3.useName
   ,width  : 75 ,height: 60 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style  : ""  // eg. "border: 2px solid silver"
   ,align  : ""  // [ left | right | top | bottom | middle | texttop | absbottom | absmiddle ]
   ,useName: 1   // [ 0| 1 | 2 ] function for getting icon names ...
   };            //              0 = Anole's icon names ....... see ajax_getIconName0()
                 //              1 = NWS icon names ........... see ajax_getIconName1()
                 //              2 = Bashewa.com icon names ... see ajax_getIconName2()
// 4: You can add more icon sets here

// D: Dynamic generated icon set (170x127) ... NOT IMPLEMENTED
//    ... you'll need: http://www.bashewa.com/download-dynamic-icon.php
wxIconSetD =
   {src    : "./dynamic-icon.php" // path and script for dynamic conditions image (optional)
   ,width  : 170 ,height: 127 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style  : "border: 2px solid silver;"
   ,align  : ""
   ,useName: 9 // must be 9 for generating dynamic icons
   };

wxIconSet = wxIconSet1; // choose from an icon set above that you want to use.
                        // If we had a uniform icon nameing convention the above would not be necessary.

//------------------------------------------------------------------------------
// WIND ROSE: optional settings for the Wind Rose graphic
// tag: "ajaxwindiconwr"
// e.g. graphic name: "./ajax-images/wr-SSE.gif"  or  "./ajax-images/wr-nl-SSE.gif"
// .... grab the wind rose icons here: http://www.bashewa.com/downloads/bws-icons-wind.zip
wrImg =
   {src   : imgDir+"ajax-images/wind/wr-#DIR#.gif"  // where #DIR# will = wind dir (e.g. NNW), #LANG# = wrImg.lang
   ,lang  : ""     // with trailing dash (e.g. "nl-" will result in graphic name: "./ajax-images/wind/wr-nl-SSE.gif")
   ,calm  : "calm" // substitution for #DIR# (e.g "wr-calm.gif") ... specify "" if not to be shown or not available
   ,width : 80 ,height: 80 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style : ""
   ,align : "" // [ left | right | top | bottom | middle | texttop | absbottom | absmiddle ]
   };


//------------------------------------------------------------------------------
// UV: optional settings for the UV graphic
// tag: "ajaxuvimg"
// e.g. graphic name: "./ajax-images/uv/1/uv12.gif"
// .... grab UV pics here: http://www.bashewa.com/download/bws-icons-uv.zip
uvImg =
   {src   : imgDir+"uv/1/uv#INDEX#.gif" // where #INDEX# will = UV index (0 to 11)
   ,width : 34 ,height: 65 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style : ""
   ,align : ""
   };


//------------------------------------------------------------------------------
// MOON: optional settings for the moon phase graphic
// tag: "ajaxmoonimg"
// e.g. graphic name: "./ajax-images/moon/w/NH-moon07.gif"
// .... grab the Moon images here: http://www.bashewa.com/downloads/bws-icons-moon.zip
moonImg =
   {src   : imgDir+"moon/#BG#/#NS#-moon#AGE#.gif" // #BG# = [ w | b ] from moonImg.bg, #NS# = [ NH | SH ] from latitude, #AGE# = 2 digit moonage (0 to 28) from getMoonInfo
   ,bg    : "w" // [ w | b ] moon background (w=white, b=black)
   ,width : 50 ,height: 50 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style : ""
   ,align : ""
   };


//------------------------------------------------------------------------------
// FIRE INDEX: optional setting for the fire risk graphic
// tag: "ajaxfireimg"
// e.g. graphic name: "./ajax-images/fire/fire3.gif"
// .... grab the FWI icons here: http://www.bashewa.com/downloads/bws-icons-fire.zip
fireImg =
   {src   : imgDir+"fwi/fire-#INDEX#.gif" // where #INDEX# will = fire index (0=very low, 1=low, 2=moderate, 3=high, 4=extreme) from clientraw
   ,width : 50 ,height: 50 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style : ""  // border: 2px solid silver;
   ,align : ""
   };


//------------------------------------------------------------------------------
// WEBCAM IMAGE: optional setting for the webcam graphic
// tag: "ajaxwebcamimg"
// e.g. picture name: "./ajax-images/webcam/snap00.jpg"
webcamUpdate =  2; // Webcam update interval in minutes (set to 0 for no updates i.e. visitor must reload page for updates)
swapIconWithWebcam = false; // swap current conditions icon (tag "ajaxconditionicon2") with webcam image during day and night unless useCamAtNight=false;
useCamAtNight = false; // use current conditions icon at night time instead of webcam image
delayDayNight = 60;    // day starts given minutes before sunrise and night starts given min after sunset - for night icon switch
webcamImg =
   {src   : "/wxdata/webcam/webcamimage-temp.jpg" // full path and image name of your current webcam picture
   ,srcNgt: "/wxdata/webcam/webcamimage-temp.jpg" // full path and image name of your current nightcam picture (after/before "delayDayNight")
   ,width : 240 ,height: 180,hspace: 0 ,vspace: 0 ,border: 0
   ,style : ""
   ,align : ""
   };


//------------------------------------------------------------------------------
// DYNAMIC SCRIPT IMAGES                                                       .
//------------------------------------------------------------------------------

// THERMOMETER: optional setting for the dynamic thermometer graphic
// tag: "ajaxthermometer"
// ... you'll need the new thermometer.php script from www.bashewa.com for UOM switching.
// ... read here  : http://www.weather-watch.com/smf/index.php/topic,39180.0.html
// ... get it here: http://www.bashewa.com/download-thermometer.php
thermometerImg =
   {src   : "./thermometer.php" // path and script for dynamic thermometer PNG image (optional)
   ,width : 54 ,height: 170 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style : ""
   ,align : ""
   };


//------------------------------------------------------------------------------
// CLOUD BASE: optional setting for the dynamic cloud height graphic
// tag: "ajaxcloudheightimg"
// ... you'll need the cloud-base.php script from www.bashewa.com
// ... get it here: http://www.bashewa.com/download-cloud-base.php
cloudImg =
   {src   : "./cloud-base.php" // path and script for dynamic cloud height image (optional)
   ,width : 100 ,height: 200 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style : "border: 2px solid silver;"
   ,align : ""
   };


//------------------------------------------------------------------------------
// DYNAMIC CURRENT ICON: optional setting for the dynamic current conditions graphic
// tag: "ajaxconditionicon2"
// ... you'll need the dynamic-icon.php script from www.bashewa.com
// ... get it here: (NOT YET IMPLEMENTED)
// See wxIconSetD above in DASHBOARD ICONS.

menywxImg =
   {src   : "/images/wx/na.png" // path and script for dynamic cloud height image (optional)
   ,width : 128 ,height: 128 ,hspace: 0 ,vspace: 0 ,border: 0
   ,style : ""
   ,align : ""
   };



//------------------------------------------------------------------------------
// UNITS-OF-MEASURE / UOM (optional)
// ... change to your desired UOM's and decimal places
//----------------------------------------------------------------------
// ENGLISH (Imperial)
imperialUOM =
   {Temp: '&deg;F' // [ &dec;C | &dec;F ] ......................... Temp
   ,Wind: 'mph'    // [ kts | mph | kph  | m/s  ] ................. Wind
   ,Baro: 'inHg'   // [ hPa | mb  | inHg | mmHg ] ................. Baro
   ,Rain: 'in'     // [ mm  | in  ] ............................... Rain
   ,Snow: 'in'     // [ cm  | in  ] ............................... Snow
   ,Alti: 'ft'     // [ m   | ft  ] ........................... Altitude
   ,Dist: 'miles'  // [ m   | km  | miles] .................... Distance
   ,Deg : '&deg;'  // [ deg | &deg; ] ..................... Direction/UV
   ,dateFmt: "m/j/Y"  // 04/26/2009 ... same format as "date" function in php ( eg. for US use "m/j/Y", for GB use "d/M/Y" )
   ,timeFmt: "g:i:s a" // 3:27:01 pm ... same format as "date" function in php ( for 24h clock use "H:i:s" )
   ,timeHM : "g:i a"   // 3:27 pm ...... same format as "date" function in php ( for 24h clock use "H:i" )
   };
imperialDP = // decimal places
   { Temp:1 ,Wind:1 ,Baro:2 ,Rain:2 ,Snow:1 ,Alti:0 ,Dist:2 ,UV:0 };
//----------------------------------------------------------------------
// METRIC
metricUOM =
   {Temp: '&deg;C' // [ &dec;C | &dec;F ] ..........................Temp
   ,Wind: 'm/s'    // [ kts | mph | kph  | m/s  ] ................. Wind
   ,Baro: 'hPa'    // [ hPa | mb  | inHg | mmHg ] ................. Baro
   ,Rain: 'mm'     // [ mm  | in  ] ............................... Rain
   ,Snow: 'cm'     // [ cm  | in  ] ............................... Snow
   ,Alti: 'm'      // [ m   | ft  ] ........................... Altitude
   ,Dist: 'km'     // [ m   | km  | miles] .................... Distance
   ,Deg : '&deg;'  // [ deg | &deg; ] ........................ Direction
   ,dateFmt: "Y-m-d" // same format as "date" function in php (eg. for DE use "j.M.Y", for NL use "j-M-Y)
   ,timeFmt: "H:i:s" // 15:27:01 ...same format as "date" function in php  ( for 12h clock use "g:i:s a" )
   ,timeHM : "H:i"   // 15:27 ......same format as "date" function in php  ( for 12h clock use "g:i a" )
   };
metricDP = // decimal places
   { Temp:1 ,Wind:1 ,Baro:1 ,Rain:1 ,Snow:1 ,Alti:0 ,Dist:2 ,UV:0 };

// =============================================================================
//                      E N D   of   S E T T I N G S                           .
// =============================================================================
}; // end of loadSettings

SettingsVersion = 9.00; // do not alter (this is needed to check compatibility)
gotSettings = true;     // must be true for implementation of above settings


