var Prototype={Version:"1.4.0",ScriptFragment:"(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)",emptyFunction:function(){},K:function(b){return b}};var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};var Abstract=new Object();Object.extend=function(b,c){for(property in c){b[property]=c[property]}return b};Object.inspect=function(b){try{if(b==undefined){return"undefined"}if(b==null){return"null"}return b.inspect?b.inspect():b.toString()}catch(c){if(c instanceof RangeError){return"..."}throw c}};Function.prototype.bind=function(){var b=this,e=$A(arguments),c=e.shift();return function(){return b.apply(c,e.concat($A(arguments)))}};Function.prototype.bindAsEventListener=function(c){var b=this;return function(e){return b.call(c,e||window.event)}};Object.extend(Number.prototype,{toColorPart:function(){var b=this.toString(16);if(this<16){return"0"+b}return b},succ:function(){return this+1},times:function(b){$R(0,this,true).each(b);return this}});var Try={these:function(){var g;for(var c=0;c<arguments.length;c++){var b=arguments[c];try{g=b();break}catch(h){}}return g}};var PeriodicalExecuter=Class.create();PeriodicalExecuter.prototype={initialize:function(c,b){this.callback=c;this.frequency=b;this.currentlyExecuting=false;this.registerCallback()},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.callback()}finally{this.currentlyExecuting=false}}}};function $(){var e=new Array();for(var c=0;c<arguments.length;c++){var b=arguments[c];if(typeof b=="string"){b=document.getElementById(b)}if(arguments.length==1){return b}e.push(b)}return e}Object.extend(String.prototype,{stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"")},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"")},extractScripts:function(){var c=new RegExp(Prototype.ScriptFragment,"img");var b=new RegExp(Prototype.ScriptFragment,"im");return(this.match(c)||[]).map(function(e){return(e.match(b)||["",""])[1]})},evalScripts:function(){return this.extractScripts().map(eval)},escapeHTML:function(){var c=document.createElement("div");var b=document.createTextNode(this);c.appendChild(b);return c.innerHTML},unescapeHTML:function(){var b=document.createElement("div");b.innerHTML=this.stripTags();return b.childNodes[0]?b.childNodes[0].nodeValue:""},toQueryParams:function(){var b=this.match(/^\??(.*)$/)[1].split("&");return b.inject({},function(g,c){var e=c.split("=");g[e[0]]=e[1];return g})},toArray:function(){return this.split("")},camelize:function(){var g=this.split("-");if(g.length==1){return g[0]}var c=this.indexOf("-")==0?g[0].charAt(0).toUpperCase()+g[0].substring(1):g[0];for(var e=1,b=g.length;e<b;e++){var h=g[e];c+=h.charAt(0).toUpperCase()+h.substring(1)}return c},inspect:function(){return"'"+this.replace("\\","\\\\").replace("'","\\'")+"'"}});String.prototype.parseQuery=String.prototype.toQueryParams;var $break=new Object();var $continue=new Object();var Enumerable={each:function(c){var b=0;try{this._each(function(h){try{c(h,b++)}catch(l){if(l!=$continue){throw l}}})}catch(g){if(g!=$break){throw g}}},all:function(c){var b=true;this.each(function(g,e){b=b&&!!(c||Prototype.K)(g,e);if(!b){throw $break}});return b},any:function(c){var b=true;this.each(function(g,e){if(b=!!(c||Prototype.K)(g,e)){throw $break}});return b},collect:function(c){var b=[];this.each(function(g,e){b.push(c(g,e))});return b},detect:function(c){var b;this.each(function(g,e){if(c(g,e)){b=g;throw $break}});return b},findAll:function(c){var b=[];this.each(function(g,e){if(c(g,e)){b.push(g)}});return b},grep:function(e,c){var b=[];this.each(function(l,h){var g=l.toString();if(g.match(e)){b.push((c||Prototype.K)(l,h))}});return b},include:function(b){var c=false;this.each(function(e){if(e==b){c=true;throw $break}});return c},inject:function(b,c){this.each(function(g,e){b=c(b,g,e)});return b},invoke:function(c){var b=$A(arguments).slice(1);return this.collect(function(e){return e[c].apply(e,b)})},max:function(c){var b;this.each(function(g,e){g=(c||Prototype.K)(g,e);if(g>=(b||g)){b=g}});return b},min:function(c){var b;this.each(function(g,e){g=(c||Prototype.K)(g,e);if(g<=(b||g)){b=g}});return b},partition:function(e){var c=[],b=[];this.each(function(h,g){((e||Prototype.K)(h,g)?c:b).push(h)});return[c,b]},pluck:function(c){var b=[];this.each(function(g,e){b.push(g[c])});return b},reject:function(c){var b=[];this.each(function(g,e){if(!c(g,e)){b.push(g)}});return b},sortBy:function(b){return this.collect(function(e,c){return{value:e,criteria:b(e,c)}}).sort(function(h,g){var e=h.criteria,c=g.criteria;return e<c?-1:e>c?1:0}).pluck("value")},toArray:function(){return this.collect(Prototype.K)},zip:function(){var c=Prototype.K,b=$A(arguments);if(typeof b.last()=="function"){c=b.pop()}var e=[this].concat(b).map($A);return this.map(function(h,g){c(h=e.pluck(g));return h})},inspect:function(){return"#<Enumerable:"+this.toArray().inspect()+">"}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray});var $A=Array.from=function(e){if(!e){return[]}if(e.toArray){return e.toArray()}else{var c=[];for(var b=0;b<e.length;b++){c.push(e[b])}return c}};Object.extend(Array.prototype,Enumerable);Array.prototype._reverse=Array.prototype.reverse;Object.extend(Array.prototype,{_each:function(c){for(var b=0;b<this.length;b++){c(this[b])}},clear:function(){this.length=0;return this},first:function(){return this[0]},last:function(){return this[this.length-1]},compact:function(){return this.select(function(b){return b!=undefined||b!=null})},flatten:function(){return this.inject([],function(c,b){return c.concat(b.constructor==Array?b.flatten():[b])})},without:function(){var b=$A(arguments);return this.select(function(c){return !b.include(c)})},indexOf:function(b){for(var c=0;c<this.length;c++){if(this[c]==b){return c}}return -1},reverse:function(b){return(b!==false?this:this.toArray())._reverse()},shift:function(){var b=this[0];for(var c=0;c<this.length-1;c++){this[c]=this[c+1]}this.length--;return b},inspect:function(){return"["+this.map(Object.inspect).join(", ")+"]"}});var Hash={_each:function(b){for(key in this){var c=this[key];if(typeof c=="function"){continue}var e=[key,c];e.key=key;e.value=c;b(e)}},keys:function(){return this.pluck("key")},values:function(){return this.pluck("value")},merge:function(b){return $H(b).inject($H(this),function(c,e){c[e.key]=e.value;return c})},toQueryString:function(){return this.map(function(b){return b.map(encodeURIComponent).join("=")}).join("&")},inspect:function(){return"#<Hash:{"+this.map(function(b){return b.map(Object.inspect).join(": ")}).join(", ")+"}>"}};function $H(b){var c=Object.extend({},b||{});Object.extend(c,Enumerable);Object.extend(c,Hash);return c}ObjectRange=Class.create();Object.extend(ObjectRange.prototype,Enumerable);Object.extend(ObjectRange.prototype,{initialize:function(e,b,c){this.start=e;this.end=b;this.exclusive=c},_each:function(b){var c=this.start;do{b(c);c=c.succ()}while(this.include(c))},include:function(b){if(b<this.start){return false}if(this.exclusive){return b<this.end}return b<=this.end}});var $R=function(e,b,c){return new ObjectRange(e,b,c)};var Ajax={getTransport:function(){return Try.these(function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new XMLHttpRequest()})||false},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(b){this.responders._each(b)},register:function(b){if(!this.include(b)){this.responders.push(b)}},unregister:function(b){this.responders=this.responders.without(b)},dispatch:function(g,c,e,b){this.each(function(h){if(h[g]&&typeof h[g]=="function"){try{h[g].apply(h,[c,e,b])}catch(l){}}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=function(){};Ajax.Base.prototype={setOptions:function(b){this.options={method:"post",asynchronous:true,parameters:""};Object.extend(this.options,b||{})},responseIsSuccess:function(){return this.transport.status==undefined||this.transport.status==0||(this.transport.status>=200&&this.transport.status<300)},responseIsFailure:function(){return !this.responseIsSuccess()}};Ajax.Request=Class.create();Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Request.prototype=Object.extend(new Ajax.Base(),{initialize:function(c,b){this.transport=Ajax.getTransport();this.setOptions(b);this.request(c)},request:function(c){var g=this.options.parameters||"";if(g.length>0){g+="&_="}try{this.url=c;if(this.options.method=="get"&&g.length>0){this.url+=(this.url.match(/\?/)?"&":"?")+g}Ajax.Responders.dispatch("onCreate",this,this.transport);this.transport.open(this.options.method,this.url,this.options.asynchronous);if(this.options.asynchronous){this.transport.onreadystatechange=this.onStateChange.bind(this);setTimeout((function(){this.respondToReadyState(1)}).bind(this),10)}this.setRequestHeaders();var b=this.options.postBody?this.options.postBody:g;this.transport.send(this.options.method=="post"?b:null)}catch(h){this.dispatchException(h)}},setRequestHeaders:function(){var c=["X-Requested-With","XMLHttpRequest","X-Prototype-Version",Prototype.Version];if(this.options.method=="post"){c.push("Content-type","application/x-www-form-urlencoded");if(this.transport.overrideMimeType){c.push("Connection","close")}}if(this.options.requestHeaders){c.push.apply(c,this.options.requestHeaders)}for(var b=0;b<c.length;b+=2){this.transport.setRequestHeader(c[b],c[b+1])}},onStateChange:function(){var b=this.transport.readyState;if(b!=1){this.respondToReadyState(this.transport.readyState)}},header:function(b){try{return this.transport.getResponseHeader(b)}catch(c){}},evalJSON:function(){try{return eval(this.header("X-JSON"))}catch(e){}},evalResponse:function(){try{return eval(this.transport.responseText)}catch(e){this.dispatchException(e)}},respondToReadyState:function(b){var g=Ajax.Request.Events[b];var l=this.transport,c=this.evalJSON();if(g=="Complete"){try{(this.options["on"+this.transport.status]||this.options["on"+(this.responseIsSuccess()?"Success":"Failure")]||Prototype.emptyFunction)(l,c)}catch(h){this.dispatchException(h)}if((this.header("Content-type")||"").match(/^text\/javascript/i)){this.evalResponse()}}try{(this.options["on"+g]||Prototype.emptyFunction)(l,c);Ajax.Responders.dispatch("on"+g,this,l,c)}catch(h){this.dispatchException(h)}if(g=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction}},dispatchException:function(b){(this.options.onException||Prototype.emptyFunction)(this,b);Ajax.Responders.dispatch("onException",this,b)}});Ajax.Updater=Class.create();Object.extend(Object.extend(Ajax.Updater.prototype,Ajax.Request.prototype),{initialize:function(b,e,c){this.containers={success:b.success?$(b.success):$(b),failure:b.failure?$(b.failure):(b.success?null:$(b))};this.transport=Ajax.getTransport();this.setOptions(c);var g=this.options.onComplete||Prototype.emptyFunction;this.options.onComplete=(function(l,h){this.updateContent();g(l,h)}).bind(this);this.request(e)},updateContent:function(){var c=this.responseIsSuccess()?this.containers.success:this.containers.failure;var b=this.transport.responseText;if(!this.options.evalScripts){b=b.stripScripts()}if(c){if(this.options.insertion){new this.options.insertion(c,b)}else{Element.update(c,b)}}if(this.responseIsSuccess()){if(this.onComplete){setTimeout(this.onComplete.bind(this),10)}}}});Ajax.PeriodicalUpdater=Class.create();Ajax.PeriodicalUpdater.prototype=Object.extend(new Ajax.Base(),{initialize:function(b,e,c){this.setOptions(c);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=b;this.url=e;this.start()},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent()},stop:function(){this.updater.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments)},updateComplete:function(b){if(this.options.decay){this.decay=(b.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=b.responseText}this.timer=setTimeout(this.onTimerEvent.bind(this),this.decay*this.frequency*1000)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}});document.getElementsByClassName=function(e,b){var c=($(b)||document.body).getElementsByTagName("*");return $A(c).inject([],function(g,h){if(h.className.match(new RegExp("(^|\\s)"+e+"(\\s|$)"))){g.push(h)}return g})};if(!window.Element){var Element=new Object()}Object.extend(Element,{visible:function(b){return $(b).style.display!="none"},toggle:function(){for(var c=0;c<arguments.length;c++){var b=$(arguments[c]);Element[Element.visible(b)?"hide":"show"](b)}},hide:function(){for(var c=0;c<arguments.length;c++){var b=$(arguments[c]);b.style.display="none"}},show:function(){for(var c=0;c<arguments.length;c++){var b=$(arguments[c]);b.style.display=""}},remove:function(b){b=$(b);b.parentNode.removeChild(b)},update:function(c,b){$(c).innerHTML=b.stripScripts();setTimeout(function(){b.evalScripts()},10)},getHeight:function(b){b=$(b);return b.offsetHeight},classNames:function(b){return new Element.ClassNames(b)},hasClassName:function(b,c){if(!(b=$(b))){return}return Element.classNames(b).include(c)},addClassName:function(b,c){if(!(b=$(b))){return}return Element.classNames(b).add(c)},removeClassName:function(b,c){if(!(b=$(b))){return}return Element.classNames(b).remove(c)},cleanWhitespace:function(c){c=$(c);for(var b=0;b<c.childNodes.length;b++){var e=c.childNodes[b];if(e.nodeType==3&&!/\S/.test(e.nodeValue)){Element.remove(e)}}},empty:function(b){return $(b).innerHTML.match(/^\s*$/)},scrollTo:function(c){c=$(c);var b=c.x?c.x:c.offsetLeft,e=c.y?c.y:c.offsetTop;window.scrollTo(b,e)},getStyle:function(c,e){c=$(c);var g=c.style[e.camelize()];if(!g){if(document.defaultView&&document.defaultView.getComputedStyle){var b=document.defaultView.getComputedStyle(c,null);g=b?b.getPropertyValue(e):null}else{if(c.currentStyle){g=c.currentStyle[e.camelize()]}}}if(window.opera&&["left","top","right","bottom"].include(e)){if(Element.getStyle(c,"position")=="static"){g="auto"}}return g=="auto"?null:g},setStyle:function(b,c){b=$(b);for(name in c){b.style[name.camelize()]=c[name]}},getDimensions:function(c){c=$(c);if(Element.getStyle(c,"display")!="none"){return{width:c.offsetWidth,height:c.offsetHeight}}var b=c.style;var h=b.visibility;var e=b.position;b.visibility="hidden";b.position="absolute";b.display="";var l=c.clientWidth;var g=c.clientHeight;b.display="none";b.position=e;b.visibility=h;return{width:l,height:g}},makePositioned:function(b){b=$(b);var c=Element.getStyle(b,"position");if(c=="static"||!c){b._madePositioned=true;b.style.position="relative";if(window.opera){b.style.top=0;b.style.left=0}}},undoPositioned:function(b){b=$(b);if(b._madePositioned){b._madePositioned=undefined;b.style.position=b.style.top=b.style.left=b.style.bottom=b.style.right=""}},makeClipping:function(b){b=$(b);if(b._overflow){return}b._overflow=b.style.overflow;if((Element.getStyle(b,"overflow")||"visible")!="hidden"){b.style.overflow="hidden"}},undoClipping:function(b){b=$(b);if(b._overflow){return}b.style.overflow=b._overflow;b._overflow=undefined}});var Toggle=new Object();Toggle.display=Element.toggle;Abstract.Insertion=function(b){this.adjacency=b};Abstract.Insertion.prototype={initialize:function(b,c){this.element=$(b);this.content=c.stripScripts();if(this.adjacency&&this.element.insertAdjacentHTML){try{this.element.insertAdjacentHTML(this.adjacency,this.content)}catch(g){if(this.element.tagName.toLowerCase()=="tbody"){this.insertContent(this.contentFromAnonymousTable())}else{throw g}}}else{this.range=this.element.ownerDocument.createRange();if(this.initializeRange){this.initializeRange()}this.insertContent([this.range.createContextualFragment(this.content)])}setTimeout(function(){c.evalScripts()},10)},contentFromAnonymousTable:function(){var b=document.createElement("div");b.innerHTML="<table><tbody>"+this.content+"</tbody></table>";return $A(b.childNodes[0].childNodes[0].childNodes)}};var Insertion=new Object();Insertion.Before=Class.create();Insertion.Before.prototype=Object.extend(new Abstract.Insertion("beforeBegin"),{initializeRange:function(){this.range.setStartBefore(this.element)},insertContent:function(b){b.each((function(c){this.element.parentNode.insertBefore(c,this.element)}).bind(this))}});Insertion.Top=Class.create();Insertion.Top.prototype=Object.extend(new Abstract.Insertion("afterBegin"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(true)},insertContent:function(b){b.reverse(false).each((function(c){this.element.insertBefore(c,this.element.firstChild)}).bind(this))}});Insertion.Bottom=Class.create();Insertion.Bottom.prototype=Object.extend(new Abstract.Insertion("beforeEnd"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(this.element)},insertContent:function(b){b.each((function(c){this.element.appendChild(c)}).bind(this))}});Insertion.After=Class.create();Insertion.After.prototype=Object.extend(new Abstract.Insertion("afterEnd"),{initializeRange:function(){this.range.setStartAfter(this.element)},insertContent:function(b){b.each((function(c){this.element.parentNode.insertBefore(c,this.element.nextSibling)}).bind(this))}});Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(b){this.element=$(b)},_each:function(b){this.element.className.split(/\s+/).select(function(c){return c.length>0})._each(b)},set:function(b){this.element.className=b},add:function(b){if(this.include(b)){return}this.set(this.toArray().concat(b).join(" "))},remove:function(b){if(!this.include(b)){return}this.set(this.select(function(c){return c!=b}).join(" "))},toString:function(){return this.toArray().join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable);var Field={clear:function(){for(var b=0;b<arguments.length;b++){$(arguments[b]).value=""}},focus:function(b){$(b).focus()},present:function(){for(var b=0;b<arguments.length;b++){if($(arguments[b]).value==""){return false}}return true},select:function(b){$(b).select()},activate:function(b){b=$(b);b.focus();if(b.select){b.select()}}};var Form={serialize:function(g){var h=Form.getElements($(g));var e=new Array();for(var c=0;c<h.length;c++){var b=Form.Element.serialize(h[c]);if(b){e.push(b)}}return e.join("&")},getElements:function(c){c=$(c);var e=new Array();for(tagName in Form.Element.Serializers){var g=c.getElementsByTagName(tagName);for(var b=0;b<g.length;b++){e.push(g[b])}}return e},getInputs:function(l,e,g){l=$(l);var b=l.getElementsByTagName("input");if(!e&&!g){return b}var m=new Array();for(var h=0;h<b.length;h++){var c=b[h];if((e&&c.type!=e)||(g&&c.name!=g)){continue}m.push(c)}return m},disable:function(e){var g=Form.getElements(e);for(var c=0;c<g.length;c++){var b=g[c];b.blur();b.disabled="true"}},enable:function(e){var g=Form.getElements(e);for(var c=0;c<g.length;c++){var b=g[c];b.disabled=""}},findFirstElement:function(b){return Form.getElements(b).find(function(c){return c.type!="hidden"&&!c.disabled&&["input","select","textarea"].include(c.tagName.toLowerCase())})},focusFirstElement:function(b){Field.activate(Form.findFirstElement(b))},reset:function(b){$(b).reset()}};Form.Element={serialize:function(c){c=$(c);var g=c.tagName.toLowerCase();var e=Form.Element.Serializers[g](c);if(e){var b=encodeURIComponent(e[0]);if(b.length==0){return}if(e[1].constructor!=Array){e[1]=[e[1]]}return e[1].map(function(h){return b+"="+encodeURIComponent(h)}).join("&")}},getValue:function(b){b=$(b);var e=b.tagName.toLowerCase();var c=Form.Element.Serializers[e](b);if(c){return c[1]}}};Form.Element.Serializers={input:function(b){switch(b.type.toLowerCase()){case"submit":case"hidden":case"password":case"text":return Form.Element.Serializers.textarea(b);case"checkbox":case"radio":return Form.Element.Serializers.inputSelector(b)}return false},inputSelector:function(b){if(b.checked){return[b.name,b.value]}},textarea:function(b){return[b.name,b.value]},select:function(b){return Form.Element.Serializers[b.type=="select-one"?"selectOne":"selectMany"](b)},selectOne:function(e){var g="",c,b=e.selectedIndex;if(b>=0){c=e.options[b];g=c.value;if(!g&&!("value" in c)){g=c.text}}return[e.name,g]},selectMany:function(e){var g=new Array();for(var c=0;c<e.length;c++){var b=e.options[c];if(b.selected){var h=b.value;if(!h&&!("value" in b)){h=b.text}g.push(h)}}return[e.name,g]}};var $F=Form.Element.getValue;Abstract.TimedObserver=function(){};Abstract.TimedObserver.prototype={initialize:function(b,c,e){this.frequency=c;this.element=$(b);this.callback=e;this.lastValue=this.getValue();this.registerCallback()},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},onTimerEvent:function(){var b=this.getValue();if(this.lastValue!=b){this.callback(this.element,b);this.lastValue=b}}};Form.Element.Observer=Class.create();Form.Element.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.Element.getValue(this.element)}});Form.Observer=Class.create();Form.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.serialize(this.element)}});Abstract.EventObserver=function(){};Abstract.EventObserver.prototype={initialize:function(b,c){this.element=$(b);this.callback=c;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks()}else{this.registerCallback(this.element)}},onElementEvent:function(){var b=this.getValue();if(this.lastValue!=b){this.callback(this.element,b);this.lastValue=b}},registerFormCallbacks:function(){var c=Form.getElements(this.element);for(var b=0;b<c.length;b++){this.registerCallback(c[b])}},registerCallback:function(b){if(b.type){switch(b.type.toLowerCase()){case"checkbox":case"radio":Event.observe(b,"click",this.onElementEvent.bind(this));break;case"password":case"text":case"textarea":case"select-one":case"select-multiple":Event.observe(b,"change",this.onElementEvent.bind(this));break}}}};Form.Element.EventObserver=Class.create();Form.Element.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.Element.getValue(this.element)}});Form.EventObserver=Class.create();Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.serialize(this.element)}});if(!window.Event){var Event=new Object()}Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(b){return b.target||b.srcElement},isLeftClick:function(b){return(((b.which)&&(b.which==1))||((b.button)&&(b.button==1)))},pointerX:function(b){return b.pageX||(b.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))},pointerY:function(b){return b.pageY||(b.clientY+(document.documentElement.scrollTop||document.body.scrollTop))},stop:function(b){if(b.preventDefault){b.preventDefault();b.stopPropagation()}else{b.returnValue=false;b.cancelBubble=true}},findElement:function(e,c){var b=Event.element(e);while(b.parentNode&&(!b.tagName||(b.tagName.toUpperCase()!=c.toUpperCase()))){b=b.parentNode}return b},observers:false,_observeAndCache:function(g,e,c,b){if(!this.observers){this.observers=[]}if(g.addEventListener){this.observers.push([g,e,c,b]);g.addEventListener(e,c,b)}else{if(g.attachEvent){this.observers.push([g,e,c,b]);g.attachEvent("on"+e,c)}}},unloadCache:function(){if(!Event.observers){return}for(var b=0;b<Event.observers.length;b++){Event.stopObserving.apply(this,Event.observers[b]);Event.observers[b][0]=null}Event.observers=false},observe:function(g,e,c,b){var g=$(g);b=b||false;if(e=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||g.attachEvent)){e="keydown"}this._observeAndCache(g,e,c,b)},stopObserving:function(g,e,c,b){var g=$(g);b=b||false;if(e=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||g.detachEvent)){e="keydown"}if(g.removeEventListener){g.removeEventListener(e,c,b)}else{if(g.detachEvent){g.detachEvent("on"+e,c)}}}});Event.observe(window,"unload",Event.unloadCache,false);var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},realOffset:function(c){var b=0,e=0;do{b+=c.scrollTop||0;e+=c.scrollLeft||0;c=c.parentNode}while(c);return[e,b]},cumulativeOffset:function(c){var b=0,e=0;do{b+=c.offsetTop||0;e+=c.offsetLeft||0;c=c.offsetParent}while(c);return[e,b]},positionedOffset:function(c){var b=0,e=0;do{b+=c.offsetTop||0;e+=c.offsetLeft||0;c=c.offsetParent;if(c){p=Element.getStyle(c,"position");if(p=="relative"||p=="absolute"){break}}}while(c);return[e,b]},offsetParent:function(b){if(b.offsetParent){return b.offsetParent}if(b==document.body){return b}while((b=b.parentNode)&&b!=document.body){if(Element.getStyle(b,"position")!="static"){return b}}return document.body},within:function(c,b,e){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(c,b,e)}this.xcomp=b;this.ycomp=e;this.offset=this.cumulativeOffset(c);return(e>=this.offset[1]&&e<this.offset[1]+c.offsetHeight&&b>=this.offset[0]&&b<this.offset[0]+c.offsetWidth)},withinIncludingScrolloffsets:function(c,b,g){var e=this.realOffset(c);this.xcomp=b+e[0]-this.deltaX;this.ycomp=g+e[1]-this.deltaY;this.offset=this.cumulativeOffset(c);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+c.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+c.offsetWidth)},overlap:function(c,b){if(!c){return 0}if(c=="vertical"){return((this.offset[1]+b.offsetHeight)-this.ycomp)/b.offsetHeight}if(c=="horizontal"){return((this.offset[0]+b.offsetWidth)-this.xcomp)/b.offsetWidth}},clone:function(c,e){c=$(c);e=$(e);e.style.position="absolute";var b=this.cumulativeOffset(c);e.style.top=b[1]+"px";e.style.left=b[0]+"px";e.style.width=c.offsetWidth+"px";e.style.height=c.offsetHeight+"px"},page:function(g){var b=0,e=0;var c=g;do{b+=c.offsetTop||0;e+=c.offsetLeft||0;if(c.offsetParent==document.body){if(Element.getStyle(c,"position")=="absolute"){break}}}while(c=c.offsetParent);c=g;do{b-=c.scrollTop||0;e-=c.scrollLeft||0}while(c=c.parentNode);return[e,b]},clone:function(e,h){var b=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});e=$(e);var g=Position.page(e);h=$(h);var l=[0,0];var c=null;if(Element.getStyle(h,"position")=="absolute"){c=Position.offsetParent(h);l=Position.page(c)}if(c==document.body){l[0]-=document.body.offsetLeft;l[1]-=document.body.offsetTop}if(b.setLeft){h.style.left=(g[0]-l[0]+b.offsetLeft)+"px"}if(b.setTop){h.style.top=(g[1]-l[1]+b.offsetTop)+"px"}if(b.setWidth){h.style.width=e.offsetWidth+"px"}if(b.setHeight){h.style.height=e.offsetHeight+"px"}},absolutize:function(c){c=$(c);if(c.style.position=="absolute"){return}Position.prepare();var g=Position.positionedOffset(c);var l=g[1];var h=g[0];var e=c.clientWidth;var b=c.clientHeight;c._originalLeft=h-parseFloat(c.style.left||0);c._originalTop=l-parseFloat(c.style.top||0);c._originalWidth=c.style.width;c._originalHeight=c.style.height;c.style.position="absolute";c.style.top=l+"px";c.style.left=h+"px";c.style.width=e+"px";c.style.height=b+"px"},relativize:function(b){b=$(b);if(b.style.position=="relative"){return}Position.prepare();b.style.position="relative";var e=parseFloat(b.style.top||0)-(b._originalTop||0);var c=parseFloat(b.style.left||0)-(b._originalLeft||0);b.style.top=e+"px";b.style.left=c+"px";b.style.height=b._originalHeight;b.style.width=b._originalWidth}};if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){Position.cumulativeOffset=function(c){var b=0,e=0;do{b+=c.offsetTop||0;e+=c.offsetLeft||0;if(c.offsetParent==document.body){if(Element.getStyle(c,"position")=="absolute"){break}}c=c.offsetParent}while(c);return[e,b]}}Object.extend(Event,{_domReady:function(){if(arguments.callee.done){return}arguments.callee.done=true;if(this._timer){clearInterval(this._timer)}this._readyCallbacks.each(function(b){b()});this._readyCallbacks=null},onDOMReady:function(f){if(!this._readyCallbacks){var domReady=this._domReady.bind(this);if(document.addEventListener){document.addEventListener("DOMContentLoaded",domReady,false);
/*@cc_on @*/
/*@if (@_win32)
            document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
            document.getElementById("__ie_onload").onreadystatechange = function() {
                if (this.readyState == "complete") domReady(); 
            };
        /*@end @*/
}if(/WebKit/i.test(navigator.userAgent)){this._timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){domReady()}},10)}Event.observe(window,"load",domReady);Event._readyCallbacks=[]}Event._readyCallbacks.push(f)}});if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(z,e,A,l,s,u,n,m,g,v){if(!document.getElementById){return}this.DETECT_KEY=v?v:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(z){this.setAttribute("swf",z)}if(e){this.setAttribute("id",e)}if(A){this.setAttribute("width",A)}if(l){this.setAttribute("height",l)}if(s){this.setAttribute("version",new deconcept.PlayerVersion(s.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(u){this.addParam("bgcolor",u)}var b=n?n:"high";this.addParam("quality",b);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var r=(m)?m:window.location;this.setAttribute("xiRedirectUrl",r);this.setAttribute("redirectUrl","");if(g){this.setAttribute("redirectUrl",g)}};deconcept.SWFObject.prototype={useExpressInstall:function(b){this.xiSWFPath=!b?"expressinstall.swf":b;this.setAttribute("useExpressInstall",true)},setAttribute:function(b,c){this.attributes[b]=c},getAttribute:function(b){return this.attributes[b]},addParam:function(c,b){this.params[c]=b},getParams:function(){return this.params},addVariable:function(c,b){this.variables[c]=b},getVariable:function(b){return this.variables[b]},getVariables:function(){return this.variables},getVariablePairs:function(){var e=new Array();var c;var b=this.getVariables();for(c in b){e[e.length]=c+"="+b[c]}return e},getSWFHTML:function(){var c="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}c='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';c+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var l=this.getParams();for(var h in l){c+=[h]+'="'+l[h]+'" '}var g=this.getVariablePairs().join("&");if(g.length>0){c+='flashvars="'+g+'"'}c+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}c='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';c+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var e=this.getParams();for(var h in e){c+='<param name="'+h+'" value="'+e[h]+'" />'}var b=this.getVariablePairs().join("&");if(b.length>0){c+='<param name="flashvars" value="'+b+'" />'}c+="</object>"}return c},write:function(c){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var e=(typeof c=="string")?document.getElementById(c):c;e.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var l=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var b=navigator.plugins["Shockwave Flash"];if(b&&b.description){l=new deconcept.PlayerVersion(b.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var c=1;var g=3;while(c){try{g++;c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+g);l=new deconcept.PlayerVersion([g,0,0])}catch(h){c=null}}}else{try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(h){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");l=new deconcept.PlayerVersion([6,0,21]);c.AllowScriptAccess="always"}catch(h){if(l.major==6){return l}}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(h){}}if(c!=null){l=new deconcept.PlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}}}return l};deconcept.PlayerVersion=function(b){this.major=b[0]!=null?parseInt(b[0]):0;this.minor=b[1]!=null?parseInt(b[1]):0;this.rev=b[2]!=null?parseInt(b[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(b){if(this.major<b.major){return false}if(this.major>b.major){return true}if(this.minor<b.minor){return false}if(this.minor>b.minor){return true}if(this.rev<b.rev){return false}return true};deconcept.util={getRequestParameter:function(e){var g=document.location.search||document.location.hash;if(e==null){return g}if(g){var c=g.substring(1).split("&");for(var b=0;b<c.length;b++){if(c[b].substring(0,c[b].indexOf("="))==e){return c[b].substring((c[b].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var c=document.getElementsByTagName("OBJECT");for(var e=c.length-1;e>=0;e--){c[e].style.display="none";for(var b in c[e]){if(typeof c[e][b]=="function"){c[e][b]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(b){return document.all[b]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;function init(){valignButtonsInTeaser.set();if(document.getElementById("transparentLayer")){transparentLayer.open()}if(document.getElementById("popupLayer")||document.getElementById("formWerbenNewsletter24")){popupLayerShadowForIE6.set();popupLayer.open()}if(document.getElementById("ibeHome")){ibeHomeShadowForIE6.set()}t}var windowOpen={open:function(e,c,g,b){f=window.open(e,c,"width="+g+",height="+b+",scrollbars=yes,status=yes,toolbar=no,location=no,directories=no,resizable=yes,menubar=yes");setTimeout("f.focus()",200)}};var transparentLayer={pageWidth:false,pageheight:false,init:function(){scrollWidth=document.getElementsByTagName("body")[0].offsetWidth;scrollHeight=document.getElementsByTagName("body")[0].offsetHeight;documentWidth=document.getElementsByTagName("body")[0].scrollLeft;documentHeight=document.getElementsByTagName("body")[0].scrollTop;if(window.innerWidth){windowWidth=window.innerWidth;windowHeight=window.innerHeight}else{windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight}if((documentWidth-scrollWidth)>windowWidth){this.pageWidth=documentWidth-scrollWidth}else{this.pageWidth=windowWidth}if((documentHeight-scrollHeight)>windowHeight){this.pageHeight=documentHeight-scrollHeight}else{this.pageHeight=windowHeight}},open:function(){if(document.getElementById("transparentLayer")){this.init();document.getElementById("transparentLayer").style.width="100%";document.getElementById("transparentLayer").style.height=this.pageHeight+"px";document.getElementById("transparentLayer").style.zIndex="19999";document.getElementById("transparentLayer").style.visibility="visible"}},close:function(){if(document.getElementById("transparentLayer")){document.getElementById("transparentLayer").style.visibility="hidden"}},debug:function(){alert(this.pageWidth+" x "+this.pageHeight)}};var popupLayer={close:function(){if(document.getElementById("popupLayer")){document.getElementById("popupLayer").style.visibility="hidden"}else{if(document.getElementById("formWerbenNewsletter24")){document.getElementById("formWerbenNewsletter24").style.visibility="hidden"}}transparentLayer.close()},open:function(){if(document.getElementById("popupLayer")){document.getElementById("popupLayer").style.zIndex="20000";document.getElementById("popupLayer").style.visibility="visible"}else{if(document.getElementById("formWerbenNewsletter24")){document.getElementById("formWerbenNewsletter24").style.zIndex="20000";document.getElementById("formWerbenNewsletter24").style.visibility="visible"}}}};var popupLayerShadowForIE6={set:function(){if(document.all&&!window.opera){preffix="";if(document.getElementById("formWerbenNewsletter24")){preffix="werben_"}var b={top:{obj:document.getElementById("PopupLayerTop"),src:"images/structure/background/bg_"+preffix+"popupLayer_top.png"},content:{obj:document.getElementById("PopupLayerVertical"),src:"images/structure/background/bg_"+preffix+"popupLayer_vertical.png"},bottom:{obj:document.getElementById("PopupLayerBottom"),src:"images/structure/background/bg_"+preffix+"popupLayer_bottom.png"}};b.top["obj"].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+b.top["src"]+', sizingMethod="image")';b.top["obj"].style.backgroundColor="transparent";b.content["obj"].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+b.content["src"]+', sizingMethod="scale")';b.content["obj"].style.backgroundColor="transparent";b.bottom["obj"].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+b.bottom["src"]+', sizingMethod="image")';b.bottom["obj"].style.backgroundColor="transparent"}}};var ibeHomeShadowForIE6={set:function(){if(!document.getElementById("ibeHome")){return false}if(document.all&&!window.opera){var b={top:{obj:document.getElementById("shadowTop"),src:"/de/Images/bg_shadow_1_4_top.png"},content:{obj:document.getElementById("shadowContent"),src:"/de/Images/bg_shadow_1_4_content.png"},bottom:{obj:document.getElementById("shadowBottom"),src:"/de/Images/bg_shadow_1_4_bottom.png"}};b.top["obj"].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+b.top["src"]+', sizingMethod="image")';b.top["obj"].style.backgroundColor="transparent";b.content["obj"].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+b.content["src"]+', sizingMethod="scale")';b.content["obj"].style.backgroundColor="transparent";b.bottom["obj"].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+b.bottom["src"]+', sizingMethod="image")';b.bottom["obj"].style.backgroundColor="transparent"}}};var valignButtonsInTeaser={check:function(e){var c=e.getElementsByTagName("div");for(var b=0;b<c.length;b++){if(c[b].className.indexOf("link")>-1){return true}}return false},setCSSPositionLink:function(g,e){var c=g.getElementsByTagName("div");for(var b=0;b<c.length;b++){if(c[b].className.indexOf("link")>-1){c[b].style.position=e}}},set:function(){myDivs=document.getElementsByTagName("div");myAlignGroups=new Array();for(var g=0;g<myDivs.length;g++){if(myDivs[g].className.indexOf("alignButton")>-1){if(this.check(myDivs[g])){this.setCSSPositionLink(myDivs[g],"static");var e=myDivs[g].getElementsByTagName("DIV"),b=true,h=new Array(),l;for(l=0;l<e.length;++l){if(e[l].className=="teaser14FlagTable"||e[l].className=="contentHeadlineTopImageLarge"){b=false}else{h[h.length]=e[l].offsetHeight}}if(b===true){x=myDivs[g].offsetHeight}else{x=h.sort(function(n,m){return n-m})[h.length-1]}this.setCSSPositionLink(myDivs[g],"absolute");var c=myDivs[g].getElementsByTagName("DIV");for(j=0;j<c.length;j++){c[j].parentNode.style.height=x+15+"px"}}}}}};var motion=false;var decrease=0.9;function slideInit(b,l,h,e,c){var g=b.parentNode.nextSibling;while(g.nodeType!=1){g=g.nextSibling}if(!motion){window.slideObj=g;slideObj.toggle=b;if(slideObj.className.indexOf("noCollapse")>-1){if(!slideObj.style.height){slideObj.minHt=slideObj.offsetHeight-2;slideObj.style.height=slideObj.minHt+"px"}}else{slideObj.minHt=0;if(!slideObj.style.height){slideObj.style.height="0px"}}if(l){slideObj.sideBorder=false}else{slideObj.sideBorder=true}if(h){b.style.visibility="hidden"}else{b.style.visibility=""}slideObj.toggleImage=b.getElementsByTagName("IMG")[0];slideObj.imageOpen=new Image();slideObj.imageOpen.src=e;slideObj.imageClose=new Image();slideObj.imageClose.src=c;if(!slideObj.direc){slideObj.direc=1}slideObj.speed=parseInt(slideObj.getElementsByTagName("DIV")[0].offsetHeight/4);slide()}return false}function slide(){window.clearTimeout(motion);slideObj.speed*=decrease;ht=parseInt(slideObj.style.height);if(slideObj.direc>0){if(ht<(slideObj.getElementsByTagName("DIV")[0].offsetHeight)){slideObj.style.height=ht+Math.ceil(slideObj.speed)+"px";if(slideObj.sideBorder){slideObj.style.borderStyle="solid"}}else{slideObj.style.height=slideObj.getElementsByTagName("DIV")[0].offsetHeight+"px";slideObj.toggle.className="open";if(slideObj.toggleImage&&slideObj.imageClose){slideObj.toggleImage.src=slideObj.imageClose.src}slideObj.direc*=-1;motion=false;return}}else{if(ht>slideObj.minHt){var b=ht-Math.ceil(slideObj.speed);if(b<slideObj.minHt){b=slideObj.minHt}slideObj.style.height=b+"px"}else{slideObj.style.height=slideObj.minHt+"px";if(!slideObj.minHt){slideObj.style.borderStyle="none"}slideObj.toggle.className="";if(slideObj.toggleImage&&slideObj.imageOpen){slideObj.toggleImage.src=slideObj.imageOpen.src}slideObj.direc*=-1;motion=false;return}}motion=window.setTimeout("slide()",40)}function changeOption(c){for(var b=0;b<c.length;b++){if(c[b].selected){c[b].style.fontWeight="bold"}else{c[b].style.fontWeight="normal"}}}function newsletter_email(b,c){if(b.value==""){b.style.color="#c1c1c1";b.value=c}}function newsletter_email_clear(b,c){if(b.value==c){b.style.color="#000000";b.value=""}}function zaehlen(){var b=501;anz=document.pressekontakt_form.Pressekontakt_Anliegen.value.length+1;document.pressekontakt_form.anzeige.value=b-anz;uebrig=b-anz;if(anz>=b){alert("Maximum erreicht !!!")}return uebrig}var px=10;var timer;var merker;function scrollDiv(b){clearTimeout(timer);d=document.getElementById("ScrollArea");y=d.scrollTop;if(b==1){y-=px}if(b==2){y+=px}if(y<=d.scrollHeight-d.offsetHeight+px&&y>=0-px){d.scrollTop=y;timer=setTimeout("scrollDiv("+b+")",50)}if(y<0||y>d.scrollHeight-d.offsetHeight){clearTimeout(timer)}}function zaehlenFAQ(){var b=501;anz=document.faq.faq_ihre_anfrage.value.length+1;document.faq.anzeige.value=b-anz;uebrig=b-anz;if(anz>=b){alert("Maximum erreicht !!!")}return uebrig}function switchLanguage(b){var c=b.options[b.options.selectedIndex].value;if(c!=""){window.location.href=c}}function gw_maxLengthTextArea(c,e,b){if((e.keyCode>=37&&e.keyCode<=40)||e.keyCode==8||e.keyCode==13||e.keyCode==35||e.keyCode==36||e.keyCode==46){return true}if(c.value.length+1>b){return false}else{return true}}function gw_updateCounter(e,c,b){c.update(b-e.value.length)}function popupSized(g,c,e,b){positionx=(screen.width/2)-(e/2);positiony=(screen.height/2)-(b/2);window.open(g,c,"width="+e+",height="+b+",resizable=yes,status=no,scrollbars=yes,toolbar=no,menubar=no,left="+positionx+",top="+positiony+",screenX="+positionx+",screenY="+positiony)}function slideInitUnternehmen(b,c){merker=b;if(!motion){window.slideObj=document.getElementById(c);slideObj.toggle=b;if(!slideObj.direc){slideObj.direc=1}slideObj.speed=parseInt(slideObj.getElementsByTagName("DIV")[0].offsetHeight/4);slideUnternehmen()}return false}function slideUnternehmen(){window.clearTimeout(motion);slideObj.speed*=decrease;ht=parseInt(slideObj.style.height);if(slideObj.direc>0){if(ht<(slideObj.getElementsByTagName("DIV")[0].offsetHeight)){slideObj.style.height=ht+Math.ceil(slideObj.speed)+"px"}else{slideObj.style.height=slideObj.getElementsByTagName("DIV")[0].offsetHeight+"px";slideObj.toggle.className="open";merker.style.visibility="hidden";slideObj.direc*=-1;motion=false;return}}else{if(ht>0){var b=ht-Math.ceil(slideObj.speed);if(b<0){b=0}slideObj.style.height=b+"px"}else{slideObj.style.height="0px";slideObj.toggle.className="";merker.style.visibility="visible";slideObj.direc*=-1;motion=false;return}}motion=window.setTimeout("slideUnternehmen()",40)}function mouseX(b){if(b.pageX){return b.pageX}else{if(b.clientX){return b.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft)}else{return null}}}function mouseY(b){if(b.pageY){return b.pageY}else{if(b.clientY){return b.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}else{return null}}}function displayImage(l,m){var c=document.getElementById("Container");try{var h=c.getElementsByTagName("IMG")[0];c.removeChild(h)}catch(g){}var b=document.createElement("IMG");b.src=m;c.appendChild(b);c.style.top=mouseY(l)+"px";c.style.left=mouseX(l)+"px";c.style.display="block"}function emptyContainer(){var b=document.getElementById("Container");var c=b.getElementsByTagName("IMG")[0];b.removeChild(c);b.style.display="none"}function openContentPopup(url,winName,w,h){var parameter="width="+w+",height="+h+",left="+eval((screen.width-w)/2)+",top=50,scrollbars=yes,resizable=yes,location=no,menubar=no,toolbar=no";a=window.open(url,winName,parameter);a.focus();return false}function openRatesTable(){var l=location.href;urlArray=new Array();urlArray=l.split("/");var h;if(urlArray[3].length!=2){h="en"}else{h=urlArray[3]}var e="/"+h+"/faq_rates.htm";var c="ratestable";var g=700;var b=800;openContentPopup(e,c,g,b)}var MONTH_NAMES=new Array("January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var DAY_NAMES=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat");function LZ(b){return(b<0||b>9?"":"0")+b}function isDate(e,c){var b=getDateFromFormat(e,c);if(b==0){return false}return true}function compareDates(h,l,e,g){var c=getDateFromFormat(h,l);var b=getDateFromFormat(e,g);if(c==0||b==0){return -1}else{if(c>b){return 1}}return 0}function formatDate(S,P){P=P+"";var u="";var F=0;var R="";var l="";var r=S.getYear()+"";var n=S.getMonth()+1;var Q=S.getDate();var w=S.getDay();var v=S.getHours();var I=S.getMinutes();var A=S.getSeconds();var C,D,e,B,T,g,O,N,J,z,V,v,U,q,b,L;var G=new Object();if(r.length<4){r=""+(r-0+1900)}G.y=""+r;G.yyyy=r;G.yy=r.substring(2,4);G.M=n;G.MM=LZ(n);G.MMM=MONTH_NAMES[n-1];G.NNN=MONTH_NAMES[n+11];G.d=Q;G.dd=LZ(Q);G.E=DAY_NAMES[w+7];G.EE=DAY_NAMES[w];G.H=v;G.HH=LZ(v);if(v==0){G.h=12}else{if(v>12){G.h=v-12}else{G.h=v}}G.hh=LZ(G.h);if(v>11){G.K=v-12}else{G.K=v}G.k=v+1;G.KK=LZ(G.K);G.kk=LZ(G.k);if(v>11){G.a="PM"}else{G.a="AM"}G.m=I;G.mm=LZ(I);G.s=A;G.ss=LZ(A);while(F<P.length){R=P.charAt(F);l="";while((P.charAt(F)==R)&&(F<P.length)){l+=P.charAt(F++)}if(G[l]!=null){u=u+G[l]}else{u=u+l}}return u}function _isInteger(e){var c="1234567890";for(var b=0;b<e.length;b++){if(c.indexOf(e.charAt(b))==-1){return false}}return true}function _getInt(l,g,h,e){for(var b=e;b>=h;b--){var c=l.substring(g,g+b);if(c.length<h){return null}if(_isInteger(c)){return c}}return null}function getDateFromFormat(G,z){G=G+"";z=z+"";var F=0;var s=0;var B="";var l="";var E="";var n,m;var e=new Date();var q=e.getYear();var D=e.getMonth()+1;var C=1;var g=e.getHours();var A=e.getMinutes();var v=e.getSeconds();var r="";while(s<z.length){B=z.charAt(s);l="";while((z.charAt(s)==B)&&(s<z.length)){l+=z.charAt(s++)}if(l=="yyyy"||l=="yy"||l=="y"){if(l=="yyyy"){n=4;m=4}if(l=="yy"){n=2;m=2}if(l=="y"){n=2;m=4}q=_getInt(G,F,n,m);if(q==null){return 0}F+=q.length;if(q.length==2){if(q>70){q=1900+(q-0)}else{q=2000+(q-0)}}}else{if(l=="MMM"||l=="NNN"){D=0;for(var w=0;w<MONTH_NAMES.length;w++){var h=MONTH_NAMES[w];if(G.substring(F,F+h.length).toLowerCase()==h.toLowerCase()){if(l=="MMM"||(l=="NNN"&&w>11)){D=w+1;if(D>12){D-=12}F+=h.length;break}}}if((D<1)||(D>12)){return 0}}else{if(l=="EE"||l=="E"){for(var w=0;w<DAY_NAMES.length;w++){var u=DAY_NAMES[w];if(G.substring(F,F+u.length).toLowerCase()==u.toLowerCase()){F+=u.length;break}}}else{if(l=="MM"||l=="M"){D=_getInt(G,F,l.length,2);if(D==null||(D<1)||(D>12)){return 0}F+=D.length}else{if(l=="dd"||l=="d"){C=_getInt(G,F,l.length,2);if(C==null||(C<1)||(C>31)){return 0}F+=C.length}else{if(l=="hh"||l=="h"){g=_getInt(G,F,l.length,2);if(g==null||(g<1)||(g>12)){return 0}F+=g.length}else{if(l=="HH"||l=="H"){g=_getInt(G,F,l.length,2);if(g==null||(g<0)||(g>23)){return 0}F+=g.length}else{if(l=="KK"||l=="K"){g=_getInt(G,F,l.length,2);if(g==null||(g<0)||(g>11)){return 0}F+=g.length}else{if(l=="kk"||l=="k"){g=_getInt(G,F,l.length,2);if(g==null||(g<1)||(g>24)){return 0}F+=g.length;g--}else{if(l=="mm"||l=="m"){A=_getInt(G,F,l.length,2);if(A==null||(A<0)||(A>59)){return 0}F+=A.length}else{if(l=="ss"||l=="s"){v=_getInt(G,F,l.length,2);if(v==null||(v<0)||(v>59)){return 0}F+=v.length}else{if(l=="a"){if(G.substring(F,F+2).toLowerCase()=="am"){r="AM"}else{if(G.substring(F,F+2).toLowerCase()=="pm"){r="PM"}else{return 0}}F+=2}else{if(G.substring(F,F+l.length)!=l){return 0}else{F+=l.length}}}}}}}}}}}}}}if(F!=G.length){return 0}if(D==2){if(((q%4==0)&&(q%100!=0))||(q%400==0)){if(C>29){return 0}}else{if(C>28){return 0}}}if((D==4)||(D==6)||(D==9)||(D==11)){if(C>30){return 0}}if(g<12&&r=="PM"){g=g-0+12}else{if(g>11&&r=="AM"){g-=12}}var b=new Date(q,D-1,C,g,A,v);return b.getTime()}function parseDate(n){var h=(arguments.length==2)?arguments[1]:false;generalFormats=new Array("y-M-d","MMM d, y","MMM d,y","y-MMM-d","d-MMM-y","MMM d");monthFirst=new Array("M/d/y","M-d-y","M.d.y","MMM-d","M/d","M-d");dateFirst=new Array("d/M/y","d-M-y","d.M.y","d-MMM","d/M","d-M");var c=new Array("generalFormats",h?"dateFirst":"monthFirst",h?"monthFirst":"dateFirst");var m=null;for(var g=0;g<c.length;g++){var b=window[c[g]];for(var e=0;e<b.length;e++){m=getDateFromFormat(n,b[e]);if(m!=0){return new Date(m)}}}return null}function initDestinations(){var b=["grey","white","last"];toggleDestinationClass("destinationsThree",3,b);toggleDestinationClass("destinationsFour",4,b)}function toggleDestinationClass(e,c,b){document.getElementsByClassName(e).each(function(r){var s=r.getElementsByTagName("li"),h=s.length,l=b[0],n=new Array(),q,m;for(q=0;q<h;++q){Element.cleanWhitespace(s[q]);if(!s[q].children){n[q]=s[q].childNodes[0]}else{n[q]=s[q].children[0]}if(n[q]&&!Element.hasClassName(n[q],"destHeadline")){Element.addClassName(s[q],l)}switch(true){case (q+1)%c==0:if(n[q]&&!Element.hasClassName(n[q],"destHeadline")){l=l==b[0]?b[1]:b[0]}if(!n[q]){var g=false;for(m=((q+1)-c);m<=q;m++){if(n[m]&&!Element.hasClassName(n[m],"destHeadline")){g=true;break}}if(g===true){l=l==b[0]?b[1]:b[0]}}case (q+1)%c==0||h==(q+1):Element.addClassName(s[q],b[2])}}})}function checkFormInput(c,e){var b=document.search.SearchQueryText.value;if(b==""){document.search.SearchQueryText.value=e}else{if(b==e){document.search.SearchQueryText.value=""}}}function alignBoxHights(){var g=document.getElementsByTagName("DIV");var c=new Array();for(j=0;j<g.length;j++){if(g[j].className.indexOf("alignHeight")>0){c.push(g[j])}}for(j=0;j<c.length;j++){var l=0;var b=c[j].getElementsByTagName("DIV");var e=new Array();for(i=0;i<b.length;i++){if(b[i].className.indexOf("alignBox")>0){e.push(b[i])}}for(i=0;i<e.length;i++){var h=e[i];if(h.offsetHeight>l){l=h.offsetHeight}}for(i=0;i<e.length;i++){var h=e[i];h.style.height=l+"px"}}}window.onload=function(){var b=document.URL.split("/");if(b[b.length-1]!="Allgemeine-Befoerderungsbedingungen-ABB.htm"&&b[b.length-1]!="Unternehmen-Pressearchiv.htm"){alignBoxHights();initializeTeaserTracking()}};var ac_url=document.URL.split("/");if(ac_url[ac_url.length-1]!="Allgemeine-Befoerderungsbedingungen-ABB.htm"&&ac_url[ac_url.length-1]!="Unternehmen-Pressearchiv.htm"){Object.extend(Event,{_domReady:function(){if(arguments.callee.done){return}arguments.callee.done=true;if(Event._timer){clearInterval(Event._timer)}Event._readyCallbacks.each(function(b){b()});Event._readyCallbacks=null},onReady:function(f){if(!this._readyCallbacks){var domReady=this._domReady;if(domReady.done){return f()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",domReady,false);
/*@cc_on @*/
/*@if (@_win32)
            var dummy = (location.protocol == "https:") ? "//:" : "javascript:void(0)";
            document.write("<script id=__ie_onload defer src='" + dummy + "'><\/script>");
            document.getElementById("__ie_onload").onreadystatechange = function() {
                if (this.readyState == "complete") { domReady(); }
            };
        /*@end @*/
}if(/WebKit/i.test(navigator.userAgent)){this._timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){domReady()}},10)}Event.observe(window,"load",domReady);Event._readyCallbacks=[]}Event._readyCallbacks.push(f)}})}var ac_url=document.URL.split("/");if(ac_url[ac_url.length-1]!="Allgemeine-Befoerderungsbedingungen-ABB.htm"&&ac_url[ac_url.length-1]!="Unternehmen-Pressearchiv.htm"){Event.onReady(function(){correctTeaserHeadlines()})}function correctTeaserHeadlines(){var b=document.getElementsByTagName("link");landing_page=false;for(var J=0;J<b.length;++J){if(b[J].getAttribute("href")&&b[J].getAttribute("href").search(/master.+/)!=-1){landing_page=true}}if(landing_page===false){var l=[],I=["contentTeaserBgIcon","contentTeaserBgImageLarge","contentTeaserImage","teaserOnlyHeadline","picText"],F=false,e=Element,H,r,q,A,C,g=0,G,E,u,B,w="18.2px",v,n=F,z=F,s=true,D="h5";for(r=0;r<I.length;++r){H=document.getElementsByClassName(I[r]);if(H!=""){for(q=0;q<H.length;++q){l[g]=H[q];g=l.length}}}if(g>0){for(A=0;A<g;++A){for(C=0;C<l[A].getElementsByTagName(D).length;++C){G=l[A].getElementsByTagName(D)[C];E=G.parentNode.className;e.setStyle(G,{display:"inline"});u=parseInt(e.getStyle(G,"padding-top").replace("px",""));u=u===undefined?0:u;B=e.getHeight(G);if(E==I[0]){u=0}if((B-u)>=60&&E!=I[1]){n=s}if(B>=34&&E==I[4]){z=n=s}if(E==I[1]){if(B-u>=34){n=s}}e.setStyle(G,{display:"block"})}}}if(n===s){for(A=0;A<l.length;++A){for(C=0;C<l[A].getElementsByTagName(D).length;++C){v=$(l[A]);e.setStyle(v.getElementsByTagName("div")[0],{marginTop:w});if(z===s){e.setStyle(v.getElementsByTagName("p")[0],{marginTop:w})}}}}}}function correctStructBackground(){var b=document.getElementsByTagName("div"),v=[],g=0,e=0,A,w=0,n,u,c,s,h,m={3:"/de/Images/Buchung/bg_struct_teasergroup_3_3.gif",2:"/de/Images/Buchung/bg_struct_teasergroup_3_3_2teaser.gif",1:"/de/Images/Buchung/bg_struct_teasergroup_3_3_1teaser.gif"},r,l;for(h=0;h<b.length;++h){if(b[h].className=="strucTeasergroup33"){v[g]=b[h];++g}}for(u=0;u<v.length;++u){A=v[u].getElementsByTagName("div");for(c=0;c<A.length;++c){if(A[c].className=="group alignButton"){n=A[c].getElementsByTagName("div");for(s=0;s<n.length;++s){if(n[s].className=="contentTeaserImage"){++w}}}}if(getBgTeaserByClassName(v[u],"group").length-1>=0){switch(w%3){case 0:getBgTeaserByClassName(v[u],"group")[getBgTeaserByClassName(v[u],"group").length-1].style.backgroundImage="url("+m[3]+")";break;default:getBgTeaserByClassName(v[u],"group")[getBgTeaserByClassName(v[u],"group").length-1].style.backgroundImage="url("+m[w%3]+")";break}}w=0}}function getBgTeaserByClassName(l,h){var g=new RegExp("(^| )"+h+"($| )");var c=l.getElementsByTagName("*");var b=new Array();var e;for(e=0;e<c.length;e++){if(c[e]&&c[e].className&&c[e].className!=""){if(c[e].className.match(g)){b[b.length]=c[e]}}}return b}var StructFinder=function(){this.structClasses=[];this.structs=[];this.checkStructID=false;this.addStructClass=function(b){this.structClasses[this.structClasses.length]=b;return this};this.checkForStructID=function(b){if(b===true||b===false){this.checkStructID=b}return this};this.getStructs=function(){var b=strct=[],e,c;if(this.structs.length==0){for(struct_class in this.structClasses){strct=strct.concat(this._getElementsByClassName(document,this.structClasses[struct_class]))}if(this.checkStructID===true){for(e=0;e<strct.length;++e){if(strct[e].getAttribute("title")!=null&&strct[e].getAttribute("title")!=""){b.push(strct[e])}}strct=b}this.structs=strct}return this.structs};this._getElementsByClassName=function(g,h){var b,e=[],c=0;b=g.getElementsByTagName("*");for(i=0;i<b.length;i++){if(b[i].className==h){e[c]=b[i];c++}}return e}};var StructFinder=function(){this.structClasses=[];this.structs=[];this.checkStructID=false;this.addStructClass=function(b){this.structClasses[this.structClasses.length]=b;return this};this.checkForStructID=function(b){if(b===true||b===false){this.checkStructID=b}return this};this.getStructs=function(){var b=strct=[],e,c;if(this.structs.length==0){for(struct_class in this.structClasses){strct=strct.concat(this._getElementsByClassName(document,this.structClasses[struct_class]))}if(this.checkStructID===true){for(e=0;e<strct.length;++e){if(strct[e].getAttribute("title")!=null&&strct[e].getAttribute("title")!=""){b.push(strct[e])}}strct=b}this.structs=strct}return this.structs};this._getElementsByClassName=function(g,h){var b,e=[],c=0;b=g.getElementsByTagName("*");for(i=0;i<b.length;i++){if(b[i].className==h){e[c]=b[i];c++}}return e}};var Struct=function(c,b){this.el=null;this.teaserElements=[];this.name=null;this.teaserDecorator=null;this.__construct=function(g,e){this.setStruct(g);this.setTeaserDecorator(e);return this};this.getName=function(){var e=this.el.getAttribute("title");if(this.name==null){this.name=e==null||e==""?false:e}return this.name};this.getTeaserElements=function(){var e=this.getTeaserDecorator(),h=[],g=0;for(finder in e.finders){if(e.finders[finder].isIgnored()===false){h=e.finders[finder].setElement(this).find();if(typeof h!="undefined"&&h.length>0){return h}}}return h};this.setStruct=function(e){this.el=e;return this};this.getStruct=function(){return this.el};this.setTeaserDecorator=function(e){this.teaserDecorator=e;return this};this.getTeaserDecorator=function(){return this.teaserDecorator};this.getClassName=function(){return this.getStruct().className};this.__construct(c,b)};var TeaserFinder=function(){this.finders={};this.attach=function(c,b){if(typeof b.find!="function"){throw'Type of method "find" must be function!';return this}if(typeof b.setElement!="function"){throw'Type of method "setElement" must be function!';return this}if(typeof b.getElement!="function"){throw'Type of method "getElement" must be function!';return this}if(typeof b.isIgnored!="function"){throw'Type of method "isIgnored" must be function!';return this}if(typeof b.getName!="function"){throw'Type of method "getName" must be function!';return this}this.finders[c]=b;return this};this.detach=function(e){var c=[],b=this.finders;for(index in b){if(index!=e){c[index]=b[index]}}this.finders=c;return this}};var Teaser=function(b){this.el=null;this.trackingLink=null;this.structName=null;this.position=null;this.headline=null;this.__construct=function(c){this.el=c;return this};this.getHeadline=function(){return this.headline==""||this.headline=="&nbsp;"?"undefined":this.headline};this.setHeadline=function(c){this.headline=c;return this};this.getPosition=function(){return this.position};this.setPosition=function(c){this.position=c;return this};this.getStructName=function(){return this.structName};this.setStructName=function(c){this.structName=c;return this};this.getTrackingLink=function(){if(this.trackingLink==null){this.trackingLink=this.getStructName()+"|"+this.getPosition()+"|"+this.getHeadline()}return this.trackingLink};this.getElement=function(){return this.el};this.getLinks=function(){return this.getElement().getElementsByTagName("a")};this.attachTrackingEvent=function(c){link_consumer.addLink(c.href,this.getTrackingLink().replace('"',"'"));Event.observe(c,"click",function(m){var g,l=null;if(Event.element(m).tagName.toLowerCase()=="a"){g=Event.element(m)}else{g=Event.element(m).parentNode}l=link_consumer.getLink(g.href);var h=s_gi("germanwingscomprod");h.linkTrackVars="eVar9";h.linkTrackEvents="None";h.eVar9=l;h.tl(this,"e","Link Name")});return this};this.__construct(b)};var AbstractTeaserDecoratorEntity=function(){this.name=null;this.ignore=false;this.el=null;this.find=function(){return[]};this.setElement=function(b){this.el=b;return this};this.getElement=function(){return this.el};this.getName=function(){return this.name};this.isIgnored=function(){return this.ignore}};var LinkConsumer=function(){this.links={};this.addLink=function(c,b){this.links[c]=b;return this};this.getLink=function(b){return this.links[b]}};var AirportContainer=(function(){var b=null;function c(){var e=null;this.setData=function(g){this.data=g;return this};this.getData=function(g){return this.data}}return new function(){this.getInstance=function(){if(b==null){b=new c();b.constructor=null}return b}}})();var Airports=function(){this.getUrl=function(){var c=document.location.toString().search("https")==0?"https":"http",b=document.URL.replace(c,"").split("/");return c+b[0]+"/flash/xml/flight_map_locations_de.xml"},this.setData=function(){new Ajax.Request(this.getUrl(),{method:"get",onSuccess:function(l){var b=l.responseXML.getElementsByTagName("names")[0].childNodes,e,c=0,g=new Object(),h=document.createElement("input");for(e=0;e<b.length;++e){if(b[e].nodeName!="#text"&&b[e].nodeName!="#comment"){g[b[e].nodeName]=b[e].firstChild.nodeValue;++c}}AirportContainer.getInstance().setData(g)}})},this.getAirport=function(b){var c=AirportContainer.getInstance().getData();for(key in c){if(key.toLowerCase()==b.toLowerCase()){return c[key]}}return b};this.setData()};function initializeTeaserTracking(){var b=new AbstractTeaserDecoratorEntity();b.name="strucTeasergroup44";b.ignore=false;b.find=function(){var m=this.getElement(),l=all_content=[];all_content=m.getStruct().getElementsByTagName("h5");for(var h=0;h<all_content.length;++h){l[h]=new Teaser(all_content[h].parentNode);l[h].setHeadline(all_content[h].innerHTML).setPosition((h+1)).setStructName(m.getName())}return l};var g=new AbstractTeaserDecoratorEntity();g.name="quadrupelSquare";g.ignore=false;g.airports=new Airports();g.find=function(){var s=this.getElement(),A=[],h=s.getStruct(),u=[],q=[],w,v,r,n=0,B,z,m=["","Januar","Februar","M&auml;rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"];h=h.getElementsByTagName("div");for(r=0;r<h.length;++r){if(h[r].className=="quarter"){A[n]=h[r];++n}}for(w=0;w<A.length;++w){B=A[w].getElementsByTagName("a")[0].href.split("?")[1].split("&");q[w]="";for(v=0;v<B.length;++v){z=B[v].split("=")[1];q[w]+=B[v].split("=")[1].length==3?this.airports.getAirport(z)+(v==0?" -> ":" ab "):v==2?m[parseInt(z.split("-")[0])]+" "+z.split("-")[1]:z}u[w]=new Teaser(A[w]);u[w].setHeadline(q[w]).setPosition((w+1)).setStructName(s.getName())}return u};var e=new AbstractTeaserDecoratorEntity();e.name="calendar24";e.ignore=false;e.find=function(){var m=this.getElement().getStruct(),h=m.getElementsByTagName("a"),l=[];l[0]=new Teaser(m);l[0].setHeadline(h[0].getElementsByTagName("img")[0].getAttribute("alt")).setPosition(1).setStructName(this.getElement().getName());return l};link_consumer=new LinkConsumer();struct_finder=new StructFinder();struct_finder.addStructClass("struct2colls33-2").addStructClass("struct134ShadowLeft").addStructClass("box2x24Container").addStructClass("struct224Shadow").addStructClass("struct224ShadowLeft").addStructClass("struct224ShadowRight").addStructClass("strucTeasergroup33").addStructClass("struct_4_4").addStructClass("structShadow44").addStructClass("strucTeasergroup44").addStructClass("structShadow55").addStructClass("destinationsThree").addStructClass("destinationsFour").addStructClass("folderLinkList33").addStructClass("folderText44").addStructClass("folderPressText33").addStructClass("quadrupleSquare").addStructClass("calendar24").addStructClass("structPriceTeasergroup44").addStructClass("structTeasergroup24");struct_finder.checkForStructID(true);structs=struct_finder.getStructs();teaser_elements=parsed_structs=[];teaser_decorator=new TeaserFinder();teaser_decorator.attach(b.getName(),b);teaser_decorator.attach(g.getName(),g);teaser_decorator.attach(e.getName(),e);var c=function(){for(i=0;i<structs.length;++i){parsed_structs[i]=new Struct(structs[i],teaser_decorator);elements=parsed_structs[i].getTeaserElements();for(j=0;j<elements.length;++j){links=elements[j].getLinks();for(k=0;k<links.length;++k){elements[j].attachTrackingEvent(links[k])}}}};setTimeout(c,500)}var OriginalNavItem;var CurrentNavigationTimeout=0;var CurrentMousePosX=0;var CurrentMousePosY=0;var LastMousePosX=0;var LastMousePosY=0;function HoverNavigationItem(e){e.onmousemove=e.onmouseover;if(!IsCursorMoved(CurrentMousePosX,CurrentMousePosY,LastMousePosX,LastMousePosY)){return false}else{LastMousePosX=CurrentMousePosX;LastMousePosY=CurrentMousePosY}if(CurrentNavigationTimeout!=0){clearTimeout(CurrentNavigationTimeout)}var h=null;var g=null;if(Prototype.Version=="1.4.0"){h=document.getElementsByClassName("topnav active");g=document.getElementsByClassName("subnav active")}else{var h=$$(".topnav.active");var g=$$(".subnav.active")}if(h.length>0){for(var c=0;c<h.length;c++){h[c].className="topnav"}}if(g.length>0){for(var b=0;b<g.length;b++){g[b].className="subnav"}}e.className="subnav active";if(document.getElementById(e.id+"-subnav")){document.getElementById(e.id+"-subnav").className="subnav active"}if(typeof(DefaultActiveNavItem)!="undefined"){if(DefaultActiveNavItem.length>0){OriginalNavItem=document.getElementById(DefaultActiveNavItem);CurrentNavigationTimeout=setTimeout("HoverNavigationItem(OriginalNavItem)",3000)}}}function IsCursorMoved(h,g,e,c){var b=false;if((h-e>10)||(e-h>10)||(g-c>10)||(c-g>10)){b=true}return b}var IE=document.all?true:false;if(!IE){document.captureEvents(Event.MOUSEMOVE)}document.onmousemove=getMouseXY;var tempX=0;var tempY=0;function getMouseXY(b){if(IE){tempX=event.clientX+(document.body!=null?document.body.scrollLeft:0);tempY=event.clientY+(document.body!=null?document.body.scrollTop:0)}else{tempX=b.pageX;tempY=b.pageY}if(tempX<0){tempX=0}if(tempY<0){tempY=0}CurrentMousePosX=tempX;CurrentMousePosY=tempY;return true}var Germanwings={FlightSelection:function(e,b,c){this._id=e;this._anchor=Element.extend(b);this._i18n=c;this._init=function(){this._data=[];this._rowCount=0;var v=Element.extend(document.createElement("table"));v.className="gwui_flightsel";v.style.display="none";v.id=this._id;var q=v.createTHead();var r=q.insertRow(-1);var n=document.createElement("th");r.appendChild(n);var h=document.createElement("th");h.appendChild(document.createTextNode(this._i18n.date));r.appendChild(h);var u=document.createElement("th");u.appendChild(document.createTextNode(this._i18n.departure));r.appendChild(u);var l=document.createElement("th");l.appendChild(document.createTextNode(this._i18n.arrival));r.appendChild(l);var w=document.createElement("th");w.appendChild(document.createTextNode(this._i18n.flightNo));r.appendChild(w);var s=document.createElement("th");s.appendChild(document.createTextNode(this._i18n.via));r.appendChild(s);var g=v.insertRow(-1);g.className="gwui_flightsel_flight";var m=g.insertCell(-1);m.colSpan=6;m.appendChild(document.createTextNode(this._i18n.noData));this._anchor.parentNode.appendChild(v);this._table=v};this.reset=function(){this._table.remove();this._init()};this.show=function(){this._positionTable();this._table.show()};this.hide=function(){this._table.hide()};this.toggle=function(){this._positionTable();this._table.toggle()};this.visible=function(){return this._table.visible()};this.rowCount=function(){return this._rowCount};this.appendRow=function(m){if(this._rowCount==0){this._table.deleteRow(1)}var s=Element.extend(document.createElement("input"));s.type="radio";s.name=this._id+"_radio";s.observe("click",this._select.bindAsEventListener(this,this._rowCount,s));var v=Element.extend(this._table.insertRow(-1));v.className="gwui_flightsel_flight";v.observe("mouseover",function(){this.className="gwui_flightsel_flight_hover"}.bindAsEventListener(v));v.observe("mouseout",function(){this.className="gwui_flightsel_flight"}.bindAsEventListener(v));v.observe("click",this._select.bindAsEventListener(this,this._rowCount,s));var r=v.insertCell(-1);r.appendChild(s);var q=v.insertCell(-1);q.appendChild(document.createTextNode(m.date));var h=v.insertCell(-1);h.appendChild(document.createTextNode(m.departureTime));var g=v.insertCell(-1);g.appendChild(document.createTextNode(m.arrivalTime));var n=v.insertCell(-1);n.appendChild(document.createTextNode(m.flightNo));var u=v.insertCell(-1);var l;if(m.via){l=m.via}else{l="-"}u.appendChild(document.createTextNode(l));m._inp=s;this._data[this._rowCount]=m;this._rowCount++};this._positionTable=function(){var g=Position.cumulativeOffset(this._anchor);this._table.style.left=g[0]+"px";this._table.style.top=g[1]+this._anchor.getHeight()-1+"px"};this._select=function(m,g,l){for(var h=0;h<this._data.length;h++){this._data[h]._inp.checked=false}l.checked=true;this.hide();if(this.callback){this.callback(this._data[g])}};this._init(e)}};function TabView(b,c){this.tabView=new YAHOO.widget.TabView(b);this.addTabs=function(h){for(var g=0;g<h.length;g++){var m=h[g];var e=(m.onClickURL!==undefined&&m.onClickURL!=null);var n;if(e){n={label:m.label,href:m.onClickURL}}else{n={label:m.label,dataSrc:m.dataSrc,cacheData:true}}var l=new YAHOO.widget.Tab(n);l.on("click",this.clickEvent,l,this);if(e){l.set("activationEvent",null)}YAHOO.plugin.Dispatcher.delegate(l,this.tabView)}};this.clickEvent=function(e,l){try{var h=s_gi("germanwingscomprod");h.linkTrackVars="None";h.linkTrackEvents="None";h.tl(l,"o",'CompactSearch: Tab "'+l.get("label")+'" clicked')}catch(g){}};this.addTabs(c)}function CarRentalAutocomplete(e,b,c,g){this.setStations=function(l){this.stationList=new Array();for(var h=0;h<l.length;h++){this.stationList.push({name:l[h][0],code:l[h][1]})}};this.getStations=function(r){var n=decodeURIComponent(r.toLowerCase());var l=new Array();for(var h=0;h<this.stationList.length;h++){var m=this.stationList[h];if(n==m.code.toLowerCase()||m.name.toLowerCase().indexOf(n)>=0){l.push(m)}}return l};this.formatResult=function(h){return"<div class='station active-station'><div class='name'>"+h.name+"</div><div class='code'>"+h.code+"</div></div>"};this.select=function(q,n,h){var l=n[2];var m=n[0].getInputEl();$(h.formFields[m.id]).value=l.code;if(m.id==h.checkOutStationFieldName&&$(h.formFields[h.checkInStationFieldName]).value==""){$(h.checkInStationFieldName).value=l.name;$(h.formFields[h.checkInStationFieldName]).value=l.code}};this.createAutocomplete=function(q){var l=new YAHOO.widget.AutoComplete(q,q+"Container",this.dataSource);l.formatResult=this.formatResult;l.resultTypeList=false;l.forceSelection=false;l.minQueryLength=0;if($(q+"Toggle")){var m=$(q+"Toggle");var n=new YAHOO.widget.Button({container:m});var h=function(r){if(l.isContainerOpen()){l.collapseContainer()}else{l.getInputEl().focus();setTimeout(function(){l.sendQuery("")},0)}};n.on("click",h)}l.itemSelectEvent.subscribe(this.select,this);return l};this.formFields=new Array();this.formFields[e]=c;this.formFields[b]=g;this.stationList=[{name:"Bitte auswÃ¤hlen",code:""}];this.dataSource=new YAHOO.util.FunctionDataSource(this.getStations);this.dataSource.responseSchema={fields:["name","code"]};this.dataSource.scope=this;this.checkOutStationFieldName=e;this.checkInStationFieldName=b;this.checkOutAutocomplete=this.createAutocomplete(e);this.checkInAutocomplete=this.createAutocomplete(b);Event.observe(this.checkOutStationFieldName,"click",function(){this.select()}.bind($(this.checkOutStationFieldName)));Event.observe(this.checkOutStationFieldName,"focus",function(){this.select()}.bind($(this.checkOutStationFieldName)));Event.observe(this.checkInStationFieldName,"click",function(){this.select()}.bind($(this.checkInStationFieldName)));Event.observe(this.checkInStationFieldName,"focus",function(){this.select()}.bind($(this.checkInStationFieldName)))}function TabViewCalendar(c,b){this.containerField=$(c);this.handleSelect=function(h,g,l){var e=g[0][0];l.selectedDate={day:l.formatDate(e[2]),month:l.formatDate(e[1]),year:e[0]};l.inputField.value=l.selectedDate.day+"."+l.selectedDate.month+"."+l.selectedDate.year;l.calendar.hide()};this.formatDate=function(e){if(e<10){return"0"+e}else{return e}};this.inputClick=function(e){if(Element.visible(this.containerField)){this.calendar.hide();Event.stop(e)}else{this.calendar.show()}};this.createCalendar=function(e){var h=new Date();var l=this.formatDate(h.getMonth()+1)+"/"+this.formatDate(h.getDate())+"/"+h.getFullYear();var g=new YAHOO.widget.Calendar(e,{START_WEEKDAY:1,mindate:l,iframe:false});if(typeof localizeCalendar=="function"){localizeCalendar(g)}g.selectEvent.subscribe(this.handleSelect,this);return g};this.calendar=this.createCalendar(c);this.inputField=$(b);this.selectedDate=null;Event.observe(this.inputField,"click",this.inputClick.bindAsEventListener(this));this.calendar.render()}function TabViewDataPicker(g,b,e,c){this.containerField=$(g);this.inputField=$(b);this.allowedValues=e;this.dataPickerGroup=c;this.inputClick=function(h){if(Element.visible(this.containerField)){Element.hide(this.containerField);Event.stop(h);return}this.showAndHideOthers()};this.inputFocus=function(h){this.showAndHideOthers()};this.elementClick=function(h){Element.hide(this.containerField);this.inputField.value=h.innerHTML};this.showAndHideOthers=function(){if(this.dataPickerGroup!==undefined&&this.dataPickerGroup!=null&&this.dataPickerGroup!=""){var l=document.getElementsByClassName(this.dataPickerGroup);for(var h=0;h<l.length;h++){Element.hide(l[h])}}Element.show(this.containerField)};this.render=function(){Element.hide(this.containerField);var m=document.createElement("ul");for(var l=0;l<this.allowedValues.length;l++){var n=this.allowedValues[l];var h=document.createElement("li");h.innerHTML=n;m.appendChild(h);Event.observe(h,"click",this.elementClick.bind(this,h));Event.observe(h,"mouseover",function(){Element.addClassName(this,"hover")}.bind(h));Event.observe(h,"mouseout",function(){Element.removeClassName(this,"hover")}.bind(h))}this.containerField.appendChild(m)};Event.observe(this.inputField,"click",this.inputClick.bindAsEventListener(this));this.render()}function PriceTeasers(){this.init=function(){var b=this;window.setTimeout(function(){b.initDelayed()},2000)};this.initDelayed=function(){var e=/^pt_([^_]{3})_([^_]{3})_(.{5})$/;var h=document.getElementsByClassName("teaser",$("content"));if(h!=null){for(var b=0;b<h.length;b++){var c=h[b].firstChild.firstChild;e.exec(c.id);var g={origin:RegExp.$1,destination:RegExp.$2,culture:RegExp.$3};this.request(c,g)}}};this.request=function(c,e){var b="/aspdotnet/DynamicPriceTeaserSnippet.aspx?Origin="+e.origin+"&Destination="+e.destination+"&Culture="+e.culture;new Ajax.Request(b,{method:"get",onSuccess:function(h,l){var g=l.responseText;if(g.search(/^<div class="priceTeaser">/)!=-1){h.innerHTML=l.responseText}}.bind(this,c)})};this.init()}function ShowLanguageSelect(){var b=document.getElementById("language_select");b.style.visibility="visible"}function HideLanguageSelect(){var b=document.getElementById("language_select");b.style.visibility="hidden"}function ShowLoginBox(){var c=document.getElementById("loginbox");var b=document.getElementById("UserNameField");c.style.visibility="visible";b.focus()}function HideLoginBox(){var b=document.getElementById("loginbox");b.style.visibility="hidden"}var CurrentCulture="de-DE";var InitialItem="";function SetActiveCulture(b){CurrentCulture=b}function setActiveMenuItem(e){if(InitialItem.length==0){InitialItem=e}resetAllMenuItems();var c=document.getElementById(e);if(c){for(var b=0;b<topnavimages.length;b++){if(e==topnavimages[b][0]){var h=topnavimages[b][2]}}c.style.backgroundImage="url("+h+")"}var g=document.getElementById(e+"Submenu");if(g){g.style.visibility="visible"}}function resetSingleMenuItem(e){var c=document.getElementById(e);if(c){for(var b=0;b<topnavimages.length;b++){if(e==topnavimages[b][0]){var h=topnavimages[b][1]}}c.style.backgroundImage="url("+h+")"}var g=document.getElementById(e+"Submenu");if(g){g.style.visibility="hidden"}}function resetAllMenuItems(){var c=getElementsByClassName("TopItem","div",null);for(var b=0;b<c.length;b++){resetSingleMenuItem(c[b].id)}}function getElementsByClassName(n,q,m){var c=new RegExp("(^|s)"+n+"(s|$)");var q=q||"*";var m=m||document;var b=(q=="*"&&m.all)?m.all:m.getElementsByTagName(q);var g=[];var l;var e=b.length;for(var h=0;h<e;h++){l=b[h];if(c.test(l.className)){g.push(l)}}return g}function GetMatchingStations(SearchTerm){var BestMatchingStations=new Array();var DebugString="";if(Stations!=null&&SortedStations!=null){for(var i=0;i<SortedStations.length;i++){var CurrentStationCode=SortedStations[i];var CurrentStationName=Stations[CurrentStationCode].name;RegExpTerm=eval("/(.*)"+SearchTerm.toLowerCase().replace(" ","|")+"(.*)/");if(CurrentStationName.toLowerCase().search(RegExpTerm)!=-1){BestMatchingStations.push(CurrentStationCode);DebugString+=CurrentStationCode+"\n"}}}return BestMatchingStations}function SearchFlights(O,z,g,S,l,C,m,c,n,P,A){var K=A||"de-DE";var I=document.createElement("form");I.name="SkySales";I.id="SkySales";I.method="post";I.action="/skysales/Search.aspx?culture="+K;var D=document.createElement("input");D.type="hidden";D.name="AvailabilitySearchInputSearchView$RadioButtonMarketStructure";D.id=D.name.replace("$","_");D.value=P;I.appendChild(D);var F=document.createElement("input");F.type="hidden";F.name="AvailabilitySearchInputSearchView$DropDownListMarketOrigin1";F.id=F.name.replace("$","_");F.value=O;I.appendChild(F);var b=document.createElement("input");b.type="hidden";b.name="AvailabilitySearchInputSearchView$DropDownListMarketDestination1";b.id=b.name.replace("$","_");b.value=z;I.appendChild(b);var F=document.createElement("input");F.type="hidden";F.name="AvailabilitySearchInputSearchView$DropDownListMarketOrigin2";F.id=F.name.replace("$","_");F.value=z;I.appendChild(F);var b=document.createElement("input");b.type="hidden";b.name="AvailabilitySearchInputSearchView$DropDownListMarketDestination2";b.id=b.name.replace("$","_");b.value=O;I.appendChild(b);var e=document.createElement("input");e.type="hidden";e.name="AvailabilitySearchInputSearchView$DropDownListFareTypes";e.id=e.name.replace("$","_");e.value=n;I.appendChild(e);var N=null;if(g==null||g==""){var w=new Date();N=new Date(w.getTime()+1000*60*60*24*30)}else{N=new Date(g.substring(g.lastIndexOf(".")+1),(g.substring(g.indexOf(".")+1,g.lastIndexOf("."))-1),g.substring(0,g.indexOf(".")))}var J=document.createElement("input");J.type="hidden";J.name="AvailabilitySearchInputSearchView$DropDownListMarketDay1";J.id=J.name.replace("$","_");J.value=N.getDate();I.appendChild(J);var H=document.createElement("input");H.type="hidden";H.name="AvailabilitySearchInputSearchView$DropDownListMarketMonth1";H.id=H.name.replace("$","_");H.value=N.getFullYear()+"-"+(N.getMonth()+1);I.appendChild(H);var E=document.createElement("input");E.type="hidden";E.name="AvailabilitySearchInputSearchView$DropDownListMarketDateRange1";E.id=E.name.replace("$","_");E.value=l;I.appendChild(E);var h=null;if(S==null||S==""){h=new Date(N.getTime()+1000*60*60*24*7)}else{h=new Date(S.substring(S.lastIndexOf(".")+1),(S.substring(S.indexOf(".")+1,S.lastIndexOf("."))-1),S.substring(0,S.indexOf(".")))}var M=document.createElement("input");M.type="hidden";M.name="AvailabilitySearchInputSearchView$DropDownListMarketDay2";M.id=M.name.replace("$","_");M.value=h.getDate();I.appendChild(M);var R=document.createElement("input");R.type="hidden";R.name="AvailabilitySearchInputSearchView$DropDownListMarketMonth2";R.id=R.name.replace("$","_");R.value=h.getFullYear()+"-"+(h.getMonth()+1);I.appendChild(R);var L=document.createElement("input");L.type="hidden";L.name="AvailabilitySearchInputSearchView$DropDownListMarketDateRange2";L.id=L.name.replace("$","_");L.value=l;I.appendChild(L);var q=document.createElement("input");q.type="hidden";q.name="AvailabilitySearchInputSearchView$DropDownListPassengerType_ADT";q.id=q.name.replace("$","_");q.value=C;I.appendChild(q);var u=document.createElement("input");u.type="hidden";u.name="AvailabilitySearchInputSearchView$DropDownListPassengerType_CHD";u.id=u.name.replace("$","_");u.value=m;I.appendChild(u);var r=document.createElement("input");r.type="hidden";r.name="AvailabilitySearchInputSearchView$DropDownListPassengerType_INFANT";r.id=r.name.replace("$","_");r.value=c;I.appendChild(r);var B=document.createElement("input");B.type="hidden";B.name="step";B.id="step";B.value="Select";I.appendChild(B);var s=document.createElement("input");s.type="hidden";s.name="__EVENTTARGET";s.id="__EVENTTARGET";s.value="AvailabilitySearchInputSearchView$LinkButtonNewSearch";I.appendChild(s);var G=document.createElement("input");G.type="hidden";G.name="__EVENTARGUMENT";G.id="__EVENTARGUMENT";G.value="";I.appendChild(G);var v=document.createElement("input");v.type="hidden";v.name="__VIEWSTATE";v.id="__VIEWSTATE";v.value="";I.appendChild(v);var Q=document.getElementById("DynamFormPlaceholder");Q.appendChild(I);document.getElementById("SkySales").submit()}function SearchWWFlights(E,s,g,H,m,v,n,c,q,F,u){var D=new Date(g.substring(g.lastIndexOf(".")+1),(g.substring(g.indexOf(".")+1,g.lastIndexOf("."))-1),g.substring(0,g.indexOf(".")));var l=new Date(H.substring(H.lastIndexOf(".")+1),(H.substring(H.indexOf(".")+1,H.lastIndexOf("."))-1),H.substring(0,H.indexOf(".")));var z=document.createElement("form");z.name="bmibabyForm";z.id="bmibabyForm";z.method="post";z.action="http://www.bmibaby.com/bmibaby/en/search.aspx?linkid=gw";z.target="_blank";var w=document.createElement("input");w.type="hidden";w.name="Source";w.id=w.name;w.value="germanwings";z.appendChild(w);var A=document.createElement("input");A.type="hidden";A.name="From";A.id=A.name;A.value=E;z.appendChild(A);var b=document.createElement("input");b.type="hidden";b.name="To";b.id=b.name;b.value=s;z.appendChild(b);var C=document.createElement("input");C.type="hidden";C.name="OutboundDate";C.id=C.name;C.value=D.getDate()+"/"+(D.getMonth()+1)+"/"+D.getFullYear();z.appendChild(C);if(F=="RoundTrip"){var B=document.createElement("input");B.type="hidden";B.name="ReturnDate";B.id=B.name;B.value=l.getDate()+"/"+(l.getMonth()+1)+"/"+l.getFullYear();z.appendChild(B)}var e=document.createElement("input");e.type="hidden";e.name="Adt";e.id=e.name;e.value=v;z.appendChild(e);var r=document.createElement("input");r.type="hidden";r.name="Chd";r.id=r.name;r.value=n;z.appendChild(r);var h=document.createElement("input");h.type="hidden";h.name="Inf";h.id=h.name;h.value=c;z.appendChild(h);var G=document.getElementById("DynamFormPlaceholder");G.appendChild(z);document.getElementById("bmibabyForm").submit()}function SearchVYFlights(B,r,c,F,g,u,h,b,l,C,s){var A=new Date(c.substring(c.lastIndexOf(".")+1),(c.substring(c.indexOf(".")+1,c.lastIndexOf("."))-1),c.substring(0,c.indexOf(".")));var e=new Date(F.substring(F.lastIndexOf(".")+1),(F.substring(F.indexOf(".")+1,F.lastIndexOf("."))-1),F.substring(0,F.indexOf(".")));var w="EN";switch(s){case"de-DE":case"en-GB":w="EN";break;case"es-ES":w="ES";break;case"fr-FR":w="FR";break;case"it-IT":w="IT";break;case"nl-NL":w="NL";break;default:w="EN"}var D="2";if(C==="OneWay"){D="1"}var n="http://www.vueling.com/skylights/cgi-bin/skylights.cgi?";var q="event=search&module=SB&page=SEARCH&language="+w;q+="&travel="+D+"&from1="+B+"&to1="+r;var E=A.getDate()<10?"0"+A.getDate().toString():A.getDate().toString();var m=(A.getMonth()+1)<10?"0"+(A.getMonth()+1).toString():(A.getMonth()+1).toString();q+="&departDay1="+E;q+="&departMonth1="+A.getFullYear().toString()+m;q+="&departDate1="+A.getFullYear().toString()+m+E;q+="&depart1FlexBy=0101";if(D==="2"){q+="&from2="+r+"&to2="+B;var v=e.getDate()<10?"0"+e.getDate().toString():e.getDate().toString();var z=(e.getMonth()+1)<10?"0"+(e.getMonth()+1).toString():(e.getMonth()+1).toString();q+="&departDay2="+v;q+="&departMonth2="+e.getFullYear().toString()+z;q+="&departDate2="+e.getFullYear().toString()+z+v;q+="&depart2FlexBy=0101"}q+="&ADULT="+u+"&CHILD="+h+"&INFANT="+b+"&numberMarkets="+D;window.open(n+q,"_blank")}function SearchDEFlights(A,q,c,D,g,s,h,b,l,B,r){var z=new Date(c.substring(c.lastIndexOf(".")+1),(c.substring(c.indexOf(".")+1,c.lastIndexOf("."))-1),c.substring(0,c.indexOf(".")));var e=new Date(D.substring(D.lastIndexOf(".")+1),(D.substring(D.indexOf(".")+1,D.lastIndexOf("."))-1),D.substring(0,D.indexOf(".")));var v="de";switch(r){case"de-DE":v="de";break;case"en-GB":v="eu";break;case"es-ES":v="es";break;case"fr-FR":v="fr";break;case"it-IT":v="it";break;case"pl-PL":v="pl";break;default:v="us"}var n="http://www.condor.com/ibe/cfi/"+v+"/flight/search.xhtml?origin="+A+"&destination="+q;var C=z.getDate()<10?"0"+z.getDate().toString():z.getDate().toString();var m=(z.getMonth()+1)<10?"0"+(z.getMonth()+1).toString():(z.getMonth()+1).toString();n+="&outwardYearMonthDay="+z.getFullYear().toString()+m+C;if(B=="OneWay"){n+="&flightVacancyType=1"}else{n+="&flightVacancyType=2";var u=e.getDate()<10?"0"+e.getDate().toString():e.getDate().toString();var w=(e.getMonth()+1)<10?"0"+(e.getMonth()+1).toString():(e.getMonth()+1).toString();n+="&returnYearMonthDay="+e.getFullYear().toString()+w+u}n+="&partyAdults="+s+"&partyChildren="+h+"&partyInfants="+b;n+="&operationType=search";window.open(n,"_blank")}function ShowSearchDropdown(r,z,B){var m=document.getElementById("SearchDropdown");if(DropDownAlreadyOpened()){HideSearchDropdown();return false}var A="";if(r=="Destination"||r=="LFCDestination"){var C=document.getElementById("Origin");if(r=="LFCDestination"){C=document.getElementById("LFCOrigin")}if(C){if(C.value!=""){A=C.value}}}setTimeout("trackElementClick('"+r+"Container','CompactSearch: "+r+"-list opened')",10);if(m){if(Stations!=null&&SortedStations!=null){var n=new Array(200);var h=0;var b=GetMatchingStations("");var v=false;var w=0;for(var u=0;u<b.length;u++){var l=b[u];var s=Stations[l].islocal;if(s){w++}}if(w!=0){n[h]="<div id='LocalStationsHead' class='StationHeadText'><table style='width:100%;'><tr><td>"+LocalAirportsText+"</td><td style='text-align:right;padding-right:25px;'><a href='#' onClick='HideSearchDropdown(); return false;'><img src='../../downloads/btn_close.gif' alt='[X]'></a></td></tr></table></div>";h++}var g=0;for(var u=0;u<b.length;u++){var l=b[u];var c=Stations[l].name;if(A!=""){if(IsValidDestination(A,"CGN")){v=true}}if(u==w){n[h]="<div class='StationHeadText'>"+ForeignAirportsText+"</div>";g=0;h++}var e='onclick=\'javascript:if(document.getElementById("InfoBoxLowfareCal")) {ShowInfoBox();} SetStation("'+r+'","'+l+'","'+c+"\");' ";var q="onmouseenter='javascript:if(OldColor==\"\"){OldColor=this.style.backgroundColor;this.style.backgroundColor=\"#ffec00\";}' onmouseout='javascript:this.style.backgroundColor=OldColor;'";if(A!=""){if(IsValidDestination(A,l)){n[h]="<div id='StationItem"+u+"' class='StationItem sta"+u+" rowsta"+g+"' "+e+q+">"+c+"</div>";h++}else{n[h]="<div id='StationItem"+u+"' class='InactiveStationItem sta"+u+" rowsta"+g+"' "+q+">"+c+"</div>";h++}}else{n[h]="<div id='StationItem"+u+"' class='StationItem sta"+u+" rowsta"+g+"' "+e+q+">"+c+"</div>";h++}if((g+1)%4!=0){n[h]="<div class='StationSeparator'>&nbsp;</div>";h++}g++}if(v&&A!=""&&r=="Destination"){n[h]="<div id='StationItemCBC' class='StationItem staCBC rowsta"+g+"'  onclick='javascript:ShowCologneBonnWebsite();'>"+CologneBonnConnectLabel+"</div>";h++}}m.innerHTML=n.join("\n");m.style.visibility="visible";m.style.position="absolute";m.style.left=z+"px";m.style.top=B+"px"}}function trackCBCRedirect(c){var b=s_gi("germanwingscomprod");b.linkTrackVars="None";b.linkTrackEvents="None";b.tl(c,"e","CompactSearch Link: Cologne-Bonn-Connect")}function trackElementClick(b,e){var c=s_gi("germanwingscomprod");c.linkTrackVars="None";c.linkTrackEvents="None";c.tl(document.getElementById(b),"o",e)}function ShowCologneBonnWebsite(){var c=false;var b=2;c=confirm(CologneBonnConnectPrompt.replace(/<BR>/g,"\n"));if(CurrentCompactCulture.toLowerCase()=="de-de"){b=1}if(c){window.open(CologneBonnConnectURL+"?pid=1&from="+document.getElementById("Origin").value+"&lang="+b,"CBCWindow");trackCBCRedirect(document.getElementById("StationItemCBC"));ResetDestinationStationSelection()}}function ShowUnderagePaxInfo(){window.open("/skysales/html/"+CurrentCompactCulture.substring(0,2)+"/child.html","Germanwings","left=20,top=20,width=500,height=358,scrollbars=0,status=0,toolbar=0,resizable=0")}var OldColor="";var CurrentActiveDateField="";var TodaysDateObj=new Date();var CalendarStartDate=(TodaysDateObj.getMonth()+1)+"/"+TodaysDateObj.getFullYear();var SelectedOutwardDate=null;var gwDynCalendar;function PreRenderCalendar(){gwDynCalendar=new YAHOO.widget.CalendarGroup("yCalendar","CalendarContainer",{pages:3,title:"",close:false});localizeCalendar(gwDynCalendar);gwDynCalendar.changePageEvent.subscribe(RegisterDaySelectorsEventsAsync);gwDynCalendar.render();RegisterDaySelectorsEventsAsync();gwDynCalendar.selectEvent.subscribe(SelectDate,gwDynCalendar,true);RenderQuickMonthAccess()}function RenderQuickMonthAccess(){var l=document.getElementById("CalendarQuickMonth");var g=TodaysDateObj.getMonth();var h=TodaysDateObj.getFullYear();var e=new Array();var c=0;e[c]="<table cellspacing='1' cellpadding='2'><tr>";c++;for(var b=0;b<14;b++){if(g==12){g=0;h++}if(b==7){e[c]="</tr><tr>";c++}e[c]="<td id='QuickMonth"+g+"_"+h+"' class='QuickMonthEntry'><a href='#' onclick='javascript:SetCalendarMonth("+g+","+h+");'>"+LocalizedShortMonths[g]+"&nbsp;"+h+"</a></td>";c++;g++}e[c]="</tr></table>";c++;l.innerHTML=e.join("\n");setTimeout("MarkCurrentMonthsInQuickMonth()",100)}function MarkCurrentMonthsInQuickMonth(){var e=new Array();e[0]=gwDynCalendar.pages[0].getDateByCellId("yCalendar_0_cell20");e[1]=gwDynCalendar.pages[1].getDateByCellId("yCalendar_1_cell20");e[2]=gwDynCalendar.pages[2].getDateByCellId("yCalendar_2_cell20");for(var c=0;c<e.length;c++){var b=document.getElementById("QuickMonth"+e[c].getMonth()+"_"+e[c].getFullYear());if(b){b.style.backgroundColor="#e8e8e8"}}}function SetCalendarMonth(c,b){gwDynCalendar.setMonth(c);gwDynCalendar.setYear(b);setTimeout("RefreshCalendarObject()",0);setTimeout("RenderQuickMonthAccess()",100)}function ShowCalendar(h,c,b){var g=document.getElementById("CalendarPopUp");if(g.style.visibility=="visible"){g.style.visibility="hidden";return false}if(h=="Return"&&document.getElementById("TripTypeOneWayRadio").checked==true){return false}if(h=="Outward"){var e=new Date();MinimumDate=(e.getMonth()+1)+"/"+e.getDate()+"/"+e.getFullYear()}CurrentActiveDateField=h;if(!gwDynCalendar){PreRenderCalendar()}else{gwDynCalendar.setMonth(CalendarStartDate.substring(0,CalendarStartDate.indexOf("/"))-1);gwDynCalendar.setYear(CalendarStartDate.substring(CalendarStartDate.indexOf("/")+1))}var l=document.getElementById("CalendarHeadText");if(h=="Outward"){l.innerHTML=CalendarHeadOutbound}if(h=="Return"){l.innerHTML=CalendarHeadReturn}var g=document.getElementById("CalendarPopUp");g.style.visibility="visible";g.style.left=c+"px";g.style.top=b+"px";setTimeout("RefreshCalendarObject()",0);setTimeout("trackElementClick('CalendarPopUp','CompactSearch: "+h+"-calendar opened')",10)}function SelectDate(r,q,h){var b=q[0];var g=b[0];var s=g[0],n=g[1],u=g[2];var c=document.getElementById(CurrentActiveDateField+"Date");var l=document.getElementById(CurrentActiveDateField+"DateField");l.innerHTML=u+". "+LocalizedMonths[(n-1)]+" "+s;c.value=u+"."+n+"."+s;var e=$(CurrentActiveDateField+"DateField");e.style.backgroundImage="url('/images/maincontent/compactsearch/searchfield.jpg')";if(CurrentActiveDateField=="Outward"){MinimumDate=n+"/"+u+"/"+s;SelectedOutwardDate=n+"/"+u+"/"+s}var m=document.getElementById("CalendarPopUp");m.style.visibility="hidden";setTimeout("RefreshCalendarObject()",0)}function RefreshCalendarObject(){gwDynCalendar.cfg.setProperty("mindate",new Date(MinimumDate));gwDynCalendar.cfg.setProperty("maxdate",new Date(MaximumDate));if(SelectedOutwardDate!=null){gwDynCalendar.cfg.setProperty("selected",SelectedOutwardDate+"-"+SelectedOutwardDate);RegisterDaySelectorsEventsAsync()}gwDynCalendar.render()}var CurrentSrcElement;var RangeRendererActive=false;function MarkTripDateRangeInCalendarAsync(b){if(!b){b=window.event}var c;if(b.target){c=b.target}if(b.srcElement){c=b.srcElement}CurrentSrcElement=c;if(!RangeRendererActive){setTimeout("MarkTripDateRangeInCalendar()",10);RangeRendererActive=true}}function MarkTripDateRangeInCalendar(){if(CurrentActiveDateField=="Outward"){return false}var l=CurrentSrcElement;if(l.className=="selector"){l=l.parentNode}var n="yCalendar_0_cell0";var A=GetSelectedDateObject().id;if(A){n=A}var m=n.substring((n.indexOf("_")+1),(n.lastIndexOf("_")));var u=n.substring((n.indexOf("cell")+4));var b=l.id;var z=b.substring((b.indexOf("_")+1),(b.lastIndexOf("_")));var h=b.substring((b.indexOf("cell")+4));for(var w=0;w<34;w++){for(var s=0;s<43;s++){var v=w+"0"+s;if(s<10){v=w+"00"+s}var q=m+"0"+u;if(u<10){q=m+"00"+u}var g=z+"0"+h;if(h<10){g=z+"00"+h}var r="yCalendar_"+w+"_cell"+s;var e=document.getElementById(r);if(e){if(e.className.indexOf("oom")<0&&e.className.indexOf("previous")<0){if(v>q&&v<g){e.style.backgroundColor="#EDE9BA"}else{e.style.backgroundColor="#E8E8E8"}if(v==g){e.style.backgroundColor="#FFEC00"}}}}}RangeRendererActive=false}function GetSelectedDateObject(){for(var g=0;g<3;g++){for(var e=0;e<43;e++){var b="yCalendar_"+g+"_cell"+e;if(document.getElementById(b)){if(document.getElementById(b).className.indexOf("selected")>0){return document.getElementById(b)}}}}return false}function RegisterDaySelectorsEventsAsync(){setTimeout("RenderQuickMonthAccess()",0)}function RegisterDaySelectorsEvents(){for(var l=0;l<3;l++){for(var h=0;h<43;h++){var b="yCalendar_"+l+"_cell"+h;if(document.getElementById(b)){document.getElementById(b).onmouseover=MarkTripDateRangeInCalendarAsync;var e=document.getElementsByTagName("a");for(var g=0;g<e.length;g++){if(e[g].className=="selector"){e[g].onmouseover=MarkTripDateRangeInCalendarAsync}}}}}}function TranslateCalendarToGerman(b){b.cfg.setProperty("DATE_FIELD_DELIMITER",".");b.cfg.setProperty("START_WEEKDAY",1);b.cfg.setProperty("MDY_DAY_POSITION",1);b.cfg.setProperty("MDY_MONTH_POSITION",2);b.cfg.setProperty("MDY_YEAR_POSITION",3);b.cfg.setProperty("MD_DAY_POSITION",1);b.cfg.setProperty("MD_MONTH_POSITION",2);b.cfg.setProperty("HIDE_BLANK_WEEKS",true);b.cfg.setProperty("MONTHS_SHORT",["Jan","Feb","M&auml;r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]);b.cfg.setProperty("MONTHS_LONG",["Januar","Februar","M&auml;rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]);b.cfg.setProperty("WEEKDAYS_1CHAR",["S","M","D","M","D","F","S"]);b.cfg.setProperty("WEEKDAYS_SHORT",["<div class='WeekendDayHead'>So</div>","Mo","Di","Mi","Do","Fr","<div class='WeekendDayHead'>Sa</div>"]);b.cfg.setProperty("WEEKDAYS_MEDIUM",["<div class='WeekendDayHead'>Son</div>","Mon","Die","Mit","Don","Fre","<div class='WeekendDayHead'>Sam</div>"]);b.cfg.setProperty("WEEKDAYS_LONG",["<div class='WeekendDayHead'>Sonntag</div>","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","<div class='WeekendDayHead'>Samstag</div>"])}function HideSearchDropdown(){var b=document.getElementById("SearchDropdown");if(b){b.style.visibility="hidden"}}function DropDownAlreadyOpened(){var b=document.getElementById("SearchDropdown");if(b){if(b.style.visibility=="hidden"){return false}else{return true}}else{return false}}function IsValidDestination(b,e){var c=false;if(Stations!=null){for(i=0;i<Stations[b].mkts.length;i++){if(Stations[b].mkts[i]==e){c=true}}}return c}function SetStation(b,e,l){var h=document.getElementById(b);var c=document.getElementById(b+"Text");h.value=e;c.innerHTML=l;var g=$(b+"Container");g.style.backgroundImage="url('/images/maincontent/compactsearch/searchfield.jpg')";if(b=="Origin"){ResetDestinationStationSelection()}HideSearchDropdown()}function PerformFlightSearch(m){var A=m||"de-DE";trackElementClick("FlightSearchButton","CompactSearch: Flightsearch clicked");var e=document.getElementById("Origin").value;var v=document.getElementById("Destination").value;var w=document.getElementById("OutwardDate").value;var n=document.getElementById("ReturnDate").value;var l="0|10";var B=document.getElementById("AdultPaxCount").innerHTML;var E=document.getElementById("ChildPaxCount").innerHTML;var F=document.getElementById("InfantPaxCount").innerHTML;var D="R,F";var b="OneWay";if(document.getElementById("TripTypeRoundTripRadio").checked){b="RoundTrip"}var G=$("OriginText");var I=$("DestinationText");var r=$("OutwardDateField");var z=$("ReturnDateField");r.style.backgroundImage="url('/images/maincontent/compactsearch/searchfield.jpg')";if(b=="OneWay"){z.style.backgroundImage="url('/images/maincontent/compactsearch/searchfield_disabled.jpg')"}else{z.style.backgroundImage="url('/images/maincontent/compactsearch/searchfield.jpg')"}Element.removeClassName($("OriginAutocompleteContainer"),"inputError");Element.removeClassName($("DestinationAutocompleteContainer"),"inputError");var g=false;if(e==null||e==""){g=true;Element.addClassName($("OriginAutocompleteContainer"),"inputError")}if(v==null||v==""){g=true;Element.addClassName($("DestinationAutocompleteContainer"),"inputError")}if(w==null||w==""){r.style.backgroundImage="url('/images/maincontent/compactsearch/searchfield_error.jpg')";g=true}if(b=="RoundTrip"&&(n==null||n=="")){z.style.backgroundImage="url('/images/maincontent/compactsearch/searchfield_error.jpg')";g=true}if(g){return}var s="OK";var c="Abbrechen";if(typeof OkButtonLabel!="undefined"&&OkButtonLabel!=null){s=OkButtonLabel}if(typeof CancelButtonLabel!="undefined"&&CancelButtonLabel!=null){c=CancelButtonLabel}var H={"2A":function(){this.hide();var J=GetViaStationByRoute(e,v);SearchFlights(J,v,w,n,l,B,E,F,D,b,A)},"2AA":function(){this.hide();var J=GetViaStationByRoute(e,v);SearchFlights(e,J,w,n,l,B,E,F,D,b,A)},WW:function(){this.hide();SearchWWFlights(e,v,w,n,l,B,E,F,D,b,A)},VY:function(){this.hide();SearchVYFlights(e,v,w,n,l,B,E,F,D,b,A)},DE:function(){this.hide();SearchDEFlights(e,v,w,n,l,B,E,F,D,b,A)},CBC:function(){this.hide();var J=2;if(CurrentCompactCulture.toLowerCase()=="de-de"){J=1}window.open(CologneBonnConnectURL+"?pid=1&from="+document.getElementById("Origin").value+"&lang="+J,"CBCWindow");trackCBCRedirect(document.getElementById("StationItemCBC"))}};if(!FlightSearchMessages.OtherAirline(e,v,s,c,H,"/images/rail_and_fly.gif")){if(w!=""&&typeof(todaysDateMessage)!="undefined"&&todaysDateMessage!=""){var h=w.split(".");var q=Date.UTC(h[2],h[1],h[0]);var C=new Date();var u=Date.UTC(C.getFullYear(),(C.getMonth()+1),C.getDate());if(q==u){alert(todaysDateMessage)}}SearchFlights(e,v,w,n,l,B,E,F,D,b,A)}}function SwitchFlightType(b){if(b=="OneWay"){document.getElementById("ReturnDateField").innerHTML=OneWayOnlyText;document.getElementById("ReturnDateField").style.backgroundImage="url('/images/maincontent/compactsearch/searchfield_disabled.jpg')";document.getElementById("ReturnDateField").style.color="#e0e0e0";$("ReturnDate").value=""}else{document.getElementById("ReturnDateField").innerHTML=ReturnFlightText;document.getElementById("ReturnDateField").style.backgroundImage="url('/images/maincontent/compactsearch/searchfield.jpg')";document.getElementById("ReturnDateField").style.color="#666666"}}var ActivePaxField="";function ShowPaxDropdown(g,e,b){var c=document.getElementById("PaxCountDropdown");c.style.left=e+"px";c.style.top=b+"px";if(c.style.visibility=="visible"){c.style.visibility="hidden"}else{c.style.visibility="visible"}ActivePaxField=g+"PaxCount"}function SetPaxCount(c){var b=document.getElementById("PaxCountDropdown");b.style.visibility="hidden";document.getElementById(ActivePaxField).innerHTML=c}function GetAbsoluteLeft(b){o=document.getElementById(b);oLeft=o.offsetLeft;while(o.offsetParent!=null){oParent=o.offsetParent;oLeft+=oParent.offsetLeft;o=oParent}return oLeft}function GetAbsoluteTop(b){o=document.getElementById(b);oTop=o.offsetTop;while(o.offsetParent!=null){oParent=o.offsetParent;oTop+=oParent.offsetTop;o=oParent}return oTop}var _departureStation="";var _isArrivalStation="";function FlightSearchAutocomplete(g,h,e,c,b){this.departureStationField=g;this.arrivalStationField=h;this.departureStationFormField=e;this.arrivalStationFormField=c;this.disableCologneBonnConnect=b;this.formFields=new Object();this.formFields[this.departureStationField]=this.departureStationFormField;this.formFields[this.arrivalStationField]=this.arrivalStationFormField;this.activeField=null;this.departureAutoComplete=null;this.arrivalAutoComplete=null;this.stationDataSource=null;this.initializeAutoCompleteFields=function(){this.stationDataSource=new YAHOO.util.FunctionDataSource(this.stationList);this.stationDataSource.responseSchema={fields:["code","name","active"]};this.stationDataSource.scope=this;this.departureAutoComplete=this.createAutoComplete(this.departureStationField);this.arrivalAutoComplete=this.createAutoComplete(this.arrivalStationField);Event.observe($(this.departureAutoComplete.getInputEl()),"keydown",this.tabStationField.bind(this));var l=$(this.departureStationField);Event.observe(l,"click",this.selectAll.bind(l));Event.observe(l,"focus",this.selectAll.bind(l));var m=$(this.arrivalStationField);Event.observe(m,"click",this.selectAll.bind(m));Event.observe(m,"focus",this.selectAll.bind(m))};this.selectAll=function(){this.select()};this.stationList=function(v){stationListResult=Array();var r=decodeURIComponent(v);var n=SortedStations;var w=0;var s=false;for(var q=0;q<n.length;q++){var l=Stations[n[q]].name;var m=Stations[n[q]].code;var z=true;if(_isArrivalStation==true&&_departureStation!=""){z=false;if(RouteIndex[_departureStation+m]==true){z=true;if(m=="CGN"){s=true}}}else{if(Stations[n[q]].mkts==0){z=false}}var u=false;if(r.toLowerCase()==m.toLowerCase()||l.toLowerCase().indexOf(r.toLowerCase())==0){u=true}if(u==true&&z==true){stationListResult[w]=Array();stationListResult[w][0]=m;stationListResult[w][1]=l;stationListResult[w][2]=z;w++}}if((this.disableCologneBonnConnect===undefined||this.disableCologneBonnConnect==false)&&typeof CologneBonnConnectLabel!="undefined"){if(s){stationListResult[w]=Array();stationListResult[w][0]="CBC";stationListResult[w][1]=CologneBonnConnectLabel;stationListResult[w][2]=true}}return stationListResult};this.createAutoComplete=function(s){var n=new YAHOO.widget.AutoComplete(s,(s+"Container"),this.stationDataSource);n.formatResult=this.formatResult;n.resultTypeList=false;n.forceSelection=false;n.minQueryLength=0;n.animVert=false;n.maxResultsDisplayed=this.getStationsCount();n.itemSelectEvent.subscribe(this.selectStation,this);n.textboxFocusEvent.subscribe(this.setActiveField,this);n.containerExpandEvent.subscribe(startRenderStationIcon);n.containerCollapseEvent.subscribe(stopRenderStationIcon);var l=false;if(s==this.arrivalStationField){l=true}if($(s+"Toggle")){var q=$(s+"Toggle");var r=new YAHOO.widget.Button({container:q});var m=function(u){if(n.isContainerOpen()){n.collapseContainer()}else{if(l){_isArrivalStation=true}else{_isArrivalStation=false}n.getInputEl().focus();setTimeout(function(){n.sendQuery("")},0)}};r.on("click",m)}return n};this.getStationsCount=function(){return SortedStations.length};this.selectStation=function(r,q,l){var m=q[2];var n=q[0].getInputEl();n.value=m.name;$(l.formFields[n.id]).value=m.code;if(m.code!="CBC"&&RouteIndex[$(l.departureStationFormField).value+$(l.arrivalStationFormField).value]!==true){if(_isArrivalStation){if($(l.departureStationFormField).value!=""){$(l.departureStationField).value="";$(l.departureStationFormField).value=""}}else{if($(l.arrivalStationFormField).value!=""){$(l.arrivalStationField).value="";$(l.arrivalStationFormField).value=""}}}if(!_isArrivalStation){_departureStation=m.code}};this.setActiveField=function(n,m,l){l.activeField=m[0].getInputEl().id;if(l.activeField==l.arrivalStationField){_isArrivalStation=true}else{_isArrivalStation=false}};this.tabStationField=function(m){if(m.keyCode==9){var l=this.arrivalAutoComplete.getInputEl().id;setTimeout("$('"+l+"').focus()",10)}};this.formatResult=function(m,v,l){var r="active-station";if(!m.active){r="inactive-station"}var q=false;var z="";var s="";if(_isArrivalStation==false){var w=GetAirlinesByAirport(m.code);if(w.length==1){z=w[0];q=true;s="o_"}}else{q=IsOtherAirlineRoute(_departureStation,m.code);z=GetAirlineCodeByRoute(_departureStation,m.code);s="d_"}var n="<div class='station "+r+"'><div class='name'>"+m.name+"</div><div class='code'>"+m.code+"</div></div>";if(q==true&&z=="DE"){var u=s+"oal_"+z+"_"+m.code;n="<div id='"+u+"' class='station "+r+"' ><div class='name' style='width:100px;overflow:hidden;'>"+m.name+"</div><div class='code'>"+m.code+"</div></div>";sta_changeItemArray.push(u)}return n};this.initializeAutoCompleteFields()}var sta_changeItemNum=0;var sta_changeInterval;var sta_changeItemArray=new Array();function startRenderStationIcon(c,b){sta_changeItemNum=0;sta_changeItemArray=sta_changeItemArray.reverse();clearInterval(sta_changeInterval);if(sta_changeItemArray.length>0){sta_changeInterval=setInterval("renderStationIconAsync()",25)}}function stopRenderStationIcon(c,b){clearInterval(sta_changeInterval);sta_changeItemArray=new Array();sta_changeItemNum=0}function renderStationIconAsync(){if(document.getElementById(sta_changeItemArray[sta_changeItemNum])){var b=document.getElementById(sta_changeItemArray[sta_changeItemNum]);b.style.backgroundImage="url(/skysales/Images/GermanwingsNew/logos/airline-icons/DE.gif)";b.style.paddingLeft="18px";b.style.backgroundPosition="left";b.style.backgroundRepeat="no-repeat"}sta_changeItemNum++;if(sta_changeItemNum>=sta_changeItemArray.length){clearInterval(sta_changeInterval)}}var FlightSearchMessages={OtherAirline:function(g,l,b,e,m,h){var n=false;var c=GetAirlineCodeByRoute(g,l);if(typeof CologneBonnConnectLabel!="undefined"&&l=="CBC"){FlightSearchMessages.CologneBonnConnect(CologneBonnConnectLabel,CologneBonnConnectPrompt,b,e,m.CBC,function(){this.hide()});n=true}else{if(c=="2A"){FlightSearchMessages.RFMessage(c,g,l,b,e,m["2A"],function(){this.hide()},h);n=true}else{if(c=="2AA"){FlightSearchMessages.RFMessage(c,g,l,b,e,m["2AA"],function(){this.hide()},h);n=true}else{if(c=="XG"){FlightSearchMessages.OALMessage(c,g,l,"Clickair",b,e,m.XG,function(){this.hide()});n=true}else{if(c=="WW"){FlightSearchMessages.OALMessage(c,g,l,"<img src='/skysales/Images/GermanwingsNew/logos/bmibaby.gif' alt='bmibaby' />",b,e,m.WW,function(){this.hide()});n=true}else{if(c=="VY"){FlightSearchMessages.OALMessage(c,g,l,"<img src='/skysales/Images/GermanwingsNew/logos/vueling.gif' alt='Vueling' />",b,e,m.VY,function(){this.hide()});n=true}else{if(c=="DE"){FlightSearchMessages.OALMessage(c,g,l,"<img src='/skysales/Images/GermanwingsNew/logos/condor.gif' alt='Condor' />",b,e,m.DE,function(){this.hide()});n=true}}}}}}}return n},RFMessage:function(u,r,m,h,b,q,g,c){var s=OperatorInfo[u];var l=GetViaStationByRoute(r,m);s=s.replace(/{ORIGIN}/g,Stations[r].name);s=s.replace(/{DESTINATION}/g,Stations[m].name);s=s.replace(/\n/g,"<br/>");if(l!=""){s=s.replace(/{VIA}/g,Stations[l].name)}var n="<div style='padding:10px;'><img src='"+c+"' /><br/><br/><span>"+s+"</span></div>";var e=new YAHOO.widget.SimpleDialog("rfMessageBox",{width:"380px",fixedcenter:true,visible:false,draggable:true,close:true,modal:true,constraintoviewport:false,text:n,icon:"none",buttons:[{text:h,handler:q,isDefault:true},{text:b,handler:g,isDefault:false}]});e.setHeader("Germanwings.com");e.render(document.body);e.show()},CologneBonnConnect:function(g,c,b,e,m,h){var n="<div style='padding:10px;'><h2 style='color:#77003D;'>Cologne Bonn Connect</h2><br/><span>"+c.replace(/\n/g,"<br/>")+"</span></div>";var l=new YAHOO.widget.SimpleDialog("cbcMessageBox",{width:"380px",fixedcenter:true,visible:false,draggable:true,close:true,modal:true,constraintoviewport:false,text:n,icon:"none",buttons:[{text:b,handler:m,isDefault:true},{text:e,handler:h,isDefault:false}]});l.setHeader("Germanwings.com");l.render(document.body);l.show()},OALMessage:function(s,n,h,q,g,b,m,e){var r=OperatorInfo[s];r=r.replace(/{ORIGIN}/g,Stations[n].name);r=r.replace(/{DESTINATION}/g,Stations[h].name);r=r.replace(/\n/g,"<br/>");var l="<div style='padding:10px;'><h2 style='color:#77003D;'>"+q+"</h2><br/><span>"+r+"</span></div>";var c=new YAHOO.widget.SimpleDialog("oalMessageBox",{width:"380px",fixedcenter:true,visible:false,draggable:true,close:true,modal:true,constraintoviewport:false,text:l,icon:"none",buttons:[{text:g,handler:m,isDefault:true},{text:b,handler:e,isDefault:false}]});c.setHeader("Germanwings.com");c.render(document.body);c.show()},TodayMessage:function(g,e){var b=g;b=b.replace(/\n/g,"<br/>");var h="<div style='padding:10px;'><span>"+b+"</span></div>";var c=new YAHOO.widget.SimpleDialog("todayMessageBox",{width:"380px",fixedcenter:true,visible:false,draggable:false,close:true,modal:true,constraintoviewport:false,text:h,icon:"none",buttons:[{text:"OK",handler:e,isDefault:true}]});c.setHeader("Germanwings.com");c.render(document.body);c.show()}};