//>>built
define("dijit/BackgroundIframe","require,./main,dojo/_base/config,dojo/dom-construct,dojo/dom-style,dojo/_base/lang,dojo/on,dojo/sniff,dojo/_base/window".split(","),function(h,d,i,j,e,f,k,c,l){c.add("bgIframe",c("ie")||c("mozilla"));var g=new function(){var b=[];this.pop=function(){var a;b.length?(a=b.pop(),a.style.display=""):(9>c("ie")?(a="<iframe src='"+(i.dojoBlankHtmlUrl||h.toUrl("dojo/resources/blank.html")||'javascript:""')+"' role='presentation' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>",
a=l.doc.createElement(a)):(a=j.create("iframe"),a.src='javascript:""',a.className="dijitBackgroundIframe",a.setAttribute("role","presentation"),e.set(a,"opacity",0.1)),a.tabIndex=-1);return a};this.push=function(a){a.style.display="none";b.push(a)}};d.BackgroundIframe=function(b){if(!b.id)throw Error("no id");if(c("bgIframe")){var a=this.iframe=g.pop();b.appendChild(a);7>c("ie")||c("quirks")?(this.resize(b),this._conn=k(b,"resize",f.hitch(this,function(){this.resize(b)}))):e.set(a,{width:"100%",height:"100%"})}};
f.extend(d.BackgroundIframe,{resize:function(b){this.iframe&&e.set(this.iframe,{width:b.offsetWidth+"px",height:b.offsetHeight+"px"})},destroy:function(){if(this._conn)this._conn.remove(),this._conn=null;this.iframe&&(g.push(this.iframe),delete this.iframe)}});return d.BackgroundIframe});