var options_updateSavedFavouriteCount={dataType:"html",url:"/site/master.cfm?fuseaction=site-ajax.displaySearchMyBresicWhitney",type:"GET",async:true,cache:false,queue:true,success:function(responseHtml,textStatus){$("#myBresicWhitneyWrapper").animate({opacity:"hide"},{queue:"false",duration:1000,easing:"linear",complete:function(){$("#myBresicWhitneyWrapper").html(responseHtml);
$("#myBresicWhitneyWrapper").animate({opacity:"show"},{queue:"true",duration:1000,easing:"linear"});
}});},error:function(XMLHttpRequest,textStatus,errorThrown){alert("An error occured, please try again\n"+textStatus+" "+errorThrown);
}};function members_saveFavourite(pagePath,openDetail,e,propertyID,propertyType,nType,ntoKey,nfromKey,nReferer){bubbleHandler(e);
var options={dataType:"json",url:"/site/master.cfm?fuseaction=site-ajax.validateAuth",type:"GET",async:false,cache:false,success:function(response){if(response.retcode=="OK"){$.ajax(optionsSaveFavourite);
}else{subnav_show("site-ajax.displayLogin",1,"component","site-ajax.displayPopupSaveFavourite%26thisPagePath="+pagePath+"%26openDetail="+openDetail+"%26propertyID="+propertyID+"%26propertyType="+propertyType);
}},error:function(XMLHttpRequest,textStatus,errorThrown){alert("An error occured, please try again\n"+textStatus+" "+errorThrown);
}};var optionsSaveFavourite={dataType:"json",url:"/site/master.cfm?fuseaction=site-ajax.saveFavourite&propertyID="+propertyID+"&propertyType="+propertyType,type:"GET",beforeSend:function(){$(".favourite_wrapper_"+propertyID+" a").each(function(){$(this).css("display","none");
});$("div.favourite_loader_"+propertyID).each(function(){$(this).css("display","block");
});},success:function(response){if(response.retcode=="OK"){$("div.favourite_loader_"+response.retid).each(function(){$(this).css("display","none");
});$("a.favourite_"+response.retid).each(function(){$(this).css("display","block");
});$("a.nonfavourite_"+response.retid).each(function(){$(this).css("display","none");
});trackme(nType,ntoKey,nfromKey,nReferer);
members_myBW_addFavourite();
}else{$("div.favourite_loader_"+propertyID).each(function(){$(this).css("display","none");
});if(response.retmessage==""){alert("error");
}else{alert(response.retmessage);
}}},error:function(XMLHttpRequest,textStatus,errorThrown){alert(textStatus);
}};$.ajax(options);return false;
}function members_deleteFavourite(pagePath,openDetail,e,propertyID,propertyType){bubbleHandler(e);
var options={dataType:"json",url:"/site/master.cfm?fuseaction=site-ajax.validateAuth",type:"GET",async:false,cache:false,success:function(response){if(response.retcode=="OK"){$.ajax(optionsDeleteFavourite);
}else{subnav_show("site-ajax.displayLogin",1,"component","site-ajax.displayPopupDeleteFavourite%26propertyID="+propertyID+"%26propertyType="+propertyType);
}},error:function(XMLHttpRequest,textStatus,errorThrown){alert("An error occured, please try again\n"+textStatus+" "+errorThrown);
}};var optionsDeleteFavourite={dataType:"json",url:"/site/master.cfm?fuseaction=site-ajax.deleteFavourite&propertyID="+propertyID+"&propertyType="+propertyType,type:"GET",beforeSend:function(){$(".favourite_wrapper_"+propertyID+" a").each(function(){$(this).css("display","none");
});$("div.favourite_loader_"+propertyID).each(function(){$(this).css("display","block");
});},success:function(response){if(response.retcode=="OK"){$("div.favourite_loader_"+propertyID).each(function(){$(this).css("display","none");
});$("a.favourite_"+response.retid).each(function(){$(this).css("display","none");
});$("a.nonfavourite_"+response.retid).each(function(){$(this).css("display","block");
});members_myBW_minusFavourite();
}else{if(response.retmessage==""){alert("error");
}else{alert(response.retmessage);
}}},error:function(XMLHttpRequest,textStatus,errorThrown){alert(textStatus);
}};$.ajax(options);return false;
}function members_addToCalendar(propertyID,eventType,eventStartDate,eventEndDate,eventStartTime,eventEndTime,eventSummary,eventDescription,eventLocation,nType,ntoKey,nfromKey,nReferer){document.location.href="/site/master.cfm?fuseaction=site-page.addToCalendar&eventType="+eventType+"&startDate="+eventStartDate+"&endDate="+eventEndDate+"&startTime="+eventStartTime+"&endTime="+eventEndTime+"&summary="+eventSummary+"&description="+eventDescription+"&location="+eventLocation;
trackme(nType,ntoKey,nfromKey,nReferer);
return false;}function members_editComment(pagePath,openDetail,e,propertyID){bubbleHandler(e);
var options={dataType:"json",url:"/site/master.cfm?fuseaction=site-ajax.validateAuth",type:"GET",async:false,cache:false,success:function(response){if(response.retcode=="OK"){subnav_show("site-ajax.displayPopupEditComment&propertyID="+propertyID,0);
}else{subnav_show("site-ajax.displayLogin",1,"component","site-ajax.displayPopupEditComment%26thisPagePath="+pagePath+"%26openDetail="+openDetail+"%26propertyID="+propertyID);
}},error:function(XMLHttpRequest,textStatus,errorThrown){alert("An error occured, please try again\n"+textStatus+" "+errorThrown);
}};$.ajax(options);return false;
}function members_sendMMS(pagePath,propIDList,nType,ntoKey,nfromKey,nReferer){var options={dataType:"json",url:"/site/master.cfm?fuseaction=site-ajax.validateAuth",type:"GET",async:false,cache:false,timeout:30,success:function(response){if(response.retcode=="OK"){subnav_show("site-ajax.displayPopupFavouriteMMS&propIDList="+propIDList,0);
trackme(nType,ntoKey,nfromKey,nReferer);
}else{subnav_show("site-ajax.displayLogin",1,"component","site-ajax.displayPopupFavouriteMMS&propIDList="+propIDList+"%26thisPagePath="+pagePath,0);
}},error:function(XMLHttpRequest,textStatus,errorThrown){alert("An error occured, please try again\n"+textStatus+" "+errorThrown);
}};$.ajax(options);return false;
}function members_myBW_addSavedSearch(){var currentValue=$("#myBresicWhitneyWrapper #savedSearchValue #savedSearchCount").html();
var newValue=parseInt(currentValue)+1;
$("#myBresicWhitneyWrapper #savedSearchValue #savedSearchCount").html(newValue);
}function members_myBW_minusSavedSearch(){var currentValue=$("#myBresicWhitneyWrapper #savedSearchValue #savedSearchCount").html();
var newValue=parseInt(currentValue)-1;
$("#myBresicWhitneyWrapper #savedSearchValue #savedSearchCount").html(newValue);
}function members_myBW_addFavourite(){var currentValue=$("#myBresicWhitneyWrapper #favouritesValue #favouritesCount").html();
var newValue=parseInt(currentValue)+1;
$("#myBresicWhitneyWrapper #favouritesValue #favouritesCount").html(newValue);
}function members_myBW_minusFavourite(){var currentValue=$("#myBresicWhitneyWrapper #favouritesValue #favouritesCount").html();
var newValue=parseInt(currentValue)-1;
$("#myBresicWhitneyWrapper #favouritesValue #favouritesCount").html(newValue);
}