/*
0 Baden-Württemberg
1 Bayern
2 Berlin
3 Brandenburg
4 Bremen
5 Hamburg
6 Hessen
7 Mecklenburg-Vorpommern
8 Niedersachsen
9 Nordrhein-Westfalen
10 Rheinland-Pfalz
11 Saarland
12 Sachsen
13 Sachsen-Anhalt
14 Schleswig-Holstein
15 Thüringen
*/

var BW = 0;
var BY = 1;
var BB = 2;
var HE = 3
var MV = 4;
var NI = 5;
var NRW = 6;
var RP = 7
var SH = 10;
var SN = 8;
var ST = 9;
var TH = 11

var BUND = 12;

var countries = [];
countries[BW] = {};
countries[BY] = {};
countries[BB] = {};
countries[MV] = {};
countries[NI] = {};
countries[NRW] = {};
countries[SN] = {};
countries[SH] = {};
countries[ST] = {};
countries[TH] = {};
countries[RP] = {};
countries[HE] = {};
countries[BUND] = {};

//BW
countries[BW].banner = new Array();
countries[BW].links = new Array();
countries[BW].names = new Array();
countries[BW].topics = new Array();
countries[BW].title = "Baden-W"+entity('&uuml;')+"rttemberg"; // aargh, Umlaute in Textnodes ...
countries[BW].banner[0] = '../zz_imr_img/behoerden_logos/bw/logoLV.png';
countries[BW].banner[1] = '../zz_imr_img/behoerden_logos/bw/lubwLogo.gif';
countries[BW].banner[2] = '../zz_imr_img/behoerden_logos/bw/lgrb_logo.jpg';
countries[BW].links[0] = 'http://www.lgl-bw.de/';
countries[BW].links[1] = 'http://www.lubw.baden-wuerttemberg.de';
countries[BW].links[2] = 'http://www.lgrb.uni-freiburg.de/';
countries[BW].names[0] = "Landesamt f"+entity('&uuml;')+"r Geoinformation und Landentwicklung Baden-W"+entity('&uuml;')+"rttemberg (LGL)";
countries[BW].names[1] = "Landesanstalt f"+entity('&uuml;')+"r Umwelt, Messungen und Naturschutz Baden-W"+entity('&uuml;')+"rttemberg (LUBW)";
countries[BW].names[2] = "Regierungspr"+entity('&auml;')+"sidium Freiburg - Landesamt f"+entity('&uuml;')+"r Geologie, Rohstoffe und Bergbau";
countries[BW].topics[0] = "Geobasis";
countries[BW].topics[1] = "Umwelt";
countries[BW].topics[2] = "Geologie";

//nrw
countries[NRW].banner = new Array();
countries[NRW].links = new Array();
countries[NRW].names = new Array();
countries[NRW].topics = new Array();
countries[NRW].title = "Nordrhein-Westfalen"; // aargh, Umlaute in Textnodes ...
countries[NRW].banner[0] = '../zz_imr_img/behoerden_logos/nrw/Logo_LVermA.gif';
countries[NRW].banner[1] = '../zz_imr_img/behoerden_logos/nrw/gd_logo1.gif';
countries[NRW].banner[3] = '../zz_imr_img/behoerden_logos/nrw/logo_munlv.jpg';
countries[NRW].banner[2] = '../zz_imr_img/behoerden_logos/nrw/logo_lds.gif';
countries[NRW].banner[4] = '';
countries[NRW].links[0] = 'http://www.geobasis.nrw.de/';
countries[NRW].links[1] = 'http://www.gd.nrw.de/';
countries[NRW].links[3] = 'http://www.lanuv.nrw.de/';
countries[NRW].links[2] = 'http://www.lds.nrw.de/';
countries[NRW].links[4] = 'http://www.wirtschaft.nrw.de/';
countries[NRW].names[0] = "Bezirksregierung K"+entity('&ouml;')+"ln - GEObasis.nrw";
countries[NRW].names[1] = "Geologischer Dienst Nordrhein-Westfalen";
countries[NRW].names[3] = "Landesamt f"+entity('&uuml;')+"r Natur, Umwelt und Verbraucherschutz Nordrhein-Westfalen";
countries[NRW].names[2] = "Landesamt f"+entity('&uuml;')+"r Datenverarbeitung und Statistik Nordrhein-Westfalen";
countries[NRW].names[4] = "Ministerium f"+entity('&uuml;')+"r Wirtschaft, Mittelstand und Energie";
countries[NRW].topics[0] = "Geobasis";
countries[NRW].topics[1] = "Geologie";
countries[NRW].topics[3] = "Umwelt";
countries[NRW].topics[2] = "Datendrehscheibe";
countries[NRW].topics[4] = "Planung";

//bayern
countries[BY].banner = new Array();
countries[BY].links = new Array();
countries[BY].names = new Array();
countries[BY].topics = new Array();
countries[BY].title = "Bayern"; // aargh, Umlaute in Textnodes ...
countries[BY].banner[0] = '../zz_imr_img/behoerden_logos/bayern/bvv_home_bvvlogo.jpg';
countries[BY].banner[1] = '../zz_imr_img/behoerden_logos/bayern/bayldenkmalpf_logo.gif';
countries[BY].banner[2] = '';
countries[BY].links[0] = 'http://www.geodaten.bayern.de/';
countries[BY].links[1] = 'http://www.blfd.bayern.de/';
countries[BY].links[2] = 'http://www.lfu.bayern.de/';
countries[BY].names[0] = "Bayerische Vermessungsverwaltung";
countries[BY].names[1] = "Bayerisches Landesamt f"+entity('&uuml;')+"r Denkmalpflege";
countries[BY].names[2] = "Bayerisches Landesamt f"+entity('&uuml;')+"r Umwelt";
countries[BY].topics[0] = "Geobasis";
countries[BY].topics[1] = "Denkmalpflege";
countries[BY].topics[2] = "Umwelt, Geologie";


//brandenburg
countries[BB].banner = new Array();
countries[BB].links = new Array();
countries[BB].names = new Array();
countries[BB].topics = new Array();
countries[BB].title = "Brandenburg"; // aargh, Umlaute in Textnodes ...
countries[BB].banner[0] = '../zz_imr_img/behoerden_logos/bayern/bvv_home_bvvlogo.jpg';
countries[BB].banner[1] = '../zz_imr_img/behoerden_logos/bayern/bayldenkmalpf_logo.gif';
countries[BB].banner[2] = '';
countries[BB].links[0] = 'http://www.lbgr.brandenburg.de';
countries[BB].links[1] = 'http://www.geobasis-bb.de';
countries[BB].links[2] = 'http://www.mluv.brandenburg.de/cms/detail.php/98621';
countries[BB].names[0] = "Landesamt f"+entity('&uuml;')+"r Bergbau, Geologie und Rohstoffe (LBGR)";
countries[BB].names[1] = "Landesvermessung und Geobasisinformation Brandenburg";
countries[BB].names[2] = "Landesumweltamt Brandenburg (LUA)";
countries[BB].topics[0] = "Geologie";
countries[BB].topics[1] = "Geobasis";
countries[BB].topics[2] = "Umwelt";


//Niedersachsen
countries[NI].banner = new Array();
countries[NI].links = new Array();
countries[NI].names = new Array();
countries[NI].topics = new Array();
countries[NI].title = "Niedersachsen"; // aargh, Umlaute in Textnodes ...
countries[NI].banner[0] = '../zz_imr_img/behoerden_logos/bayern/bvv_home_bvvlogo.jpg';
countries[NI].banner[1] = '../zz_imr_img/behoerden_logos/bayern/bayldenkmalpf_logo.gif';
countries[NI].banner[2] = '';
countries[NI].links[0] = 'http://www.lbeg.niedersachsen.de/';
countries[NI].links[1] = 'http://www.lgn.niedersachsen.de/';
countries[NI].links[2] = 'http://www.mu.niedersachsen.de';
countries[NI].names[0] = "Landesamt f"+entity('&uuml;')+"r Bergbau, Energie und Geologie";
countries[NI].names[1] = "Landesvermessung und Geobasisinformation";
countries[NI].names[2] = "Nds. Ministerium f"+entity('&uuml;')+"r Umwelt und Klimaschutz";
countries[NI].topics[0] = "Geologie";
countries[NI].topics[1] = "Geobasis";
countries[NI].topics[2] = "Umwelt";

//Me-Vo
countries[MV].banner = new Array();
countries[MV].links = new Array();
countries[MV].names = new Array();
countries[MV].topics = new Array();
countries[MV].title = "Mecklenburg-Vorpommern"; // aargh, Umlaute in Textnodes ...
countries[MV].banner[1] = '../zz_imr_img/behoerden_logos/bayern/bvv_home_bvvlogo.jpg';
countries[MV].banner[2] = '../zz_imr_img/behoerden_logos/bayern/bayldenkmalpf_logo.gif';
countries[MV].banner[0] = '';
countries[MV].links[1] = 'http://www.laiv-mv.de/land-mv/LAiV_prod/LAiV/AfGVK/';
countries[MV].links[2] = 'http://www.lung.mv-regierung.de/';
countries[MV].links[0] = 'http://www.bergamt-mv.de/';
countries[MV].names[1] = "Landesamt f"+entity('&uuml;')+"r innere Verwaltung, Amt f"+entity('&uuml;')+"r Geoinformation, Vermessungs- und Katasterwesen";
countries[MV].names[2] = "Landesamt f"+entity('&uuml;')+"r Umwelt, Naturschutz und Geologie";
countries[MV].names[0] = "Bergamt Stralsund";
countries[MV].topics[1] = "Geobasis";
countries[MV].topics[2] = "Geologie";
countries[MV].topics[0] = "Bergbau";

//Sachsen
countries[SN].banner = new Array();
countries[SN].links = new Array();
countries[SN].names = new Array();
countries[SN].topics = new Array();
countries[SN].title = "Sachsen"; // aargh, Umlaute in Textnodes ...
countries[SN].banner[0] = '../zz_imr_img/behoerden_logos/bayern/bvv_home_bvvlogo.jpg';
countries[SN].banner[2] = '../zz_imr_img/behoerden_logos/bayern/bayldenkmalpf_logo.gif';
countries[SN].banner[1] = '';
countries[SN].links[0] = 'http://www.smul.sachsen.de/lfulg/index.html';
countries[SN].links[2] = 'http://www.landesvermessung.sachsen.de/';
countries[SN].links[1] = 'http://www.bergbehoerde.sachsen.de/';
countries[SN].names[0] = "S"+entity('&auml;')+"chsisches Landesamt f"+entity('&uuml;')+"r Umwelt und Geologie (LfUG)";
countries[SN].names[2] = "Staatsbetrieb Geobasisinformation und Vermessung Sachsen";
countries[SN].names[1] = "S"+entity('&auml;')+"chsisches Oberbergamt";
countries[SN].topics[0] = "Geologie";
countries[SN].topics[2] = "Geobasis";
countries[SN].topics[1] = "Bergbau";

//Sachsen-Anhalt
countries[ST].banner = new Array();
countries[ST].links = new Array();
countries[ST].names = new Array();
countries[ST].topics = new Array();
countries[ST].title = "Sachsen-Anhalt"; // aargh, Umlaute in Textnodes ...
countries[ST].banner[0] = '../zz_imr_img/behoerden_logos/bayern/bvv_home_bvvlogo.jpg';
countries[ST].banner[1] = '../zz_imr_img/behoerden_logos/bayern/bayldenkmalpf_logo.gif';
countries[ST].banner[2] = '../zz_imr_img/behoerden_logos/bayern/bayldenkmalpf_logo.gif';
countries[ST].links[0] = 'http://www.sachsen-anhalt.de/LPSA/index.php?id=15238';
countries[ST].links[1] = 'http://www.lvermgeo.sachsen-anhalt.de';
countries[ST].links[2] = 'http://www.llg-lsa.de/';
countries[ST].names[0] = "Landesamt f"+entity('&uuml;')+"r Geologie und Bergwesen";
countries[ST].names[1] = "Landesamt f"+entity('&uuml;')+"r Vermessung und Geoinformation";
countries[ST].names[2] = "Landesanstalt f"+entity('&uuml;')+"r Landwirtschaft, Forsten und Gartenbau";
countries[ST].topics[0] = "Geologie";
countries[ST].topics[1] = "Geobasis";
countries[ST].topics[2] = "Umwelt";

//Schleswig
countries[SH].banner = new Array();
countries[SH].links = new Array();
countries[SH].names = new Array();
countries[SH].topics = new Array();
countries[SH].title = "Schleswig-Holstein"; // aargh, Umlaute in Textnodes ...
countries[SH].banner[0] = '../zz_imr_img/behoerden_logos/bayern/bvv_home_bvvlogo.jpg';
countries[SH].banner[1] = '../zz_imr_img/behoerden_logos/bayern/bayldenkmalpf_logo.gif';
countries[SH].links[0] = 'http://www.schleswig-holstein.de/LLUR/DE/LLUR__node.html';
countries[SH].links[1] = 'http://www.schleswig-holstein.de/LVERMA/DE/LVERMA__node.html';
countries[SH].names[0] = "Landesamt für Landwirtschaft, Umwelt und l"+entity('&auml;')+"ndliche R"+entity('&auml;')+"ume (LLUR)";
countries[SH].names[1] = "Landesvermessungsamt";
countries[SH].topics[0] = "Umwelt, Geologie";
countries[SH].topics[1] = "Geobasis";

//Thueringen
countries[TH].banner = new Array();
countries[TH].links = new Array();
countries[TH].names = new Array();
countries[TH].topics = new Array();
countries[TH].title = "Th"+entity('&uuml;')+"ringen";
countries[TH].banner[0] = "";
countries[TH].links[0] = "http://www.thueringen.de/de/tmblm/";
countries[TH].names[0] = "Th"+entity('&uuml;')+"ringer Ministerium für Bau, Landesentwicklung und Medien";
countries[TH].topics[0] = "Geobasis";


//Rheinland-Pfalz
countries[RP].banner = new Array();
countries[RP].links = new Array();
countries[RP].names = new Array();
countries[RP].topics = new Array();
countries[RP].title = "Rheinland-Pfalz";
countries[RP].banner[0] = "";
countries[RP].banner[1] = "";
countries[RP].banner[2] = "";
countries[RP].banner[3] = "";
countries[RP].links[0] = "http://www.lgb-rlp.de/lgb-rlp.html";
countries[RP].links[1] = "http://www.luwg.rlp.de/";
countries[RP].links[2] = "http://www.lvermgeo.rlp.de/";
countries[RP].links[3] = "http://www.ris.rlp.de/";
countries[RP].names[0] = "Landesamt f"+entity('&uuml;')+"r Geologie und Bergbau";
countries[RP].names[1] = "Landesamt f"+entity('&uuml;')+"r Umwelt, Wasserwirtschaft und Gewerbeaufsicht";
countries[RP].names[2] = "Landesamt f"+entity('&uuml;')+"r Vermessung und Geobasisinformation";
countries[RP].names[3] = "Oberste Landesplanungsbeh"+entity('&ouml;')+"rde";
countries[RP].topics[0] = "Geologie";
countries[RP].topics[1] = "Wasser";
countries[RP].topics[2] = "Geobasis";
countries[RP].topics[3] = "Planung";

//Hessen
countries[HE].banner = new Array();
countries[HE].links = new Array();
countries[HE].names = new Array();
countries[HE].topics = new Array();
countries[HE].title = "Hessen";
countries[HE].banner[0] = "";
countries[HE].banner[1] = "";
countries[HE].banner[2] = "";
countries[HE].banner[3] = "";
countries[HE].links[0] = "http://www.hvbg.hessen.de";
countries[HE].links[1] = "http://www.hlug.de/";
countries[HE].links[2] = "http://www.hmulv.hessen.de";
countries[HE].links[3] = "http://www.rp-kassel.de";
countries[HE].names[0] = "Hessisches Landesamt f"+entity('&uuml;')+"r Bodenmanagement und Geoinformation (HLBG)";
countries[HE].names[1] = "Hessisches Landesamt f"+entity('&uuml;')+"r Umwelt und Geologie (HLUG)";
countries[HE].names[2] = "Hessisches Ministerium f"+entity('&uuml;')+"r Umwelt, l"+entity('&auml;')+"ndlichen Raum und Verbraucherschutz (HMULV)";
countries[HE].names[3] = "Regierungspräsidium Kassel";
countries[HE].topics[0] = "Geobasis";
countries[HE].topics[1] = "Wasser";
countries[HE].topics[2] = entity('&Uuml;')+"berschwemmung";
countries[HE].topics[3] = "Naturschutz";


/*
*/



//BUND
countries[BUND].banner = new Array();
countries[BUND].links = new Array();
countries[BUND].names = new Array();
countries[BUND].topics = new Array();
countries[BUND].title = "BUND"; // aargh, Umlaute in Textnodes ...
countries[BUND].banner[0] = '../zz_imr_img/behoerden_logos/bkg_logo.gif';
countries[BUND].links[0] = 'http://www.bkg.bund.de/';
countries[BUND].names[0] = "Bundesamt f"+entity('&uuml;')+"r Kartographie und Geod"+entity('&auml;')+"sie";
countries[BUND].topics[0] = "Geobasis";
countries[BUND].banner[2] = '../zz_imr_img/behoerden_logos/logo_bgr.gif';
countries[BUND].links[2] = 'http://www.bgr.bund.de/';
countries[BUND].names[2] = "Bundesanstalt f"+entity('&uuml;')+"r Geowissenschaften und Rohstoffe";
countries[BUND].topics[2] = "Geologie";
countries[BUND].banner[1] = '';
countries[BUND].links[1] = 'http://www.bfn.de/';
countries[BUND].names[1] = "Bundesamt f"+entity('&uuml;')+"r Naturschutz (BfN)";
countries[BUND].topics[1] = "Umwelt";
countries[BUND].banner[3] = '';
countries[BUND].links[3] = 'http://www.bafg.de/';
countries[BUND].names[3] = "Bundesanstalt f"+entity('&uuml;')+"r Gew"+entity('&auml;')+"sserkunde (BfG)";
countries[BUND].topics[3] = "Wasser";


function entity(str, mode) {
        str = (str) ? str : "";
        mode = (mode) ? mode : "string";

        var e = document.createElement("div");
        e.innerHTML = str;

        if (mode == "numeric") {
                return "&#" + e.innerHTML.charCodeAt(0) + ";";
        }
        else if (mode == "utf16") {
                var un = e.innerHTML.charCodeAt(0).toString(16);
                while (un.length < 4) un = "0" + un;
                return "\\u" + un;
        }
        else return e.innerHTML;
}

