OR
'
var $html = '
' + htmlInner + '
';
$($html).appendTo("body").show(500, function() {
$("#change_location a").on("click", function() {
$("#change_location").stop().hide(500, function() { $(this).remove(); });
});
$("#change_location button[name=change]").on("click", function() {
$val = $("#change_location input").val();
$.ajax({
type : "POST",
url : "/",
data : "userZipCode=" + $val,
success : function(data) {
GATrackEvents.trackEvent('GeoLocation', 'Compass', data == 'Error' ? 'Zip not found' : data );
window.location.reload(true);
}
});
});
$("#change_location button[name=getDetection]").on("click", function() {
$val = $("#change_location input").val();
$.ajax({
type : "POST",
url : "/",
data : "getDetection=1",
success : function(data) {
window.location.reload(true);
}
});
});
});
});
$(".change_user_location2").on("click", function(e) {
$('html, body').animate({scrollTop: 0}, 1000, function(){ });
$("#change_location2").stop().hide(500, function() { $(this).remove(); });
var $html = '
';
$($html).appendTo("body").show(500, function() {
$("#change_location2 a").on("click", function() {
$("#change_location2").stop().hide(500, function() { $(this).remove(); });
});
$("#change_location2 button[name=change]").on("click", function() {
$val = $("#change_location2 input").val();
$.ajax({
type : "POST",
url : "/",
data : "userZipCode=" + $val,
success : function(data) {
//$("#user_location_set").text(data);
//$("#change_location").hide(500, function() { $(this).remove(); });
window.location.reload(true);
}
});
});
});
});
$("#nearbycities li").each(function() {
var $th = $(this);
$th.on("click", function() {
window.location.href = $th.find("a").prop("href");
});
});
});
(function($){jQuery.fn.css2=jQuery.fn.css;jQuery.fn.css=function(){if(arguments.length)return jQuery.fn.css2.apply(this,arguments);var attr=['font-family','font-size','font-weight','font-style','color','text-transform','text-decoration','letter-spacing','word-spacing','line-height','text-align','vertical-align','direction','background-color','background-image','background-repeat','background-position','background-attachment','opacity','width','height','top','right','bottom','left','margin-top','margin-right','margin-bottom','margin-left','padding-top','padding-right','padding-bottom','padding-left','border-top-width','border-right-width','border-bottom-width','border-left-width','border-top-color','border-right-color','border-bottom-color','border-left-color','border-top-style','border-right-style','border-bottom-style','border-left-style','position','display','visibility','z-index','overflow-x','overflow-y','white-space','clip','float','clear','cursor','list-style-image','list-style-position','list-style-type','marker-offset'];var len=attr.length,obj={};for(var i=0;i
@media print{#'+id+'{display:none!important}}');data.clonetbl.children().remove();$this.data(ns,data);$(window).bind('resize.'+ns,function(){$.each(['thfloathead','thfloatfoot'],function(i,ns){var data=$this.data(ns);if(!data)
return;var thw=[];$("tr",data.srcblock).children().each(function(){thw.push($(this).width());});data.thwidths=thw;$this.data(ns,data);$this.thfloat('_scroll',ns,$(data.settings.attachment));});}).resize();var a=$(settings.attachment).bind('scroll.'+ns,function(){$this.thfloat('_scroll',ns,this);});$this.thfloat('_scroll',ns,a);break;}
return $this;},refresh:function(side){var $this=$(this);$.each(['head','foot'],function(i,s){if(side&&side!=s)
return;var ns='thfloat'+s,data=$this.data(ns);if(data)
$this.thfloat('_scroll',ns,data.settings.attachment);});},resize:function(side){var $this=$(this);$.each(['head','foot'],function(i,s){if(side&&side!=s)
return;var ns='thfloat'+s,data=$this.data(ns);if(!data||!data.active)
return;var thw=[];$("tr",data.srcblock).children().each(function(){thw.push($(this).width());});var $el=$(data.settings.attachment),heightOffset=$.browser.mozilla||$.browser.opera||$.browser.msie?-(($this.attr('cellspacing')||0)*2):0,edgeheight=s=='foot'?((!$el.offset()?$el.height():$el.innerHeight())-data.srcblock.outerHeight()+heightOffset):0,edge=!$el.offset()?($el.scrollTop()+edgeheight):($el.offset().top+edgeheight);data.clonetbl.css({top:edge+'px',left:$this.offset().left+"px",width:$this.width()+'px'});$('tr',data.cloneblk).children().each(function(i){$(this).css({width:thw[i]+'px',maxWidth:thw[i]+'px'});});data.thwidths=thw;$this.data(ns,data);});},destroy:function(side){var $this=this;$.each(['thfloathead','thfloatfoot'],function(i,ns){var data=$this.data(ns);if(!data||(side&&('thfloat'+side)!=ns))
return;$(data.settings.attachment).unbind('.'+ns);$(window).unbind('.'+ns);data.clonetbl.remove();data.cloneblk&&data.cloneblk.remove();$this.removeData(ns);});return $this;},_scroll:function(ns,element){var $this=this,$el=$(element);var data=$this.data(ns);if(!data)
return;var heightOffset=$.browser.mozilla||$.browser.opera||$.browser.msie?-(($this.attr('cellspacing')||0)*2):0,edgeheight=data.settings.side=='foot'?((!$el.offset()?$el.height():$el.innerHeight())-data.srcblock.outerHeight()+heightOffset):0,edge=!$el.offset()?($el.scrollTop()+edgeheight):($el.offset().top+edgeheight),beyond=data.settings.side=='foot'?((!data.settings.sticky&&data.srcblock.offset().top=edge))):((!data.settings.sticky&&data.srcblock.offset().top>edge)||(!data.oppblock?false:(data.oppblock.offset().top<=edge+data.srcblock.outerHeight())));if(!data.active){if(!beyond){data.active=true;data.clonetbl.css({display:($this.is(':visible')?'table':'none'),top:edge+'px',left:$this.offset().left+"px",marginTop:'0',marginBottom:'0',width:$this.width()+'px'});data.cloneblk=data.srcblock.clone(true);data.cloneblk.addClass('thfloat');data.cloneblk.css(data.srcblock.css());data.cloneblk.children().remove();$("tr",data.srcblock).each(function(){var tr=$(this).clone(true).css($(this).css());tr.children().remove();$("td,th",this).each(function(){tr.append($(this).clone(true).css($(this).css()));});data.cloneblk.append(tr);});data.cloneblk.appendTo(data.clonetbl);$this.thfloat('resize',data.settings.side);data.settings.onShow&&data.settings.onShow.apply(this,[data.clonetbl,data.cloneblk]);}}
else{if(data.clonetbl.is(':visible')!=$this.is(':visible'))
data.clonetbl.css({display:($this.is(':visible')?'table':'none')});if(beyond){data.settings.onHide&&data.settings.onHide.apply(this,[data.clonetbl,data.cloneblk]);data.active=false;data.cloneblk.remove();data.cloneblk=null;data.clonetbl.css({display:'none'});}
else
$this.thfloat('resize',data.settings.side);}
$this.data(ns,data);}};$.fn.thfloat=function(method){if(methods[method])
return methods[method].apply(this,Array.prototype.slice.call(arguments,1));else if(typeof method==='object'||!method)
return methods.init.apply(this,arguments);else
$.error('Method '+method+' does not exist on jQuery.thfloat');};})(jQuery);
$(document).ready(function() {
$(".theadFloat").thfloat();
});
$(function(){
// Check the initial Poistion of the Sticky Header
if($('#show_reviews').length) {
var stickyHeaderTop = $('#show_reviews').offset().top;
}
$(window).scroll(function(){
if( $(window).scrollTop()+50 > stickyHeaderTop ) {
$('#show_reviews').css({position: 'fixed', top: '31px', 'margin-left': '580px'});
} else {
$('#show_reviews').css({position: 'absolute', 'margin-top': '10px', 'margin-left': '580px','top':'auto'});
}
if( $(window).scrollTop() >= 1350){
$(".theadFloat").thfloat('destroy');
}else{
$(".theadFloat").thfloat();
}
});
});
$(document).ready(function(){
if ( screen.width <= 1024 ){
// locations
$("#mobile_menu_icon").click(function(){
if ( $('body').hasClass('nav-left-open') ){
$('body').removeClass('nav-left-open');
} else {
$('body').addClass('nav-left-open');
$('body').removeClass('nav-right-open');
//$('html, body').animate({scrollTop: 0}, 1000, function(){ });
$('#left').css('height', (screen.height - 50)+'px' );
$('#left').animate({scrollTop: 0}, 1, function(){ }); // scroll to top
}
});
//menu
$("#mobile_menu_icon_second").click(function(){
if ( $('body').hasClass('nav-right-open') ){
$('body').removeClass('nav-right-open');
} else {
$('body').addClass('nav-right-open');
$('body').removeClass('nav-left-open');
}
});
$("#lsearch").click(function(){
$("#simple_search").show();
$('body').removeClass('nav-left-open').removeClass('nav-right-open');
});
$("#clsearch").click(function(){
$("#simple_search").hide();
});
$(".m_signup_tabs a").click(function(){
var rel = $(this).attr('rel');
$(".m_signup_tabs a").removeClass('sel');
$(this).addClass('sel');
$(".plan").removeClass('on').addClass('off');
$(rel).removeClass('off').addClass('on');
$(rel).trigger('click');
});
$('#crumb a').each(function() {
var text = $(this).text();
$(this).text(text.replace('Massage parlors', ''));
});
//$('.left-head a').each(function(index){$(this).html($(this).html().replace("Massage Parlors","Massage Parlors"));});
$(window).scroll(function(e){
scrollPosition = $(window).scrollTop();
if ( scrollPosition > 50 ) {
$('body').addClass("fix-breadcrumb");
} else {
$('body').removeClass("fix-breadcrumb");
}
});
$('#bottom_crumb').remove();
}
});
var mobileVersion = '0';