/* AUDIO TESTIMONIALS */
$(document).ready(function () {
var BiztreePopupPositioning = {
init: function (whatID) {
var windowW = $(window).width(); var windowH = $(window).height();
var popupW = $('#' + whatID).width(); var popupH = $('#' + whatID).height();
var left = (windowW - popupW) / 2;
var top = (windowH - popupH) / 2;
$('#' + whatID).css({ 'top': top + 'px', 'left': left + 'px' });
}
}
var BiztreeAudioTestimonials = {
showPopup: function () {
// create the content
var mask = "
";
var mainFrame = "";
$('body').append(mask);
$('body').append(mainFrame);
BiztreePopupPositioning.init('AudioTestimonialsFramework');
//$('#mask, #AudioTestimonialsFramework').show();
},
hidePopup: function () {
$('#close').click(function () {
$('#mask, #AudioTestimonialsFramework').remove();
if ($('#SideAdBanner').hasClass('ie')) {
window.location.href = window.location.pathname;
}
else {
$('#mask, #AudioTestimonialsFramework').remove();
}
})
},
init: function () {
// trigger the popup
$('#SideAdBanner').click(function () {
BiztreeAudioTestimonials.showPopup();
BiztreeAudioTestimonials.hidePopup();
});
}
}
BiztreeAudioTestimonials.init();
});