testAccessible: function(){     this.accessible = false; if (dojo.render.html.ie || dojo.render.html.mozilla){ var div = document.createElement("div");  div.style.backgroundImage = "url(\"" + this.imgPath + "/tab_close.gif\")";  dojo.body().appendChild(div);    var bkImg = null; if (window.getComputedStyle  ) { var cStyle = getComputedStyle(div, ""); bkImg = cStyle.getPropertyValue("background-image"); }else{ bkImg = div.currentStyle.backgroundImage; } var bUseImgElem = false; if (bkImg != null && (bkImg == "none" || bkImg == "url(invalid-url:)" )) { this.accessible = true; } /* if(this.accessible == false && document.images){  var testImg = new Image(); if(testImg.fileSize) { testImg.src = this.imgPath + "/tab_close.gif"; if(testImg.fileSize < 0){ this.accessible = true; } } }*/ dojo.body().removeChild(div); } return this.accessible; /* Boolean */ }, 
},testAccessible:function(){ this.accessible=false; if(dojo.render.html.ie||dojo.render.html.mozilla){ var div=document.createElement("div"); div.style.backgroundImage="url(\""+this.imgPath+"/tab_close.gif\")"; dojo.body().appendChild(div); var _8fa=null; if(window.getComputedStyle){ var _8fb=getComputedStyle(div,""); _8fa=_8fb.getPropertyValue("background-image"); }else{ _8fa=div.currentStyle.backgroundImage; } var _8fc=false; if(_8fa!=null&&(_8fa=="none"||_8fa=="url(invalid-url:)")){ this.accessible=true; } dojo.body().removeChild(div); } return this.accessible; },setCheckAccessible:function(_8fd){ 
  testAccessible: function(){  // summary:   //    Always perform the accessibility check to determine if high   //    contrast mode is on or display of images are turned off. Currently only checks   //    in IE and Mozilla.     this.accessible = false; //default    if (dojo.render.html.ie || dojo.render.html.mozilla){      var div = document.createElement("div");      //div.style.color="rgb(153,204,204)";      div.style.backgroundImage = "url(\"" + this.imgPath + "/tab_close.gif\")";      // must add to hierarchy before can view currentStyle below      dojo.body().appendChild(div);      // in FF and IE the value for the current background style of the added div      // will be "none" in high contrast mode      // in FF the return value will be url(invalid-url:) when running over http       var bkImg = null;      if (window.getComputedStyle  ) {        var cStyle = getComputedStyle(div, "");         bkImg = cStyle.getPropertyValue("background-image");      }else{        bkImg = div.currentStyle.backgroundImage;      }      var bUseImgElem = false;      if (bkImg != null && (bkImg == "none" || bkImg == "url(invalid-url:)" )) {        this.accessible = true;      }      /*      if(this.accessible == false && document.images){        // test if images are off in IE        var testImg = new Image();        if(testImg.fileSize) {          testImg.src = this.imgPath + "/tab_close.gif";          if(testImg.fileSize < 0){             this.accessible = true;          }        }       }*/      dojo.body().removeChild(div);    }    return this.accessible; /* Boolean */  },
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js