function iframe() {

  //
  // Type
  // 
  // 1 = Veðurkort
  // 2 = Staðarspár
  // 3 = Flugveður
  // 
  this.type = 1;

  //
  // Analysis
  // 
  // ecmwf, gfs
  // 
  this.analysis = "ecmwf";

  //
  // Zone
  // 
  // is = Iceland
  // no = Norway
  // fo = Faroese Islands
  // at = North Atlantic Ocean
  // gr = Greenland
  // 
  this.zone = "is";

  //
  // Resolution
  // 
  // 3, 9, 12, 27
  // 
  this.resolution = 3;

  //
  // Weather Type
  // 
  // hiti = Heat
  // vindur = Wind
  // uvh = Heat, Wind, Rain
  // 
  this.weather_type = "hiti";

  //
  // Area
  // 
  // For Iceland:
  //  ff = South West (Faxaflói)
  //  sl = South
  //  sa = South East
  //  af = East
  //  na = North East
  //  nv = North West
  //  vf = Western Fjords
  //  bf = West (Breiðafjörður)
  //  mh = Inland
  // 
  this.area = "";

  //
  // Language
  // 
  this.lang = "is";

  //
  // Methods
  // 
	this.render = render;

  function render() {
    var url = "http://belgingur.is/iframe/" + this.lang + "/" + this.type + "/" + this.analysis + "/";
    var width = 692;
    var height = 574;

    switch (this.type) {
      case 1:
        url += this.zone + "/" + this.resolution + "/" + this.weather_type + "/" + this.area;
        height = 612;
      break;
      case 2:
        url += "punktspar/" + this.area;
        height = 608;
      break;
      case 3:
        url += "punktspar/" + this.area;
        height = 608;
      break;
    }

    document.write('<iframe src="' + url + '" width="' + width + 'px" height="' + height + 'px" id="belgingur_iframe" name="belgingur_iframe" scrolling="no" frameborder="no" marginwidth="0" marginheight="0"></iframe>');
  }

}
