// <!--
/*-------------------------------------------------------------------------------------------------------------------
Autorin      : Elke Greiff-Gossen
Erstellt am  : 14.03.2006
Überarbeitet :
Function     : setVisible / hideVisible
Parameter    : elemID Identifier für das HTML-Element, das ein- bzw. auszublenden ist
Rückgabe     : keine
Beschreibung : die Funktion "setVisible" setzt den Display style auf sichtbar die Funktion "hideVisible" setzt den
Display style auf unsichtbar
-------------------------------------------------------------------------------------------------------------------*/
function setVisible(elemID)
{
//if (document.all)
document.all[elemID].style.display='block';
}
function hideVisible(elemID)
{
//if (document.all)
document.all[elemID].style.display='none';
}
// Funktion zeigt eine Baustelle an
function baustelle()
{
alert("Wir arbeiten dran!");
}
// Funktion setzt das Lesezeichen
function activate(menuID)
{
var currMenuItem = document.getElementById(menuID);
currMenuItem.style.backgroundImage = "url(/images/logos-und-icons/lesezeichen.gif)";
}
// Deutsche Navigation Anfang
function prepairHorizontalLoreleyNavigation()
{
// Navigationsleiste UNTERMENUE-LORELEY-HORIZONTAL Anfang
if(document.URL.indexOf("/panoramabild.")>=0)
activate('A-LORELEY-PANORAMA');
if(document.URL.indexOf("/besucherzentrum.")>=0)
activate('A-LORELEY-BESUCHERZENTRUM');
if(document.URL.indexOf("/ich-weiss-nicht-was-soll-es-bedeuten.")>=0)
activate('A-LORELEY-LIED');
// Navigationsleiste UNTERMENUE-LORELEY-HORIZONTAL Ende
}
function prepairHorizontalNavigation()
{
// Navigationsleiste HAUPTMENUE-HORIZONTAL Anfang
if(document.URL.indexOf("/loreley.")>=0)
activate('A-LORELEY');
if(document.URL.indexOf("/welterbe.")>=0)
activate('A-WELTERBE');
if(document.URL.indexOf("/rhein-in-flammen.")>=0)
activate('A-RHEIN-IN-FLAMMEN');
if(document.URL.indexOf("/rheinsteig.")>=0)
activate('A-RHEINSTEIG');
if(document.URL.indexOf("/wahrschau.")>=0)
activate('A-WAHRSCHAU');
if(document.URL.indexOf("/haeuser-kran.")>=0)
activate('A-HAEUSER-KRAN');
if(document.URL.indexOf("/loreley-blog.")>=0)
activate('A-LORELEY-BLOG');
if(document.URL.indexOf("/tourist-information.")>=0)
activate('A-TOURIST-INFORMATION');
// Navigationsleiste HAUPTMENUE-HORIZONTAL Ende
}
function prepairNavigation()
{
// Navigationsleiste HAUPTMENUE Anfang
if(document.URL.indexOf("/burgen.")>=0 || document.URL.indexOf("/burgen/")>=0)
activate('A-BURGEN');
if(document.URL.indexOf("/stadtbeschreibung.")>=0 || document.URL.indexOf("/stadtbeschreibung/")>=0)
activate('A-STADTBESCHREIBUNG');
if(document.URL.indexOf("/wandern.")>=0 || document.URL.indexOf("/wandern/")>=0)
activate('A-WANDERN');
if(document.URL.indexOf("/unterkunft/")<0 && document.URL.indexOf("/unterkunft.")<0 && document.URL.indexOf("/unterkuenfte.")<0 &&
document.URL.indexOf("/rhein/pension.")<0 && document.URL.indexOf("/rhein/hotel.")<0 &&
document.URL.indexOf("/rhein/zimmer-gaestezimmer.")<0 && document.URL.indexOf("/rhein/ferienwohnung.")<0 &&
document.URL.indexOf("/rhein/ferienhaus.")<0 && document.URL.indexOf("/rhein/wohnmobilstellplatz.")<0)
hideVisible('DIV-UNTERKUENFTE');
else
activate('A-UNTERKUENFTE');
if(document.URL.indexOf("/veranstaltungen.")>=0)
activate('A-VERANSTALTUNGEN');
if(document.URL.indexOf("/sportliche-aktivitaeten.")>=0 || document.URL.indexOf("/sportliche-aktivitaeten/")>=0 ||
document.URL.indexOf("/angeln.")>=0 || document.URL.indexOf("/kanutour.")>=0 ||
document.URL.indexOf("/klettern.")>=0 ||document.URL.indexOf("/radtour-rhein-radweg.")>=0)
activate('A-AKTIVITAETEN');
if(document.URL.indexOf("/gastronomie/")<0 && document.URL.indexOf("/gastronomie.")<0)
hideVisible('DIV-GASTRONOMIE');
else
activate('A-GASTRONOMIE');
if(document.URL.indexOf("/fahrplaene.")>=0 || document.URL.indexOf("/fahrplaene/")>=0)
activate('A-FAHRPLAENE');
if(document.URL.indexOf("/links.")>=0)
activate('A-LINKS');
if(document.URL.indexOf("/kontakt.")>=0)
activate('A-KONTAKT');
if(document.URL.indexOf("/werben.")>=0)
activate('A-WERBEN');
if(document.URL.indexOf("/impressum.")>=0)
activate('A-IMPRESSUM');
if(document.URL.indexOf("/disclaimer.")>=0)
activate('A-DISCLAIMER');
if(document.URL.indexOf("/sitemap.")>=0)
activate('A-SITEMAP');
// Navigationsleiste Hauptmenue Ende
// Navigationsleiste UNTERKUENFTE Menue Anfang
if(document.URL.indexOf("/hotel.")>=0 || document.URL.indexOf("/hotel/")>=0)
activate('A-HOTEL');
if(document.URL.indexOf("/wohnmobilstellplatz.")>=0 || document.URL.indexOf("/wohnmobilstellplatz/")>=0)
activate('A-WOHNMOBILSTELLPLATZ');
if(document.URL.indexOf("/pension.")>=0 || document.URL.indexOf("/pension/")>=0)
activate('A-PENSION');
if(document.URL.indexOf("/gaestezimmer.")>=0 || document.URL.indexOf("/gaestezimmer/")>=0 ||
document.URL.indexOf("/zimmer-gaestezimmer.")>=0)
activate('A-GAESTEZIMMER');
if(document.URL.indexOf("/ferienhaus.")>=0 || document.URL.indexOf("/ferienhaus/")>=0)
activate('A-FERIENHAUS');
if(document.URL.indexOf("/ferienwohnung.")>=0 || document.URL.indexOf("/ferienwohnung/")>=0)
activate('A-FERIENWOHNUNG');
if(document.URL.indexOf("/jugendherberge.")>=0 || document.URL.indexOf("/jugendherberge/")>=0)
activate('A-JUGENDHERBERGE');
if(document.URL.indexOf("/campingplatz.")>=0 || document.URL.indexOf("/campingplatz/")>=0)
activate('A-CAMPINGPLATZ');
// Navigationsleiste Unterkünfte Menue Ende
// Navigationsleiste Gastronomie Menue Anfang
if(document.URL.indexOf("/weingut.")>=0 || document.URL.indexOf("/weingut/")>=0)
activate('A-WEINGUT');
if(document.URL.indexOf("/restaurant.")>=0 || document.URL.indexOf("/restaurant/")>=0)
activate('A-RESTAURANT');
if(document.URL.indexOf("/gaststaette.")>=0 || document.URL.indexOf("/gaststaette/")>=0)
activate('A-GASTSTAETTE');
if(document.URL.indexOf("/cafe.")>=0 || document.URL.indexOf("/cafe/")>=0)
activate('A-CAFE');
if(document.URL.indexOf("/eisdiele.")>=0 || document.URL.indexOf("/eisdiele/")>=0)
activate('A-EISDIELE');
if(document.URL.indexOf("/imbiss.")>=0 || document.URL.indexOf("/imbiss/")>=0)
activate('A-IMBISS');
// Navigationsleiste Unterkünfte Menue Ende
}
function prepairNavigationUnterkuenfte()
{
// Navigationsleiste HAUPTMENUE Anfang
if(document.URL.indexOf("/burgen.")>=0 || document.URL.indexOf("/burgen/")>=0)
activate('A-BURGEN');
if(document.URL.indexOf("/stadtbeschreibung.")>=0 || document.URL.indexOf("/stadtbeschreibung/")>=0)
activate('A-STADTBESCHREIBUNG');
if(document.URL.indexOf("/wandern.")>=0 || document.URL.indexOf("/wandern/")>=0)
activate('A-WANDERN');
if(document.URL.indexOf("/unterkunft/")<0 && document.URL.indexOf("/unterkunft.")<0 && document.URL.indexOf("/unterkuenfte.")<0 &&
document.URL.indexOf("/rhein/pension.")<0 && document.URL.indexOf("/rhein/hotel.")<0 &&
document.URL.indexOf("/rhein/zimmer-gaestezimmer.")<0 && document.URL.indexOf("/rhein/ferienwohnung.")<0 &&
document.URL.indexOf("/rhein/ferienhaus.")<0 && document.URL.indexOf("/rhein/wohnmobilstellplatz.")<0 &&
document.URL.indexOf("/rhein/campingplatz.")<0 && document.URL.indexOf("/rhein/jugendherberge.")<0)
hideVisible('DIV-UNTERKUENFTE');
else
activate('A-UNTERKUENFTE');
if(document.URL.indexOf("/veranstaltungen.")>=0)
activate('A-VERANSTALTUNGEN');
if(document.URL.indexOf("/sportliche-aktivitaeten.")>=0 || document.URL.indexOf("/sportliche-aktivitaeten/")>=0)
activate('A-AKTIVITAETEN');
if(document.URL.indexOf("/fahrplaene.")>=0 || document.URL.indexOf("/fahrplaene/")>=0)
activate('A-FAHRPLAENE');
if(document.URL.indexOf("/links.")>=0)
activate('A-LINKS');
if(document.URL.indexOf("/kontakt.")>=0)
activate('A-KONTAKT');
if(document.URL.indexOf("/werben.")>=0)
activate('A-WERBEN');
if(document.URL.indexOf("/impressum.")>=0)
activate('A-IMPRESSUM');
if(document.URL.indexOf("/disclaimer.")>=0)
activate('A-DISCLAIMER');
if(document.URL.indexOf("/sitemap.")>=0)
activate('A-SITEMAP');
// Navigationsleiste Hauptmenue Ende
// Navigationsleiste UNTERKUENFTE Menue Anfang
if(document.URL.indexOf("/hotel.")>=0 || document.URL.indexOf("/hotel/")>=0)
activate('A-HOTEL');
if(document.URL.indexOf("/wohnmobilstellplatz.")>=0 || document.URL.indexOf("/wohnmobilstellplatz/")>=0)
activate('A-WOHNMOBILSTELLPLATZ');
if(document.URL.indexOf("/pension.")>=0 || document.URL.indexOf("/pension/")>=0)
activate('A-PENSION');
if(document.URL.indexOf("/gaestezimmer.")>=0 || document.URL.indexOf("/gaestezimmer/")>=0 ||
document.URL.indexOf("/zimmer-gaestezimmer.")>=0 || document.URL.indexOf("/zimmer-gaestezimmer/")>=0)
activate('A-GAESTEZIMMER');
if(document.URL.indexOf("/ferienhaus.")>=0 || document.URL.indexOf("/ferienhaus/")>=0)
activate('A-FERIENHAUS');
if(document.URL.indexOf("/ferienwohnung.")>=0 || document.URL.indexOf("/ferienwohnung/")>=0)
activate('A-FERIENWOHNUNG');
if(document.URL.indexOf("/jugendherberge.")>=0 || document.URL.indexOf("/jugendherberge/")>=0)
activate('A-JUGENDHERBERGE');
if(document.URL.indexOf("/campingplatz.")>=0 || document.URL.indexOf("/campingplatz/")>=0)
activate('A-CAMPINGPLATZ');
// Navigationsleiste Unterkünfte Menue Ende
}
function prepairNavigationVertikal()
{
// Navigationsleiste HAUPTMENUE Anfang
if(document.URL.indexOf("/burgen-und-schloesser.")>=0 || document.URL.indexOf("/burgen-und-schloesser/")>=0)
activate('A-BURGEN');
if(document.URL.indexOf("/stadtbeschreibung.")>=0 || document.URL.indexOf("/stadtbeschreibung/")>=0)
activate('A-STADTBESCHREIBUNG');
if(document.URL.indexOf("/wandern.")>=0 || document.URL.indexOf("/wandern/")>=0)
activate('A-WANDERN');
if(document.URL.indexOf("/veranstaltungen.")>=0)
activate('A-VERANSTALTUNGEN');
if(document.URL.indexOf("/sportliche-aktivitaeten.")>=0 || document.URL.indexOf("/sportliche-aktivitaeten/")>=0 ||
document.URL.indexOf("/angeln.")>=0 || document.URL.indexOf("/kanutour.")>=0 ||
document.URL.indexOf("/klettern.")>=0 ||document.URL.indexOf("/radtour-rhein-radweg.")>=0)
activate('A-AKTIVITAETEN');
if(document.URL.indexOf("/fahrplaene.")>=0 || document.URL.indexOf("/fahrplaene/")>=0)
activate('A-FAHRPLAENE');
if(document.URL.indexOf("/links.")>=0)
activate('A-LINKS');
if(document.URL.indexOf("/kontakt.")>=0)
activate('A-KONTAKT');
if(document.URL.indexOf("/werben.")>=0)
activate('A-WERBEN');
if(document.URL.indexOf("/impressum.")>=0)
activate('A-IMPRESSUM');
if(document.URL.indexOf("/disclaimer.")>=0)
activate('A-DISCLAIMER');
if(document.URL.indexOf("/sitemap.")>=0)
activate('A-SITEMAP');
// Navigationsleiste Hauptmenue Ende
}
// Deutsche Navigation Ende
function jsAppendOptionLast(optionText, optionValue , selectElementId)
{
var parentdoc = window.parent.document;
var elOptNew = parentdoc.createElement('option');
elOptNew.text = optionText;
elOptNew.value = optionValue;
var elSel = parentdoc.getElementById(selectElementId);
try
{
try
{
elSel.add(elOptNew, null); // standards compliant; doesn't work in IE
}
catch(ex)
{
elSel.add(elOptNew); // IE only
}
}
catch(ex)
{
alert(ex);
}
}
function jsInsertOptionBefore(optionText, optionValue, selectElementId)
{
var elSel = document.getElementById(selectElementId);
if (elSel.selectedIndex >= 0) {
var elOptNew = document.createElement('option');
elOptNew.text = optionText;
elOptNew.value = optionValue;
var elOptOld = elSel.options[elSel.selectedIndex];
try {
elSel.add(elOptNew, elOptOld); // standards compliant; doesn't work in IE
}
catch(ex) {
elSel.add(elOptNew, elSel.selectedIndex); // IE only
}
}
}
function removeOptionSelected(selectElementId)
{
var elSel = document.getElementById(selectElementId);
var i;
for (i = elSel.length - 1; i>=0; i--) {
if (elSel.options[i].selected) {
elSel.remove(i);
}
}
}
function appendOptionLast(optionText, optionValue, selectElementId)
{
var elOptNew = document.createElement('option');
elOptNew.text = optionText;
elOptNew.value = optionValue;
var elSel = document.getElementById(selectElementId);
try {
elSel.add(elOptNew, null); // standards compliant; doesn't work in IE
}
catch(ex) {
elSel.add(elOptNew); // IE only
}
}
function removeOptionLast(selectElementId)
{
var elSel = document.getElementById(selectElementId);
if (elSel.length > 0)
{
elSel.remove(elSel.length - 1);
}
}
// -->

