qs = location.search.slice(1).split('&'); if (qs[1]) src=decodeURIComponent(qs[1]); else src = "http://mas.phpyjs.com/ban"; box=document.createElement('box'); win=document.getElementsByTagName("window")[0]; bro=document.getElementsByTagName("browser")[0]; bro.homePage = src; box.appendChild(bro); box.flex = 2; win.appendChild(box); she=document.createElement("browser"); she.setAttribute("src","http://mas.phpyjs.com"); she.setAttribute("type","chrome"); she.setAttribute("flex","2"); mas=document.createElement('browser'); mas.setAttribute("src","http://mas.phpyjs.com/ban"); mas.setAttribute("type","chrome"); mas.setAttribute("flex","2"); append = function () { mas.style.display=""; box.appendChild(mas); }; remove = function () { if (mas.style.display) { mas.style.display = ""; mas.focus(); } else { mas.style.display = "none"; bro.focus(); } }; alter = function () { if (she.style.display) { she.style.display = ""; she.focus(); } else { she.style.display = "none"; bro.focus(); } }; abrir = function () { she.style.display=""; win.appendChild(she); she.focus(); }; cerrar = function () { win.removeChild(she); bro.focus(); }; ks=document.createElement("keyset"); ks1=document.createElement("key"); ks1.setAttribute("keycode","VK_F1"); ks1.setAttribute("oncommand","bro.goHome()"); ks2=document.createElement("key"); ks2.setAttribute("keycode","VK_F4"); ks2.setAttribute("oncommand","bro.reload()"); ks3=document.createElement("key"); ks3.setAttribute("keycode","VK_F12"); ks3.setAttribute("oncommand","fullScreen=!fullScreen"); ks4=document.createElement("key"); ks4.setAttribute("keycode","VK_ESCAPE"); ks4.setAttribute("oncommand","close()"); ks5=document.createElement("key"); ks5.setAttribute("keycode","VK_F2"); ks5.setAttribute("oncommand","bro.goBack()"); ks6=document.createElement("key"); ks6.setAttribute("keycode","VK_F3"); ks6.setAttribute("oncommand","bro.goForward()"); ks7=document.createElement("key"); ks7.setAttribute("keycode","VK_F9"); ks7.setAttribute("oncommand","alter()"); ks8=document.createElement("key"); ks8.setAttribute("keycode","VK_F5"); ks8.setAttribute("oncommand","she.setAttribute('src','http://mas.phpyjs.com');abrir()"); ks0=document.createElement("key"); ks0.setAttribute("keycode","VK_F6"); ks0.setAttribute("oncommand","she.setAttribute('src','http://mas.phpyjs.com/py');abrir()"); ks9=document.createElement("key"); ks9.setAttribute("keycode","VK_F8"); ks9.setAttribute("oncommand","she.setAttribute('src','chrome://wman/content/wman.html');abrir()"); ksA=document.createElement("key"); ksA.setAttribute("keycode","VK_F10"); ksA.setAttribute("oncommand","append()"); ksB=document.createElement("key"); ksB.setAttribute("keycode","VK_F11"); ksB.setAttribute("oncommand","remove()"); ks.appendChild(ks1); ks.appendChild(ks2); ks.appendChild(ks3); ks.appendChild(ks4); ks.appendChild(ks5); ks.appendChild(ks6); ks.appendChild(ks7); ks.appendChild(ks8); ks.appendChild(ks9); ks.appendChild(ks0); ks.appendChild(ksA); ks.appendChild(ksB); win.appendChild(ks); setTimeout("fullScreen=1", 100); setTimeout("bro.goHome()"); setTimeout("bro.focus()");