chrome.tabs.getCurrent(function(b){function a(c){if(c){if(!openplugined){open_plugin()}}else{var e=location.href;if(e==undefined){e=""}var d="?chromeurl=";e=e.substr(e.indexOf(d)+d.length,e.length);var d="[escape]";var f=e.indexOf(d);if(f==0){e=e.substr(f+d.length,e.length);e=unescape(e)}if(e){document.title=e}}}if(b.active==undefined){chrome.tabs.getSelected(null,function(c){if(c.id==b.id){a(true)}else{a(false)}});return}a(b.active)});chrome.extension.onRequest.addListener(function(g,d,a){try{if(g.action=="selectchanged"){if(!openplugined){open_plugin()}else{var h=document.getElementById("embed1");if(!h){return}h.selectchanged("")}}else{if(g.action=="focuschanged"){var h=document.getElementById("embed1");if(!h){return}h.focuschanged("")}else{if(g.action=="navigate"){if(!openplugined){open_plugin()}var h=document.getElementById("embed1");if(!h){return}var c=g.nocookie;if(c==undefined){c=false}var f=g.openie;if(f==undefined){f="0"}if(g.newtab){var b="1"}else{var b="0"}var e=g.surl;e=get_url(e);get_cookie(e,function(i){if(i==undefined){i=""}e=escape(e);i=escape(i);if(c){i=""}h.navigate(e,i,b,navigator.userAgent,f,"")})}}}}catch(e){}});