var config;function loadConfig(a){config=a;$(document).ready(init)}function openPopup(){var a=chrome.extension.getURL("popup.html?tabid="+config.tabId);window.open(a,"popup","height=380,width=560,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");dismiss()}function blockSite(){chrome.extension.sendRequest({command:"BlockSite",site:config.sitePattern});dismiss()}function dismiss(){chrome.extension.sendRequest({command:"DismissNotification"})}
function init(){$("#enable").click(openPopup);$("#close").click(dismiss);$("#block").click(blockSite);$("#close").text(config.closeMsg);$("#enable").text(config.enableMsg);$("#info").text(config.message);$("#block").text(config.blockMsg)}chrome.extension.sendRequest({command:"GetNotification"},loadConfig);
