<!--
var mx = 0;
var my = 0;
var isNetscape = false;
var browserVersion;
var activeDiv;

function onmousemove( Event )
{
	return true;
	/*
	if (isNetscape) {
		mx = Event.pageX;
		my = Event.pageY;
	} else {
		mx = window.event.x;
		my = window.event.y;
	}*/
}

function onclick( Event )
{
	if( activeDiv ) {
		MM_showHideLayers( activeDiv.id, '', 'hide' );
	}
}

function ShowBubble( elem, x, y )
{
	var status;

	HideBubble();

	if( !document.getElementById ) {
		MM_showHideLayers( document.layers[elem].id, '', 'show' );
		activeDiv = document.layers[elem];
	} else {
		MM_showHideLayers( document.getElementById( elem ).id, '', 'show' );
		activeDiv = document.getElementById( elem );
	}
}

function HideBubble()
{
	if( activeDiv ) {
		MM_showHideLayers( activeDiv.id, '', 'hide' );
	}
}

function init()
{
	if( navigator.appName == "Netscape" ) {
		isNetscape = true;
	}

	browserVersion = parseFloat( navigator.appVersion );
	
	if( browserVersion < 4 ) {
		return;
	}

	document.onmousemove = onmousemove;
	document.onclick = onclick;	
}

function formHandler()
{
	var URL = document.form.site.options[document.form.site.selectedIndex].value;
	window.location.href = URL;
}

/* globale Variables {{{ */
var currRange;
/* }}} */


/* CMS Formularbehandlung {{{ */
function initFormElements()
{
	for( var i = 0; i < document.forms.length; i++ )
	{
		for( var j = 0; j < document.forms[i].elements.length; j++ )
		{
			switch( document.forms[i].elements[j].type )
			{
				case 'text':
				case 'textarea':
					document.forms[i].elements[j].onselect	= storeSelection;
					document.forms[i].elements[j].onclick	= storeSelection;
					document.forms[i].elements[j].onkeyup	= storeSelection;
					document.forms[i].elements[j].onkeydown	= storeSelection;
					document.forms[i].elements[j].onfocus	= storeSelection;
					break;
			}
		}		
	}
}

function setCheckboxes( object, boxes, value )
{
    var elements = document.forms[object].elements[boxes];
    var size	 = elements.length;

    for( var i = 0; i < size; i++ ) {
        elements[i].checked = value;
    }

    return true;
}

function insertText( text )
{
	if( !currRange ) {
		return;
	}

	currRange.text = text;
	currRange.select();
}

function insertTag( tag, option )
{
	tag = '<' + tag;
		
	if( option != null ) {
		tag = tag + ' ' + option;
	}
		
	tag = tag + '>';
	insertText( tag );
}

function insertTags( tag, option )
{
	var tag_text;

	if( !currRange ) {
		return;
	}	
	
	tag_text = '<' + tag;
		
	if( option != null ) {
		tag_text = tag_text + ' ' + option;
	}
		
	tag_text = tag_text + '>';	

	currRange.text = tag_text + currRange.text + '</' + tag + '>';
	currRange.select();
}

function insertLink( askWindow, askUrl, askText )
{
	var text;
	var url;

	if( !currRange ) {
		return;
	}	
	
	if( !( url = prompt( askUrl, "http://" ) ) ) {
		return;
	}
		
	if( url == "http://" ) {
		return;
	}
		
	if( !( text = prompt( askText, currRange.text ) ) ) {
		return;
	}
		
	currRange.text = '<a href="' + url + '"';

	if( confirm( askWindow ) ) {
		currRange.text += ' target="_blank"'
	}
	
	currRange.text += '>' + text + '</a>';
	currRange.select();
}

function insertMail( askMail, askDescription )
{
	var text;
	var mail;

	if( !( mail = prompt( askMail, "" ) ) ) {
		return;
	}
		
	if( !( text = prompt( askDescription, currRange.text ) ) ) {
		return;
	}

	insertText( '<a href="mailto:' + mail + '">' + text + '</a>' );
}

function storeSelection()
{
	if( document.selection.createRange ) {
		currRange = document.selection.createRange().duplicate();
	}
}

function deleteOptions( form, object )
{
	var length = form.elements[object].length;

	if( !form.elements[object] ) {
		return;
	}

	form.elements[object].options.length = 0;
}


function addOptions()
{
	var args = addOptions.arguments;

	if( args < 3 ) {
		return;
	}

	var value = args[0].options[args[0].selectedIndex].value;

	if( !value ) {
		return;
	}

	var options = args[2][value];
	deleteOptions( args[0].form, args[1] );

	for( var i = 0; i < options.length; i++ ) {
		args[0].form.elements[args[1]].options[i] = new Option( options[i], false, true );
	}
}

function autoSubmit( object )
{
	switch( object.type )
	{
		case 'select-one':
		case 'select-multiple':
			object.value = object.options[object.selectedIndex].value;
			object.form.submit();
			break;
	}
}

function submitForm()
{
	var args = submitForm.arguments;

	if( args.length < 3 ) {
		return;
	}

	var thisForm = document.forms[args[0]];

	for( var i = 1; i < args.length; i++ ) {
		var element = document.getElementById( args[i] );
		var input = document.createElement('INPUT');

		if( !element ) {
			continue;
		}

        input.name = args[i];
       	input.type = 'hidden';
   	    input.value = element.innerHTML;
		thisForm.appendChild( input );
	}

	thisForm.submit();
}
/* }}} */


/* CMS GUI {{{ */
function toggleLayer( layer )
{
	if( (obj = MM_findObj(layer)) != null) {
		if( obj.style ) {
			obj=obj.style;
		}

		MM_showHideLayers( layer, '', ( obj.visibility == 'hidden' ? 'show' : 'hide' ) );
	}
}

function expandContained( container, contained ) {
	var ns6 = document.getElementById && !document.all;
	var ie4 = document.all && navigator.userAgent.indexOf("Opera") == -1;

	var iscontained = 0;
	var i = 0;
	var e = document.getElementById( container );

	if( e.id == container ) {
		iscontained = 1;
	} else {
		while( ns6 && e.parentNode || ( ie4 && e.parentElement ) ) {
			if( e.id == container || e.id == contained ) {
				iscontained = ( e.id == container ) ? 1 : 0;
				break
			}

			e = ns6 ? e.parentNode : e.parentElement;
		}
	}

	if( iscontained ) {
		var foldercontent = ns6 ? e.nextSibling.nextSibling : e.all.tags("div")[0];

		if( foldercontent.style.display == "none" ) {
			foldercontent.style.display = "";
		} else {
			foldercontent.style.display = "none";
		}
	}
}

function setFocus( e )
{
	var focusedElement = document.getElementById( e );

	if( !focusedElement ) {
		return;
	}

	focusedElement.focus();
	storeSelection();
}

function setStyle( e, attribute, style )
{
	var e = document.getElementById( e );

	if( !e ) {
		return;
	}

	e.style[attribute] = style;
}

function setStyles()
{
	var args = setStyles.arguments;

	if( args.length < 3 ) {
		return;
	}

	for( var i = 2; i <= args.length; i++ ) {
		setStyle( args[i], args[0], args[1] );
	}
}

function refreshContainer( e )
{
	var html;
	e = document.getElementById( e );

	if( !e ) {
		return;
	}

	html = e.innerHTML;
	e.innerHTML = '';
	e.innerHTML = html;
}

function clearContainer( e )
{
	e = document.getElementById( e );

	if( !e ) {
		return;
	}

	e.innerHTML = '';
}

function clearContainers( e )
{
	var args = clearContainers.arguments;

	if( args.length < 1 ) {
		return;
	}

	for( var i = 0; i <= args.length; i++ ) {
		clearContainer( args[i] );
	}
}

function doUndo()
{
	document.execCommand('Undo');
}

function doRedo()
{
	document.execCommand('Redo');
}

function doCopy()
{
	document.execCommand('Copy');
}

function doPaste()
{
	document.execCommand('Paste');
}

function doSelect()
{
	document.execCommand('SelectAll');
}

function showTooltip( e, x, y, hide )
{
	if( !document.activeTooltips ) {
		document.activeTooltips = new Array();
	}

	document.activeTooltips[e] = document.getElementById( e );

	if( !document.activeTooltips[e] ) {
		return;
	}

	if( hide ) {
		hideTooltips();
	}

	MM_showHideLayers( document.activeTooltips[e].id, '', 'show' );

	if( x != null ) {
		document.activeTooltips[e].style.left = window.event.x + x;
	}

	if( y != null ) {
		document.activeTooltips[e].style.top	= window.event.y + y;
	}
}

function hideTooltip( e )
{
	if( document.activeTooltips[e] ) {
		MM_showHideLayers( document.activeTooltips[e].id, '', 'hide' );
	}
}

function hideTooltips()
{
	if( !document.activeTooltips ) {
		return;
	}

	for( tooltip in document.activeTooltips ) {
		MM_showHideLayers( document.activeTooltips[tooltip].id, '', 'hide' );
	}
}
/* }}} */


/* Dreamweaver stuff {{{ */
function MM_openBrWindow( theURL, winName, features )
{
	window.open( theURL, winName, features );
}

function MM_findObj( n, d )
{
	var p,i,x;

	if(!d) {
		d=document;
	}
	
	if( (p = n.indexOf("?") ) > 0 && parent.frames.length ) {
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}

	if( !(x=d[n])&& d.all ) {
		x = d.all[n];
	}

	for( i=0; !x && i < d.forms.length;i++ ) {
		x=d.forms[i][n];
	}

	for( i=0; !x && d.layers && i < d.layers.length;i++) {
		x = MM_findObj(n,d.layers[i].document);
	}

	if( !x && document.getElementById) {
		x=document.getElementById(n);
	}
	return x;
}

function MM_showHideLayers()
{
	var i,p,v,obj,args = MM_showHideLayers.arguments;

	for( i=0; i < (args.length-2); i+=3) {
		if( (obj = MM_findObj(args[i])) != null) {
			v=args[i+2];

			if( obj.style ) {
				obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v;
			}

			obj.visibility=v;
		}
	}
}

function MM_displayStatusMsg( msgStr ) {
	status = msgStr;
	document.MM_returnValue = true;
}


/*
 * FlashObject embed
 * http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/
 *
 * by Geoff Stearns (geoff@deconcept.com, http://www.deconcept.com/)
 *
 * v1.0.7 - 11-17-2004
 *
 * Create and write a flash movie to the page, includes detection
 *
 * Usage:
 *
 *	myFlash = new FlashObject("path/to/swf.swf", "swfid", "width", "height", flashversion, "backgroundcolor");
 *	myFlash.altTxt = "Upgrade your Flash Player!";                // optional
 *	myFlash.addParam("wmode", "transparent");                     // optional
 *	myFlash.addVariable("varname1", "varvalue");                  // optional
 *	myFlash.addVariable("varname2", getQueryParamValue("myvar")); // optional
 *	myFlash.write();
 *
 */

FlashObject = function(swf, id, w, h, ver, c) {
	this.swf = swf;
	this.id = id;
	this.width = w;
	this.height = h;
	this.version = ver || 6; // default to 6
	this.align = "middle"; // default to middle
	this.redirect = "";
	this.sq = document.location.search.split("?")[1] || "";
	this.altTxt = "Please <a href='http://www.macromedia.com/go/getflashplayer'>upgrade your Flash Player</a>.";
	this.bypassTxt = "<p>Already have Flash Player? <a href='?detectflash=false&"+ this.sq +"'>Click here if you have Flash Player "+ this.version +" installed</a>.</p>";
	this.params = new Object();
	this.variables = new Object();
	if (c) this.color = this.addParam('bgcolor', c);
	this.addParam('quality', 'high'); // default to high
	this.doDetect = getQueryParamValue('detectflash');
}

FlashObject.prototype.addParam = function(name, value) {
	this.params[name] = value;
}

FlashObject.prototype.getParams = function() {
    return this.params;
}

FlashObject.prototype.getParam = function(name) {
    return this.params[name];
}

FlashObject.prototype.addVariable = function(name, value) {
	this.variables[name] = value;
}

FlashObject.prototype.getVariable = function(name) {
    return this.variables[name];
}

FlashObject.prototype.getVariables = function() {
    return this.variables;
}

FlashObject.prototype.getParamTags = function() {
    var paramTags = "";
    for (var param in this.getParams()) {
        paramTags += '<param name="' + param + '" value="' + this.getParam(param) + '" />';
    }
    if (paramTags == "") {
        paramTags = null;
    }
    return paramTags;
}

FlashObject.prototype.getHTML = function() {
    var flashHTML = "";
    if (window.ActiveXObject && navigator.userAgent.indexOf('Mac') == -1) { // PC IE
        flashHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + this.width + '" height="' + this.height + '" id="' + this.id + '" align="' + this.align + '">';
        flashHTML += '<param name="movie" value="' + this.swf + '" />';
        if (this.getParamTags() != null) {
            flashHTML += this.getParamTags();
        }
        if (this.getVariablePairs() != null) {
            flashHTML += '<param name="flashVars" value="' + this.getVariablePairs() + '" />';
        }
        flashHTML += '</object>';
    }
    else { // Everyone else
        flashHTML += '<embed type="application/x-shockwave-flash" src="' + this.swf + '" width="' + this.width + '" height="' + this.height + '" id="' + this.id + '" align="' + this.align + '"';
        for (var param in this.getParams()) {
            flashHTML += ' ' + param + '="' + this.getParam(param) + '"';
        }
        if (this.getVariablePairs() != null) {
            flashHTML += ' flashVars="' + this.getVariablePairs() + '"';
        }
        flashHTML += '></embed>';
    }
    return flashHTML;	
}


FlashObject.prototype.getVariablePairs = function() {
    var variablePairs = new Array();
    for (var name in this.getVariables()) {
        variablePairs.push(name + "=" + escape(this.getVariable(name)));
    }
    if (variablePairs.length > 0) {
        return variablePairs.join("&");
    }
    else {
        return null;
    }
}

FlashObject.prototype.write = function(elementId) {
	if(detectFlash(this.version) || this.doDetect=='false') {
		if (elementId) {
			document.getElementById(elementId).innerHTML = this.getHTML();
		} else {
			document.write(this.getHTML());
		}
	} else {
		if (this.redirect != "") {
			document.location.replace(this.redirect);
		} else {
			if (elementId) {
				document.getElementById(elementId).innerHTML = this.altTxt +""+ this.bypassTxt;
			} else {
				document.write(this.altTxt +""+ this.bypassTxt);
			}
		}
	}		
}

function getFlashVersion() {
	var flashversion = 0;
	if (navigator.plugins && navigator.plugins.length) {
		var x = navigator.plugins["Shockwave Flash"];
		if(x){
			if (x.description) {
				var y = x.description;
	   			flashversion = y.charAt(y.indexOf('.')-1);
			}
		}
	} else {
		result = false;
	    for(var i = 15; i >= 3 && result != true; i--){
   			execScript('on error resume next: result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))','VBScript');
   			flashversion = i;
   		}
	}
	return flashversion;
}

function detectFlash(ver) {	
	if (getFlashVersion() >= ver) {
		return true;
	} else {
		return false;
	}
}

// get value of querystring param
function getQueryParamValue(param) {
	var q = document.location.search;
	var detectIndex = q.indexOf(param);
	var endIndex = (q.indexOf("&", detectIndex) != -1) ? q.indexOf("&", detectIndex) : q.length;
	if(q.length > 1 && detectIndex != -1) {
		return q.substring(q.indexOf("=", detectIndex)+1, endIndex);
	} else {
		return "";
	}
}

/* add Array.push if needed */
if(Array.prototype.push == null){
	Array.prototype.push = function(item){
		this[this.length] = item;
		return this.length;
	}
}

function openpopup(url){
	
var popupWidth = 400;
var popupHeight = 300;
var popupTop = 300;
var popupLeft = 300;
var isFullScreen = false;
var isAutoCenter = true;
var popupTarget = "popupwin_27b5";
var popupParams = "toolbar=0, scrollbars=0, menubar=0, status=0, resizable=1";

if (isFullScreen) {
	popupParams += ", fullscreen=1";
} else if (isAutoCenter) {
	popupTop	= parseInt((window.screen.height - popupHeight)/2);
	popupLeft	= parseInt((window.screen.width - popupWidth)/2);
}

var ua = window.navigator.userAgent;
var isMac = (ua.indexOf("Mac") > -1);

//IE 5.1 PR on OSX 10.0.x does not support relative URLs in pop-ups the way they're handled below w/ document.writeln
if (isMac && url.indexOf("http") != 0) {
  url = location.href.substring(0,location.href.lastIndexOf('\/')) + "/" + url;
}

var isOpera = (ua.indexOf("Opera") > -1);
var operaVersion;
if (isOpera) {
	var i = ua.indexOf("Opera");
	operaVersion = parseFloat(ua.substring(i + 6, ua.indexOf(" ", i + 8)));
	if (operaVersion > 7.00) {
		var isAccessible = false;
		eval("try { isAccessible = ( (hwndPopup_27b5 != null) && !hwndPopup_27b5.closed ); } catch(exc) { } ");
		if (!isAccessible) {
			hwndPopup_27b5 = null;
		}
	}
}

if ( (hwndPopup_27b5 == null) || hwndPopup_27b5.closed ) {
	
	if (isOpera && (operaVersion < 7)) {
		if (url.indexOf("http") != 0) {
			hwndPopup_27b5 = window.open(url,popupTarget,popupParams + ((!isFullScreen) ? ", width=" + popupWidth +", height=" + popupHeight : ""));
			if (!isFullScreen) {
				hwndPopup_27b5.moveTo(popupLeft, popupTop);
			}
			hwndPopup_27b5.focus();
			return;
		}
	}
	if (!(window.navigator.appName == "Netscape" && !document.getElementById)) {
		//not ns4
		popupParams += ", width=" + popupWidth +", height=" + popupHeight + ", left=" + popupLeft + ", top=" + popupTop;
	} else {
		popupParams += ", left=" + popupLeft + ", top=" + popupTop;
	}
	//alert(popupParams);
	hwndPopup_27b5 = window.open("",popupTarget,popupParams);
	if (!isFullScreen) {
		hwndPopup_27b5.resizeTo(popupWidth, popupHeight);
		hwndPopup_27b5.moveTo(popupLeft, popupTop);
	}
	hwndPopup_27b5.focus();
	with (hwndPopup_27b5.document) {
		open();
		write("<ht"+"ml><he"+"ad></he"+"ad><bo"+"dy onLoad=\"window.location.href='" + url + "'\"></bo"+"dy></ht"+"ml>");
		close();
	}
} else {
	if (isOpera && (operaVersion > 7.00)) {
		eval("try { hwndPopup_27b5.focus();	hwndPopup_27b5.location.href = url; } catch(exc) { hwndPopup_27b5 = window.open(\""+ url +"\",\"" + popupTarget +"\",\""+ popupParams + ", width=" + popupWidth +", height=" + popupHeight +"\"); } ");
	} else {
		hwndPopup_27b5.focus();
		hwndPopup_27b5.location.href = url;
	}
}

}

function changevis(layID) {
var myLayer = document.getElementById(layID);

if (myLayer.style.display=="none") {
myLayer.style.display="";
} else {
myLayer.style.display="none";
}
}
	
//--->

function popup_umfrage()
	{
		Popup_Window = window.open('index.php?id=2800a9b55d7914547321001d5948df21','sss','width=680,height=500,scrollbars=1,resizable=1');
	 	Popup_Window.focus(); 
	}
	
function popup_beratung()
{
	//Popup_Window = window.open('http://paxconnect.de/requests/new?portal_id=passat-reisen','sss','width=1000,height=650,scrollbars=1,resizable=1');
	Popup_Window = window.open('http://sessions.paxconnect.de/requests/new?portal_id=passat-reisen','sss','width=1000,height=650,scrollbars=1,resizable=1');
 	Popup_Window.focus(); 
}
function popup_beratung_stream()
{
	
	var nummer = document.getElementById('beratungsnummer');
	if(nummer.value != ""){
		//Popup_Window = window.open('http://www.paxconnect.de/call/passat-reisen/?id='+nummer.value+'&x=0&y=0','sss','width=1000,height=650,scrollbars=1,resizable=1');
		//Popup_Window = window.open('http://www.paxconnect.de/enter_session?id='+nummer.value+'&portal_id=passat-reisen','sss','width=1000,height=650,scrollbars=1,resizable=1');
		Popup_Window = window.open('http://sessions.paxconnect.de/enter_session?id='+nummer.value+'&portal_id=passat-reisen','sss','width=1000,height=650,scrollbars=1,resizable=1');
	 	Popup_Window.focus(); 
	}else{
		alert("Bitte geben Sie die Beratungsnummer ein.")
	}
}