if (window.ActiveXObject) var doc = new ActiveXObject("Microsoft.XMLDOM"); else if (document.implementation.createDocument) var doc = document.implementation.createDocument("", "", null); var root = doc.createElement("root"); doc.appendChild(root); function getSearchProperties() { category = doc.createElement("categories"); doc.childNodes[0].appendChild(category); newItem = doc.createTextNode('Gewerbe'); category.appendChild(newItem); newItem = doc.createTextNode('Kirche'); category.appendChild(newItem); newItem = doc.createTextNode('Konzerte'); category.appendChild(newItem); newItem = doc.createTextNode('Museum'); category.appendChild(newItem); newItem = doc.createTextNode('Märkte'); category.appendChild(newItem); newItem = doc.createTextNode('Partys'); category.appendChild(newItem); newItem = doc.createTextNode('Sport/ Natur'); category.appendChild(newItem); newItem = doc.createTextNode('Theater'); category.appendChild(newItem); newItem = doc.createTextNode('Volksfeste'); category.appendChild(newItem); newItem = doc.createTextNode('setKinderveranstaltungen'); category.appendChild(newItem); community = doc.createElement("communities"); doc.childNodes[0].appendChild(community); newItem = doc.createTextNode('Alexisbad'); community.appendChild(newItem); newItem = doc.createTextNode('Allrode'); community.appendChild(newItem); newItem = doc.createTextNode('Altenau'); community.appendChild(newItem); newItem = doc.createTextNode('Altenbrak'); community.appendChild(newItem); newItem = doc.createTextNode('Bad Grund'); community.appendChild(newItem); newItem = doc.createTextNode('Bad Harzburg'); community.appendChild(newItem); newItem = doc.createTextNode('Bad Lauterberg'); community.appendChild(newItem); newItem = doc.createTextNode('Bad Sachsa'); community.appendChild(newItem); newItem = doc.createTextNode('Bad Suderode'); community.appendChild(newItem); newItem = doc.createTextNode('Ballenstedt'); community.appendChild(newItem); newItem = doc.createTextNode('Benneckenstein'); community.appendChild(newItem); newItem = doc.createTextNode('Blankenburg'); community.appendChild(newItem); newItem = doc.createTextNode('Bockswiese'); community.appendChild(newItem); newItem = doc.createTextNode('Braunlage'); community.appendChild(newItem); newItem = doc.createTextNode('Braunschweig'); community.appendChild(newItem); newItem = doc.createTextNode('Buntenbrock'); community.appendChild(newItem); newItem = doc.createTextNode('Clausthal-Zellerfeld'); community.appendChild(newItem); newItem = doc.createTextNode('Darlingerode'); community.appendChild(newItem); newItem = doc.createTextNode('Derenburg'); community.appendChild(newItem); newItem = doc.createTextNode('Drübeck'); community.appendChild(newItem); newItem = doc.createTextNode('Eisleben'); community.appendChild(newItem); newItem = doc.createTextNode('Elbingerode'); community.appendChild(newItem); newItem = doc.createTextNode('Elend'); community.appendChild(newItem); newItem = doc.createTextNode('Ellrich'); community.appendChild(newItem); newItem = doc.createTextNode('Friedrichsbrunn'); community.appendChild(newItem); newItem = doc.createTextNode('Gernrode'); community.appendChild(newItem); newItem = doc.createTextNode('Goslar'); community.appendChild(newItem); newItem = doc.createTextNode('Güntersberge'); community.appendChild(newItem); newItem = doc.createTextNode('Hahnenklee'); community.appendChild(newItem); newItem = doc.createTextNode('Halberstadt'); community.appendChild(newItem); newItem = doc.createTextNode('Harzgerode'); community.appendChild(newItem); newItem = doc.createTextNode('Hasselfelde'); community.appendChild(newItem); newItem = doc.createTextNode('Herzberg am Harz'); community.appendChild(newItem); newItem = doc.createTextNode('Hohegeiß'); community.appendChild(newItem); newItem = doc.createTextNode('Ilfeld'); community.appendChild(newItem); newItem = doc.createTextNode('Ilsenburg'); community.appendChild(newItem); newItem = doc.createTextNode('Königshütte'); community.appendChild(newItem); newItem = doc.createTextNode('Lautenthal'); community.appendChild(newItem); newItem = doc.createTextNode('Neustadt'); community.appendChild(newItem); newItem = doc.createTextNode('Nordhausen'); community.appendChild(newItem); newItem = doc.createTextNode('Osterode am Harz'); community.appendChild(newItem); newItem = doc.createTextNode('Quedlinburg'); community.appendChild(newItem); newItem = doc.createTextNode('Rübeland'); community.appendChild(newItem); newItem = doc.createTextNode('Sangerhausen'); community.appendChild(newItem); newItem = doc.createTextNode('Sankt Andreasberg'); community.appendChild(newItem); newItem = doc.createTextNode('Schierke'); community.appendChild(newItem); newItem = doc.createTextNode('Schulenberg'); community.appendChild(newItem); newItem = doc.createTextNode('Seesen'); community.appendChild(newItem); newItem = doc.createTextNode('Sorge'); community.appendChild(newItem); newItem = doc.createTextNode('Stiege'); community.appendChild(newItem); newItem = doc.createTextNode('Stolberg'); community.appendChild(newItem); newItem = doc.createTextNode('Tanne'); community.appendChild(newItem); newItem = doc.createTextNode('Thale'); community.appendChild(newItem); newItem = doc.createTextNode('Torfhaus'); community.appendChild(newItem); newItem = doc.createTextNode('Trautenstein'); community.appendChild(newItem); newItem = doc.createTextNode('Treseburg'); community.appendChild(newItem); newItem = doc.createTextNode('Vienenburg'); community.appendChild(newItem); newItem = doc.createTextNode('Walkenried'); community.appendChild(newItem); newItem = doc.createTextNode('Wernigerode'); community.appendChild(newItem); newItem = doc.createTextNode('Wieda'); community.appendChild(newItem); newItem = doc.createTextNode('Wildemann'); community.appendChild(newItem); newItem = doc.createTextNode('Wolfshagen im Harz'); community.appendChild(newItem); newItem = doc.createTextNode('Zorge'); community.appendChild(newItem); series = doc.createElement("series"); doc.childNodes[0].appendChild(series); newItem = doc.createTextNode('Führungen in der Kleinen Holzkirche'); series.appendChild(newItem); newItem = doc.createTextNode('Führungen in der Kleinen Holzkirche'); series.appendChild(newItem); return doc; } function getTopEvents() { var top = doc.createElement("topEvents"); root.appendChild(top); return doc; } var http_request = null; function getCalendar(monat, jahr, gem) { var url = "http://www.harz.eu/de/veranstaltungen/download/abfrage.html?item=calendar&month=" + monat + "&year=" + jahr + "&gem=" + gem; http_request = null; // Mozilla, Opera, Safari sowie Internet Explorer 7 if (typeof XMLHttpRequest != 'undefined') { http_request = new XMLHttpRequest; if (http_request.overrideMimeType) { http_request.overrideMimeType('text/xml'); } } else if (!http_request) { // Internet Explorer 6 und älter try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { http_request = null; } } } if (!http_request) { alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen'); return false; } http_request.open('GET', url, true); http_request.onreadystatechange = function() { //alert(http_request.readyState); if (http_request.readyState == 4) { if (http_request.status == 200) { //alert(http_request.responseText); var xmldoc = http_request.responseXML; setCalValues(xmldoc); } else { alert('Bei der Abfrage ist ein Problem aufgetreten. Bitte probieren Sie es später nochmal. Danke'); } } }; http_request.send(null); } function getEvents(commune) { var ev = doc.createElement("events"); root.appendChild(ev); var com = 'Elend'; if (com==commune) { newItem = doc.createElement("item"); ev.appendChild(newItem); date = doc.createCDATASection('01.08.2010'); newItem.appendChild(date); eventName = doc.createCDATASection('Nissantreffen in Elend'); newItem.appendChild(eventName); image = doc.createCDATASection(''); newItem.appendChild(image); stext = doc.createCDATASection('Parkplatz Am Waldbad'); newItem.appendChild(stext); ltext = doc.createCDATASection(''); newItem.appendChild(ltext); linkName = doc.createCDATASection('http://: www.harztreffen.com'); newItem.appendChild(linkName); series = doc.createCDATASection('31.07.2010, 01.08.2010'); newItem.appendChild(series); } var com = ' FONT-SIZE: 8pt">Hotel „Grüne Tanne“, Elend / Mandelholz

'; if (com==commune) { newItem = doc.createElement("item"); ev.appendChild(newItem); date = doc.createCDATASection('01.08.2010'); newItem.appendChild(date); eventName = doc.createCDATASection('BRUNCH in Mandelholz'); newItem.appendChild(eventName); image = doc.createCDATASection('/media/files/catalogHolidayHome/mandelholz.jpg'); newItem.appendChild(image); stext = doc.createCDATASection('Schlemmerbüfett mit Take Two – swinging piano & sax'); newItem.appendChild(stext); ltext = doc.createCDATASection('

Essen nach Lust und Laune – soviel Sie mögen, Preis 15,00 € / Person,11.00 bis 14.00 Uhr, '); newItem.appendChild(linkName); series = doc.createCDATASection('Infos und Vorbestellungen unter www.mandelholz.eu, inkl. 4 – Gang – Kabarett – Menü- Preis 33 € pro Person'); newItem.appendChild(series); } var com = ''; if (com==commune) { newItem = doc.createElement("item"); ev.appendChild(newItem); date = doc.createCDATASection('19.08.2010'); newItem.appendChild(date); eventName = doc.createCDATASection('Geführte Seniorenwanderung für Jedermann'); newItem.appendChild(eventName); image = doc.createCDATASection('/media/files/events/khbrumme02.jpg'); newItem.appendChild(image); stext = doc.createCDATASection('des Harzklub Zweigverein Elend e.V.'); newItem.appendChild(stext); ltext = doc.createCDATASection('

Wanderung Steinbachtal – Wasserfall - Königshütte ca. 8 km, Rückfahrt mit Bus ab Post 15.15 Uhr, Bushaltestelle Ortsmitte

'); newItem.appendChild(linkName); series = doc.createCDATASection('http://www.harzklub.de'); newItem.appendChild(series); } var com = ' Infos und Vorbestellungen unter www.mandelholz.eu


inkl. 4 – Gang – Kabarett – Menü- Preis 35 € pro Person'); newItem.appendChild(series); } var com = 'Elend'; if (com==commune) { newItem = doc.createElement("item"); ev.appendChild(newItem); date = doc.createCDATASection('29.08.2010'); newItem.appendChild(date); eventName = doc.createCDATASection('Turmfest in Elend'); newItem.appendChild(eventName); image = doc.createCDATASection('/media/files/catalogHolidayHome/dsc00951.jpg'); newItem.appendChild(image); stext = doc.createCDATASection('Kirche / Kirchwiese. Weitere Infos folgen.'); newItem.appendChild(stext); ltext = doc.createCDATASection(''); newItem.appendChild(ltext); linkName = doc.createCDATASection('http://www.harz.eu/de/tourismus/harzorte/elend/highlights_elend_harz/kleinste_holzkirche_deutschlands_harz.html'); newItem.appendChild(linkName); series = doc.createCDATASection(''); newItem.appendChild(series); } var com = ' FONT-SIZE: 8pt">Hotel „Grüne Tanne“

'; if (com==commune) { newItem = doc.createElement("item"); ev.appendChild(newItem); date = doc.createCDATASection('04.09.2010'); newItem.appendChild(date); eventName = doc.createCDATASection('„… irre komisch“ in Mandelholz'); newItem.appendChild(eventName); image = doc.createCDATASection('/media/files/catalogHolidayHome/mandelholz.jpg'); newItem.appendChild(image); stext = doc.createCDATASection('Ulan & Bator'); newItem.appendChild(stext); ltext = doc.createCDATASection('

inkl. 4 – Gang – Kabarett – Menü- Preis 35 € pro Person'); newItem.appendChild(linkName); series = doc.createCDATASection(' Infos und Vorbestellungen unter www.mandelholz.eu


Hotel „Grüne Tanne"

'; if (com==commune) { newItem = doc.createElement("item"); ev.appendChild(newItem); date = doc.createCDATASection('05.09.2010'); newItem.appendChild(date); eventName = doc.createCDATASection('BRUNCH in Mandelholz'); newItem.appendChild(eventName); image = doc.createCDATASection('/media/files/catalogHolidayHome/mandelholz.jpg'); newItem.appendChild(image); stext = doc.createCDATASection('Schlemmerbüfett mit Musik:Thomas Schicker'); newItem.appendChild(stext); ltext = doc.createCDATASection('

Essen nach Lust und Laune – soviel Sie mögen, Preis 15,00 € / Person,11.00 bis 14.00 Uhr, '); newItem.appendChild(linkName); series = doc.createCDATASection('Infos und Vorbestellungen unter www.mandelholz.eu, Hotel „Grüne Tanne“

'; if (com==commune) { newItem = doc.createElement("item"); ev.appendChild(newItem); date = doc.createCDATASection('11.09.2010'); newItem.appendChild(date); eventName = doc.createCDATASection('„… ich nehm nur Natreen zu mir“ in Mandelholz'); newItem.appendChild(eventName); image = doc.createCDATASection('/media/files/catalogHolidayHome/mandelholz.jpg'); newItem.appendChild(image); stext = doc.createCDATASection('Die Zucker - Babies'); newItem.appendChild(stext); ltext = doc.createCDATASection('

inkl. 4 – Gang – Kabarett – Menü- Preis 35 € pro Person'); newItem.appendChild(linkName); series = doc.createCDATASection(' Infos und Vorbestellungen unter www.mandelholz.eu


www.mandelholz.eu


inkl. 4 – Gang – Kabarett – Menü- Preis 30 € pro Person'); newItem.appendChild(series); } var com = ' FONT-SIZE: 8pt">Hotel „Grüne Tanne“, Elend / Mandelholz

'; if (com==commune) { newItem = doc.createElement("item"); ev.appendChild(newItem); date = doc.createCDATASection('02.10.2010'); newItem.appendChild(date); eventName = doc.createCDATASection('Gammel, Zirkel, Ährenkranz in Mandelholz'); newItem.appendChild(eventName); image = doc.createCDATASection('/media/files/catalogHolidayHome/mandelholz.jpg'); newItem.appendChild(image); stext = doc.createCDATASection('die Nörgelsäcke'); newItem.appendChild(stext); ltext = doc.createCDATASection('

inkl. 4 – Gang – Kabarett – Menü- Preis 33 € pro Person'); newItem.appendChild(linkName); series = doc.createCDATASection(' Infos und Vorbestellungen unter www.mandelholz.eu


Essen nach Lust und Laune – soviel Sie mögen, Preis 15,00 € / Person, 11.00 bis 14.00 Uhr, '); newItem.appendChild(linkName); series = doc.createCDATASection('Infos und Vorbestellungen unter www.mandelholz.eu, Hotel „Grüne Tanne“

'; if (com==commune) { newItem = doc.createElement("item"); ev.appendChild(newItem); date = doc.createCDATASection('16.10.2010'); newItem.appendChild(date); eventName = doc.createCDATASection('Die Harzgeister in Mandelholz'); newItem.appendChild(eventName); image = doc.createCDATASection('/media/files/catalogHolidayHome/mandelholz.jpg'); newItem.appendChild(image); stext = doc.createCDATASection('„Der Vogel scheint mir hat Humor“'); newItem.appendChild(stext); ltext = doc.createCDATASection('

inkl. 4 – Gang – Kabarett – Menü- Preis 30 € pro Person'); newItem.appendChild(linkName); series = doc.createCDATASection(' Infos und Vorbestellungen unter www.mandelholz.eu


Hotel „Grüne Tanne"

'; if (com==commune) { newItem = doc.createElement("item"); ev.appendChild(newItem); date = doc.createCDATASection('30.10.2010'); newItem.appendChild(date); eventName = doc.createCDATASection('„Bacterial World“ in Mandelholz'); newItem.appendChild(eventName); image = doc.createCDATASection('/media/files/catalogHolidayHome/mandelholz.jpg'); newItem.appendChild(image); stext = doc.createCDATASection('die Steptokokken'); newItem.appendChild(stext); ltext = doc.createCDATASection('

inkl. 4 – Gang – Kabarett – Menü- Preis 35 € pro Person'); newItem.appendChild(linkName); series = doc.createCDATASection(' Infos und Vorbestellungen unter www.mandelholz.eu


Hotel „Grüne Tanne“

'; if (com==commune) { newItem = doc.createElement("item"); ev.appendChild(newItem); date = doc.createCDATASection('06.11.2010'); newItem.appendChild(date); eventName = doc.createCDATASection('Die Kugelblitze in Mandelholz'); newItem.appendChild(eventName); image = doc.createCDATASection('/media/files/catalogHolidayHome/mandelholz.jpg'); newItem.appendChild(image); stext = doc.createCDATASection('Programm 2010 '); newItem.appendChild(stext); ltext = doc.createCDATASection('

inkl. 4 – Gang – Kabarett – Menü- Preis 30 € pro Person'); newItem.appendChild(linkName); series = doc.createCDATASection(' Infos und Vorbestellungen unter www.mandelholz.eu


Essen nach Lust und Laune – soviel Sie mögen, Preis 15,00 € / Person, 11.00 bis 14.00 Uhr, Infos und Vorbestellungen unter www.mandelholz.eu, Wanderung nach Braunlage, ca. 8 km– Rückfahrt mit Bus, Treffpunkt: Bushaltestelle Elend

'); newItem.appendChild(linkName); series = doc.createCDATASection(''); newItem.appendChild(series); } var com = ' Infos und Vorbestellungen unter
www.mandelholz.eu


inkl. 4 – Gang – Kabarett – Menü- Preis 35 € pro Person'); newItem.appendChild(series); } return doc; } function setTopEvValues() { var node = doc.getElementsByTagName("topEvents").item(0); var count = node.childNodes.length; var i=0; var text = ""; while (i < count) { var date = node.childNodes.item(i).childNodes.item(0).data; var veranstaltung = node.childNodes.item(i).childNodes.item(1).data; var bild = node.childNodes.item(i).childNodes.item(2).data; var stext = node.childNodes.item(i).childNodes.item(3).data; var ltext = node.childNodes.item(i).childNodes.item(4).data; var url = node.childNodes.item(i).childNodes.item(5).data; var termine = node.childNodes.item(i).childNodes.item(6).data; text = text + "

"; text = text + "

" + date + "

"; text = text + "

 | " + veranstaltung + "

"; text = text + "
"; if (bild != "") text = text + "
" + veranstaltung + "
"; text = text + "
" + stext + "

"; if (ltext != "") text = text + "
" + ltext + "
"; text = text + "
"; if (url != "") text = text + "zur Internetseite
"; if (termine != "") text = text + "
Veranstaltungstermine:
" + termine + "
"; text = text + "

"; i++; } document.writeln(text); }