// ajaxWDwx.js setup for Bashewa Weather Station: www.bashewa.com

SettingsVersion = 9.09;
SettingsDate = "17-Jan-2009";
function loadSettings () {
wxStation.problemNr= 0;
wxStation.problemMsg[1] = '<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 />';
//------------------------------------------------------------------------------

  clientrawFile = 'clientraw.txt';

  metricUOM.Wind = 'kph';

  wxIcon  .src    = imgDir+"{PIC}.jpg"; // replacements: {PIC}=[skc|nskc..sunset], {NR}=[0..37], {0NR}=[00..37],
  wxIcon  .width  = 87;
  wxIcon  .height = 87;
  //wxIcon  .style  = "border: 2px solid silver;";
  wxIcon.useName= 1; // 0=Anole ,1=NWS, 2=yowindow, 9=Dynamic
  wxIcon.yoId   = '3050526';
  wxIcon.yoName = 'Baranyimet';
  wxIcon.yoXml  = 'yowindow-xml.php';
  wxIcon.yoTemp = 'true';
  wxIcon.yoTime = '24'; // [12|24]
  wxIcon.yoHost = 'http://'+window.location.host+'/';
  wxIcon.yoHTML =
   '<div style="width:'+wxIcon.width+'px; height: '+wxIcon.height+'px; overflow:hidden; border: 2px solid silver;">'
  +'<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" '
  +'width="'+wxIcon.width+'" '
  +'height="'+(wxIcon.height+13)+'">'
  +'<param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf"/>'
  +'<param name="allowfullscreen" value="true"/>'
  +'<param name="wmode" value="opaque"/>'
  +'<param name="bgcolor" value="#FFFFFF"/>'
  +'<param name="flashvars" value="'
  +'location_id=gn:'+wxIcon.yoId
  +'&amp;location_name='+wxIcon.yoName
  +'&amp;current_weather_url='+wxIcon.yoHost+wxIcon.yoXml
  +'&amp;time_format=12'
  +'&amp;unit_system='+(useUOM=='M'?'metric':'us')
  +'&amp;background=#FFFFFF'
  +'&amp;mini_temperature='+wxIcon.yoTemp
  +'&amp;mini_time=false'
  +'&amp;mini_locationBar=true'
  +'&amp;mini_momentBar=true'
  +'"/>'
  +'<div><br />This requires<br />'
  +'Adoble Flash Player<br />'
  +'<a href="http://get.adobe.com/flashplayer/" style="color:blue" target="_blank"><b>DOWNLOAD HERE</b></a>'
  +'</object>'
  +'</div><div style="font:italic 8px Arial;color:#3CB371;">Click for fullscreen &amp; forecast</div>';

  wrImg   .src    = imgDir+"wr-{LANG}{DIR}.jpg"; // replacements: {LANG}=[af-..sv-}, {DIR}=[N..NNW]
  wrImg   .width  = 70;
  wrImg   .height = 70;
  wrImg   .xlate  = false;

  uvImg   .src    = imgDir+"uv{INDEX}.gif"; // replacements: {INDEX}=[0..18]
  uvImg   .width  = 34;
  uvImg   .height = 65;

  fireImg .src    = imgDir+"fire-{IMGNR}.png"; // replacements: {IMGNR}=[0|16|25|31|32] or your specification below
  fireImg .width  = 50;
  fireImg .height = 50;
  fireImg .style  = "";
  fireImg .imgNrs[0] = "0";
  fireImg .imgNrs[1] = "1";
  fireImg .imgNrs[2] = "2";
  fireImg .imgNrs[3] = "3";
  fireImg .imgNrs[4] = "4";

  cloudImg.style  = "border: 2px solid silver;";

  webcamImg.src   = "./webcam/snap00.jpg";
  webcamImg.style = "border: 2px solid silver;";
  webcamImg.swapIconWithWebcam = false;

//------------------------------------------------------------------------------
}; // end loadSettings
gotSettings = true;