﻿function hideFaceBook(){if(popup1.style.display=="block"){popup1.style.display=="none"}if(popupTiwter1.style.display=="block"){popupTiwter1.style.display=="none"}}function showTip(){$(function(){$(".bubbleInfo").each(function(){var a=10;var b=150;var c=100;var d=null;var e=false;var f=false;var g=$(".trigger",this);var h=$(".popup",this).css("opacity",0);$([g.get(0),h.get(0)]).mouseover(function(){if(d)clearTimeout(d);if(e||f){return}else{e=true;h.css({top:-100,left:-33,display:"block"}).animate({top:"-="+a+"px",opacity:1},b,"swing",function(){e=false;f=true})}}).mouseout(function(){if(d)clearTimeout(d);d=setTimeout(function(){d=null;h.animate({top:"-="+a+"px",opacity:0},b,"swing",function(){f=false;h.css("display","none")})},c)})})});$(function(){$(".bubbleTiwterInfo").each(function(){var a=10;var b=150;var c=100;var d=null;var e=false;var f=false;var g=$(".trigger",this);var h=$(".popupTiwter",this).css("opacity",0);$([g.get(0),h.get(0)]).mouseover(function(){if(d)clearTimeout(d);if(e||f){return}else{e=true;h.css({top:-100,left:-33,display:"block"}).animate({top:"-="+a+"px",opacity:1},b,"swing",function(){e=false;f=true})}}).mouseout(function(){if(d)clearTimeout(d);d=setTimeout(function(){d=null;h.animate({top:"-="+a+"px",opacity:0},b,"swing",function(){f=false;h.css("display","none")})},c)})})})}var browser1=window.navigator.userAgent;browser1=browser1.toLowerCase();if(browser1.indexOf("ie")<=-1){document.write('<style type="text/css"> .topval{width:160px;float:left; position:absolute; margin:-35px 0 0 20px}</style>');document.write('<style type="text/css"> .topval2{float:left; position:absolute; margin:-35px 0 0 50px;}</style>');document.write('<style type="text/css"> .topval3{float:left; position:absolute; margin:-35px 0 0 50px;}</style>')}else{document.write('<style type="text/css"> .topval{margin-top:5px;margin-left:-100px}</style>');document.write('<style type="text/css"> .topval2{margin-top:5px;margin-left:-100px}</style>');document.write('<style type="text/css"> .topval3{margin-top:5px;margin-left:-100px;}</style>')}if(window.location.toString().toLowerCase().indexOf("calgary-airport-hotel-gallery")>-1){setTimeout("showTip()",4e3)}else if(window.location.toString().toLowerCase().indexOf("canmore-ab-hotel-gallery")>-1){setTimeout("showTip()",4e3)}else if(window.location.toString().toLowerCase().indexOf("canmore-ab-lodge-gallery")>-1){setTimeout("showTip()",4e3)}else if(window.location.toString().toLowerCase().indexOf("canmore-ab-resort-gallery")>-1){setTimeout("showTip()",4e3)}else{showTip()}
