var e=null;
(function(){var b,f,d=[],c=0;b=function(){};b.prototype={instantiateIf:function(g){return"_3S.NativeControls.Webbrowser"===g?new f:e}};f=function(){this.a=e};f.prototype={create:function(g,a,c,d,b){this.a=window.document.createElement("iframe");this.a.width=c;this.a.height=d;this.a.setAttribute("frameborder","0");WebvisuExtensionMgr.openControlRelative(this.a,g,a,c,d,b)},setVisibility:function(a){if(this.a===e)throw Error("Extension not created");this.a.style.visibility=a?"visible":"hidden"},move:function(a,
c,d,b){if(this.a===e)throw Error("Extension not created");this.a.style.left=a.toString()+"px";this.a.style.top=c.toString()+"px";this.a.style.width=d.toString()+"px";this.a.style.height=b.toString()+"px"},invoke:function(a,b){if(this.a===e)throw Error("Extension not created");if(0==a.indexOf("_3S.NativeControls.Webbrowser.Navigate"))return this.a.setAttribute("src",b[0]),d[d.length]=b[0],c=d.length-1,b[0];if(0==a.indexOf("_3S.NativeControls.Webbrowser.GoBack")){try{this.a.contentWindow.history.back()}catch(f){0<
c&&(c--,this.a.setAttribute("src",d[c]))}return!0}if(0==a.indexOf("_3S.NativeControls.Webbrowser.GoForward")){try{this.a.contentWindow.history.forward()}catch(h){c<d.length-1&&(c++,this.a.setAttribute("src",d[c]))}return!0}},destroy:function(){if(this.a===e)throw Error("Extension not created");window.clearInterval(this.c);this.a.parentNode.removeChild(this.a);this.b=this.a=e}};WebvisuExtensionMgr.register(new b);var a="BrowserControlExtensionInst";window[a]=new f;window.BrowserControlExtension_create=
window[a].create;window.BrowserControlExtension_setVisibility=window[a].setVisibility;window.BrowserControlExtension_setVisibility=window[a].setVisibility;window.BrowserControlExtension_move=window[a].move;window.BrowserControlExtension_invoke=window[a].invoke;window.BrowserControlExtension_destroy=window[a].destroy;a="test";window[a]=new b;window.test2=window[a].instantiateIf})();
