// JavaScript Document

/*
 * hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
 * <http://cherne.net/brian/resources/jquery.hoverIntent.html>
 * 
 * @param  f  onMouseOver function || An object with configuration options
 * @param  g  onMouseOut function  || Nothing (use configuration options object)
 * @author    Brian Cherne <brian@cherne.net>
 */
(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(q){var o=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;while(o&&o!=this){try{o=o.parentNode}catch(q){o=this}}if(o==this){return false}var g=jQuery.extend({},q);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(q.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);function loadXMLDoc(b){var a;if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLDOM")}else{if(document.implementation&&document.implementation.createDocument){a=document.implementation.createDocument("","",null)}}a.async=false;a.load(b);return(a)}function loadXSLT(g,h,b){var d=loadXMLDoc(g);var f=loadXMLDoc(h);if(window.ActiveXObject){var e=d.transformNode(f);$j(b).append(e)}else{if(document.implementation&&document.implementation.createDocument){var a=new XSLTProcessor();a.importStylesheet(f);var c=a.transformToFragment(d,document);$j(b).append(c)}}}function initNavigation(){var a={sensitivity:3,interval:100,over:function(){if(!($j(this).hasClass("active"))){$j(this).children("ul").show();$j(this).addClass("hover")}},timeout:700,out:function(){if(!($j(this).hasClass("active"))){$j(this).children("ul").hide();$j(this).removeClass("hover")}}};$j("div.menu-a td").focus(function(){$j(this).addClass("hover")});$j("div.menu-a td").blur(function(){$j(this).removeClass("hover")});$j("div.menu-a td").hoverIntent(a);$j(".menu-a td").children("a").each(function(b){if($j(this).html().indexOf("Help")>-1||$j(this).html().indexOf("Book")>-1||$j(this).html().indexOf("Plan")>-1||$j(this).html().indexOf("Home")>-1){$j(this).addClass("highlight4")}else{if(($j(this).html().indexOf("Fly")>-1)&&!($j(this).html().indexOf("Flyer")>-1)){$j(this).addClass("highlight3")}}if($j(this).attr("href").indexOf("help")>1){$j(this).next().children("li").css("float","none");$j(this).next().children("li").css("display","inline");$j(this).next().css("text-align","right")}})}function toggleMenuD(){if($j(this).attr("class").indexOf("active")>=0){$j(this).removeClass("active");$j(this).next("ul").hide()}else{$j(this).addClass("active");$j(this).next("ul").show()}}function initPortalMenu(){var a=$j("dl").filter(".menu-c").children("dd").filter(".haschild");a.children("ul").hide();a.children("a").attr("href","javascript:void(0)");a.children("a").click(toggleMenuD);a.children("a").filter(".active").unbind("click");a.children("a").filter(".active").next().show();if(!($j(".menu-b").parent().hasClass("active"))){$j(".navigation").css("margin","0 0 0 0")}if(!($j("div").hasClass("navigation"))&&(window.location.href.indexOf("travel/layout/header")>-1)){$j("div").filter(".header_nav").attr("style","background: #fff url(/img/_red08/common/popup/header_bg.gif) repeat-x scroll left bottom !important; margin: 0 0 0 0 !important; padding: 0 0 5px 10px !important;");$j("div").filter(".header").attr("style","width: auto !important;")}}$j(document).ready(initPortalMenu);function ss(){stateList=new Array()}ss.prototype.getPageName=function(){state=stateList.pop();var a="unknown";if(state==null||state==""){a="unknown"}else{var a=pageName[state];if(a==null){a=state}}return a};ss.prototype.push=function(a){stateList.push(a)};ss.prototype.getLanguage=function(){return"German"};siteCat=new ss();
