﻿$(window).load(function () { $("#celebrateCheesePin").effect("bounce", { times: 3 }, 300, function () { ShowVictoriaPin(); }); $("#victoriaPin").hoverIntent(ShowVictoriaMouseover, HideVictoriaMouseover); $("#banffPin").hoverIntent(ShowBanffMouseover, HideBanffMouseover); $("#torontoPin").hoverIntent(ShowTorontoMouseover, HideTorontoMouseover); $("#quebecPin").hoverIntent(ShowQuebecMouseover, HideQuebecMouseover); }); function ShowVictoriaMouseover() { $("#victoriaMouseover").show(); }
function HideVictoriaMouseover() { $("#victoriaMouseover").hide(); }
function ShowBanffMouseover() { $("#banffMouseover").show(); }
function HideBanffMouseover() { $("#banffMouseover").hide(); }
function ShowTorontoMouseover() { $("#torontoMouseover").show(); }
function HideTorontoMouseover() { $("#torontoMouseover").hide(); }
function ShowQuebecMouseover() { $("#quebecMouseover").show(); }
function HideQuebecMouseover() { $("#quebecMouseover").hide(); }
function ShowVictoriaPin() { $("#victoriaPin").effect("bounce", { times: 2 }, 300, function () { ShowFairmont(); }); }
function ShowBanffPin() { $("#banffPin").effect("bounce", { times: 2 }, 300, function () { ShowTravel(); }); }
function ShowTorontoPin() { $("#torontoPin").effect("bounce", { times: 2 }, 300, function () { ShowPath3(); }); }
function ShowQuebecPin() { $("#quebecPin").effect("bounce", { times: 2 }, 300, function () { ShowSpendingMoney(); }); }
function ShowPath1() { $('#path1').animate({ width: ["72px", 'swing'] }, 700, 'linear', function () { ShowBanffPin(); }); }
function ShowPath2() { $('#path2').animate({ width: ["260px", 'swing'] }, 2000, 'linear', function () { ShowTorontoPin(); }); }
function ShowPath3() { $('#path3').animate({ width: ["65px", 'swing'] }, 1000, 'linear', function () { ShowQuebecPin(); }); }
function ShowFairmont() { $("#fairmont").effect("slide", 300, function () { ShowPath1(); }); }
function ShowTravel() { $("#travel").effect("slide", 300, function () { ShowPath2(); }); }
function ShowSpendingMoney() { $("#spendingMoney").effect("slide", 300); }
