function FotoGallery() {
window.open("../fgallery/index.php","GalleryPopup","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=800,height=600")
}
function sendform_de()
{	
	errfound = false;
	
	if (!ValidLength(document.Form1.TxtNome.value,3))
		error(document.Form1.TxtNome,"Bitte geben Sie Ihren Namen ein.");
	if (!ValidEmail(document.Form1.TxtMail.value))
		error(document.Form1.TxtMail, "Bitte geben Sie Ihre E-Mail Adresse ein.");
	if (document.Form1.TxtPrivacy.checked == 0)
		error(document.Form1.TxtPrivacy,"Sie müssen die Bedingungen des Gesetzes 675/96\nüber die Behandlung der persönlichen Daten\nzustimmen.");
	if (errfound == false)
		{
			document.Form1.BtnSend.disabled = true;
			document.Form1.BtnSend.value = '.................';
			document.Form1.submit();
		}
}

function sendform_it()
{	
	errfound = false;
	
	if (!ValidLength(document.Form1.TxtNome.value,3))
		error(document.Form1.TxtNome,"Inserire il proprio nome.");
	if (!ValidEmail(document.Form1.TxtMail.value))
		error(document.Form1.TxtMail, "Inserire il proprio indirizzo e-mail.");
	if (document.Form1.TxtPrivacy.checked == 0)
		error(document.Form1.TxtPrivacy,"Per proseguire è necessario acconsentire il trattamento dei dati personali.");
	if (errfound == false)
		{
			document.Form1.BtnSend.disabled = true;
			document.Form1.BtnSend.value = '.................';
			document.Form1.submit();
		}
}

function sendform_en()
{	
	errfound = false;
	
	if (!ValidLength(document.Form1.TxtNome.value,3))
		error(document.Form1.TxtNome,"Please enter your first name.");
	if (!ValidEmail(document.Form1.TxtMail.value))
		error(document.Form1.TxtMail, "Please enter your e-mail address.");
	if (document.Form1.TxtPrivacy.checked == 0)
		error(document.Form1.TxtPrivacy,"To continue you must agree the privacy statement.");
	if (errfound == false)
		{
			document.Form1.BtnSend.disabled = true;
			document.Form1.BtnSend.value = '.................';
			document.Form1.submit();
		}
}

function sendform_fr()
{	
	errfound = false;
	
	if (!ValidLength(document.Form1.TxtNome.value,3))
		error(document.Form1.TxtNome,"Insérer le propre prénom.");
	if (!ValidEmail(document.Form1.TxtMail.value))
		error(document.Form1.TxtMail, "Insérer le propre e-mail.");
	if (document.Form1.TxtPrivacy.checked == 0)
		error(document.Form1.TxtPrivacy,"Pour continuer est nécessaire consentir le traitement des données personnelles.");
	if (errfound == false)
		{
			document.Form1.BtnSend.disabled = true;
			document.Form1.BtnSend.value = '.................';
			document.Form1.submit();
		}
}


// POPUPS -------------------------------------------------------------------------------------------------------------
function SkiMap() {
window.open("http://www.val-gardena.net/skimap/skimap_it.htm","PopSkiMap","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=800,height=550")
}
function IsMap() {
window.open("http://www.val-gardena.net/location.asp?abc=h&nome=Hotel%20Gardena%20-%20Groednerhof&nr=13&loc=1","POPMap","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=700,height=450")
}
function Newsletter() {
window.open("../newsletter/pop_iscrizione.asp?l=fr","PopNewsletter","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=0,width=440,height=540")
}

function Hotel1() {
window.open("../360pop/stulri_gard_2821.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Hotel1b() {
window.open("../fullscreen/i_gard_6347.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Hotel2() {
window.open("../360pop/stulri_gard_2814.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Hotel2b() {
window.open("../fullscreen/i_gard_6318.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Hotel3() {
window.open("../360pop/stulri_gard_2831.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Hotel3b() {
window.open("../fullscreen/i_gard_6308.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Hotel4() {
window.open("../360pop/stulri_gard_2843.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Hotel4b() {
window.open("../fullscreen/i_gard_6380.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Gourmet1() {
window.open("../360pop/i_gard_6052.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Gourmet1b() {
window.open("../fullscreen/i_gard_6052.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Gourmet2() {
window.open("../360pop/i_gard_6265.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Gourmet2b() {
window.open("../fullscreen/i_gard_6265.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Weinkeller() {
window.open("../360pop/stulri_gard_3092.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function AnnaStuben1() {
window.open("../360pop/stulri_gard_2837.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function AnnaStuben1b() {
window.open("../fullscreen/i_gard_6047.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Gourmet3() {
window.open("../360pop/i_gard_6052.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Gourmet3b() {
window.open("../fullscreen/i_gard_6052.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Gourmet4() {
window.open("../360pop/i_gard_6265.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Gourmet4b() {
window.open("../fullscreen/i_gard_6265.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Beauty1() {
window.open("../360pop/stulri_gard_2687.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Beauty1b() {
window.open("../fullscreen/i_gard_6027.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Wellness1() {
window.open("../360pop/stulri_gard_3005.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Wellness1b() {
window.open("../fullscreen/i_gard_6338.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Wellness2() {
window.open("../360pop/i_gard_6329.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Wellness2b() {
window.open("../fullscreen/i_gard_6329.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Wellness3() {
window.open("../360pop/stulri_gard_3072.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Wellness3b() {
window.open("../fullscreen/i_gard_6012.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Wellness4() {
window.open("../360pop/stulri_gard_3070.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Wellness4b() {
window.open("../fullscreen/i_gard_5992.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Wellness5() {
window.open("../360pop/stulri_gard_3064.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Wellness5b() {
window.open("../fullscreen/i_gard_6007.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Wellness6() {
window.open("../360pop/stulri_gard_3062.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Wellness6b() {
window.open("../fullscreen/i_gard_6002.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Wellness7() {
window.open("../360pop/stulri_gard_3052.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Wellness7b() {
window.open("../fullscreen/i_gard_5986.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0")
}

function Wellness8() {
window.open("../360pop/stulri_gard_2751.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function Meeting1() {
window.open("../360pop/stulri_gard_3100.html","POP360","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=370,height=250")
}

function vt() {
window.open("../mm/vt.htm","POPUP","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=550,height=355")
}

function Bedingungen() {
window.open("bedingungen.asp","POPUP","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=0,width=660,height=400")
}

function Privacy() {
window.open("privacy.asp","POPUP","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=0,width=660,height=400")
}

function Skiverleih() {
window.open("preise-skiverleih.asp","POPUP","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=0,width=800,height=500")
}

function Skiservice() {
window.open("skiservice.asp","POPUP","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=0,width=660,height=400")
}
// --------------------------------------------------------------------------------------------------------------------


// FORM SEND ----------------------------------------------------------------------------------------------------------
function ValidLength(item, len) 
{	
	return(item.length >=len);
}

function ValidEmail(item)
{	
	if(!ValidLength(item,5)) return false;
	if(item.indexOf('@',0) == -1) return false;
	if(item.indexOf('.',0) == -1) return false;
	if(item.indexOf(',',0) > 0) return false;
	return true;	
}

function SendGutschein()
{	
	errfound = false;
	
	if (!ValidLength(document.FrmGut.TxtWert.value,3))
		error(document.FrmGut.TxtWert,"Bitte geben Sie den Wert des Gutscheines ein.");
	if (!ValidLength(document.FrmGut.TxtVorname.value,3))
		error(document.FrmGut.TxtVorname,"Insérer le propre prénom.");
	if (!ValidLength(document.FrmGut.TxtNachname.value,3))
		error(document.FrmGut.TxtNachname,"Insérer le propre nom.");
	if (!ValidLength(document.FrmGut.TxtTel.value,6))
		error(document.FrmGut.TxtTel,"Bitte geben Sie Ihre Telefonnummer ein.");
	if (!ValidEmail(document.FrmGut.TxtMail.value))
		error(document.FrmGut.TxtMail, "Insérer le propre e-mail.");
	if (document.FrmGut.TxtPrivacy.checked == 0)
		error(document.FrmGut.TxtPrivacy,"Pour continuer est nécessaire consentir le traitement des données personnelles.");
	if (errfound == false)
		{
			document.FrmGut.TxtCheck03.value = 'validato';
			document.FrmGut.BtnSend.disabled = true;
			document.FrmGut.BtnSend.value = 'Ihre Anfrage wird gesendet...';
			document.FrmGut.submit();
		}
}

function SendBeauty()
{	
	errfound = false;
	
	if (!ValidLength(document.FrmBeauty.TxtVorname.value,3))
		error(document.FrmBeauty.TxtVorname,"Insérer le propre prénom.");
	if (!ValidLength(document.FrmBeauty.TxtNachname.value,3))
		error(document.FrmBeauty.TxtNachname,"Insérer le propre nom.");
	if (!ValidLength(document.FrmBeauty.TxtTel.value,6))
		error(document.FrmBeauty.TxtTel,"Bitte geben Sie Ihre Telefonnummer ein.");
	if (!ValidEmail(document.FrmBeauty.TxtMail.value))
		error(document.FrmBeauty.TxtMail, "Insérer le propre e-mail.");
	if (!ValidLength(document.FrmBeauty.TxtWeiteres.value,6))
		error(document.FrmBeauty.TxtWeiteres,"Bitte geben Sie Ihre Anfrage ein.");
	if (document.FrmBeauty.TxtPrivacy.checked == 0)
		error(document.FrmBeauty.TxtPrivacy,"Pour continuer est nécessaire consentir le traitement des données personnelles.");
	if (errfound == false)
		{
			document.FrmBeauty.TxtCheck03.value = 'validato';
			document.FrmBeauty.BtnSend.disabled = true;
			document.FrmBeauty.BtnSend.value = 'Ihre Anfrage wird gesendet...';
			document.FrmBeauty.submit();
		}
}


function SendKarriere()
{	
	errfound = false;
	
	if (!ValidLength(document.FrmKarriere.TxtVorname.value,3))
		error(document.FrmKarriere.TxtVorname,"Insérer le propre prénom.");
	if (!ValidLength(document.FrmKarriere.TxtNachname.value,3))
		error(document.FrmKarriere.TxtNachname,"Insérer le propre nom.");
	if (!ValidLength(document.FrmKarriere.TxtGeburtsdatum.value,6))
		error(document.FrmKarriere.TxtGeburtsdatum,"Insérer le propre date de naissance.");
	if (!ValidLength(document.FrmKarriere.TxtFamilienstand.value,3))
		error(document.FrmKarriere.TxtFamilienstand,"Insérer le propre état civil.");
	if (!ValidLength(document.FrmKarriere.TxtNationalitat.value,3))
		error(document.FrmKarriere.TxtNationalitat,"Insérer le propre nationalité.");
	if (!ValidLength(document.FrmKarriere.TxtStadt.value,3))
		error(document.FrmKarriere.TxtStadt,"Insérer le propre ville.");
	if (!ValidLength(document.FrmKarriere.TxtPlz.value,3))
		error(document.FrmKarriere.TxtPlz,"Insérer le propre CP.");
	if (!ValidLength(document.FrmKarriere.TxtLand.value,3))
		error(document.FrmKarriere.TxtLand,"Insérer le propre pays.");
	if (!ValidEmail(document.FrmKarriere.TxtMail.value))
		error(document.FrmKarriere.TxtMail, "Insérer le propre e-mail.");
	if (!ValidLength(document.FrmKarriere.TxtLebenslauf.value,5))
		error(document.FrmKarriere.TxtLebenslauf,"Insère le propre curriculum.");
	if (!ValidLength(document.FrmKarriere.TxtBild.value,5))
		error(document.FrmKarriere.TxtBild,"Insère le propre photo.");

	if (document.FrmKarriere.TxtPrivacy.checked == 0)
		error(document.FrmKarriere.TxtPrivacy,"Pour continuer est nécessaire consentir le traitement des données personnelles.");
	if (errfound == false)
		{
			//document.getElementById('hidepage').style.visibility = 'visible';
			//document.getElementById('hidepage').style.display = '';
			document.FrmKarriere.TxtCheck03.value = 'validato';
			document.FrmKarriere.BtnSend.disabled = true;
			document.FrmKarriere.BtnSend.value = '-----------------------------\nSending your request...\nPlease wait...\n-----------------------------';
			document.FrmKarriere.submit();
		}
}

function error(elem, text)
{	if (errfound) return;
	window.alert(text)
	elem.select();
	elem.focus;
	errfound = true;
}

// --------------------------------------------------------------------------------------------------------------------


// PREZZI SELECT ------------------------------------------------------------------------------------------------------

function getElementsByClassName(className, tag, elm){
	var testClass = new RegExp("(^|\\s)" + className + "(\\s|$)");
	var tag = tag || "*";
	var elm = elm || document;
	var elements = (tag == "*" && elm.all)? elm.all : elm.getElementsByTagName(tag);
	var returnElements = [];
	var current;
	var length = elements.length;
	for(var i=0; i<length; i++){
		current = elements[i];
		if(testClass.test(current.className)){
			returnElements.push(current);
		}
	}
	return returnElements;
}

function addClassName(elm, className){
    var currentClass = elm.className;
    if(!new RegExp(("(^|\\s)" + className + "(\\s|$)"), "i").test(currentClass)){
        elm.className = currentClass + ((currentClass.length > 0)? " " : "") + className;
    }
    return elm.className;
}

function removeClassName(elm, className){
    var classToRemove = new RegExp(("(^|\\s)" + className + "(\\s|$)"), "i");
    elm.className = elm.className.replace(classToRemove, "").replace(/^\s+|\s+$/g, "");
    return elm.className;
}

function activateThisColumn(column) {
	var table = document.getElementById('pricetable');
	
	var tds = table.getElementsByTagName('td');
	for (var m=0; m<tds.length; m++) {
		removeClassName(tds[m], 'on');
	}
	
	var newtds = getElementsByClassName(column, 'td', table);
	for (var i=0; i<newtds.length; i++) {
		addClassName(newtds[i], 'on');
	}

	// seconda tabella
	var table2 = document.getElementById('pricetable2');
	
	var tds2 = table2.getElementsByTagName('td');
	for (var m2=0; m2<tds2.length; m2++) {
		removeClassName(tds2[m2], 'on');
	}
	
	var newtds2 = getElementsByClassName(column, 'td', table2);
	for (var i2=0; i2<newtds2.length; i2++) {
		addClassName(newtds2[i2], 'on');
	}
}
// --------------------------------------------------------------------------------------------------------------------




// MENU ---------------------------------------------------------------------------------------------------------------
function ResetAll()
{
		document.getElementById('SubMenu01').style.display = 'none'
		document.getElementById('SubMenu02').style.display = 'none'
		document.getElementById('SubMenu03').style.display = 'none'
		//document.getElementById('SubMenu04').style.display = 'none'
		document.getElementById('SubMenu05').style.display = 'none'
		document.getElementById('SubMenu06').style.display = 'none'
		//document.getElementById('SubMenu07').style.display = 'none'
		document.getElementById('SubMenu08').style.display = 'none'
		document.getElementById('SubMenu09').style.display = 'none'
		document.getElementById('SubMenu10').style.display = 'none'
}
function Menu01()
{
		document.getElementById('SubMenu01').style.display = ''
		document.getElementById('SubMenu02').style.display = 'none'
		document.getElementById('SubMenu03').style.display = 'none'
		//document.getElementById('SubMenu04').style.display = 'none'
		document.getElementById('SubMenu05').style.display = 'none'
		document.getElementById('SubMenu06').style.display = 'none'
		//document.getElementById('SubMenu07').style.display = 'none'
		document.getElementById('SubMenu08').style.display = 'none'
		document.getElementById('SubMenu09').style.display = 'none'
		document.getElementById('SubMenu10').style.display = 'none'
		
		document.getElementById('MI01').src = '../img/layout/mnuopen.gif'
		document.getElementById('MI02').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI03').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI04').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI05').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI06').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI07').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI08').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI09').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI10').src = '../img/layout/mnuclose.gif'
}
function Menu02()
{
		document.getElementById('SubMenu01').style.display = 'none'
		document.getElementById('SubMenu02').style.display = ''
		document.getElementById('SubMenu03').style.display = 'none'
		//document.getElementById('SubMenu04').style.display = 'none'
		document.getElementById('SubMenu05').style.display = 'none'
		document.getElementById('SubMenu06').style.display = 'none'
		//document.getElementById('SubMenu07').style.display = 'none'
		document.getElementById('SubMenu08').style.display = 'none'
		document.getElementById('SubMenu09').style.display = 'none'
		document.getElementById('SubMenu10').style.display = 'none'
		
		document.getElementById('MI01').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI02').src = '../img/layout/mnuopen.gif'
		document.getElementById('MI03').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI04').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI05').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI06').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI07').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI08').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI09').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI10').src = '../img/layout/mnuclose.gif'
}
function Menu03()
{
		document.getElementById('SubMenu01').style.display = 'none'
		document.getElementById('SubMenu02').style.display = 'none'
		document.getElementById('SubMenu03').style.display = ''
		//document.getElementById('SubMenu04').style.display = 'none'
		document.getElementById('SubMenu05').style.display = 'none'
		document.getElementById('SubMenu06').style.display = 'none'
		//document.getElementById('SubMenu07').style.display = 'none'
		document.getElementById('SubMenu08').style.display = 'none'
		document.getElementById('SubMenu09').style.display = 'none'
		document.getElementById('SubMenu10').style.display = 'none'
		
		document.getElementById('MI01').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI02').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI03').src = '../img/layout/mnuopen.gif'
		//document.getElementById('MI04').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI05').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI06').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI07').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI08').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI09').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI10').src = '../img/layout/mnuclose.gif'
}
function Menu04()
{
		document.getElementById('SubMenu01').style.display = 'none'
		document.getElementById('SubMenu02').style.display = 'none'
		document.getElementById('SubMenu03').style.display = 'none'
		//document.getElementById('SubMenu04').style.display = ''
		document.getElementById('SubMenu05').style.display = 'none'
		document.getElementById('SubMenu06').style.display = 'none'
		//document.getElementById('SubMenu07').style.display = 'none'
		document.getElementById('SubMenu08').style.display = 'none'
		document.getElementById('SubMenu09').style.display = 'none'
		document.getElementById('SubMenu10').style.display = 'none'
		
		document.getElementById('MI01').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI02').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI03').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI04').src = '../img/layout/mnuopen.gif'
		document.getElementById('MI05').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI06').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI07').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI08').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI09').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI10').src = '../img/layout/mnuclose.gif'
}
function Menu05()
{
		document.getElementById('SubMenu01').style.display = 'none'
		document.getElementById('SubMenu02').style.display = 'none'
		document.getElementById('SubMenu03').style.display = 'none'
		//document.getElementById('SubMenu04').style.display = 'none'
		document.getElementById('SubMenu05').style.display = ''
		document.getElementById('SubMenu06').style.display = 'none'
		//document.getElementById('SubMenu07').style.display = 'none'
		document.getElementById('SubMenu08').style.display = 'none'
		document.getElementById('SubMenu09').style.display = 'none'
		document.getElementById('SubMenu10').style.display = 'none'
		
		document.getElementById('MI01').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI02').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI03').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI04').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI05').src = '../img/layout/mnuopen.gif'
		document.getElementById('MI06').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI07').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI08').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI09').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI10').src = '../img/layout/mnuclose.gif'
}
function Menu06()
{
		document.getElementById('SubMenu01').style.display = 'none'
		document.getElementById('SubMenu02').style.display = 'none'
		document.getElementById('SubMenu03').style.display = 'none'
		//document.getElementById('SubMenu04').style.display = 'none'
		document.getElementById('SubMenu05').style.display = 'none'
		document.getElementById('SubMenu06').style.display = ''
		//document.getElementById('SubMenu07').style.display = 'none'
		document.getElementById('SubMenu08').style.display = 'none'
		document.getElementById('SubMenu09').style.display = 'none'
		document.getElementById('SubMenu10').style.display = 'none'
		
		document.getElementById('MI01').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI02').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI03').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI04').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI05').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI06').src = '../img/layout/mnuopen.gif'
		//document.getElementById('MI07').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI08').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI09').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI10').src = '../img/layout/mnuclose.gif'
}
function Menu07()
{
		document.getElementById('SubMenu01').style.display = 'none'
		document.getElementById('SubMenu02').style.display = 'none'
		document.getElementById('SubMenu03').style.display = 'none'
		//document.getElementById('SubMenu04').style.display = 'none'
		document.getElementById('SubMenu05').style.display = 'none'
		document.getElementById('SubMenu06').style.display = 'none'
		//document.getElementById('SubMenu07').style.display = ''
		document.getElementById('SubMenu08').style.display = 'none'
		document.getElementById('SubMenu09').style.display = 'none'
		document.getElementById('SubMenu10').style.display = 'none'
		
		document.getElementById('MI01').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI02').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI03').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI04').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI05').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI06').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI07').src = '../img/layout/mnuopen.gif'
		document.getElementById('MI08').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI09').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI10').src = '../img/layout/mnuclose.gif'
}
function Menu08()
{
		document.getElementById('SubMenu01').style.display = 'none'
		document.getElementById('SubMenu02').style.display = 'none'
		document.getElementById('SubMenu03').style.display = 'none'
		//document.getElementById('SubMenu04').style.display = 'none'
		document.getElementById('SubMenu05').style.display = 'none'
		document.getElementById('SubMenu06').style.display = 'none'
		//document.getElementById('SubMenu07').style.display = 'none'
		document.getElementById('SubMenu08').style.display = ''
		document.getElementById('SubMenu09').style.display = 'none'
		document.getElementById('SubMenu10').style.display = 'none'
		
		document.getElementById('MI01').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI02').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI03').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI04').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI05').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI06').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI07').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI08').src = '../img/layout/mnuopen.gif'
		document.getElementById('MI09').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI10').src = '../img/layout/mnuclose.gif'
}
function Menu09()
{
		document.getElementById('SubMenu01').style.display = 'none'
		document.getElementById('SubMenu02').style.display = 'none'
		document.getElementById('SubMenu03').style.display = 'none'
		//document.getElementById('SubMenu04').style.display = 'none'
		document.getElementById('SubMenu05').style.display = 'none'
		document.getElementById('SubMenu06').style.display = 'none'
		//document.getElementById('SubMenu07').style.display = 'none'
		document.getElementById('SubMenu08').style.display = 'none'
		document.getElementById('SubMenu09').style.display = ''
		document.getElementById('SubMenu10').style.display = 'none'
		
		document.getElementById('MI01').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI02').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI03').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI04').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI05').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI06').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI07').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI08').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI09').src = '../img/layout/mnuopen.gif'
		document.getElementById('MI10').src = '../img/layout/mnuclose.gif'
}
function Menu10()
{
		document.getElementById('SubMenu01').style.display = 'none'
		document.getElementById('SubMenu02').style.display = 'none'
		document.getElementById('SubMenu03').style.display = 'none'
		//document.getElementById('SubMenu04').style.display = 'none'
		document.getElementById('SubMenu05').style.display = 'none'
		document.getElementById('SubMenu06').style.display = 'none'
		//document.getElementById('SubMenu07').style.display = 'none'
		document.getElementById('SubMenu08').style.display = 'none'
		document.getElementById('SubMenu09').style.display = 'none'
		document.getElementById('SubMenu10').style.display = ''
		
		document.getElementById('MI01').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI02').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI03').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI04').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI05').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI06').src = '../img/layout/mnuclose.gif'
		//document.getElementById('MI07').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI08').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI09').src = '../img/layout/mnuclose.gif'
		document.getElementById('MI10').src = '../img/layout/mnuopen.gif'
}

// --------------------------------------------------------------------------------------------------------------------


// MAIL ENCRYPTION ----------------------------------------------------------------------------------------------------
var emailriddlerarray=[105,110,102,111,64,103,97,114,100,101,110,97,46,105,116]
var encryptedemail_id44='' //variable to contain encrypted email 
for (var i=0; i<emailriddlerarray.length; i++)
encryptedemail_id44+=String.fromCharCode(emailriddlerarray[i])
// --------------------------------------------------------------------------------------------------------------------


// SLIDE SHOW ---------------------------------------------------------------------------------------------------------
      
/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
 
//var fadeimages2=new Array() //2nd array 
//fadeimages2[0]=["photo1.jpg", "", ""] //plain image syntax
//fadeimages2[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
//fadeimages2[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax

//fadeshow(fadeimages, 730, 262, 0, 4000, 0, 0) 
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)

var fadebgcolor="white"

////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}
// --------------------------------------------------------------------------------------------------------------------


// IMAGES POPUP -------------------------------------------------------------------------------------------------------
function Pop(name, w, h){  

    var s1 = ("<HTML><TITLE>Hotel Gardena - Grödnerhof</TITLE>" + 
    "<BODY onBlur='self.focus()' BGCOLOR='#FFFFFF' background='../images/layout/popbg.jpg' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>" + 
    "<table width='100%' height='100%' border='0' cellpadding='0' cellspacing='0'><tr><td align='center' valign='middle'><IMG OnClick='Javascript:window.close()' SRC='" + name + "' border='1' style='border-color:#000000'>" + "</tr></table>");   

    w = w + 20;
    h = h + 20;
    
    var param = ("height=" + h + ",width=" + w + ",scrollbars=no,resizable=no,left=50,top=50");

    popup = window.open("","popDialog",param)

    popup.document.write(s1)
    popup.document.close()
}

function PopItNew(theURL, w, h){
        ver = parseInt(navigator.appVersion.substring(0,1));       newWin=window.open(theURL,"ipix_pop","width="+w+",height="+h+",menubar=no,toolbar=no,status=yes,resizable=no,scrollbars=no,");
	if ((!((navigator.appName == "Netscape")&&(ver==2))) && (!((navigator.appName == "Microsoft Internet Explorer")&&(ver<4)))){
          setTimeout("if (newWin) newWin.focus();",1000);
    }
}
// --------------------------------------------------------------------------------------------------------------------


// INC ----------------------------------------------------------------------------------------------------------------
function IncludeJavaScript(jsFile)
{
  document.write('<script type="text/javascript" src="'
    + jsFile + '"></script>'); 
}
IncludeJavaScript('../scr/lb/prototype.js');
IncludeJavaScript('../scr/lb/scriptaculous.js?load=effects');
IncludeJavaScript('../scr/lb/lb.js');
IncludeJavaScript('../scr/pop2.js');
// --------------------------------------------------------------------------------------------------------------------