/*
 *
 *	@copyright:___________2010, Rewe Touristik
 *	@link:________________http://www.its.de
 *	@author:______________Jung v. Matt/Neckar
 *	@projectDescription:__global plugins/functions
 *
 *	@version:_____________1.0
 * 	@revision:____________$Revision: 8196 $
 * 	@lastmodified:________$Date: 2010-09-22 07:28:18 +0200 (Mi, 22 Sep 2010) $
 *
 */
/*
 * jQuery Tools 1.2.5 - The missing UI library for the Web
 * 
 * [tooltip, tooltip.slide, tooltip.dynamic]
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/
 * 
 * File generated: Sun Oct 17 11:38:54 GMT 2010
 */
(function(f){function p(a,b,c){var h=c.relative?a.position().top:a.offset().top,d=c.relative?a.position().left:a.offset().left,i=c.position[0];h-=b.outerHeight()-c.offset[0];d+=a.outerWidth()+c.offset[1];if(/iPad/i.test(navigator.userAgent)){h-=f(window).scrollTop()}var j=b.outerHeight()+a.outerHeight();if(i=="center"){h+=j/2}if(i=="bottom"){h+=j}i=c.position[1];a=b.outerWidth()+a.outerWidth();if(i=="center"){d-=a/2}if(i=="left"){d-=a}return{top:h,left:d}}function u(a,b){var c=this,h=a.add(c),d,i=0,j=0,m=a.attr("title"),q=a.attr("data-tooltip"),r=o[b.effect],l,s=a.is(":input"),v=s&&a.is(":checkbox, :radio, select, :button, :submit"),t=a.attr("type"),k=b.events[t]||b.events[s?v?"widget":"input":"def"];if(!r){throw'Nonexistent effect "'+b.effect+'"'}k=k.split(/,\s*/);if(k.length!=2){throw"Tooltip: bad events configuration for "+t}a.bind(k[0],function(e){clearTimeout(i);if(b.predelay){j=setTimeout(function(){c.show(e)},b.predelay)}else{c.show(e)}}).bind(k[1],function(e){clearTimeout(j);if(b.delay){i=setTimeout(function(){c.hide(e)},b.delay)}else{c.hide(e)}});if(m&&b.cancelDefault){a.removeAttr("title");a.data("title",m)}f.extend(c,{show:function(e){if(!d){if(q){d=f(q)}else{if(b.tip){d=f(b.tip).eq(0)}else{if(m){d=f(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(m)}else{d=a.next();d.length||(d=a.parent().next())}}}if(!d.length){throw"Cannot find tooltip for "+a}}if(c.isShown()){return c}d.stop(true,true);var g=p(a,d,b);b.tip&&d.html(a.data("title"));e=e||f.Event();e.type="onBeforeShow";h.trigger(e,[g]);if(e.isDefaultPrevented()){return c}g=p(a,d,b);d.css({position:"absolute",top:g.top,left:g.left});l=true;r[0].call(c,function(){e.type="onShow";l="full";h.trigger(e)});g=b.events.tooltip.split(/,\s*/);if(!d.data("__set")){d.bind(g[0],function(){clearTimeout(i);clearTimeout(j)});g[1]&&!a.is("input:not(:checkbox, :radio), textarea")&&d.bind(g[1],function(n){n.relatedTarget!=a[0]&&a.trigger(k[1].split(" ")[0])});d.data("__set",true)}return c},hide:function(e){if(!d||!c.isShown()){return c}e=e||f.Event();e.type="onBeforeHide";h.trigger(e);if(!e.isDefaultPrevented()){l=false;o[b.effect][1].call(c,function(){e.type="onHide";h.trigger(e)});return c}},isShown:function(e){return e?l=="full":l},getConf:function(){return b},getTip:function(){return d},getTrigger:function(){return a}});f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(e,g){f.isFunction(b[g])&&f(c).bind(g,b[g]);c[g]=function(n){n&&f(c).bind(g,n);return c}})}f.tools=f.tools||{version:"1.2.5"};f.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,b,c){o[a]=[b,c]}};var o={toggle:[function(a){var b=this.getConf(),c=this.getTip();b=b.opacity;b<1&&c.css({opacity:b});c.show();a.call()},function(a){this.getTip().hide();a.call()}],fade:[function(a){var b=this.getConf();this.getTip().fadeTo(b.fadeInSpeed,b.opacity,a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,a)}]};f.fn.tooltip=function(a){var b=this.data("tooltip");if(b){return b}a=f.extend(true,{},f.tools.tooltip.conf,a);if(typeof a.position=="string"){a.position=a.position.split(/,?\s/)}this.each(function(){b=new u(f(this),a);f(this).data("tooltip",b)});return a.api?b:this}})(jQuery);(function(d){var i=d.tools.tooltip;d.extend(i.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!d.browser.msie});var e={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};i.addEffect("slide",function(g){var a=this.getConf(),f=this.getTip(),b=a.slideFade?{opacity:a.opacity}:{},c=e[a.direction]||e.up;b[c[1]]=c[0]+"="+a.slideOffset;a.slideFade&&f.css({opacity:0});f.show().animate(b,a.slideInSpeed,g)},function(g){var a=this.getConf(),f=a.slideOffset,b=a.slideFade?{opacity:0}:{},c=e[a.direction]||e.up,h=""+c[0];if(a.bounce){h=h=="+"?"-":"+"}b[c[1]]=h+"="+f;this.getTip().animate(b,a.slideOutSpeed,function(){d(this).hide();g.call()})})})(jQuery);(function(g){function j(a){var c=g(window),d=c.width()+c.scrollLeft(),h=c.height()+c.scrollTop();return[a.offset().top<=c.scrollTop(),d<=a.offset().left+a.width(),h<=a.offset().top+a.height(),c.scrollLeft()>=a.offset().left]}function k(a){for(var c=a.length;c--;){if(a[c]){return false}}return true}var i=g.tools.tooltip;i.dynamic={conf:{classNames:"top right bottom left"}};g.fn.dynamic=function(a){if(typeof a=="number"){a={speed:a}}a=g.extend({},i.dynamic.conf,a);var c=a.classNames.split(/\s/),d;this.each(function(){var h=g(this).tooltip().onBeforeShow(function(e,f){e=this.getTip();var b=this.getConf();d||(d=[b.position[0],b.position[1],b.offset[0],b.offset[1],g.extend({},b)]);g.extend(b,d[4]);b.position=[d[0],d[1]];b.offset=[d[2],d[3]];e.css({visibility:"hidden",position:"absolute",top:f.top,left:f.left}).show();f=j(e);if(!k(f)){if(f[2]){g.extend(b,a.top);b.position[0]="top";e.addClass(c[0])}if(f[3]){g.extend(b,a.right);b.position[1]="right";e.addClass(c[1])}if(f[0]){g.extend(b,a.bottom);b.position[0]="bottom";e.addClass(c[2])}if(f[1]){g.extend(b,a.left);b.position[1]="left";e.addClass(c[3])}if(f[0]||f[2]){b.offset[0]*=-1}if(f[1]||f[3]){b.offset[1]*=-1}}e.css({visibility:"visible"}).hide()});h.onBeforeShow(function(){var e=this.getConf();this.getTip();setTimeout(function(){e.position=[d[0],d[1]];e.offset=[d[2],d[3]]},0)});h.onHide(function(){var e=this.getTip();e.removeClass(a.classNames)});ret=h});return a.api?ret:this}})(jQuery);
/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright C 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return -c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b}return -c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t+b}return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return -c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t+b}return -c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t*t+b}return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return -c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return -c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0){return b}if(t==d){return b+c}if((t/=d/2)<1){return c/2*Math.pow(2,10*(t-1))+b}return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return -c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1){return -c/2*(Math.sqrt(1-t*t)-1)+b}return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b}if((t/=d)==1){return b+c}if(!p){p=d*0.3}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}return -(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b}if((t/=d)==1){return b+c}if(!p){p=d*0.3}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b}if((t/=d/2)==2){return b+c}if(!p){p=d*(0.3*1.5)}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}if(t<1){return -0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b}return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*0.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158}return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158}return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158}if((t/=d/2)<1){return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b}return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else{if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+0.75)+b}else{if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+0.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+0.984375)+b}}}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2){return jQuery.easing.easeInBounce(x,t*2,0,c,d)*0.5+b}return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*0.5+c*0.5+b}});
/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright C 2001 Robert Penner
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
 */
/*
* hoverIntent
* hoverIntent is currently available for use in all personal or commercial 
* projects under both MIT and GPL licenses. This means that you can choose 
* the license that best suits your project, and use it accordingly.
* @author    Brian Cherne <brian@cherne.net>
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:4,interval:100,timeout:300};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode}catch(e){p=this}}if(p==this){return false}var ev=$.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.mouseover(handleHover).mouseout(handleHover)}})(jQuery);
/*
 * project-site: http://plugins.jquery.com/project/AjaxManager
 * repository: http://github.com/aFarkas/Ajaxmanager
 * @author Alexander Farkas
 * @version 3.07
 * Copyright 2010, Alexander Farkas
 * Dual licensed under the MIT or GPL Version 2 licenses.
 */
(function($){var managed={},cache={};$.manageAjax=(function(){function create(name,opts){managed[name]=new $.manageAjax._manager(name,opts);return managed[name]}function destroy(name){if(managed[name]){managed[name].clear(true);delete managed[name]}}var publicFns={create:create,destroy:destroy};return publicFns})();$.manageAjax._manager=function(name,opts){this.requests={};this.inProgress=0;this.name=name;this.qName=name;this.opts=$.extend({},$.ajaxSettings,$.manageAjax.defaults,opts);if(opts&&opts.queue&&opts.queue!==true&&typeof opts.queue==="string"&&opts.queue!=="clear"){this.qName=opts.queue}};$.manageAjax._manager.prototype={add:function(o){o=$.extend({},this.opts,o);var origCom=o.complete||$.noop,origSuc=o.success||$.noop,beforeSend=o.beforeSend||$.noop,origError=o.error||$.noop,strData=(typeof o.data=="string")?o.data:$.param(o.data||{}),xhrID=o.type+o.url+strData,that=this,ajaxFn=this._createAjax(xhrID,o,origSuc,origCom);if(this.requests[xhrID]&&o.preventDoubbleRequests){return }ajaxFn.xhrID=xhrID;o.xhrID=xhrID;o.beforeSend=function(xhr,opts){var ret=beforeSend.call(this,xhr,opts);if(ret===false){that._removeXHR(xhrID)}xhr=null;return ret};o.complete=function(xhr,status){that._complete.call(that,this,origCom,xhr,status,xhrID,o);xhr=null};o.success=function(data,status,xhr){that._success.call(that,this,origSuc,data,status,xhr,o);xhr=null};o.error=function(ahr,status,errorStr){var httpStatus="",content="";if(status!=="timeout"&&ahr){httpStatus=ahr.status;content=ahr.responseXML||ahr.responseText}if(origError){origError.call(this,ahr,status,errorStr,o)}else{setTimeout(function(){throw status+"| status: "+httpStatus+" | URL: "+o.url+" | data: "+strData+" | thrown: "+errorStr+" | response: "+content},0)}ahr=null};if(o.queue==="clear"){$(document).clearQueue(this.qName)}if(o.queue){$.queue(document,this.qName,ajaxFn);if(this.inProgress<o.maxRequests){$.dequeue(document,this.qName)}return xhrID}return ajaxFn()},_createAjax:function(id,o,origSuc,origCom){var that=this;return function(){if(o.beforeCreate.call(o.context||that,id,o)===false){return }that.inProgress++;if(that.inProgress===1){$.event.trigger(that.name+"AjaxStart")}if(o.cacheResponse&&cache[id]){that.requests[id]={};setTimeout(function(){that._complete.call(that,o.context||o,origCom,cache[id],"success",id,o);that._success.call(that,o.context||o,origSuc,cache[id]._successData,"success",cache[id],o)},0)}else{if(o.async){that.requests[id]=$.ajax(o)}else{$.ajax(o)}}return id}},_removeXHR:function(xhrID){if(this.opts.queue){$.dequeue(document,this.qName)}this.inProgress--;this.requests[xhrID]=null;delete this.requests[xhrID]},_isAbort:function(xhr,o){var ret=!!(o.abortIsNoSuccess&&(!xhr||xhr.readyState===0||this.lastAbort===o.xhrID));xhr=null;return ret},_complete:function(context,origFn,xhr,status,xhrID,o){if(this._isAbort(xhr,o)){status="abort";o.abort.call(context,xhr,status,o)}origFn.call(context,xhr,status,o);$.event.trigger(this.name+"AjaxComplete",[xhr,status,o]);if(o.domCompleteTrigger){$(o.domCompleteTrigger).trigger(this.name+"DOMComplete",[xhr,status,o]).trigger("DOMComplete",[xhr,status,o])}this._removeXHR(xhrID);if(!this.inProgress){$.event.trigger(this.name+"AjaxStop")}xhr=null},_success:function(context,origFn,data,status,xhr,o){var that=this;if(this._isAbort(xhr,o)){xhr=null;return }if(o.abortOld){$.each(this.requests,function(name){if(name===o.xhrID){return false}that.abort(name)})}if(o.cacheResponse&&!cache[o.xhrID]){cache[o.xhrID]={status:xhr.status,statusText:xhr.statusText,responseText:xhr.responseText,responseXML:xhr.responseXML,_successData:data};if("getAllResponseHeaders" in xhr){var responseHeaders=xhr.getAllResponseHeaders();var parsedHeaders;var parseHeaders=function(){if(parsedHeaders){return }parsedHeaders={};$.each(responseHeaders.split("\n"),function(i,headerLine){var delimiter=headerLine.indexOf(":");parsedHeaders[headerLine.substr(0,delimiter)]=headerLine.substr(delimiter+2)})};$.extend(cache[o.xhrID],{getAllResponseHeaders:function(){return responseHeaders},getResponseHeader:function(name){parseHeaders();return(name in parsedHeaders)?parsedHeaders[name]:null}})}}origFn.call(context,data,status,xhr,o);$.event.trigger(this.name+"AjaxSuccess",[xhr,o,data]);if(o.domSuccessTrigger){$(o.domSuccessTrigger).trigger(this.name+"DOMSuccess",[data,o]).trigger("DOMSuccess",[data,o])}xhr=null},getData:function(id){if(id){var ret=this.requests[id];if(!ret&&this.opts.queue){ret=$.grep($(document).queue(this.qName),function(fn,i){return(fn.xhrID===id)})[0]}return ret}return{requests:this.requests,queue:(this.opts.queue)?$(document).queue(this.qName):[],inProgress:this.inProgress}},abort:function(id){var xhr;if(id){xhr=this.getData(id);if(xhr&&xhr.abort){this.lastAbort=id;xhr.abort();this.lastAbort=false}else{$(document).queue(this.qName,$.grep($(document).queue(this.qName),function(fn,i){return(fn!==xhr)}))}xhr=null;return }var that=this,ids=[];$.each(this.requests,function(id){ids.push(id)});$.each(ids,function(i,id){that.abort(id)})},clear:function(shouldAbort){$(document).clearQueue(this.qName);if(shouldAbort){this.abort()}}};$.manageAjax._manager.prototype.getXHR=$.manageAjax._manager.prototype.getData;$.manageAjax.defaults={beforeCreate:$.noop,abort:$.noop,abortIsNoSuccess:true,maxRequests:1,cacheResponse:false,domCompleteTrigger:false,domSuccessTrigger:false,preventDoubbleRequests:true,queue:false};$.each($.manageAjax._manager.prototype,function(n,fn){if(n.indexOf("_")===0||!$.isFunction(fn)){return }$.manageAjax[n]=function(name,o){if(!managed[name]){if(n==="add"){$.manageAjax.create(name,o)}else{return }}var args=Array.prototype.slice.call(arguments,1);managed[name][n].apply(managed[name],args)}})})(jQuery);
/*
* jQuery Color Animations
* Copyright 2007 John Resig
* Released under the MIT and GPL licenses.
*/
(function(jQuery){jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(i,attr){jQuery.fx.step[attr]=function(fx){if(!fx.colorInit){fx.start=getColor(fx.elem,attr);fx.end=getRGB(fx.end);fx.colorInit=true}fx.elem.style[attr]="rgb("+[Math.max(Math.min(parseInt((fx.pos*(fx.end[0]-fx.start[0]))+fx.start[0]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[1]-fx.start[1]))+fx.start[1]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[2]-fx.start[2]))+fx.start[2]),255),0)].join(",")+")"}});function getRGB(color){var result;if(color&&color.constructor==Array&&color.length==3){return color}if(result=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color)){return[parseInt(result[1]),parseInt(result[2]),parseInt(result[3])]}if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color)){return[parseFloat(result[1])*2.55,parseFloat(result[2])*2.55,parseFloat(result[3])*2.55]}if(result=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color)){return[parseInt(result[1],16),parseInt(result[2],16),parseInt(result[3],16)]}if(result=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color)){return[parseInt(result[1]+result[1],16),parseInt(result[2]+result[2],16),parseInt(result[3]+result[3],16)]}if(result=/rgba\(0, 0, 0, 0\)/.exec(color)){return colors.transparent}return colors[jQuery.trim(color).toLowerCase()]}function getColor(elem,attr){var color;do{color=jQuery.curCSS(elem,attr);if(color!=""&&color!="transparent"||jQuery.nodeName(elem,"body")){break}attr="backgroundColor"}while(elem=elem.parentNode);return getRGB(color)}var colors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]}})(jQuery);(function($){if(typeof RD=="undefined"){var RD={}}RD.globalPublicVars=function(){var config={serverType:"lorem",var2:2};var setVar=function(varName,varData){config[varName]=varData};var getVar=function(varName){return config[varName]};return{setVar:setVar,getVar:getVar}}();RD.serverAddress=function(){var urlType=window.location.hostname;var urlName1=urlType.search(/buchen.+/);var urlName2=urlType.search(/kreuzfahrt.+/);var urlName3=urlType.search(/kreuzfahrten.+/);var urlName4=urlType.search(/traveltainment.+/);if(urlName1!=-1||urlName2!=-1||urlName3!=-1||urlName4!=-1){return false}else{return true}};RD.isDevel=function(){var urlType=window.location.hostname;if(urlType.search(/.devel+/)==-1){return false}else{return true}};RD.isStaging=function(){var urlType=window.location.hostname;var urlName1=urlType.search(/.staging+/);var urlName2=urlType.search(/.test+/);if(urlName1!=-1||urlName2!=-1){return true}else{return false}};RD.IeSniff=function(){var undef,v=3,div=document.createElement("div"),all=div.getElementsByTagName("i");while(div.innerHTML="<!--[if gt IE "+(++v)+"]><i></i><![endif]-->",all[0]){}return v>4?v:undef}();RD.setIE7Focus=function(){if(RD.IeSniff<8){$("input[type=text],textarea").bind("focus blur",function(){$(this).toggleClass("RD_focus")})}}();RD.tgFmVal=function(){var swapValue=[];$("input.RD_tgVal").each(function(i){swapValue[i]=$(this).val();$(this).focus(function(){if($(this).val()==swapValue[i]){$(this).val("")}}).blur(function(){if($.trim($(this).val())==""){$(this).val(swapValue[i])}})})}();RD.lnBlank=function(){$("a.RD_lnBlank").attr({target:"_blank"})}();RD.clickOutsideGlobal=function(el,targetEl){$(document).bind("click.specClick",function(event){if($(event.target).parents().index($(el))==-1){if($(targetEl).is(":visible")){targetEl.hide()}}})};RD.mnHandling=function(){$("#pageMainNav > ul > li > a:not(.current)").removeClass("RD_mnHover");$("#pageMainNav > ul > li").hoverIntent(function(){var el=$(this);if(!el.children("a:first").hasClass("current")){el.children("a:first").stop().fadeTo(300,1)}if(el.children("a:first").next(".RD_mnFoCont").length){el.children("a:first").next(".RD_mnFoCont").slideDown(500,"easeOutQuint")}},function(){var el=$(this);if(!el.children("a:first").hasClass("current")){el.children("a:first").stop().fadeTo(300,0)}if(el.children("a:first").next(".RD_mnFoCont").length){el.children("a:first").next(".RD_mnFoCont").fadeOut(300)}});var RD_lv_1=0;var RD_lv_2=0;$(".RD_mnLv1").hoverIntent(function(){var el=$(this);el.children("li").each(function(){$(this).children("a:first").css("opacity",0.6)})},function(){var el=$(this);el.children("li").each(function(){$(this).children("a:first").stop().animate({opacity:1,backgroundColor:"#ffffff",color:"#555555"},200)})});$(".RD_mnLv1 > li").hoverIntent(function(){var el=$(this);RD_lv_1=el.index();el.children("a:first").addClass("RD_current").stop().animate({opacity:1,backgroundColor:"#daedf5",color:"#0C83B7"},200);el.children(".RD_mnLv2").animate({width:180},500,"easeOutQuint").show()},function(){var el=$(this);el.children("a:first").removeClass("RD_current").stop().animate({opacity:0.6,backgroundColor:"#ffffff",color:"#555555"},200);el.children(".RD_mnLv2").hide().css("width",0)}).find("a:first").click(function(event){event.preventDefault()});$(".RD_mnLv2 > li, .RD_mnLv1 > li.RD_itemLast").hoverIntent(function(){var el=$(this);var isDevel=RD.isDevel();var isStaging=RD.isStaging();var imgUrl=window.location.protocol+"//www.its.de/";if(isDevel||isStaging){imgUrl="/"}var elHeight=el.children(".RD_mnLv3").outerHeight();var vpHeight=$(window).height();var scrollV=$(window).scrollTop();RD_lv_2=el.index();if(el.hasClass("RD_itemLast")&&el.parent().hasClass("RD_mnLv1")){RD_lv_1=3;RD_lv_2=0}el.children("a:first").addClass("RD_current").animate({backgroundColor:"#daedf5",color:"#0C83B7"},200);el.children(".RD_mnLv3").show(0,function(){var elOffset=$(this).offset();var elOffsetTop=elOffset.top;var topPos=(vpHeight+scrollV)-(elHeight+elOffsetTop);if(topPos<0){$(this).css("top",topPos-5)}}).animate({width:420},500,"easeOutQuint").find(".RD_mnFoMood").attr("src",imgUrl+"images/RD_images/"+RD_mnFoImgPath[RD_lv_1][RD_lv_2]+".jpg")},function(){var el=$(this);el.children("a:first").removeClass("RD_current").animate({backgroundColor:"#ffffff",color:"#555555"},200);el.children(".RD_mnLv3").hide().css({width:0,top:-1})});var RD_mnFoImgPath=new Array(4);for(i=0;i<4;i++){RD_mnFoImgPath[i]=new Array(10)}RD_mnFoImgPath[0][0]="RD_mnFoMood-1-PR";RD_mnFoImgPath[0][1]="RD_mnFoMood-1-LM";RD_mnFoImgPath[0][2]="RD_mnFoMood-1-EA";RD_mnFoImgPath[0][3]="RD_mnFoMood-1-FL";RD_mnFoImgPath[0][4]="RD_mnFoMood-2-KF";RD_mnFoImgPath[0][5]="RD_mnFoMood-2-SR";RD_mnFoImgPath[1][0]="RD_mnFoMood-4-EA";RD_mnFoImgPath[1][1]="RD_mnFoMood-2-SU";RD_mnFoImgPath[1][2]="RD_mnFoMood-3-RS";RD_mnFoImgPath[1][3]="RD_mnFoMood-2-CC"}();RD.initToolTips=function(){if($("div.RD_toolTip").length){$(".RD_ttInit").each(function(){var el=$(this);el.click(function(event){event.preventDefault()});el.tooltip({effect:"slide",position:"bottom right",relative:true,offset:[-25,5],predelay:300,delay:300,tipClass:"RD_toolTip",direction:"down",events:{tooltip:"mouseenter,click"}}).dynamic({right:{position:"left",offset:[-5,0]},bottom:{direction:"down"}})})}}();RD.initHeaderToolTips=function(){if($("div.RD_headerToolTip").length){$(".RD_ttHeaderInit").each(function(){RD.clickOutsideGlobal($(document),$("div.RD_headerToolTip"));var el=$(this);el.click(function(event){event.preventDefault()});el.tooltip({effect:"slide",position:"bottom center",relative:true,offset:[-85,58],predelay:300,delay:300,tipClass:"RD_headerToolTip",direction:"down",events:{tooltip:"mouseenter,mouseleave"}}).dynamic({right:{position:"left",offset:[-5,0]},bottom:{direction:"down"}})})}}();RD.ajaxGlobalSearch=function(){var serverLoc=RD.serverAddress();if($("#RD_searchGlobal").length){var RD_count=0;var RD_countDown=0;if(!$("#RD_ajaxSearchRsCont").length){$("#RD_searchGlobal").append('<div id="RD_ajaxSearchRsCont"><div class="clearfix RD_ctSr"></div></div>')}var maxHeight=350;var itemsHeight=0;var ajaxManager=$.manageAjax.create("searchQueue",{queue:"clear",cacheResponse:true,abortOld:true});lookUpQuery=function(inputString){$("#loadScreenLogoCt img").attr("src","/images/RD_images/veranstalterLogosSmall.jpg");if(serverLoc==true){$.manageAjax.add("searchQueue",{type:"POST",url:"/ajax_module/searchSuggestions.php",data:{search:inputString},dataType:"html",beforeSend:function(){$("#RD_ajaxSearchRsCont").show();$("#RD_ajaxSearchRsCont .RD_ctSr").html("<h3>Lade Daten...</h3>")},error:function(XMLHttpRequest,textStatus,errorThrown){$("#RD_ajaxSearchRsCont").show();$("#RD_ajaxSearchRsCont .RD_ctSr").html("<h3>Leider ist ein Fehler aufgetreten.</h3>")},success:function(content){RD_countDown=0;$("#RD_ajaxSearchRsCont").show();if(content!="false"){if(content.search(/ITS - System Fehler+/)!=-1){$("#RD_ajaxSearchRsCont .RD_ctSr").html("<h3>Keine Daten gefunden.</h3>");itemsHeight=0}else{$("#RD_ajaxSearchRsCont .RD_ctSr").html(content);itemsHeight=$("#RD_ajaxSearchRsCont .RD_ctSr").height()}}else{$("#RD_ajaxSearchRsCont .RD_ctSr").html("<h3>Keine Daten gefunden.</h3>");itemsHeight=0}}})}else{$("#RD_ajaxSearchRsCont").show();$("#RD_ajaxSearchRsCont .RD_ctSr").html("<h3>Lade Daten...</h3>");var itsSite="http://www.its.de/ajax_module/searchSuggestions.php?external=1&search="+encodeURIComponent(inputString);$.getJSON("http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22"+encodeURIComponent(itsSite)+"%22&format=xml'&callback=?",function(data){if(data.results[0]){var content=filterData(data.results[0]);RD_countDown=0;$("#RD_ajaxSearchRsCont").show();if(content!="<p>false</p>"&&content.search(/ITS - System Fehler+/)==-1){$("#RD_ajaxSearchRsCont .RD_ctSr").html(content);itemsHeight=$("#RD_ajaxSearchRsCont .RD_ctSr").height()}else{$("#RD_ajaxSearchRsCont .RD_ctSr").html("<h3>Keine Daten gefunden.</h3>");itemsHeight=0}}else{$("#RD_ajaxSearchRsCont .RD_ctSr").html("<h3>Keine Daten gefunden.</h3>");itemsHeight=0}});function filterData(data){data=data.replace(/<body[^>]*>/g,"");data=data.replace(/<?\/body[^>]*>/g,"");data=data.replace(/[\r|\n]+/g,"");data=data.replace(/<--[\S\s]*?-->/g,"");data=data.replace(/<noscript[^>]*>[\S\s]*?<\/noscript>/g,"");data=data.replace(/<script[^>]*>[\S\s]*?<\/script>/g,"");data=data.replace(/<script.*\/>/,"");data=$.trim(data);return data}}};$("#RD_searchGlobal .RD_fmTextSearch, #RD_searchGlobal2 .RD_fmTextSearch").keyup(function(event){var el=$(this);switch(event.keyCode){case 40:case 34:if(RD_countDown<$("#RD_ajaxSearchRsCont li").length){RD_countDown++}if($("#RD_ajaxSearchRsCont li:eq("+(RD_countDown-1)+")").attr("id")!="RD_ajaxSearchAll"){el.attr("value",$("#RD_ajaxSearchRsCont li:eq("+(RD_countDown-1)+")").find("a").text().replace(/[\s\xA0]+/g," "))}else{el.attr("value",$("#RD_ajaxSearchRsCont li:eq("+(RD_countDown-1)+")").find("a").attr("rel"))}$("#RD_ajaxSearchRsCont li:eq("+(RD_countDown-2)+")").removeClass("bl-hover");$("#RD_ajaxSearchRsCont li:eq("+(RD_countDown-1)+")").addClass("bl-hover");var position=$("#RD_ajaxSearchRsCont li:eq("+(RD_countDown-1)+")").position();var scrollOffset=$("#RD_ajaxSearchRsCont .RD_ctSr").scrollTop();if(position.top>maxHeight){var scrollWidth=scrollOffset+(maxHeight/2);$("#RD_ajaxSearchRsCont .RD_ctSr").animate({scrollTop:scrollWidth},700,"easeOutQuart")}break;case 38:case 33:if(RD_countDown>1){RD_countDown--}el.attr("value",$("#RD_ajaxSearchRsCont li:eq("+(RD_countDown-1)+")").find("a").text().replace(/[\s\xA0]+/g," "));$("#RD_ajaxSearchRsCont li:eq("+(RD_countDown)+")").removeClass("bl-hover");$("#RD_ajaxSearchRsCont li:eq("+(RD_countDown-1)+")").addClass("bl-hover");var position=$("#RD_ajaxSearchRsCont li:eq("+(RD_countDown-1)+")").position();var scrollOffset=$("#RD_ajaxSearchRsCont .RD_ctSr").scrollTop();if(scrollOffset>0&&position.top<=30){var scrollWidth=scrollOffset-(maxHeight/2);$("#RD_ajaxSearchRsCont .RD_ctSr").animate({scrollTop:scrollWidth},700,"easeOutQuart")}break;case 13:break;default:RD_count=el.attr("value").length;if(RD_count>=3){$.manageAjax.clear("searchQueue",true);lookUpQuery(el.val())}else{$("#RD_ajaxSearchRsCont .RD_ctSr").empty().parent().hide()}break}}).focus(function(){var el=$(this);if(!el.parent().next("#RD_ajaxSearchRsCont").length){$("#RD_ajaxSearchRsCont").hide();el.parent().parent().append($("#RD_ajaxSearchRsCont"))}if(RD_count>=3){$("#RD_ajaxSearchRsCont").show()}$(document).unbind("click.specClick",RD.clickOutsideGlobal());if(el.parents("#RD_searchGlobal").length){RD.clickOutsideGlobal($("#RD_searchGlobal"),$("#RD_ajaxSearchRsCont"))}else{if(el.parents("#RD_searchGlobal2").length){RD.clickOutsideGlobal($("#RD_searchGlobal2"),$("#RD_ajaxSearchRsCont"))}}}).blur(function(){}).attr("autocomplete","off");$("#RD_ajaxSearchRsCont li a").live("click",function(event){event.preventDefault();var el=$(this);var form=el.parents("#RD_ajaxSearchRsCont").prev("form");if(el.parent().attr("id")!="RD_ajaxSearchAll"){form.find(".RD_fmTextSearch").attr("value",el.text().replace(/[\s\xA0]+/g," "))}else{}form.submit()});function animateLogos(){var width=994;var width1=width-323;$("#loadScreenLogoCt img.first").animate({left:"-"+width1+"px"},15000,"linear",function(){$("#loadScreenLogoCt img.first").animate({left:"-"+width+"px"},6500,"linear");$("#loadScreenLogoCt img.second").animate({left:"0px"},6500,"linear",function(){$("#loadScreenLogoCt img.first").removeClass("first").addClass("second").css("left","323px");$(this).removeClass("second").addClass("first");animateLogos()})});return true}$("#RD_searchGlobal form, #RD_searchGlobal2 form").submit(function(){$.manageAjax.clear("searchQueue",true);$("#RD_ajaxSearchRsCont").hide();setTimeout(function(){$("#loadScreenLogoCt img").attr("src","/images/RD_images/veranstalterLogosSmall.jpg");animateLogos()},100);$("#boxLoadingScreenSrd").show().find("#loadingText").text("Ihre Anfrage wird bearbeitet ...")})}}()})(jQuery);
