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';
this.tooltipAjax = function(){
/* CONFIG */
xOffset = 10;
yOffset = 20;
// these 2 variable determine popup's distance from the cursor
// you might want to adjust to get the right result
/* END CONFIG */
$(".tooltipAjax").hover(function(e){
if ( this.t == undefined ) {
var $e = e;
$("body").append("");
$("#tooltip").css("top",($e.pageY - xOffset) + "px").css("left",($e.pageX + yOffset) + "px").fadeIn("fast");
//this.t = this.title;
var $t = this.title;
this.tt = $t;
this.title = "";
var $th = this;
$.ajax({
type : "GET",
url : "/controller/ajax/tooltip.ajax.php?abrev=" + $t,
success : function(data) {
$("#tooltip").html(data);
$th.t = data;
}
});
} else {
//this.t = this.title;
this.title = "";
$("body").append(""+ this.t +"
");
$("#tooltip").css("top",(e.pageY - xOffset) + "px").css("left",(e.pageX + yOffset) + "px").fadeIn("fast");
}
},
function(){
this.title = this.tt;
$("#tooltip").remove();
});
$(".tooltipAjax").mousemove(function(e){
$("#tooltip")
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px");
});
};
window.addEventListener("load", function() {
tooltipAjax();
}, false);
$(document).ready(function() {
$("#blog-comments form").on("submit", function(e) {
e.preventDefault();
$com = $("#blog-comments textarea").val();
var $userID = $("input[name=userID]");
$userID = $userID ? "&userID=" + $userID.val() : null;
if ( $com != "" ) {
$.ajax({
type : "POST",
url : window.location.href,
data : "comment=" + $com + $userID,
success : function() {
//$('Your comment has been sent for moderation.
').appendTo("#blog-comments form");
//$("#blog-comments form").fadeOut(500, function() { $(this).remove(); });
$("#blog-comments form").html('Your comment has been sent for moderation.
').fadeOut(6000);
}
});
} else {
alert('You haven\'t typed anything.');
}
});
$(".thumbsup, .thumbsdown").on("click", function() {
var $th = $(this);
var $aid = $th.parent().attr("id");
var $id = $aid.replace("thumbsID-", "");
var $href = window.location.href.split("#")[0].match(/[0-9]+$/g)[0];
var $vote = 1;
if ( $th.hasClass("thumbsdown") ) {
$vote = 0;
}
$.ajax({
type : "GET",
url : '/?page=blog&blogID=' + $href + '&bcomID=' + $id + '&vote=' + $vote,
success : function(data) {
if ( data == 'REGISTER' ) {
window.location.href = '/users-login';
} else if ( data == 'ERROR' ) {
} else {
$("#" + $aid + " .thumbsup").text(data.split("|")[0]);
$("#" + $aid + " .thumbsdown").text(data.split("|")[1]);
}
}
});
});
});
/*
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
(function($,p){var i,m=Array.prototype.slice,r=decodeURIComponent,a=$.param,c,l,v,b=$.bbq=$.bbq||{},q,u,j,e=$.event.special,d="hashchange",A="querystring",D="fragment",y="elemUrlAttr",g="location",k="href",t="src",x=/^.*\?|#.*$/g,w=/^.*\#/,h,C={};function E(F){return typeof F==="string"}function B(G){var F=m.call(arguments,1);return function(){return G.apply(this,F.concat(m.call(arguments)))}}function n(F){return F.replace(/^[^#]*#?(.*)$/,"$1")}function o(F){return F.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function f(H,M,F,I,G){var O,L,K,N,J;if(I!==i){K=F.match(H?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);J=K[3]||"";if(G===2&&E(I)){L=I.replace(H?w:x,"")}else{N=l(K[2]);I=E(I)?l[H?D:A](I):I;L=G===2?I:G===1?$.extend({},I,N):$.extend({},N,I);L=a(L);if(H){L=L.replace(h,r)}}O=K[1]+(H?"#":L||!K[1]?"?":"")+L+J}else{O=M(F!==i?F:p[g][k])}return O}a[A]=B(f,0,o);a[D]=c=B(f,1,n);c.noEscape=function(G){G=G||"";var F=$.map(G.split(""),encodeURIComponent);h=new RegExp(F.join("|"),"g")};c.noEscape(",/");$.deparam=l=function(I,F){var H={},G={"true":!0,"false":!1,"null":null};$.each(I.replace(/\+/g," ").split("&"),function(L,Q){var K=Q.split("="),P=r(K[0]),J,O=H,M=0,R=P.split("]["),N=R.length-1;if(/\[/.test(R[0])&&/\]$/.test(R[N])){R[N]=R[N].replace(/\]$/,"");R=R.shift().split("[").concat(R);N=R.length-1}else{N=0}if(K.length===2){J=r(K[1]);if(F){J=J&&!isNaN(J)?+J:J==="undefined"?i:G[J]!==i?G[J]:J}if(N){for(;M<=N;M++){P=R[M]===""?O.length:R[M];O=O[P]=M').hide().insertAfter("body")[0].contentWindow;q=function(){return a(n.document[c][l])};o=function(u,s){if(u!==s){var t=n.document;t.open().close();t[c].hash="#"+u}};o(a())}}m.start=function(){if(r){return}var t=a();o||p();(function s(){var v=a(),u=q(t);if(v!==t){o(t=v,u);$(i).trigger(d)}else{if(u!==t){i[c][l]=i[c][l].replace(/#.*/,"")+"#"+u}}r=setTimeout(s,$[d+"Delay"])})()};m.stop=function(){if(!n){r&&clearTimeout(r);r=0}};return m})()})(jQuery,this);
/*
* jQuery hashchange event - v1.3 - 7/21/2010
* http://benalman.com/projects/jquery-hashchange-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('