
$(document).ready(function(){$("a.masquerade_link").click(function(){show_throbber();var theurl=this.href;var content="<div id='popup_header'><b>"+_('Masquerade Notice')+"</b></div><div id='popup_data'><p>"+_('You are about to masquerade as another user. If you choose to continue you will be logged out of your current account and logged in as the selected user. In the process of doing so, you may lose your admin privileges.')+"</p><a href='"+theurl+"' class='continue'>"+_('Continue')+"</a></div></div>";$("#child_popup_container").height("auto");$("#child_popup_container").width("auto");$("#child_popup_layer").height("auto");$("#child_popup_layer").width(300);hide_throbber();set_child_popup_content(content);center_child_popup();display_child_popup();$("a.continue").click(function(){get_ajax_data("masquerade",theurl);top.location=base_url;return false;});return false;});});