<!-- Portfolio scroller -->
$(function() {
   $('#next').click(function() {
      $('#desk').stop().scrollTo( '+=473px', 
      800 ); }
   ); 
   $('#back').click(function() {
      $('#desk').stop().scrollTo( '-=473px', 
      800 ); }
   ); 
   $('#first').click(function() {
      $('#desk').stop().scrollTo( '0px', 
      800 ); }
   ); 
   $('.show_hide').click(function() {
      $('#newsholder').toggle('slow'); }
   ); 
   }
); 

<!-- Scroller -->
jQuery.easing.jswing = jQuery.easing.swing; 
jQuery.extend(jQuery.easing, {
   def : "easeOutQuad", swing : function(e, f, a, h, g) {
      return jQuery.easing[jQuery.easing.def](e, 
      f, a, h, g) }
   , easeInQuad : function(e, f, a, h, g) {
      return h * (f /= g) * f + a }
   , easeOutQuad : function(e, f, a, h, g) {
      return - h * (f /= g) * (f - 2) + a }
   , easeInOutQuad : function(e, f, a, h, g) {
      if ((f /= g / 2) < 1) {
         return h / 2 * f * f + a }
      return - h / 2 * ((--f) * (f - 2) - 1) + a }
   , easeInCubic : function(e, f, a, h, g) {
      return h * (f /= g) * f * f + a }
   , easeOutCubic : function(e, f, a, h, g) {
      return h * ((f = f / g - 1) * f * f + 1) + a }
   , easeInOutCubic : function(e, f, a, h, g) {
      if ((f /= g / 2) < 1) {
         return h / 2 * f * f * f + a }
      return h / 2 * ((f -= 2) * f * f + 2) + a }
   , easeInQuart : function(e, f, a, h, g) {
      return h * (f /= g) * f * f * f + a }
   , easeOutQuart : function(e, f, a, h, g) {
      return - h * ((f = f / g - 1) * f * f * f - 1) + a }
   , easeInOutQuart : function(e, f, a, h, g) {
      if ((f /= g / 2) < 1) {
         return h / 2 * f * f * f * f + a }
      return - h / 2 * ((f -= 2) * f * f * f - 2) + a }
   , easeInQuint : function(e, f, a, h, g) {
      return h * (f /= g) * f * f * f * f + a }
   , easeOutQuint : function(e, f, a, h, g) {
      return h * ((f = f / g - 1) * f * f * f * f + 1) + a }
   , easeInOutQuint : function(e, f, a, h, g) {
      if ((f /= g / 2) < 1) {
         return h / 2 * f * f * f * f * f + a }
      return h / 2 * ((f -= 2) * f * f * f * f + 2) + a }
   , easeInSine : function(e, f, a, h, g) {
      return - h * Math.cos(f / g * (Math.PI / 2)) + h + a }
   , easeOutSine : function(e, f, a, h, g) {
      return h * Math.sin(f / g * (Math.PI / 2)) + a }
   , easeInOutSine : function(e, f, a, h, g) {
      return - h / 2 * (Math.cos(Math.PI * f / g) - 1) + a }
   , easeInExpo : function(e, f, a, h, g) {
      return (f == 0) ? a : h * Math.pow(2, 
      10 * (f / g - 1)) + a }
   , easeOutExpo : function(e, f, a, h, g) {
      return (f == g) ? a + h : h * ( - Math.pow(2, 
      - 10 * f / g) + 1) + a }
   , easeInOutExpo : function(e, f, a, h, g) {
      if (f == 0) {
         return a }
      if (f == g) {
         return a + h }
      if ((f /= g / 2) < 1) {
         return h / 2 * Math.pow(2, 
         10 * (f - 1)) + a }
      return h / 2 * ( - Math.pow(2, 
      - 10 * --f) + 2) + a }
   , easeInCirc : function(e, f, a, h, g) {
      return - h * (Math.sqrt(1 - (f /= g) * f) - 1) + a }
   , easeOutCirc : function(e, f, a, h, g) {
      return h * Math.sqrt(1 - (f = f / g - 1) * f) + a }
   , easeInOutCirc : function(e, f, a, h, g) {
      if ((f /= g / 2) < 1) {
         return - h / 2 * (Math.sqrt(1 - f * f) - 1) + a }
      return h / 2 * (Math.sqrt(1 - (f -= 2) * f) + 1) + a }
   , easeInElastic : function(f, h, e, n, m) {
      var k = 1.70158; var l = 0; var g = n; if (h == 0) {
         return e }
      if ((h /= m) == 1) {
         return e + n }
      if (!l) {
         l = m * 0.3 }
      if (g < Math.abs(n)) {
         g = n; var k = l / 4 }
      else {
         var k = l / (2 * Math.PI) * Math.asin(n / g) }
      return - (g * Math.pow(2, 
      10 * (h -= 1)) * Math.sin((h * m - k) * (2 * Math.PI) / l)) + e }, easeOutElastic: function(f, h, e, n, m) { var k = 1.70158; var l = 0; var g = n; if (h == 0) { return e } if ((h /= m) == 1) { return e + n } if (!l) { l = m * 0.3 } if (g < Math.abs(n)) { g = n; var k = l / 4 } else { var k = l / (2 * Math.PI) * Math.asin(n / g) } return g * Math.pow(2, -10 * h) * Math.sin((h * m - k) * (2 * Math.PI) / l) + n + e }, easeInOutElastic: function(f, h, e, n, m) { var k = 1.70158; var l = 0; var g = n; if (h == 0) { return e } if ((h /= m / 2) == 2) { return e + n } if (!l) { l = m * (0.3 * 1.5) } if (g < Math.abs(n)) { g = n; var k = l / 4 } else { var k = l / (2 * Math.PI) * Math.asin(n / g) } if (h < 1) { return - 0.5 * (g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * m - k) * (2 * Math.PI) / l)) + e } return g * Math.pow(2, -10 * (h -= 1)) * Math.sin((h * m - k) * (2 * Math.PI) / l) * 0.5 + n + e }, easeInBack: function(e, f, a, k, h, g) { if (g == undefined) { g = 1.70158 } return k * (f /= h) * f * ((g + 1) * f - g) + a }, easeOutBack: function(e, f, a, k, h, g) { if (g == undefined) { g = 1.70158 } return k * ((f = f / h - 1) * f * ((g + 1) * f + g) + 1) + a }, easeInOutBack: function(e, f, a, k, h, g) { if (g == undefined) { g = 1.70158 } if ((f /= h / 2) < 1) { return k / 2 * (f * f * (((g *= (1.525)) + 1) * f - g)) + a } return k / 2 * ((f -= 2) * f * (((g *= (1.525)) + 1) * f + g) + 2) + a }, easeInBounce: function(e, f, a, h, g) { return h - jQuery.easing.easeOutBounce(e, g - f, 0, h, g) + a }, easeOutBounce: function(e, f, a, h, g) { if ((f /= g) < (1 / 2.75)) { return h * (7.5625 * f * f) + a } else { if (f < (2 / 2.75)) { return h * (7.5625 * (f -= (1.5 / 2.75)) * f + 0.75) + a } else { if (f < (2.5 / 2.75)) { return h * (7.5625 * (f -= (2.25 / 2.75)) * f + 0.9375) + a } else { return h * (7.5625 * (f -= (2.625 / 2.75)) * f + 0.984375) + a } } } }, easeInOutBounce: function(e, f, a, h, g) { if (f < g / 2) { return jQuery.easing.easeInBounce(e, f * 2, 0, h, g) * 0.5 + a } return jQuery.easing.easeOutBounce(e, f * 2 - g, 0, h, g) * 0.5 + h * 0.5 + a } });
      (function(a) {
         a.extend(a.fx.step, {
            backgroundPosition : function(d) {
               if (d.state === 0 && typeof d.end == "string") {
                  var f = a.curCSS(d.elem, 
                  "backgroundPosition"); f = c(f); d.start = [f[0], 
                  f[2]]; var b = c(d.end); d.end = [b[0], 
                  b[2]]; d.unit = [b[1], 
                  b[3]] }
               var e = []; e[0] = ((d.end[0] - d.start[0]) * d.pos) + d.start[0] + d.unit[0]; e[1] = ((d.end[1] - d.start[1]) * d.pos) + d.start[1] + d.unit[1]; d.elem.style.backgroundPosition = e[0] + " " + e[1]; function c(h) {
                  h = h.replace(/left|top/g, "0px"); h = h.replace(/right|bottom/g, "100%"); h = h.replace(/([0-9\.]+)(\s|\)|$)/g, "$1px$2"); var g = h.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/); return [parseFloat(g[1], 10), g[2], parseFloat(g[3], 10), g[4]] } } }) })(jQuery); (function(a) { a.fn.hoverIntent = function(m, l) { var n = { sensitivity: 7, interval: 100, timeout: 0 };
                  n = a.extend(n, 
                  l ? {
                     over : m, 
                     out : l }
                  : m); 
                  var p, 
                  o, 
                  h, 
                  d; 
                  var e = function(f) {
                     p = f.pageX; 
                     o = f.pageY }; 
                  var c = function(g, 
                  f) {
                     f.hoverIntent_t = clearTimeout(f.hoverIntent_t); 
                     if ((Math.abs(h - p) + Math.abs(d - o)) < n.sensitivity) {
                        a(f).unbind("mousemove", 
                        e); 
                        f.hoverIntent_s = 1; 
                        return n.over.apply(f, 
                        [g]) }
                     else {
                        h = p; 
                        d = o; 
                        f.hoverIntent_t = setTimeout(function() {
                           c(g, 
                           f) }
                        , 
                        n.interval) }
                     }; 
                  var k = function(g, 
                  f) {
                     f.hoverIntent_t = clearTimeout(f.hoverIntent_t); 
                     f.hoverIntent_s = 0; 
                     return n.out.apply(f, 
                     [g]) }; 
                  var b = function(q) {
                     var g = jQuery.extend( {
                        }
                     , 
                     q); 
                     var f = this; 
                     if (f.hoverIntent_t) {
                        f.hoverIntent_t = clearTimeout(f.hoverIntent_t) }
                     if (q.type == "mouseenter") {
                        h = g.pageX; 
                        d = g.pageY; 
                        a(f).bind("mousemove", 
                        e); 
                        if (f.hoverIntent_s != 1) {
                           f.hoverIntent_t = setTimeout(function() {
                              c(g, 
                              f) }
                           , 
                           n.interval) }
                        }
                     else {
                        a(f).unbind("mousemove", 
                        e); 
                        if (f.hoverIntent_s == 1) {
                           f.hoverIntent_t = setTimeout(function() {
                              k(g, 
                              f) }
                           , 
                           n.timeout) }
                        }
                     }; 
                  return this.bind("mouseenter", 
                  b).bind("mouseleave", 
                  b) }
               }
            )(jQuery); 
            (function() {
               var a = jQuery.event.special, 
               c = "D" + ( + new Date()), 
               b = "D" + ( + new Date() + 1); a.scrollstart = {
                  setup : function() {
                     var e, 
                     d = function(h) {
                        var f = this, 
                        g = arguments; if (e) {
                           clearTimeout(e) }
                        else {
                           h.type = "scrollstart"; jQuery.event.handle.apply(f, 
                           g) }
                        e = setTimeout(function() {
                           e = null }
                        , 
                        a.scrollstop.latency) }; jQuery(this).bind("scroll", 
                     d).data(c, 
                     d) }
                  , teardown : function() {
                     jQuery(this).unbind("scroll", 
                     jQuery(this).data(c)) }
                  }; a.scrollstop = {
                  latency : 300, 
                  setup : function() {
                     var e, 
                     d = function(h) {
                        var f = this, 
                        g = arguments; if (e) {
                           clearTimeout(e) }
                        e = setTimeout(function() {
                           e = null; h.type = "scrollstop"; jQuery.event.handle.apply(f, 
                           g) }
                        , 
                        a.scrollstop.latency) }; jQuery(this).bind("scroll", 
                     d).data(b, 
                     d) }
                  , teardown : function() {
                     jQuery(this).unbind("scroll", 
                     jQuery(this).data(b)) }
                  }
               }
            )(); 
            (function(a) {
               a.fn.numeric = function(d, 
               e) {
                  if (typeof d === "boolean") {
                     d = {
                        decimal : d }
                     }
                  d = d || {
                     }; if (typeof d.negative == "undefined") {
                     d.negative = true }
                  var b = (d.decimal === false) ? "" : d.decimal || "."; var c = (d.negative === true) ? true : false; var e = typeof e == "function" ? e : function() {
                     }; return this.data("numeric.decimal", 
                  b).data("numeric.negative", 
                  c).data("numeric.callback", 
                  e).keypress(a.fn.numeric.keypress).keyup(a.fn.numeric.keyup).blur(a.fn.numeric.blur) }; a.fn.numeric.keypress = function(h) {
                  var b = a.data(this, 
                  "numeric.decimal"); var c = a.data(this, 
                  "numeric.negative"); var d = h.charCode ? h.charCode : h.keyCode ? h.keyCode : 0; if (d == 13 && this.nodeName.toLowerCase() == "input") {
                     return true }
                  else {
                     if (d == 13) {
                        return false }
                     }
                  var f = false; if ((h.ctrlKey && d == 97) || (h.ctrlKey && d == 65)) {
                     return true }
                  if ((h.ctrlKey && d == 120) || (h.ctrlKey && d == 88)) {
                     return true }
                  if ((h.ctrlKey && d == 99) || (h.ctrlKey && d == 67)) {
                     return true }
                  if ((h.ctrlKey && d == 122) || (h.ctrlKey && d == 90)) {
                     return true }
                  if ((h.ctrlKey && d == 118) || (h.ctrlKey && d == 86) || (h.shiftKey && d == 45)) {
                     return true }
                  if (d < 48 || d > 57) {
                     var g = a(this).val(); if (g.indexOf("-") != 0 && c && d == 45 && (g.length == 0 || (a.fn.getSelectionStart(this)) == 0)) {
                        return true }
                     if (b && d == b.charCodeAt(0) && g.indexOf(b) != - 1) {
                        f = false }
                     if (d != 8 && d != 9 && d != 13 && d != 35 && d != 36 && d != 37 && d != 39 && d != 46) {
                        f = false }
                     else {
                        if (typeof h.charCode != "undefined") {
                           if (h.keyCode == h.which && h.which != 0) {
                              f = true; if (h.which == 46) {
                                 f = false }
                              }
                           else {
                              if (h.keyCode != 0 && h.charCode == 0 && h.which == 0) {
                                 f = true }
                              }
                           }
                        }
                     if (b && d == b.charCodeAt(0)) {
                        if (g.indexOf(b) == - 1) {
                           f = true }
                        else {
                           f = false }
                        }
                     }
                  else {
                     f = true }
                  return f }; a.fn.numeric.keyup = function(p) {
                  var k = a(this).value; if (k && k.length > 0) {
                     var f = a.fn.getSelectionStart(this); var o = a.data(this, 
                     "numeric.decimal"); var l = a.data(this, 
                     "numeric.negative"); if (o != "") {
                        var d = k.indexOf(o); if (d == 0) {
                           this.value = "0" + k }
                        if (d == 1 && k.charAt(0) == "-") {
                           this.value = "-0" + k.substring(1) }
                        k = this.value }
                     var c = [0, 
                     1, 
                     2, 
                     3, 
                     4, 
                     5, 
                     6, 
                     7, 
                     8, 
                     9, 
                     "-", 
                     o]; var h = k.length; for (var n = h - 1; n >= 0; n--) {
                        var b = k.charAt(n); if (n != 0 && b == "-") {
                           k = k.substring(0, 
                           n) + k.substring(n + 1) }
                        else {
                           if (n == 0 && !l && b == "-") {
                              k = k.substring(1) }
                           }
                        var g = false; for (var m = 0; m < c.length; m++) {
                           if (b == c[m]) {
                              g = true; break }
                           }
                        if (!g || b == " ") {
                           k = k.substring(0, 
                           n) + k.substring(n + 1) }
                        }
                     var q = k.indexOf(o); if (q > 0) {
                        for (var n = h - 1; n > q; n--) {
                           var b = k.charAt(n); if (b == o) {
                              k = k.substring(0, 
                              n) + k.substring(n + 1) }
                           }
                        }
                     this.value = k; a.fn.setSelection(this, 
                     f) }
                  }; a.fn.numeric.blur = function() {
                  var b = a.data(this, 
                  "numeric.decimal"); var e = a.data(this, 
                  "numeric.callback"); var d = this.value; if (d != "") {
                     var c = new RegExp("^\\d+$|\\d*" + b + "\\d+"); if (!c.exec(d)) {
                        e.apply(this) }
                     }
                  }; a.fn.removeNumeric = function() {
                  return this.data("numeric.decimal", 
                  null).data("numeric.negative", 
                  null).data("numeric.callback", 
                  null).unbind("keypress", 
                  a.fn.numeric.keypress).unbind("blur", 
                  a.fn.numeric.blur) }; a.fn.getSelectionStart = function(c) {
                  if (c.createTextRange) {
                     var b = document.selection.createRange().duplicate(); b.moveEnd("character", 
                     c.value.length); if (b.text == "") {
                        return c.value.length }
                     return c.value.lastIndexOf(b.text) }
                  else {
                     return c.selectionStart }
                  }; a.fn.setSelection = function(d, 
               c) {
                  if (typeof c == "number") {
                     c = [c, 
                     c] }
                  if (c && c.constructor == Array && c.length == 2) {
                     if (d.createTextRange) {
                        var b = d.createTextRange(); b.collapse(true); b.moveStart("character", 
                        c[0]); b.moveEnd("character", 
                        c[1]); b.select() }
                     else {
                        if (d.setSelectionRange) {
                           d.focus(); d.setSelectionRange(c[0], 
                           c[1]) }
                        }
                     }
                  }
               }
            )(jQuery); 
            (function() {
               var b; var a = function(c, 
               d) {
                  return function() {
                     return c.apply(d, 
                     arguments) }
                  }; b = (function() {
                  function c() {
                     this.setupScrollFlipper = a(this.setupScrollFlipper, 
                     this) }
                  c.prototype.init = function() {
                     }; c.prototype.setupScrollFlipper = function() {
                     this.content = $("#content"); this.navigator = $("#navigator"); return $(window).scroll(a(function() {
                        if ($(window).scrollTop() > 410) {
                           this.navigator.removeClass("relative").addClass("fixed"); return this.content.css( {
                              marginTop : 106 }
                           ) }
                        else {
                           this.navigator.addClass("relative").removeClass("fixed"); return this.content.css( {
                              marginTop : 0 }
                           ) }
                        }
                     , 
                     this)) }; return c }
               )(); window.Page = b}
            ).call(this); 
            (function() {
               var b; var a = function(c, 
               d) {
                  return function() {
                     return c.apply(d, 
                     arguments) }
                  }; b = (function() {
                  function c() {
                     this.speechChange = a(this.speechChange, 
                     this); this.uncollapse = a(this.uncollapse, 
                     this); this.collapse = a(this.collapse, 
                     this) }
                  c.prototype.init = function(d) {
                     this.options = d != null ? d : {
                        start : "collapsed" }; this.moreOptions = $("#planner-panel").data("more-options"); this.lessOptions = $("#planner-panel").data("less-options"); this.planner = $("#planner"); this.advancedPanel = $("#planner-panel-advanced"); this.createOptionsButton(); this.planner.bind("submit", 
                     $.proxy(this.handleSubmit, 
                     this)); return $("#from-text, #to-text").bind("webkitspeechchange", 
                     this.speechChange) }; c.prototype.handleSubmit = function() {
                     if (this.planner.find(".input-error") && this.planner.find(".input-error").length > 0) {
                        return false }
                     }; c.prototype.createOptionsButton = function() {
                     this.originalWidth = this.planner.width(); this.collapsedWidth = 300; this.originalPadding = parseInt(this.planner.css("padding-left")) + parseInt(this.planner.css("padding-right")); if (this.options.start === "collapsed") {
                        this.collapsed = true; this.advancedPanel.hide(); this.planner.css( {
                           width : this.collapsedWidth, 
                           marginLeft : - ((this.collapsedWidth + this.originalPadding) / 2) }) } this.optionsButton = $("" + (this.collapsed ? this.moreOptions: this.lessOptions) + ""); this.optionsButton.click(a(function() { if (this.collapsed) { return this.uncollapse() } else { return this.collapse() } }, this)); return $("#planner .planner-panel-basic").append(this.optionsButton) }; c.prototype.collapse = function() { if ($("#planner:animated").length) { return } $(this).trigger("collapsing"); this.optionsButton.addClass("expander").removeClass("collapser").text(this.moreOptions); this.planner.animate({ width: this.collapsedWidth, marginLeft: -((this.collapsedWidth + this.originalPadding) / 2) }, a(function() { $(this).trigger("collapsed"); return this.advancedPanel.hide() }, this)); this.collapsed = !this.collapsed; return false }; c.prototype.uncollapse = function() { if ($("#planner:animated").length) { return } this.advancedPanel.show().css({ opacity: 0 }); $(this).trigger("expanding"); this.optionsButton.addClass("collapser").removeClass("expander").text(this.lessOptions); this.planner.animate({ width: this.originalWidth, marginLeft: -((this.originalWidth + this.originalPadding) / 2) }, a(function() { this.advancedPanel.animate({ opacity: 1 }); return $(this).trigger("expanded") }, this)); this.collapsed = !this.collapsed; return false }; c.prototype.speechChange = function(g) { var k, h, f, d; h = $(g.currentTarget).val(); f = h.indexOf("van "); k = h.indexOf(" naar "); d = h.indexOf(" via "); if (f === 0 && k > 0) { $("#from-text").val(h.substring(4, k)); if (d < 0) { return $("#to-text").val(h.substring(k + 6)) } else { $("#to-text").val(h.substring(k + 6, d)); $("#via-text").val(h.substring(d + 5)); return this.uncollapse() } } }; return c })(); window.Planner = b }).call(this);
                           (function() {
                              var b; var a = function(c, 
                              d) {
                                 return function() {
                                    return c.apply(d, 
                                    arguments) }
                                 }; b = (function() {
                                 function c() {
                                    this.createAndPositionClone = a(this.createAndPositionClone, 
                                    this); this.returnTripClick = a(this.returnTripClick, 
                                    this); this.addChangeButton = a(this.addChangeButton, 
                                    this) }
                                 c.prototype.init = function() {
                                    this.changeJourney = $("#reis-advies").data("change-journey"); this.addChangeButton(); return $("#return-trip").click(this.returnTripClick) }; c.prototype.addChangeButton = function() {
                                    var d; d = $("<a class='secondary-button-alt right'>" + this.changeJourney + "</a>"); d.click(a(function() {
                                       $(document.body).animate( {
                                          scrollTop : 0 }
                                       ); $(document.documentElement).animate( {
                                          scrollTop : 0 }
                                       ); return scroller.showPlanner().done(a(function() {
                                          return $("#from-text").focus() }
                                       , 
                                       this)) }
                                    , 
                                    this)); return $("#buttons-container").append(d) }; c.prototype.returnTripClick = function(d) {
                                    $(document.body).animate( {
                                       scrollTop : 0 }
                                    ); $(document.documentElement).animate( {
                                       scrollTop : 0 }
                                    ); scroller.showPlanner().done(a(function() {
                                       var p, 
                                       r, 
                                       h, 
                                       l, 
                                       k, 
                                       n, 
                                       q, 
                                       m, 
                                       o, 
                                       g, 
                                       f, 
                                       e; p = $("#from-input-field"); q = $("#to-input-field"); r = this.createAndPositionClone("from-input-field"); m = this.createAndPositionClone("to-input-field"); l = $("#from-text").val(); h = $("#from-original").val(); k = $("#from-url").val(); n = $("#from-url-original").val(); g = $("#to-text").val(); o = $("#to-original").val(); f = $("#to-url").val(); e = $("#to-url-original").val(); $("#from-text").val(""); $("#to-text").val(""); q.css( {
                                          visibility : "hidden" }
                                       ); r.animate( {
                                          top : m.position().top }
                                       , 
                                       a(function() {
                                          q.css( {
                                             visibility : "visible" }
                                          ); r.remove(); $("#to-text").val(l); $("#to-original").val(h); $("#to-url").val(k); return $("#to-url-original").val(n) }
                                       , 
                                       this)); p.css( {
                                          visibility : "hidden" }
                                       ); return m.animate( {
                                          top : r.position().top }
                                       , 
                                       a(function() {
                                          p.css( {
                                             visibility : "visible" }
                                          ); m.remove(); $("#from-text").val(g); $("#from-original").val(o); $("#from-url").val(f); return $("#from-url-original").val(e) }
                                       , 
                                       this)) }
                                    , 
                                    this)); return d.preventDefault() }; c.prototype.createAndPositionClone = function(d) {
                                    var k, 
                                    f, 
                                    g, 
                                    e, 
                                    h; f = $("#planner-panel"); g = f.offset(); e = $("#" + d); h = e.offset(); k = e.clone(); k.attr("id", 
                                    d + "-clone").css( {
                                       position : "absolute", 
                                       border : 0, 
                                       left : h.left - g.left, 
                                       top : h.top - g.top, 
                                       width : e.width(), 
                                       zIndex : 10 }
                                    ); f.append(k); return k }; return c }
                              )(); window.JourneyAdvice = b}
                           ).call(this); 
                           var scroller = {
                              navAvailable : true, 
                              minVisualHeight : 460, 
                              minNavHeight : 53, 
                              headerHeight : 40, 
                              maximized : false, 
                              currentVisualHeight : 0, 
                              globalAlertHeight : 0, 
                              globalAlertToggle : 0, 
                              init : function() {
                                 scroller.header = $(".header"); 
                                 scroller.planner = $(".main-planner"); 
                                 scroller.form = $(".planner-form"); 
                                 scroller.nav = $(".navigator"); 
                                 scroller.visual = $(".visual"); 
                                 scroller.globalAlertHeight = $(".global-alert").length ? 75 : 40; 
                                 scroller.globalAlertToggle = $(".global-alert").length ? "-2.5em" : "-1.5em"; 
                                 $(".visual").wrap('<div class="visual-wrapper" />'); 
                                 scroller.wrapper = $(".visual-wrapper"); 
                                 var c = $("#main-planner").data("plan-my-journey"); 
                                 $("body:first").append('<a href="#" class="toggle-planner hidden">' + c + "</a>"); 
                                 if ($(".global-alert").length != 0) {
                                    $(".toggle-planner").css( {
                                       top : 75 }
                                    ) }
                                 else {
                                    $(".toggle-planner").css( {
                                       top : 40 }
                                    ) }
                                 if (scroller.initFull) {
                                    scroller.maximized = true; 
                                    $(".toggle-planner").css( {
                                       top : "-0.75em" }
                                    ); 
                                    $(".visual-wrapper").css( {
                                       height : scroller.newVisualHeight() }
                                    ); 
                                    $(scroller).trigger("maximizing"); 
                                    $(scroller).trigger("mazimized") }
                                 else {
                                    $(".visual-wrapper").css( {
                                       height : scroller.minNavHeight + "px" }
                                    ); 
                                    scroller.form.hide(); 
                                    $(scroller).trigger("minimizing"); 
                                    $(scroller).trigger("minimized") }
                                 $(".toggle-planner").removeClass("hidden"); 
                                 if ($(".navigator").length == 0) {
                                    var a = $("#main-planner").data("hide-planner"); 
                                    $(".content").before('<div id=navigator class="navigator placeholder relative"/>'); 
                                    $(".main").prepend('<a href="" class="hide-planner">' + a + "</a>"); 
                                    scroller.navAvailable = false }
                                 else {
                                    iNavigator.init() }
                                 $(".main-logo").addClass("inside").appendTo(".navigator"); 
                                 if (! ($.browser.msie && $.browser.version < 9)) {
                                    $(".toggle-planner").hoverIntent( {
                                       over : scroller.peekabooOut, 
                                       out : scroller.peekabooIn }
                                    ) }
                                 $(".toggle-planner").click(function() {
                                    scroller.showPlanner(); return false }
                                 ); 
                                 if (!scroller.navAvailable) {
                                    $(".hide-planner").click(function() {
                                       scroller.slowHide(); return false }
                                    ).hide() }
                                 var b = scroller.newVisualHeight(); 
                                 scroller.visual.height(b); 
                                 scroller.currentVisualHeight = b; 
                                 $(window).bind("resize", 
                                 function() {
                                    scroller.resize() }
                                 ); 
                                 if (!scroller.initFull) {
                                    $(window).bind("scrollstop", 
                                    scroller.collapse) }
                                 }
                              , 
                              collapse : function() {
                                 var a = scroller.newVisualHeight() + scroller.headerHeight; 
                                 if (scroller.maximized && $(window).scrollTop() >= a) {
                                    scroller.hidePlanner() }
                                 }
                              , 
                              resize : function() {
                                 var a = scroller.newVisualHeight(); 
                                 scroller.visual.height(a); 
                                 if (scroller.maximized) {
                                    scroller.wrapper.height(a) }
                                 scroller.currentVisualHeight = a }
                              , 
                              reset : function() {
                                 scroller.globalAlertHeight = 40; 
                                 scroller.globalAlertToggle = "-1.5em"; 
                                 $(".toggle-planner").css( {
                                    top : scroller.globalAlertHeight }
                                 ); 
                                 scroller.resize() }
                              , 
                              newVisualHeight : function() {
                                 if ($.browser.webkit && navigator.userAgent.match(/mobile/gi)) { var a = 544;
                                 if ($(".global-alert").length > 0 && $(".global-alert")[0].style.display == "block") {
                                    return a - $($(".global-alert")[0]).outerHeight() }
                                 return a }
                              var d = scroller.navAvailable ? scroller.nav.height() : scroller.minNavHeight; 
                              var b = scroller.header.height() + d; 
                              var c = $(window).height() - b >= scroller.minVisualHeight ? $(window).height() - b : scroller.minVisualHeight; 
                              c = $(".global-alert").length ? c - $(".global-alert").outerHeight() : c; 
                              return c }
                           , 
                           

                           }; 
                        var iNavigator = {
                           scrollTop : 0, 
                           init : function() {
                              $(".navigator li a").live("click", 
                              function(b) {
                                 b.stopImmediatePropagation(); var a = $(this).attr("href"); var c = $(a).offset().top; iNavigator.scrollToPos(c); if (window.history && window.history.replaceState && window.history.pushState) {
                                    window.history.pushState("pager", 
                                    window.document.title, 
                                    a) }
                                 return false }
                              ) }
                           , 
                           scroll : function() {
                              return false }
                           , 
                           scrollToPos : function(c) {
                              var a = $("body:first").height() - $(window).height(); 
                              var b = Math.ceil(c / (a - $(window).scrollTop())) * 500; 
                              $("html, body").stop().animate( {
                                 scrollTop : c }
                              , 
                              {
                                 duration : b, 
                                 easing : "easeOutExpo", 
                                 step : function(e, 
                                 f) {
                                    var d = $(window).scrollTop(); if (d < iNavigator.scrollTop) {
                                       $("html, body").stop() }
                                    iNavigator.scrollTop = d }
                                 }
                              ) }
                           };
