var a="";function qg(c,d,e,f,g){a=document.location.toString().toLowerCase();var h=new Object();h=GetRequest();var i;var j;i=h['lb'];if(c==0x0){if(a!="http://m.vmall.com/"){location.href="http://m.vmall.com/"};var k=document.getElementsByTagName("a");var l=0x0;var m="";for(var n=0x0;n<k.length;n++){if(d==""){if(k[n].innerHTML=="预约用户申购"){l=l+0x1;k[n].click()}}else{if(k[n].innerHTML==d){l=l+0x1;k[n].click()}}};if(l>0x0){var o=chrome.extension.connect({name:"qgks"});o.postMessage({joke:0x1})}};if(g!=0x0){document.title="窗口句柄:"+g.toString()};if(i=='0'){var k=chrome.extension.connect({name:"qgks"});k.postMessage({joke:0x0})};if(i=='1'){var k=chrome.extension.connect({name:"qgks"});k.postMessage({joke:0x1})};if(i=='4'){var k;k='4/'+h['ckjb'];var l=chrome.extension.connect({name:"qgks"});l.postMessage({joke:k})};if(i=='2'){var k="";k="2/"+h['key'];var l=chrome.extension.connect({name:"qgks"});l.postMessage({joke:k})};if(i=='3'){var k=chrome.extension.connect({name:"qgks"});k.postMessage({joke:0x2})};if(a.substr(0x0,0x15)=="http://www.vmall.com/"){location.href="http://m.vmall.com/"};if(a.substr(0x0,0x2f)=="https://ssl.ui.ptlogin2.yixun.com/cgi-bin/login"){if(f==0x0){var k,l;j="c:\\temp\\"+g.toString()+"_dl.txt";var m=readtext(j);k=m.split("/")[0x0];l=m.split("/")[0x1];document.getElementById('u').value=k;document.getElementById('p').value=l;document.getElementById('go').click();var n=chrome.extension.connect({name:"qgks"});n.postMessage({joke:0x3})}};if(a.substr(0x0,0x37)=="http://hwid1.vmall.com:8080/oauth2/portal/sdk_login.jsp"){if(f==0x0){var k,l;j="c:\\temp\\"+g.toString()+"_dl.txt";var m=readtext(j);k=m.split("/")[0x0];l=m.split("/")[0x1];document.getElementById('login_userName').value=k;document.getElementById('login_password').value=l;var n=chrome.extension.connect({name:"qgks"});n.postMessage({joke:0x3})}};if(a.substr(0x0,0x20)=="http://hwidq.vmall.com/quickcas/"){if(f==0x0){var k,l;j="c:\\temp\\"+g.toString()+"_dl.txt";var m=readtext(j);k=m.split("/")[0x0];l=m.split("/")[0x1];document.getElementById('login_userName').value=k;document.getElementById('login_password').value=l;var n=chrome.extension.connect({name:"qgks"});n.postMessage({joke:0x3})}}};var b=document.createElement("embed");b.setAttribute("type","application/x-npapi-file-io");document.documentElement.appendChild(b);function readtext(c){var d=c;return b.getTextFile(c)};function writetext(c,d){var e=c;if(b.fileExists(e)){b.removeFile(e)};b.saveTextFile(e,d)};function GetRequest(){var c=location.search;var d=new Object();if(c.indexOf("?")!=-0x1){var e=c.substr(0x1);strs=e.split("&");for(var f=0x0;f<strs.length;f++){d[strs[f].split("=")[0x0]]=DecodeURI(strs[f].split("=")[0x1],false)}};return d};var EncodeURI=function(c,d){if(d){var e=new Array();var f="";var g=new Array();for(var h=0x0;h<c.length;h++){var i=c.charCodeAt(h);f+=i;g=g.concat(i.toString().length)};e=e.concat(f);e=e.concat(g.join("O"));return e.join("N")}else{var e="";var f="!\"#$%&'()*+,/:;<=>?[]^`{|}~%";var g="";for(var h=0x0;h<c.length;h++){var i=c.charAt(h);var j=StringToAscii(i);g+=i+":"+j+"n";if(parseInt("0x"+j)>0x7f){e+=encodeURI(c.substr(h,0x1))}else{if(i==" ")e+="+";else if(f.indexOf(i)!=-0x1)e+="%"+j.toString(0x10);else e+=i}};return e}};var DecodeURI=function(c,d){if(d){var e=c.split("N");var f=e[0x0];var g;if(e[0x1]){g=e[0x1].split("O")}else{g.length=0x0};var h="";for(var i=0x0;i<g.length;i++){var j=parseInt(g[i]);h+=String.fromCharCode(f.substr(0x0,j));f=f.slice(j,f.length)};return h}else{var e="";for(var f=0x0;f<c.length;f++){var g=c.charAt(f);if(g=="+"){e+=" "}else if(g=="%"){var h=c.substring(f+0x1,f+0x3);if(parseInt("0x"+h)>0x7f){e+=decodeURI("%"+h.toString()+c.substring(f+0x3,f+0x9).toString());f+=0x8}else{e+=AsciiToString(parseInt("0x"+h));f+=0x2}}else{e+=g}};return e}};var StringToAscii=function(c){return c.charCodeAt(0x0).toString(0x10)};var AsciiToString=function(c){return String.fromCharCode(c)}