');
jQuery('#mounthood_modal_bg').fadeIn();
jQuery('.mounthood_message').remove();
var html='';
jQuery('body').append(html);
var popup=jQuery('body .mounthood_message').eq(0);
if(callback!=null){
MOUNTHOOD_STORAGE['message_callback']=callback;
jQuery('.mounthood_message_button').on('click', function(e){
"use strict";
var btn=jQuery(this).index();
callback(btn+1, popup);
MOUNTHOOD_STORAGE['message_callback']=null;
mounthood_message_destroy();
});
}
if(init!=null) init(popup);
var top=jQuery(window).scrollTop();
jQuery('body .mounthood_message').animate({top: top+Math.round((jQuery(window).height()-jQuery('.mounthood_message').height())/2), opacity: 1}, {complete: function (){
}});
if(delay > 0){
setTimeout(function(){ mounthood_message_destroy(); }, delay);
}
return popup;
}
function mounthood_message_destroy(){
"use strict";
var top=jQuery(window).scrollTop();
jQuery('#mounthood_modal_bg').fadeOut();
jQuery('.mounthood_message').animate({top: top-jQuery('.mounthood_message').height(), opacity: 0});
setTimeout(function(){ jQuery('#mounthood_modal_bg').remove(); jQuery('.mounthood_message').remove(); }, 500);
};