				
		// remote scripting library
		// (c) copyright 2005 modernmethod, inc
		var sajax_debug_mode = false;
		var sajax_request_type = "GET";
		var sajax_target_id = "";
		var sajax_failure_redirect = "";
		
		function sajax_debug(text) {
			if (sajax_debug_mode)
				alert(text);
		}
		
 		function sajax_init_object() {
 			sajax_debug("sajax_init_object() called..")
 			
 			var A;
 			
 			var msxmlhttp = new Array(
				'Msxml2.XMLHTTP.5.0',
				'Msxml2.XMLHTTP.4.0',
				'Msxml2.XMLHTTP.3.0',
				'Msxml2.XMLHTTP',
				'Microsoft.XMLHTTP');
			for (var i = 0; i < msxmlhttp.length; i++) {
				try {
					A = new ActiveXObject(msxmlhttp[i]);
				} catch (e) {
					A = null;
				}
			}
 			
			if(!A && typeof XMLHttpRequest != "undefined")
				A = new XMLHttpRequest();
			if (!A)
				sajax_debug("Could not create connection object.");
			return A;
		}
		
		var sajax_requests = new Array();
		
		function sajax_cancel() {
			for (var i = 0; i < sajax_requests.length; i++) 
				sajax_requests[i].abort();
		}
		
		function sajax_do_call(func_name, args) {
			var i, x, n;
			var uri;
			var post_data;
			var target_id;
			
			sajax_debug("in sajax_do_call().." + sajax_request_type + "/" + sajax_target_id);
			target_id = sajax_target_id;
			if (typeof(sajax_request_type) == "undefined" || sajax_request_type == "") 
				sajax_request_type = "GET";
			
			uri = "/scripts/jsdyn.php";
			if (sajax_request_type == "GET") {
			
				if (uri.indexOf("?") == -1) 
					uri += "?rs=" + escape(func_name);
				else
					uri += "&rs=" + escape(func_name);
				uri += "&rst=" + escape(sajax_target_id);
				uri += "&rsrnd=" + new Date().getTime();
				
				for (i = 0; i < args.length-1; i++) 
					uri += "&rsargs[]=" + escape(args[i]);

				post_data = null;
			} 
			else if (sajax_request_type == "POST") {
				post_data = "rs=" + escape(func_name);
				post_data += "&rst=" + escape(sajax_target_id);
				post_data += "&rsrnd=" + new Date().getTime();
				
				for (i = 0; i < args.length-1; i++) 
					post_data = post_data + "&rsargs[]=" + escape(args[i]);
			}
			else {
				alert("Illegal request type: " + sajax_request_type);
			}
			
			x = sajax_init_object();
			if (x == null) {
				if (sajax_failure_redirect != "") {
					location.href = sajax_failure_redirect;
					return false;
				} else {
					sajax_debug("NULL sajax object for user agent:\n" + navigator.userAgent);
					return false;
				}
			} else {
				x.open(sajax_request_type, uri, true);
				// window.open(uri);
				
				sajax_requests[sajax_requests.length] = x;
				
				if (sajax_request_type == "POST") {
					x.setRequestHeader("Method", "POST " + uri + " HTTP/1.1");
					x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
				}
			
				x.onreadystatechange = function() {
					if (x.readyState != 4) 
						return;

					sajax_debug("received " + x.responseText);
				
					var status;
					var data;
					var txt = x.responseText.replace(/^\s*|\s*$/g,"");
					status = txt.charAt(0);
					data = txt.substring(2);

					if (status == "") {
						// let's just assume this is a pre-response bailout and let it slide for now
					} else if (status == "-") 
						alert("Error: " + data);
					else {
						if (target_id != "") 
							document.getElementById(target_id).innerHTML = eval(data);
						else {
							try {
								var callback;
								var extra_data = false;
								if (typeof args[args.length-1] == "object") {
									callback = args[args.length-1].callback;
									extra_data = args[args.length-1].extra_data;
								} else {
									callback = args[args.length-1];
								}
								callback(eval(data), extra_data);
							} catch (e) {
								sajax_debug("Caught error " + e + ": Could not eval " + data );
							}
						}
					}
				}
			}
			
			sajax_debug(func_name + " uri = " + uri + "/post = " + post_data);
			x.send(post_data);
			sajax_debug(func_name + " waiting..");
			delete x;
			return true;
		}
		
				
		// wrapper for getBookingForm		
		function x_getBookingForm() {
			sajax_do_call("getBookingForm",
				x_getBookingForm.arguments);
		}
		
		/* ################################################################## */
/*
                   JavaScript Funktionen
                   fuer EPCOM Self-Edit 3.x

                   Author:  p.pirker & j.zauner, epcom it-systeme
                   Datum:   21.06.2005
                   Version: 1.1
                   (c):     2005 by EPCOM

/* ################################################################## */
if(top.SelfeditFrame){
    if(top.SelfeditFrame.kat)    { var $katnav=top.SelfeditFrame.kat;       }
    if(top.SelfeditFrame.center) { var $main=top.SelfeditFrame.center.main; }
    if(top.SelfeditFrame.center) { var $nav=top.SelfeditFrame.center.nav;   }
    if(top.SelfeditFrame.head)   { var $top=top.SelfeditFrame.head;         }
    if(top.SelfeditFrame.bottom) { var $bottom=top.SelfeditFrame.bottom;    }
}
/* ################################################################## */


var PopupWin=false;
var selectVals=Array();

function getFrameObject(frame){
	if(frame=='katnav' && top.SelfeditFrame.kat ){ 
		return top.SelfeditFrame.kat;
	}else if(frame=='main' && top.SelfeditFrame.center){
		return top.SelfeditFrame.center.main;
	}else if(frame=='nav' && top.SelfeditFrame.center){
		return top.SelfeditFrame.center.nav;
	}else if(frame=='top' && top.SelfeditFrame.head){
		return top.SelfeditFrame.head;
	}else if(frame=='bottom' && top.SelfeditFrame.bottom){
		return top.SelfeditFrame.bottom;
	}else{
		return undefined;
	}
}
function openPopup(page,fb,fh,options){
    if(PopupWin && PopupWin.closed==false){PopupWin.close(); }
    bb=screen.availWidth;
    bh=screen.availHeight;
    l=(bb-fb)/2;
    t=(bh-fh)/2;
    if(options==undefined){
	    $winopt="toolbar=no,menubar=no,location=no,scrollbars=auto,dependent=yes";
	    $winopt+=",resizable=no,fullscreen=0";
    }else{
    	$winopt=options;
    }
    $winopt+=",width="+fb+",height="+fh+",left="+l+",top="+t ;
    if(page=='http://www.epcom.cc/sehelp/index.php'){
        PopupWin = this.open(page, "PopupHelpWin", $winopt);
    }else{
        PopupWin = this.open(page, "PopupWin", $winopt);
    }
}

/*#################################################################*/
function getIFrameDocument($ifObj){
	var $doc=($ifObj.contentWindow || $ifObj.contentDocument);
	if ($doc.document) {
		$doc = $doc.document;
	}
	return $doc;
}

/*#################### TRIM Funktionen ###################################*/

/*  */
function ltrim(str){
   var whitespace = new String(" \t\n\r");
   var s = new String(str);
   if (whitespace.indexOf(s.charAt(0)) != -1) {
      var j=0, i = s.length;
      while (j < i && whitespace.indexOf(s.charAt(j)) != -1)
         j++;
      s = s.substring(j, i);
   }
   return s;
}

function rtrim(str){
   var whitespace = new String(" \t\n\r");
   var s = new String(str);
   if (whitespace.indexOf(s.charAt(s.length-1)) != -1) {
      var i = s.length - 1;       // Get length of string
      while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)
         i--;
      s = s.substring(0, i+1);
   }
   return s;
}

function trim(str){
   return rtrim(ltrim(str));
}

/*################	Mail checker ######################################*/

function chkfilled(feld,feldname,$lang) {
    if(!$lang){$lang="de";}
    if($lang=="de"){
        $alert=encStr('Bitte f&uuml;llen Sie das Feld ' + feldname + ' aus!');
    }else{
        $alert='Please fill in the field ' + feldname + '!';
    }
    if (feld.value == "") {
        alert($alert);
        if(feld.parentNode.style.visibility=='visible'){ feld.focus(); }
        return false;
    }
    return true;
}
function chkemail(feld,$lang) {
    if(!$lang){$lang="de";}
    var txt=feld.value;
    return chkmail(txt,$lang);
}

function chkmail(txt,$lang) {
    if(!$lang){$lang="de";}
    if($lang=="de"){
        $alert=encStr('Sie m&uuml;ssen eine g&uuml;ltige E-Mailadresse eingeben');
    }else{
        $alert="You have to fill in a valid email-adress";
    }
    if (txt.search(/ /) != -1){
       alert($alert);
       return false;
    }
    if ( txt == ""){
       alert($alert);
       return false;
    }
    ary1=txt.split('\@');
    if ( ary1[0].length < 2){
       alert($alert);
       return false;
    }
    if ( ary1[1] == null || ary1[1] == "" ){
       alert($alert);
       return false;
    }
    ary2=ary1[1].split('\.');
    if ( ary2[1] == null || ary2[1] == "" ){
       alert($alert);
       return false;
    }
    return true;
}

/*#################################################################*/
function chknr(nr,doalert) {
	if(doalert==undefined){ doalert=true; }
    chkZ=1;
    for(i=0;i<nr.length;++i){
        if((nr.charAt(i) < "0" || nr.charAt(i) > "9") && (nr.charAt(i) != "," && nr.charAt(i) != ".")){
            chkZ = -1;
        }
    }
    if(chkZ == -1){
       if(doalert){ alert(encStr('Sie d&uuml;rfen nur Zahlen verwenden!')); }
       return false;
    }
    return true;
}

/*#################################################################*/
function chkdate(ChkDate,silent) {
   if(silent==undefined){ silent=false; }	
   var Year=parseInt(ChkDate.substring(6,10), 10);
   var Month=parseInt(ChkDate.substring(3,5), 10);
   var Day=parseInt(ChkDate.substring(0,2), 10);
   var errMsg=encStr('Sie m&uuml;ssen ein g&uuml;ltiges Datum eingeben! (z.B.: 23.02.2012)');
   if ((ChkDate.charAt(2)==".") && (ChkDate.charAt(5)==".") && (ChkDate.length==10))
   {
       if ((Day<=31) && (Day>=1) && (Month>=1) && (Month<=12))
       {
         if((Month==1) || (Month==3) || (Month==5) || (Month==7) || (Month==8) || (Month==10) || (Month==12)) { return true; }
         else
         {
            if ((Day<=30) && (Day>=1))
            {
                if((Month==4) || (Month==6) || (Month==9) || (Month==11)) {
                    return true;
                }
               else
               {
                  if ((Day<=28) && (Day>=1)) { return true; }
                  else
                  {
                      if(Day==29)
                      {
                           if ((Year%4)==0)
                           {
                               if ((Year%100)!=0) { return true; }
                               else
                               {
                                     if ((Year%400)==0) { return true; }
                                     else { return false; }
                               }
                           }
                          else {
                          	
                              if(!silent){ alert (errMsg); }
                              return false; }
                      }
                      else {
                          if(!silent){ alert (errMsg); }
                          return false; }
                  }
            }
         }
        else {
            if(!silent){ alert (errMsg); }
            return false; }
       }
    }
    else {
        if(!silent){ alert (errMsg); }
        return false; }
  }
  else {
      if(!silent){ alert (errMsg); }
      return false; }
}

/*#################################################################*/
function chkTime(tStr,doAlert){
	var reg=/^[0-2]\d:[0-5]\d(:[0-5]\d)?$/;
	if(!reg.test(tStr)){
		if(doAlert==undefined || doAlert==true || doAlert==1){			
			alert(encStr('Sie m&uuml;ssen eine g&uuml;ltige Zeit eingeben! (z.B.: 01:18 oder 01:18:55)'));
		}
		return false;
	}
	return true;
}
/*#################################################################*/
function chkSelectedValue(obj,doAlert){
	var val=obj.value;
	if(val=='' || val==' ' || val=='0' || val=='null'){	 
		if(doAlert==undefined || doAlert==true || doAlert==1){			
			var ddName=obj.name;
			if(obj.title){ ddName=obj.title; }
			alert(encStr('Bitte w&auml;hlen Sie einen Eintrag aus dem Dropdown "'+ddName+'" aus.'));
		}
		return false;
	}else{
		return true;
	}
}
/*#################################################################*/
function isChecked(id){
	chkObject=document.getElementById('icon' + id);
	if(chkObject){
		if(chkObject.src.indexOf('checkboxno')!=-1){
			return false;
		}else{
			return true;
		}
	}else{
		alert('Objekt ' + id + ' nicht gefunden');
		return false;
	}
}
/*#################################################################*/
function picSelected(id){
	chkObject=document.getElementById('icon' + id);
	if(chkObject){
		if(chkObject.src.indexOf('/selfedit/icon/bild.gif')!=-1){
			return false;
		}else{
			return true;
		}
	}else{
		alert('Objekt ' + id + ' nicht gefunden');
		return false;
	}
}

/*#################################################################*/
xtime=false;
function showTooltip($text){
	if($text!='' && $text!='<tooltip>'){
		if(top.document.getElementById("tooltip")){ 
			$tt=top.document.getElementById("tooltip");
	       	go='top.document.getElementById("tooltip").style.visibility="visible"';
		}else if(top.picdbhead.document.getElementById("tooltip")){
			$tt=top.picdbhead.document.getElementById("tooltip");
	       	go='top.picdbhead.document.getElementById("tooltip").style.visibility="visible"';
		}else{
			alert('nix gfunden');
			return;
		}
	    with($tt){
	    	if(xtime){clearTimeout(xtime);}
		    if($text=='hide'){
	        	style.visibility='hidden';
		    }else{
		        xtime=window.setTimeout(go,500);
		        innerHTML=$text;
		    }
	    }
	}
}
/* ################################################################## */
function encStr(txt){
	if(txt != undefined){
		txt=txt.replace(/&auml;/g,'%E4');
		txt=txt.replace(/&ouml;/g,'%F6');
		txt=txt.replace(/&uuml;/g,'%FC');
		txt=txt.replace(/&Auml;/g,'%C4');
		txt=txt.replace(/&Uuml;/g,'%DC');
		txt=txt.replace(/&Ouml;/g,'%D6');
		txt=txt.replace(/&szlig;/g,'%DF');
	}
	return unescape(txt);
}
/* ################################################################## */
function aktDate(type){
	if(type==undefined){ type='date'; }
	var d=new Date();
	var j=d.getYear();
	if(j<1900){ j+=1900; } //FireFox startet die Jahresberechnung bei 1900 mit 0
	var dStr='';
	if(type=='date'){
		dStr=fmtDatePart(d.getDate()) + '.' + fmtDatePart((d.getMonth()+1)) + '.' + j;
	}else if(type=='time'){
		dStr=fmtDatePart(d.getHours()) + ':' + fmtDatePart(d.getMinutes()) + ':' + fmtDatePart(d.getSeconds());		
	}else if(type=='timestamp'){
		dStr=fmtDatePart(d.getDate()) + '.' + fmtDatePart((d.getMonth()+1)) + '.' + j + ' ' + fmtDatePart(d.getHours()) + ':' + fmtDatePart(d.getMinutes());				
	}else if(type=='timestamp_secs'){
		dStr=fmtDatePart(d.getDate()) + '.' + fmtDatePart((d.getMonth()+1)) + '.' + j + ' ' + fmtDatePart(d.getHours()) + ':' + fmtDatePart(d.getMinutes()) + ':' + fmtDatePart(d.getSeconds());				
	}
	return dStr;
}
/* ################################################################## */
function fmtDatePart(dPart){
	if(dPart<10){ return '0'+dPart; }else{ return dPart; }
}
/* ################################################################## */
function setSelected(selectId,selVal){
	if(document.getElementById(selectId)){
		var objSel=document.getElementById(selectId);
		for(var i=0;i < objSel.length;i++){
			if(objSel[i].value==selVal){ objSel.selectedIndex=i; return; }
		}
	}	
}

/*
   Funktion wurde angepasst da arr.length undefined liefert 
   for(var j=0;j < arr.length; j++){
*/
function fillSelect(objSelect,arr){
	objSelect.options.length=0;
	var i=0;
	//devLog('array ' + arr.length);
	for(var j=0;j < arr.length; j++){
		//devLog('j ' + j + ' => ' + arr[j]);
		obj=arr[j];
	    opt=document.createElement("option");
        opt.value=obj[0];
        opt.text=encStr(obj[1]);
objSelect.appendChild(opt);         i++;
	}
	if(selectVals!=undefined && objSelect.id){
		if(selectVals[objSelect.id]){
			for(i=0;i < objSelect.options.length;i++){
				if(objSelect.options[i].value==selectVals[objSelect.id]){
					objSelect.selectedIndex=i;
				}
			}
		}else{
			objSelect.selectedIndex=0;
		}
	}
}

/* ################################################################## */
function getDoc(doc){
    if(doc.getElementById('ifDiv')){
       if(doc.getElementById('ifDiv').style.visibility=='visible'){
       	   var iF=doc.getElementById('subiframe');
       	   doc=(iF.contentWindow || iF.contentDocument);
		   if (doc.document) {
		       doc = doc.document;
		   }
       }
    }
    return doc;
}

/* ################################################################## */
function clickRegister(index){		
	parent.location.href=parent.document.getElementById('reg' + index).href;
}
/* ################################################################## */

/* ################################################################## */
function chkIsAdmin($noError){
    $isAdmin=false;
    if($isAdmin==false && !$noError){
        alert(encStr('Diese Funktion steht nur Administratoren zur Verf&uuml;gung.'));
    }
    return false;
}

 var selectedLanguage='de';
 var videoObjects=Array();
 var videoObjectCnt=0;
 window.addEvent('domready',function(){
 videoObjects[videoObjectCnt++]=new video(7,'<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/sm-OzKUfyt8&amp;hl=en&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/sm-OzKUfyt8&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="345" height="264"></embed></object>')
 videoObjects[videoObjectCnt++]=new video(11,'<object width="400" height="321"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2805521&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2805521&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="321"></embed></object><br /><a href="http://vimeo.com/2805521">River Salza with Absolute Outdoors</a> from <a href="http://vimeo.com/user1111165">Hartwig Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.')
 videoObjects[videoObjectCnt++]=new video(12,'<object width="400" height="302"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2815321&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2815321&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="302"></embed></object><br /><a href="http://vimeo.com/">Rafting the Enns with Absolute Outdoors</a> from <a href="http://vimeo.com/user958747">Lukas Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.')
 videoObjects[videoObjectCnt++]=new video(14,'<object width="400" height="321"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2880601&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2880601&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="321"></embed></object><br /><a href="http://vimeo.com/">Canyoning Fischbach with ABSOLUTE OUTDOORS</a> from <a href="http://vimeo.com/user1111165">Hartwig Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.')
 videoObjects[videoObjectCnt++]=new video(15,'<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2881427&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2881427&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://vimeo.com/">Alpinpark Gesäuse with Absolute Outdoors</a> from <a href="http://vimeo.com/user958747">Lukas Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.')
 videoObjects[videoObjectCnt++]=new video(16,'<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2964344&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2964344&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://vimeo.com/2964344">Canyoning Höllgraben with Absolute Outdoors</a> from <a href="http://vimeo.com/luki">Lukas Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.')
 videoObjects[videoObjectCnt++]=new video(17,'<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2964159&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2964159&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://vimeo.com/2964159">Bike tours with Absolute Outdoors</a> from <a href="http://vimeo.com/luki">Lukas Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.')
 videoObjects[videoObjectCnt++]=new video(18,'<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2966346&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2966346&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://vimeo.com/2966346">Untitled</a> from <a href="http://vimeo.com/user1111165">Hartwig Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.')
 videoObjects[videoObjectCnt++]=new video(19,'<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=3026609&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=3026609&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://vimeo.com/3026609">Salzach sportiv with ABSOLUTE OUTDOORS</a> from <a href="http://vimeo.com/user1111165">Hartwig Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.')
 videoObjects[videoObjectCnt++]=new video(20,'<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=3027142&amp;amp;server=vimeo.com&amp;a mp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscr een=1" /><embed  src="http://vimeo.com/moogaloop.swf?clip_id=3027142&amp;amp;server=vimeo.com&amp;amp ;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscree n=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://vimeo.com/3027142">Canyoning "Strubklamm" with ABSOLUTE OUTDOORS</a> from <a href="http://vimeo.com/luki">Lukas Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.      Hartwig Strobl, Mag.')
 videoObjects[videoObjectCnt++]=new video(21,'<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=3092583&amp;amp;server=vimeo.com&amp;a mp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscr een=1" /><embed  src="http://vimeo.com/moogaloop.swf?clip_id=3092583&amp;amp;server=vimeo.com&amp;amp ;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscree n=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://vimeo.com/3092583">Canyoning "I-Motion" with ABSOLUTE OUTDOORS</a> from <a href="http://vimeo.com/luki">Lukas Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.')
 videoObjects[videoObjectCnt++]=new video(22,'<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=3407193&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=3407193&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://vimeo.com/3407193">Kayaking the White Nile - Uganda 2009</a> from <a href="http://vimeo.com/luki">Lukas Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.')
 videoObjects[videoObjectCnt++]=new video(23,'<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=3574324&amp;amp;server=vimeo.com&amp;a mp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscr een=1" /><embed  src="http://vimeo.com/moogaloop.swf?clip_id=3574324&amp;amp;server=vimeo.com&amp;amp ;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscree n=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://vimeo.com/3574324">Jet Boat</a> from <a href="http://vimeo.com/user1111165">Hartwig Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.')
 videoObjects[videoObjectCnt++]=new video(24,'<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=4152887&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=4152887&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://vimeo.com/4152887">Kajak Untertalbach</a> from <a href="http://vimeo.com/luki">Lukas Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.')
 videoObjects[videoObjectCnt++]=new video(25,'http://www.youtube.com/watch?v=iPH_MNY9xWc<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/iPH_MNY9xWc&amp;hl=en&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/iPH_MNY9xWc&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>')
 videoObjects[videoObjectCnt++]=new video(27,'<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2715032&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2715032&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><p><a href="http://vimeo.com/2715032">Husky-Weekend</a> from <a href="http://vimeo.com/user1111165">Hartwig Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.</p>')
 videoObjects[videoObjectCnt++]=new video(28,'<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/Tv0PAMLwTQM&amp;hl=de_DE&amp;fs=1&amp;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Tv0PAMLwTQM&amp;hl=de_DE&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>')
 videoObjects[videoObjectCnt++]=new video(30,'<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/DgMi2sRKmso&amp;hl=de_DE&amp;fs=1&amp;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DgMi2sRKmso&amp;hl=de_DE&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>')
 videoObjects[videoObjectCnt++]=new video(31,'<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/iUYNqYLpE40&amp;hl=de_DE&amp;fs=1&amp;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/iUYNqYLpE40&amp;hl=de_DE&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>')
 videoObjects[videoObjectCnt++]=new video(32,'<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/mXMND9i8cFs&amp;hl=de_DE&amp;fs=1&amp;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/mXMND9i8cFs&amp;hl=de_DE&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>')
 videoObjects[videoObjectCnt++]=new video(33,'<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=11374019&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=11374019&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><p><a href="http://vimeo.com/11374019">AOS - Adventures</a> from <a href="http://vimeo.com/luki">Lukas Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.</p>')
 videoObjects[videoObjectCnt++]=new video(35,'http://www.vimeo.com/16562462')
 videoObjects[videoObjectCnt++]=new video(36,'<iframe src="http://player.vimeo.com/video/34739095?title=0&amp;amp;byline=0&amp;amp;portrait=0" width="400" height="225" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe><p><a href="http://vimeo.com/34739095">Canyoning Aquarium</a> from <a href="http://vimeo.com/user1111165">Hartwig Strobl</a> on <a href="http://vimeo.com">Vimeo</a>.</p>')
 });


function picgalPreviewBoxMove(id,direction){
	if(movePicGal==true){
		if(document.getElementById('picgalPreviewBoxContent'+id)){
			var obj=document.getElementById('picgalPreviewBoxContent'+id);
			if(picGalWidth==-1){
				getPicGalWidth(obj);
			}
			debug('vorher ' + obj.style.left,false);
			var objLeft=0;
			if(!isNaN(parseInt(obj.style.left))){
				objLeft=parseInt(obj.style.left);
			}
			if(direction=='left'){
				debug('nachher ' + (objLeft-picGalStep) + 'px',true);
				debug('objLeft ' + objLeft + ', picGalWidth: ' + picGalWidth + 'obj.offsetWidth: ' + obj.offsetWidth,true);
				if(objLeft>(525-picGalWidth)){
					objLeft-=picGalStep;
				}else{
					movePicGal=false;
				}
					
			}else{
				if(objLeft<=(picGalStep*-1)){
					objLeft+=picGalStep;			
					debug('nachher ' + (objLeft+picGalStep) + 'px',true);	
				}else{
					objLeft=0;
					movePicGal=false;
				}							
			}
			obj.style.left=objLeft + 'px';
		}
		window.setTimeout('picgalPreviewBoxMove(' + id + ',\'' + direction + '\')',20);
	}
}


function loadBigPic(pic,alt,w,h,picId){
	var imgHTML='<img src="' + pic + '" alt="' + alt + '" />';
	document.getElementById('bigPic').style.width=w+'px';
	document.getElementById('bigPic').style.height=h+'px';
	//document.getElementById('bigPic').style.top=offsetTop+'px';
	var picTop=parseInt(getAbsPos(document.getElementById(picId),'top')) - 10 ;
	picTop -= 180;
		
	document.getElementById('bigPic').style.top= picTop + 'px';
	document.getElementById('bigPic').style.display='inline';
	document.getElementById('bigPic_content').style.display='inline';
	document.getElementById('bigPic_content').innerHTML=imgHTML;
}

function chkjsemail(txt) {
	var Meldung=encStr("Sie müssen eine gültige E-Mailadresse eingeben.");

    if (txt.search(/ /) != -1){
       alert(Meldung);
       return false;
    }
    if ( txt == ""){
       alert('');
       return false;
    }
    ary1=txt.split('\@');
    if ( ary1[0].length < 2){
       alert(Meldung);
       return false;
    }
    if ( ary1[1] == null || ary1[1] == "" ){
       alert(Meldung);
       return false;
    }
    ary2=ary1[1].split('\.');
    if ( ary2[1] == null || ary2[1] == "" ){
       alert(Meldung);
       return false;
    }
    return true;
}
function chkBookingIt(){
    if(document.getElementById('booking')){
    	
        if(document.getElementById('name').value=='' || document.getElementById('tel').value=='' || document.getElementById('strasse').value==''){
        	alert(encStr('Bitte füllen Sie alle Pflichtfelder korrekt aus!'));
            return false;
        }
        if(document.getElementById('email').value!=''){
            if(!chkjsemail(document.getElementById('email').value)){	return false; }
        }
        $plz=document.getElementById('plz').value;
        if($plz==''||!Ganzzahl($plz)||($plz.length<3 || $plz.length>6)){
        	alert('Bitte geben Sie eine korrekte PLZ ein');
            return false;
        }
		if(document.getElementById('preisIds')){
			var ids=document.getElementById('preisIds').value;
			var arr=ids.split("|");
			var found=false;
			for(var i=0;i<arr.length;i++){
				if(document.getElementById('anz'+arr[i]).value!=''){
					if(!Ganzzahl(document.getElementById('anz'+arr[i]).value)){
						alert('Bitte geben Sie bei der Anzahl nur Ganzzahlen ein.');
            			document.getElementById('anz'+arr[i]).focus();
            			return false;
					}
					found=true;
				}
			}
			if(found==false){
        		alert(encStr('Bitte füllen Sie alle Pflichtfelder korrekt aus!'));
	        	document.getElementById('anz'+arr[0]).focus();
    	        return false;			
			}
		}else if(document.getElementById('wert')){
			if(document.getElementById('wert').value==''){
				alert(encStr('Bitte geben Sie den gew&uuml;nschten Wert des Gutscheins ein.'));
            	document.getElementById('wert').focus();
            	return false;
			}
			if(!Ganzzahl(document.getElementById('wert').value)){
				alert('Bitte geben Sie bei dem Gutscheinwert nur Ganzzahlen ein.');
            	document.getElementById('wert').focus();
            	return false;
			}
		}
		
    	if(document.id('versand_post')){
			if(document.getElementById('versand_post').checked == false && document.getElementById('versand_pdf').checked == false ){
	        	alert(encStr('Bitte füllen Sie die Versandart aus!'));
	            return false;
			}
    	}
		
        if(document.getElementById('agb').checked == false){
           	alert(encStr('Bitte bestätigen Sie, dass Sie unsere Bedingungen akzeptieren'));
            return false;
        }
    }
    return true;
}

function calc1(){//rechnen
	if(document.getElementById('preis')){ //wenn das feld ueberhaupt da ist
    	var pr=    document.getElementById('preis');
        var ges=   document.getElementById('gesamt');
        var anz=   document.getElementById('anzahl');

        if(anz.value=="")anz.value="1";
        if(!Ganzzahl(anz.value)){
	    	alert('Bitte geben Sie bei der Anzahl nur Ganzzahlen ein.');
            anz.focus();
            return;
        }
        if(pr.value>0){
        	var zwischen=pr.value*anz.value;
            zwischen=(Math.round(zwischen*100))/100;
            zwischen=zwischen.toString();
            if(!(zwischen.indexOf('.')!=-1||zwischen.indexOf(',')!=-1))zwischen+=',-';
            zwischen=zwischen.split('.').join(',');
            ges.value=zwischen
       	}
    }
}


function recalcBookingForm(){
	/*alert('Neu berechnen');
	alert(document.getElementById('preisIds').value);*/
	if(document.getElementById('preisIds')){
		var ids=document.getElementById('preisIds').value;
		var arr=ids.split("|");
		var summe=0;
		for(var i=0;i<arr.length;i++){
			if(document.getElementById('preis'+arr[i])){
				if(document.getElementById('anz'+arr[i]).value!='' && document.getElementById('anz'+arr[i]).value!=0 && !isNaN(document.getElementById('anz'+arr[i]).value)){
					summe+=parseFloat(document.getElementById('anz'+arr[i]).value)*parseFloat(document.getElementById('preis'+arr[i]).value);
				}else if(document.getElementById('anz'+arr[i]).value!='' && isNaN(document.getElementById('anz'+arr[i]).value)){
					alert(encStr(''));
					document.getElementById('anz'+arr[i]).focus();
					return false;
				}
			}else{
				alert('Objekt preis'+arr[i]+' nicht gefunden!');
			}
		}
		document.getElementById('sumBookingForm').innerHTML='<b>&euro; ' + summe + ',-</b>';
	}	
}


