Less than $1 a day is based on average monthly dues per day in a 30-day month for single club access only. Offer is not available (different pricing applies) in Tennessee, Signature Clubs and clubs in Canada. Memberships may require an initiation fee and/or annual fee as indicated on membership agreement, except as required by law. Single club pricing not available at all locations. Recurring monthly charges must be paid by electronic funds transfer from your checking or savings account or automatic transfer from an accepted credit or debit card. Must be 16 years of age or older (or at least 13 years of age and accompanied by a parent or legal guardian), sign membership agreement, and pay first and last months’ dues and fees for additional services purchased (if any) plus the initiation fee to join. This offer is not available in combination with other discounted rates, coupons or promotions. A parent/ legal guardian must sign membership agreement or guest waiver, as applicable, on behalf of members / guests under 18 years of age. Personal training and other services are subject to an additional agreement and requires payment of an additional fee. Offer is subject to change without notice and may end at any time. Additional terms and/or restrictions may apply.
'); $('.close').click(function () { $('#popuphome').hide(); //$('.container').show(); overlay.appendTo(document.body).remove(); return false; }); $('#popuphome').click(function () { $('#popuphome').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#xHome').click(function () { $('#popuphome').hide(); //$('.container').show(); overlay.appendTo(document.body).remove(); $('#VideoHome').each(function(){ var frame = document.getElementById("VideoHome"); frame.src = frame.src; }); return false; }); $('#clickHome').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('homevideo').style.display = 'none'; document.getElementById('popuphome').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popuphome"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("homevideo"); //$('.container').hide(); return false; }); $('#click1_mobHome').click(function () { overlay.show(); overlay.appendTo(document.body); // $('#popuphome').show(); //$('.container').hide(); document.getElementById('homevideo').style.display = 'none'; document.getElementById('popuphome').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); //$("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popuphome"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("homevideo"); return false; }); //**Video Home block ends //$(window).scroll(function() { // if ($(this).scrollTop() > 2300) { // var pop = $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val(); //document.getElementById('hdnpopup').value; // var vid = $("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val(); //document.getElementById('hdnvideo').value; // document.getElementById(vid).style.display = 'block'; // document.getElementById(pop).style.display = 'none'; // $('#VideoHome').each(function () { // var frame = document.getElementById("VideoHome"); // frame.src = frame.src; // }); // if ($("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val() != "") { // alert($(document).height()); // alert($(window).height()); // } // } //if ($(this).scrollTop()<1800) //{ // var pop = $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val(); //document.getElementById('hdnpopup').value; // var vid = $("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val(); //document.getElementById('hdnvideo').value; // document.getElementById(vid).style.display = 'block'; // document.getElementById(pop).style.display = 'none'; // $('#VideoHome').each(function(){ // var frame = document.getElementById("VideoHome"); // frame.src = frame.src; //}); //} //}); //**Video 1 block starts $('#popup1').hide(); //document.getElementById('popup1').style.display = "none"; $('#Video2').each(function () { var player = $f(this); player.api("unload"); return false; }); var overlay = jQuery('
'); $('.close').click(function () { $('#popup1').hide(); //document.getElementById('popup1').style.display = "none"; //$('.container').show(); overlay.appendTo(document.body).remove(); return false; }); $('#popup1').click(function () { $('#popup1').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#x1').click(function () { $('#popup1').hide(); //document.getElementById('popup1').style.display = "none"; //$('.container').show(); overlay.appendTo(document.body).remove(); $('#Video1').each(function(){ var frame = document.getElementById("Video1"); frame.src = frame.src; }); return false; }); $('#click1').click(function () { overlay.show(); overlay.appendTo(document.body); //$('#popup1').show(); document.getElementById('video1').setAttribute('style', 'display:none !important'); document.getElementById('popup1').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup1"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video1"); // document.getElementById('popup1').style.display = "block"; // $("#popup1").css("display", "block"); //$('.container').hide(); // $("#container").css("display", "none"); return false; }); $('#click_m1').click(function () { overlay.show(); overlay.appendTo(document.body); $('#popup1').show(); document.getElementById('mob1').setAttribute('style', 'display:none !important'); document.getElementById('popup1').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(1); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup1"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video1"); //document.getElementById('popup1').style.display = "block"; //$('.container').hide(); return false; }); //**Video 1 block ends //**Video 2 block starts $('#popup2').hide(); var overlay = jQuery('
'); $('.close').click(function () { $('#popup2').hide(); // $('.container').show(); //alert("Close2"); overlay.appendTo(document.body).remove(); return false; }); $('#popup2').click(function () { $('#popup2').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#x2').click(function () { $('#popup2').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); $('#Video2').each(function () { var player = $f(this); player.api("unload"); //var frame = document.getElementById("Video2").contentWindow.getElementById("player"); //frame.setAttribute('autoplay', 0); //frame.setAttribute('pause', 0); //frame.src = frame.src; //var player = $f(frame); //frame.api("pause"); }); return false; }); $('#click2').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_2').setAttribute('style', 'display:none !important'); document.getElementById('popup2').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup2"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_2"); return false; }); $('#learnMore').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_2').setAttribute('style', 'display:none !important'); document.getElementById('popup2').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup2"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_2"); // $('.container').hide(); return false; }); $('#learn_More').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob2').setAttribute('style', 'display:none !important'); document.getElementById('popup2').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup2"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_2"); // $('.container').hide(); return false; }); $('#click_m2').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob2').setAttribute('style', 'display:none !important'); document.getElementById('popup2').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(1); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup2"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_2"); return false; }); //**Video 2 block ends //**Video 3 block starts var overlay = jQuery('
'); $('#popup3').hide(); $('.close').click(function () { $('#popup3').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); return false; }); $('#popup3').click(function () { $('#popup3').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#x3').click(function () { $('#popup3').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); $('#Video3').each(function () { var frame = document.getElementById("Video3"); frame.src = frame.src; }); return false; }); $('#click3').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_3').setAttribute('style', 'display:none !important'); document.getElementById('popup3').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup3"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_3"); // $('.container').hide(); return false; }); $('#weightRoom').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_3').setAttribute('style', 'display:none !important'); document.getElementById('popup3').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup3"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_3"); // $('.container').hide(); return false; }); $('#click_m3').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob3').setAttribute('style', 'display:none !important'); document.getElementById('popup3').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(1); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup3"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_3"); // $('.container').hide(); return false; }); $('#weight_Room').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob3').setAttribute('style', 'display:none !important'); document.getElementById('popup3').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup3"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_3"); // $('.container').hide(); return false; }); //**Video 3 block ends //**Video 4 block starts var overlay = jQuery('
'); $('#popup4').hide(); $('.close').click(function () { $('#popup4').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); return false; }); $('#popup4').click(function () { $('#popup4').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#x4').click(function () { $('#popup4').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); $('#Video4').each(function () { var frame = document.getElementById("Video4"); frame.src = frame.src; }); return false; }); $('#click4').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_4').setAttribute('style', 'display:none !important'); document.getElementById('popup4').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup4"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_4"); // $('.container').hide(); return false; }); $('#poolAndSpa').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_4').setAttribute('style', 'display:none !important'); document.getElementById('popup4').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup4"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_4"); // $('.container').hide(); return false; }); $('#pool_And_Spa').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob4').setAttribute('style', 'display:none !important'); document.getElementById('popup4').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup4"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_4"); // $('.container').hide(); return false; }); $('#click_m4').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob4').setAttribute('style', 'display:none !important'); document.getElementById('popup4').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(1); //$("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup4"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_4"); // $('.container').hide(); return false; }); //**Video 4 block ends //**Video 5 block starts var overlay = jQuery('
'); $('#popup5').hide(); $('.close').click(function () { $('#popup5').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); return false; }); $('#popup5').click(function () { $('#popup5').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#x5').click(function () { $('#popup5').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); $('#Video5').each(function () { var frame = document.getElementById("Video5"); frame.src = frame.src; }); return false; }); $('#click5').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_5').setAttribute('style', 'display:none !important'); document.getElementById('popup5').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup5"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_5"); // $('.container').hide(); return false; }); $('#click_m5').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob5').setAttribute('style', 'display:none !important'); document.getElementById('popup5').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(1); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup5"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_5"); // $('.container').hide(); return false; }); //**Video 5 block ends //**Video 6 block starts var overlay = jQuery('
'); $('#popup6').hide(); $('.close').click(function () { $('#popup6').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); return false; }); $('#popup6').click(function () { $('#popup6').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#x6').click(function () { $('#popup6').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); $('#Video6').each(function () { var frame = document.getElementById("Video6"); frame.src = frame.src; }); return false; }); $('#click6').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_6').setAttribute('style', 'display:none !important'); document.getElementById('popup6').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup6"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_6"); // $('.container').hide(); return false; }); $('#click_m6').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob6').setAttribute('style', 'display:none !important'); document.getElementById('popup6').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(1); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup6"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_6"); // $('.container').hide(); return false; }); //**Video 6 block ends //**Location Map block starts $("path").hover( function () { ZoomInOnStates(this); }, function () { ZoomOutOnState(this); } ); //Used to zoom in the stares when hover over the text $("g text").hover(function () { var element = $("svg").find("#" + $(this).data("value")); ZoomInOnStates(element); }, function () { var element = $("svg").find("#" + $(this).data("value")); ZoomOutOnState(element); }); $("path").click(function () { var name; if ($(this).parent().attr('id') == "g1969") { name = "MI"; } else if ($(this).parent().attr('id') == "US-VA") { name = "VA"; } else { name = this.id.split('-')[1]; } __doPostBack('locationmap_'+name, ''); }); $('#btnZipCodeSumbit').click(function () { __doPostBack('locationSearch_'+$('#txtLocationZipCode').val(), ''); }) $('#btnZipSumbit').click(function () { __doPostBack('locationSearch_'+$('#txtZip').val(), ''); }) var txtzipcod = document.getElementById("txtLocationZipCode");txtzipcod.addEventListener("keydown", function (e) { if (e.keyCode === 13) { validate(e); }});function validate(e) { __doPostBack('locationSearch_'+$('#txtLocationZipCode').val(), '');} function ZoomInOnStates(element) { var className = $(element).attr("class"); $(element).attr("class", className + " " + "result_hover"); $('path:not(.result_hover)').css('opacity', '0.9'); $('.result_hover').css("transform", "scale(1.3, 1.3)"); } function ZoomOutOnState(element) { var className = $(element).attr("class"); $('.result_hover').css("transform", "scale(1, 1)"); $('path').not(".result_hover").css('opacity', '1'); $('.result_hover').css("-ms-transform", "scale(1, 1)") if (className.search(".result_hover") != -1) { $(element).attr("class", className.replace("result_hover", "")); } } //** Location Map block ends// var players = ['VideoHome']// $('.content').each(function () { // players.push({// player: new Vimeo.Player($(this).find("iframe").get(0)),// top: $(this).position().top,// status: "paused"// })// alert(JSON.stringify(players));//});//var viewportHeight = $(window).height();// $(window).on('scroll', function () { // var scrollPos = $(window).scrollTop();// for (var i = 0; i < players.length; i++) {// // alert();// // alert(players[i].status +'==='+players[i].top +'====='+ viewportHeight);// var elementFromTop = players[i].top - scrollPos;// var status = (elementFromTop > 0 && elementFromTop < players[i].top + viewportHeight) ? "play" : "pause";// // alert(elementFromTop > 0 && elementFromTop < players[i].top + viewportHeight);// if (players[i].status != status) {// players[i].status = status;// players[i].player[status]();// console.log(i, status);// }// }//}); });
'); $('.close').click(function () { $('#popuphome').hide(); //$('.container').show(); overlay.appendTo(document.body).remove(); return false; }); $('#popuphome').click(function () { $('#popuphome').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#xHome').click(function () { $('#popuphome').hide(); //$('.container').show(); overlay.appendTo(document.body).remove(); $('#VideoHome').each(function(){ var frame = document.getElementById("VideoHome"); frame.src = frame.src; }); return false; }); $('#clickHome').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('homevideo').style.display = 'none'; document.getElementById('popuphome').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popuphome"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("homevideo"); //$('.container').hide(); return false; }); $('#click1_mobHome').click(function () { overlay.show(); overlay.appendTo(document.body); // $('#popuphome').show(); //$('.container').hide(); document.getElementById('homevideo').style.display = 'none'; document.getElementById('popuphome').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); //$("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popuphome"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("homevideo"); return false; }); //**Video Home block ends //$(window).scroll(function() { // if ($(this).scrollTop() > 2300) { // var pop = $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val(); //document.getElementById('hdnpopup').value; // var vid = $("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val(); //document.getElementById('hdnvideo').value; // document.getElementById(vid).style.display = 'block'; // document.getElementById(pop).style.display = 'none'; // $('#VideoHome').each(function () { // var frame = document.getElementById("VideoHome"); // frame.src = frame.src; // }); // if ($("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val() != "") { // alert($(document).height()); // alert($(window).height()); // } // } //if ($(this).scrollTop()<1800) //{ // var pop = $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val(); //document.getElementById('hdnpopup').value; // var vid = $("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val(); //document.getElementById('hdnvideo').value; // document.getElementById(vid).style.display = 'block'; // document.getElementById(pop).style.display = 'none'; // $('#VideoHome').each(function(){ // var frame = document.getElementById("VideoHome"); // frame.src = frame.src; //}); //} //}); //**Video 1 block starts $('#popup1').hide(); //document.getElementById('popup1').style.display = "none"; $('#Video2').each(function () { var player = $f(this); player.api("unload"); return false; }); var overlay = jQuery('
'); $('.close').click(function () { $('#popup1').hide(); //document.getElementById('popup1').style.display = "none"; //$('.container').show(); overlay.appendTo(document.body).remove(); return false; }); $('#popup1').click(function () { $('#popup1').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#x1').click(function () { $('#popup1').hide(); //document.getElementById('popup1').style.display = "none"; //$('.container').show(); overlay.appendTo(document.body).remove(); $('#Video1').each(function(){ var frame = document.getElementById("Video1"); frame.src = frame.src; }); return false; }); $('#click1').click(function () { overlay.show(); overlay.appendTo(document.body); //$('#popup1').show(); document.getElementById('video1').setAttribute('style', 'display:none !important'); document.getElementById('popup1').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup1"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video1"); // document.getElementById('popup1').style.display = "block"; // $("#popup1").css("display", "block"); //$('.container').hide(); // $("#container").css("display", "none"); return false; }); $('#click_m1').click(function () { overlay.show(); overlay.appendTo(document.body); $('#popup1').show(); document.getElementById('mob1').setAttribute('style', 'display:none !important'); document.getElementById('popup1').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(1); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup1"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video1"); //document.getElementById('popup1').style.display = "block"; //$('.container').hide(); return false; }); //**Video 1 block ends //**Video 2 block starts $('#popup2').hide(); var overlay = jQuery('
'); $('.close').click(function () { $('#popup2').hide(); // $('.container').show(); //alert("Close2"); overlay.appendTo(document.body).remove(); return false; }); $('#popup2').click(function () { $('#popup2').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#x2').click(function () { $('#popup2').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); $('#Video2').each(function () { var player = $f(this); player.api("unload"); //var frame = document.getElementById("Video2").contentWindow.getElementById("player"); //frame.setAttribute('autoplay', 0); //frame.setAttribute('pause', 0); //frame.src = frame.src; //var player = $f(frame); //frame.api("pause"); }); return false; }); $('#click2').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_2').setAttribute('style', 'display:none !important'); document.getElementById('popup2').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup2"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_2"); return false; }); $('#learnMore').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_2').setAttribute('style', 'display:none !important'); document.getElementById('popup2').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup2"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_2"); // $('.container').hide(); return false; }); $('#learn_More').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob2').setAttribute('style', 'display:none !important'); document.getElementById('popup2').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup2"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_2"); // $('.container').hide(); return false; }); $('#click_m2').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob2').setAttribute('style', 'display:none !important'); document.getElementById('popup2').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(1); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup2"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_2"); return false; }); //**Video 2 block ends //**Video 3 block starts var overlay = jQuery('
'); $('#popup3').hide(); $('.close').click(function () { $('#popup3').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); return false; }); $('#popup3').click(function () { $('#popup3').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#x3').click(function () { $('#popup3').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); $('#Video3').each(function () { var frame = document.getElementById("Video3"); frame.src = frame.src; }); return false; }); $('#click3').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_3').setAttribute('style', 'display:none !important'); document.getElementById('popup3').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup3"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_3"); // $('.container').hide(); return false; }); $('#weightRoom').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_3').setAttribute('style', 'display:none !important'); document.getElementById('popup3').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup3"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_3"); // $('.container').hide(); return false; }); $('#click_m3').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob3').setAttribute('style', 'display:none !important'); document.getElementById('popup3').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(1); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup3"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_3"); // $('.container').hide(); return false; }); $('#weight_Room').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob3').setAttribute('style', 'display:none !important'); document.getElementById('popup3').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup3"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_3"); // $('.container').hide(); return false; }); //**Video 3 block ends //**Video 4 block starts var overlay = jQuery('
'); $('#popup4').hide(); $('.close').click(function () { $('#popup4').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); return false; }); $('#popup4').click(function () { $('#popup4').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#x4').click(function () { $('#popup4').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); $('#Video4').each(function () { var frame = document.getElementById("Video4"); frame.src = frame.src; }); return false; }); $('#click4').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_4').setAttribute('style', 'display:none !important'); document.getElementById('popup4').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup4"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_4"); // $('.container').hide(); return false; }); $('#poolAndSpa').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_4').setAttribute('style', 'display:none !important'); document.getElementById('popup4').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup4"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_4"); // $('.container').hide(); return false; }); $('#pool_And_Spa').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob4').setAttribute('style', 'display:none !important'); document.getElementById('popup4').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup4"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_4"); // $('.container').hide(); return false; }); $('#click_m4').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob4').setAttribute('style', 'display:none !important'); document.getElementById('popup4').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(1); //$("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup4"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_4"); // $('.container').hide(); return false; }); //**Video 4 block ends //**Video 5 block starts var overlay = jQuery('
'); $('#popup5').hide(); $('.close').click(function () { $('#popup5').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); return false; }); $('#popup5').click(function () { $('#popup5').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#x5').click(function () { $('#popup5').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); $('#Video5').each(function () { var frame = document.getElementById("Video5"); frame.src = frame.src; }); return false; }); $('#click5').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_5').setAttribute('style', 'display:none !important'); document.getElementById('popup5').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup5"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_5"); // $('.container').hide(); return false; }); $('#click_m5').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob5').setAttribute('style', 'display:none !important'); document.getElementById('popup5').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(1); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup5"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_5"); // $('.container').hide(); return false; }); //**Video 5 block ends //**Video 6 block starts var overlay = jQuery('
'); $('#popup6').hide(); $('.close').click(function () { $('#popup6').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); return false; }); $('#popup6').click(function () { $('#popup6').hide(); overlay.appendTo(document.body).remove(); return false; }); $('#x6').click(function () { $('#popup6').hide(); // $('.container').show(); overlay.appendTo(document.body).remove(); $('#Video6').each(function () { var frame = document.getElementById("Video6"); frame.src = frame.src; }); return false; }); $('#click6').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('video_6').setAttribute('style', 'display:none !important'); document.getElementById('popup6').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(0); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup6"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_6"); // $('.container').hide(); return false; }); $('#click_m6').click(function () { overlay.show(); overlay.appendTo(document.body); document.getElementById('mob6').setAttribute('style', 'display:none !important'); document.getElementById('popup6').style.display = 'block'; $("#ctl00_MainContent_defaultContent_ctl00_videoselectvalue").val($("#ctl00_MainContent_defaultContent_ctl00_scrollvalue").val()); $("#ctl00_MainContent_defaultContent_ctl00_indicator").val(1); // $("#ctl00_MainContent_defaultContent_ctl00_hdnpopup").val("popup6"); //$("#ctl00_MainContent_defaultContent_ctl00_hdnvideo").val("video_6"); // $('.container').hide(); return false; }); //**Video 6 block ends //**Location Map block starts $("path").hover( function () { ZoomInOnStates(this); }, function () { ZoomOutOnState(this); } ); //Used to zoom in the stares when hover over the text $("g text").hover(function () { var element = $("svg").find("#" + $(this).data("value")); ZoomInOnStates(element); }, function () { var element = $("svg").find("#" + $(this).data("value")); ZoomOutOnState(element); }); $("path").click(function () { var name; if ($(this).parent().attr('id') == "g1969") { name = "MI"; } else if ($(this).parent().attr('id') == "US-VA") { name = "VA"; } else { name = this.id.split('-')[1]; } __doPostBack('locationmap_'+name, ''); }); $('#btnZipCodeSumbit').click(function () { __doPostBack('locationSearch_'+$('#txtLocationZipCode').val(), ''); }) $('#btnZipSumbit').click(function () { __doPostBack('locationSearch_'+$('#txtZip').val(), ''); }) var txtzipcod = document.getElementById("txtLocationZipCode");txtzipcod.addEventListener("keydown", function (e) { if (e.keyCode === 13) { validate(e); }});function validate(e) { __doPostBack('locationSearch_'+$('#txtLocationZipCode').val(), '');} function ZoomInOnStates(element) { var className = $(element).attr("class"); $(element).attr("class", className + " " + "result_hover"); $('path:not(.result_hover)').css('opacity', '0.9'); $('.result_hover').css("transform", "scale(1.3, 1.3)"); } function ZoomOutOnState(element) { var className = $(element).attr("class"); $('.result_hover').css("transform", "scale(1, 1)"); $('path').not(".result_hover").css('opacity', '1'); $('.result_hover').css("-ms-transform", "scale(1, 1)") if (className.search(".result_hover") != -1) { $(element).attr("class", className.replace("result_hover", "")); } } //** Location Map block ends// var players = ['VideoHome']// $('.content').each(function () { // players.push({// player: new Vimeo.Player($(this).find("iframe").get(0)),// top: $(this).position().top,// status: "paused"// })// alert(JSON.stringify(players));//});//var viewportHeight = $(window).height();// $(window).on('scroll', function () { // var scrollPos = $(window).scrollTop();// for (var i = 0; i < players.length; i++) {// // alert();// // alert(players[i].status +'==='+players[i].top +'====='+ viewportHeight);// var elementFromTop = players[i].top - scrollPos;// var status = (elementFromTop > 0 && elementFromTop < players[i].top + viewportHeight) ? "play" : "pause";// // alert(elementFromTop > 0 && elementFromTop < players[i].top + viewportHeight);// if (players[i].status != status) {// players[i].status = status;// players[i].player[status]();// console.log(i, status);// }// }//}); });