﻿(function(a){a.fn.bgIframe=a.fn.bgiframe=function(b){if(a.browser.msie&&/6.0/.test(navigator.userAgent)){b=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},b||{});var d=function(e){return e&&e.constructor==Number?e+"px":e},c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+b.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(b.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(b.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":d(b.top))+";"+"left:"+(b.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(b.left))+";"+"width:"+(b.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":d(b.width))+";"+"height:"+(b.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":d(b.height))+";"+'"/>';return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(c),this.firstChild)}})}return this}})(jQuery);