<!-- hide script
var LICENSE_text = "Minnesota Department of Natural Resources General Geographic Data License Agreement\n" + 
                   "\n" +
                   "1) The Minnesota Department of Natural Resources (MNDNR) grants to you a non-exclusive,\n" + 
                   "    non-sublicensable, license to use these digital data.\n" +
                   "\n" +
                   "    This license agreement applies to all digital data acquired from DNR staff, FTP sites, or other \n" +
                   "    internet-based delivery systems.\n" +
                   "\n" +
                   "    In the event that another license agreement issued by DNR staff is explicitly associated with a\n" +
                   "    particular data set, the terms of the other license agreement prevail, and the terms expressed in\n" +
                   "    this more general license agreement are nullified.\n" +
                   "\n" +
                   "2) The MNDNR makes no representations about the suitability of these data for any purpose. The data\n" +
                   "    are provided 'as is' without express or implied warranties, including warranties of merchantability\n" + 
                   "    and fitness for a particular purpose or noninfringement. \n" +
                   "\n" +
                   "3) MNDNR is not obligated to provide updates to these data in the event that newer versions become\n" +
                   "    available. MNDNR provides documentation when available through established distribution mechanisms.\n" + 
                   "\n" +
                   "4) The user relieves the MNDNR and its respective officers, agents and employees of any liability for \n" +
                   "    any and all damages resulting from use or mis-use of these data including, but not limited to:\n" +
                   "\n" +
                   "   a) incidental, consequential, special or indirect damages of any sort, whether arising in tort, \n" +
                   "       contract or otherwise, even if MNDNR has been informed of the possibility of such damages, or\n" +		   
                   "\n" +
                   "   b) for any claim by any other party. Furthermore, in States that do not allow the exclusion or \n" +
                   "       limitation of incidental or consequential damages, you may not use these data.\n" +
                   "\n" +
                   "5) When these data are used in the development of digital or analog (hardcopy) products, MNDNR\n" +
                   "     must be acknowledged as having contributed data to the development of the product.\n" + 
                   "\n" +
                   "6) Although the use of these data are not restricted, they may not be sold commercially or privately \n" +
                   "    without the written permission of MNDNR. \n";

function LICENSE_confirm() {
  if(confirm(LICENSE_text))
    return true;
  else
    return false;
}

function LICENSE_show() {
  alert(LICENSE_text);
}

var LICENSE_url = "http://deli.dnr.state.mn.us/license.html";
var LICENSE_div = "license_div";
var LICENSE_div_height = 400;
var LICENSE_div_width = 500;

function LICENSE_hide2() {
  var elem = document.getElementById(LICENSE_div);
  if(elem) elem.style.display = "none";
}

function __LICENSE_center_div(content) {
 var point = GU_get_window_center({width: LICENSE_div_width, height: LICENSE_div_height});

 var elem = document.getElementById(LICENSE_div);
 if(elem) {
    elem.style.top = point.y + "px";
    elem.style.left = point.x + "px";
    elem.style.width = LICENSE_div_width + "px";
    elem.style.height = LICENSE_div_height + "px";
    elem.style.display = "block";
  } else {
    elem = document.createElement("div");
    elem.id = LICENSE_div;
    elem.className = LICENSE_div;
    elem.innerHTML = content;
    elem.style.top = point.y + "px";
    elem.style.left = point.x + "px";
    elem.style.width = LICENSE_div_width + "px";
    elem.style.height = LICENSE_div_height + "px";
    document.body.appendChild(elem);
  }

  elem.scrollTop = 0;
}

function LICENSE_confirm2(callback) {
  var content = GU_get_content(LICENSE_url);
  content += "<center><input type=button onClick=\""+ callback +"(true)\" value=\" accept \">";
  content += " <input type=button onClick=\""+ callback +"(false) \" value=\" decline \"></center>";
  __LICENSE_center_div(content);
}

function LICENSE_show2() {
  var content = GU_get_content(LICENSE_url);
  content += "<center><input type=button onClick=\"LICENSE_hide2()\" value=\" close \"></center>";
  __LICENSE_center_div(content);
}
// end script -->

