<!-- background-size-polyfill v0.2.0 | (c) 2012-2013 Louis-Rémi Babé | MIT License -->
<PUBLIC:COMPONENT lightWeight="true">
<PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="o.init()" />
<PUBLIC:ATTACH EVENT="ondocumentready" ONEVENT="o.init()" />
<PUBLIC:ATTACH EVENT="onpropertychange" ONEVENT="o.handlePropertychange()" />
<PUBLIC:ATTACH EVENT="ondetach" ONEVENT="o.restore()" />
<PUBLIC:ATTACH EVENT="onresize" FOR="window" ONEVENT="o.handleResize()" />
<PUBLIC:EVENT NAME="onbackgroundupdate" ID="updateEvent" />
<script type="text/javascript">
var o; (function(_1,_2){ var _3=/url\(["']?(.*?)["']?\)/,_4=/^\s\s*/,_5=/\s\s*$/,_6=/\s\s*/g,_7=/%$/,_8={top:0,left:0,bottom:1,right:1,center:0.5},_9=_1.document,_a="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",_b="background-size-polyfill",_c=function(){ },_d=100,_e,_f,_10,_11; var re=/MSIE ([0-9\.]+)/; var _13=re.exec(navigator.userAgent); var _14=0; if(_13&&_13.length>1){ _14=parseInt(_13[1]); } function init(){ if(_14>=9){ return true; } var _15=_9.createElement("div"),img=_9.createElement("img"),_17=_15.style,_18=_1.style,_19=_1.currentStyle,_1a=_1.bgsExpando,_1b=_1.firstChild; if(_1a){ if(_1a.restore){ _18.backgroundImage=_1a.restore.backgroundImage; _18.position=_1a.restore.position; _18.zIndex=_1a.restore.zIndex; } if(_1b&&(_1b.nodeName||"").toUpperCase()==="DIV"&&_1b.className===_b){ _1.removeChild(_1b); } } setStyles(_15); _15.className=_b; _17.top=_17.right=_17.bottom=_17.left=0; _17.position="fixed"; setStyles(img); img.alt=""; _15.appendChild(img); _1.insertBefore(_15,_1.firstChild); _1.bgsExpando=_1a={wrapper:_15,img:img,restore:{backgroundImage:_18.backgroundImage,position:_18.position,zIndex:_18.zIndex},current:{},next:null,processing:false,loadImg:null,display:false,changed:false,ignore:false,canFixed:_1.nodeName.toUpperCase()==="BODY"&&_15.offsetHeight>0}; _17.position="absolute"; if(_19.zIndex==="auto"){ _18.zIndex=0; } if(_19.position==="static"){ _18.position="relative"; } o={init:_c,handlePropertychange:handlePropertychange,restore:restore,handleResize:handleResize}; handlePropertychange(); } function setStyles(el){ var _1d=el.style; _1d.position="absolute"; _1d.display="block"; _1d.zIndex=-1; _1d.overflow="hidden"; _1d.visibility="inherit"; _1d.width=_1d.height=_1d.top=_1d.right=_1d.bottom=_1d.left=_1d.cursor="auto"; _1d.margin=_1d.padding=_1d.border=_1d.outline=_1d.minWidth=_1d.minHeight=0; _1d.background=_1d.maxWidth=_1d.maxHeight="none"; _1d.fontSize=_1d.lineHeight="1em"; } function getImageDimensions(_1e,src,_20){ var img; if(src){ img=_9.createElement("img"); img.onload=img.onerror=function(){ var _22=this.width,_23=this.height; if(_2.event.type==="error"){ _22=_23=0; } _1e.loadImg=this.onload=this.onerror=null; _20(_22,_23); }; img.src=src; }else{ img={callbackId:_2.setTimeout(function(){ _1e.loadImg=null; _20(0,0); },0)}; } _1e.loadImg=img; img=null; } function suspendPropertychange(_24){ var fn=o.handlePropertychange; o.handlePropertychange=_c; _24(); o.handlePropertychange=fn; } function refreshDisplay(_26,_27){ var _28=_26.currentStyle.display; if(_28!==_27.display){ _27.display=_28; _27.changed=true; } return _28!=="none"; } function takeSnapshot(_29,_2a){ var _2b=_29.style,_2c=_29.currentStyle,_2d=_2a.restore,_2e=normalizeCSSValue(_2c["background-size"]),_2f=_2e.split(" "),_30={innerWidth:_29.offsetWidth-(parseFloat(_2c.borderLeftWidth)||0)-(parseFloat(_2c.borderRightWidth)||0),innerHeight:_29.offsetHeight-(parseFloat(_2c.borderTopWidth)||0)-(parseFloat(_2c.borderBottomWidth)||0),size:_2e,sizeIsKeyword:_2e==="contain"||_2e==="cover",sizeX:_2f[0],sizeY:_2f.length>1?_2f[1]:"auto",posX:_2c.backgroundPositionX,posY:_2c.backgroundPositionY,attachment:_2c.backgroundAttachment,src:"",imgWidth:0,imgHeight:0}; if(!_30.sizeIsKeyword){ if(!((parseFloat(_30.sizeX)>=0||_30.sizeX==="auto")&&(parseFloat(_30.sizeY)>=0||_30.sizeY==="auto"))){ _30.sizeX=_30.sizeY="auto"; } if(_7.test(_30.sizeX)){ _30.sizeX=(_30.innerWidth*parseFloat(_30.sizeX)/100||0)+"px"; } if(_7.test(_30.sizeY)){ _30.sizeY=(_30.innerHeight*parseFloat(_30.sizeY)/100||0)+"px"; } } if(_30.posX in _8||_7.test(_30.posX)){ _30.posX=_8[_30.posX]||parseFloat(_30.posX)/100||0; } if(_30.posY in _8||_7.test(_30.posY)){ _30.posY=_8[_30.posY]||parseFloat(_30.posY)/100||0; } if((_3.exec(_2b.backgroundImage)||[])[1]===_a){ suspendPropertychange(function(){ _2b.backgroundImage=_2d.backgroundImage; }); }else{ _2d.backgroundImage=_2b.backgroundImage; } _30.src=(_3.exec(_2c.backgroundImage)||[])[1]; suspendPropertychange(function(){ _2b.backgroundImage="url("+_a+")"; }); return _30; } function normalizeCSSValue(_31){ return String(_31).replace(_4,"").replace(_5,"").replace(_6," "); } function processSnapshot(_32,_33){ var _34=_33.next; function loop(){ _f=_2.setTimeout(function(){ _33.processing=false; processSnapshot(_32,_33); },0); } if(!_33.processing&&_34){ _33.next=null; _33.processing=true; getImageDimensions(_33,_34.src,function(_35,_36){ _34.imgWidth=_35; _34.imgHeight=_36; if(isChanged(_33,_34)){ updateBackground(_32,_33,_34,loop); }else{ loop(); } }); } } function isChanged(_37,_38){ var _39=_37.current,_3a=false,_3b; if(_37.changed){ _37.changed=false; _3a=true; }else{ for(_3b in _38){ if(_38[_3b]!==_39[_3b]){ _3a=true; break; } } } return _3a; } function updateBackground(_3c,_3d,_3e,_3f){ var img=_3d.img,_41=img.style,_42=_3e.size,_43=_3e.innerWidth,_44=_3e.innerHeight,_45=_3e.imgWidth,_46=_3e.imgHeight,_47=_3e.posX,_48=_3e.posY,_49=typeof _47==="number",_4a=typeof _48==="number",_4b="none",_4c=0,top=0,_4e="auto",_4f="auto",px="px",_51="100%",_52,_53; if(_43&&_44&&_45&&_46){ _3d.wrapper.style.position=_3e.attachment==="fixed"&&_3d.canFixed?"fixed":"absolute"; img.src=_3e.src; if(_3e.sizeIsKeyword){ _52=_43/_44; _53=_45/_46; if((_42==="contain"&&_53>_52)||(_42==="cover"&&_52>_53)){ top=floorTowardsZero((_44-_43/_53)*_48)+px; _4e=_51; }else{ _4c=floorTowardsZero((_43-_44*_53)*_47)+px; _4f=_51; } _41.left=_49?_4c:_47; _41.top=_4a?top:_48; _41.width=_4e; _41.height=_4f; _4b="block"; }else{ _41.display="block"; _41.width=_3e.sizeX; _41.height=_3e.sizeY; _45=img.width; _46=img.height; if(_45&&_46){ _41.left=_49?floorTowardsZero((_43-_45)*_47)+px:_47; _41.top=_4a?floorTowardsZero((_44-_46)*_48)+px:_48; _4b="block"; } } } _41.display=_4b; _3d.current=_3e; _10=_2.setTimeout(function(){ _11=_2.setTimeout(_3f,0); updateEvent.fire(); },0); } function floorTowardsZero(_54){ var _55=_54<0; _54=Math.floor(Math.abs(_54)); return _55?-_54:_54; } function handlePropertychange(){ if(_14>=9){ return true; } var _56=_1.bgsExpando,_57=(_2.event||{}).propertyName,_58="style.backgroundImage"; if(_56.ignore){ _56.ignore=false; if(_57===_58){ return; } } if(_57===_58&&_1.style.backgroundImage){ _56.ignore=true; } if(refreshDisplay(_1,_56)){ _56.next=takeSnapshot(_1,_56); processSnapshot(_1,_56); } } function handleResize(){ if(_14>=9){ return true; } _2.clearTimeout(_e); _e=_2.setTimeout(handlePropertychange,_d); } function restore(){ if(_14>=9){ return true; } var _59=_1.bgsExpando,_5a,_5b,_5c; o={init:_c,handlePropertychange:_c,restore:_c,handleResize:_c}; _2.clearTimeout(_e); _2.clearTimeout(_f); _2.clearTimeout(_10); _2.clearTimeout(_11); try{ if(_59){ _5a=_59.loadImg; if(_5a){ _5a.onload=_5a.onerror=null; _2.clearTimeout(_5a.callbackId); } _5b=_1.style; _5c=_59.restore; if(_5b){ _5b.backgroundImage=_5c.backgroundImage; _5b.position=_5c.position; _5b.zIndex=_5c.zIndex; } _1.removeChild(_59.wrapper); } _1.bgsExpando=null; } catch(e){ } _1=_2=_9=_c=null; } o={init:_9.media!=="print"?init:_c,handlePropertychange:_c,restore:_c,handleResize:_c}; if(_1.readyState==="complete"){ o.init(); } })(element,window);
</script>
<script type="text/vbscript"></script>
</PUBLIC:COMPONENT>