function aboutus(b,a){$("#headerMenuaboutus").attr("class","headermenuActive")};function contactus(b,a){$("#headerMenucontactus").attr("class","headermenuActive")};function index(b,a){$("#headerMenuindex").attr("class","headermenuActive")}function showVideo(){var a="http://player.vimeo.com/video/29005132?title=0&amp;byline=0&amp;portrait=0";$("#vimeoIframe").attr("src",a);$("#masterCover").show();$("#masterVimeo").show()}function hideVideo(){$("#masterCover").hide();$("#masterVimeo").hide()};function insurance(b,a){};function insuranceItem(b,a){$("#headerMenuinsurance").attr("class","headermenuActive");$(format("#{0}",a)).attr("class","insuranceTabActive")};function documentReady(){var js=$("meta[name=js]").attr("content");var xsl=$("meta[name=xsl]").attr("content");var xml=$("meta[name=xml]").attr("content");if(typeof eval(js)=="function"){var fname=format("{0}('{1}','{2}')",js,xsl,xml);eval(fname)}}function redirectPage(a){alert(a);window.location=a}function loadPage(a,b){$(a).load(b)}function animateImage(a,c,b){$(a).animate({width:c,height:b,borderWidth:"2px"},750)};function multimedia(b,a){$("#headerMenumultimedia").attr("class","headermenuActive")};function request(b,a){$("#headerMenurequest").attr("class","headermenuActive")};function skiresorts(b,a){$.ajax({url:"json.json",async:false,cache:false,success:jsonMap})}function jsonMap(g){alert(g);var l={zoom:8,center:new google.maps.LatLng(50.25423,-117),mapTypeId:google.maps.MapTypeId.ROADMAP};var j=new google.maps.Map($("#map_canvas")[0],l);var m=jQuery.parseJSON(g);try{for(var c in m.markers){var h=m.markers[c];alert(h.lat);var n=new google.maps.LatLng(h.lat,h.lng);var d=new google.maps.MarkerImage("images/skiresorts/"+h.image,new google.maps.Size(100,59),new google.maps.Point(0,0),new google.maps.Point(0,0));var o={coord:[0,0,100,59],type:"rect"};var b="<b>"+h.title+"</b><br/>";b+='url: <a href="'+h.url+'" target="_blank">'+h.url+"</a>";var k=new google.maps.Marker({position:n,icon:d,shape:o,zIndex:2,title:h.title,html:b});k.setMap(j);var f=h.title;var e=new google.maps.InfoWindow({content:"dummy..."});google.maps.event.addListener(k,"click",function(){e.setContent(this.html);e.open(j,this)})}}catch(a){alert(a)}};function isDefined(a){return(!(!(a||false)))}function isset(b){var a=!(!(b||false));if(a==false){return""}return b}function format(b){r_text=b;for(var a=0;a<=arguments.length-2;a++){r_text=r_text.replace(new RegExp("\\{"+a+"\\}","gi"),arguments[a+1])}return r_text}function openWindow(a){lo_window=window.open("","","resizable=yes,toolbar=yes,scrollbars=yes,fullscreen=no,height=600,width=800,top=50,left=25,screenX=10,screenY=50");lo_window.location.href=a;if(!lo_window.opener){lo_window.opener=self}}function loadPage(a,b){$(a).load(b)};function tour(b,a){};function tourItem(b,a){$("#headerMenutour").attr("class","headermenuActive");$(format("#{0}",a)).attr("class","tourTabActive")};function toursScheduled(b,a){$("#headerMenutour").attr("class","headermenuActive")};function whyus(b,a){$("#headerMenuwhyus").attr("class","headermenuActive")};

