在网站开发中不免因为各种兼容问题苦恼,针对兼容问题,其实IE给出了解决方案Google也给出了解决方案百度也应用了这种方案去解决IE的兼容问题?
百度源代码如下:
1 2 3 4 5 6百度一下,你就知道 7
可以打开百度,右键查看源码看下!我们可以看下文件头是否存在这样一行代码,这句话的意思是强制使用IE7模式来解析网页代码!
在这里送上几种IE使用模式:
1.强制使用IE5模式来解析
1
2.强制使用IE6模式来解析
1
3.强制使用IE7模式来解析的两种方式
1 2
4. 强制使用IE8模式来解析
1
5. Google Chrome Frame也可以让IE用上Chrome的引擎:
1
6.如果一个特定版本的IE支持所要求的兼容性模式多于一种,如下代码就是IE5和IE8两种模式:
1
除此之外,我们还可以设定网站服务器以指定预设兼容性模式
如 果服务器是自己的话,可以在服务器上定义一个自订标头来为它们的网站预设一个特定的文件兼容性模式。这个特定的方法取决于你的网站服务器。录入,下列的 web.config文件使Microsoft Internet Information Services (IIS)能定义一个自订标头以自动使用IE7 mode来编译所有网页。
另 外还有一起其他的解决方案,例如google的ie7 – js中是一个JavaScript库(解决IE与W3C标准的冲突的JS库),使微软的Internet Explorer的行为像一个Web标准兼容的浏览器,支持更多的W3C标准,支持CSS2、CSS3选择器。它修复了许多的HTML和CSS问题,并使 得透明PNG在IE5、IE6下正确显示。
使IE5,IE6兼容到IE7模式(推荐)
以下为google code的代码地址,但是被大天朝那个啥了,你懂得,所以得翻那个啥,你懂得,因此我将代码复制下来了,放在文章最后的代码框中了。
使IE5,IE6兼容到IE7模式(推荐)
使IE5,IE6,IE7兼容到IE8模式
使IE5,IE6,IE7,IE8兼容到IE9模式
那么怎么解决解决PNG显示问题,只需将透明png图片命名为 *-trans.png ,而美中不足的是,此方法对背景平铺(background-repeat)和背景(background-position)无法起到任何作用,默认会占满整个容器。当然你也可以使用《 IE6 PNG透明终极解决方案 》中所讲的方法。
还有一种有趣的方法
创建html5时发现这么一句话,如下:
1
这样写可以达到的效果是如果安装了GCF(Google Chrome Frame 谷歌内嵌浏览器框架的简称),则使用GCF来渲染页面,如果没安装GCF,则使用最高版本的IE内核进行渲染。这个插件可以让用户的IE浏览器外不变,但 用户在浏览网页时,实际上使用的是Google Chrome浏览器内核,而且支持IE6、7、8等多个版本的IE浏览器。
Google Code 代码下载
IE7.js
/* IE7/IE8.js - copyright 2004-2008, Dean Edwards */2 (function(){IE7={toString:function(){return"IE7 version 2.0 (beta)"}};var u=K();var v=/ie7_debug/.test(top.location.search);var w=IE7.appVersion=navigator.appVersion.match(/MSIE (/d/./d)/)[1];var x=document.compatMode!="CSS1Compat";var y,z,A;var B="!";var C=/^[/w/.]+[^:]*$/;function D(a,b){if(C.test(a))a=(b||"")+a;return a};function E(a,b){a=D(a,b);return a.slice(0,a.lastIndexOf("/")+1)};var F=document.scripts[document.scripts.length-1];try{eval(F.innerHTML)}catch(e){}var G=E(F.src);try{var H=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}var I={};function J(a,b){try{a=D(a,b);if(!I[a]){H.open("GET",a,false);H.send();if(H.status==0||H.status==200){I[a]=H.responseText}}}catch(e){}finally{return I[a]||""}};if(w<5.5){undefined=u();if("".replace(/^/,String)){var L=/(g|gi)$/;var M=String.prototype.replace;String.prototype.replace=function(a,b){if(typeof b=="function"){if(a&&a.constructor==RegExp){var c=a;var d=c.global;if(d==null)d=L.test(c);if(d)c=new RegExp(c.source)}else{c=new RegExp(bj(a))}var e,f=this,g="";while(f&&(e=c.exec(f))){g+=f.slice(0,e.index)+b.apply(this,e);f=f.slice(e.index+e[0].length);if(!d)break}return g+f}return M.apply(this,arguments)}}B="HTML:!";Array.prototype.pop=function(){if(this.length){var i=this[this.length-1];this.length--;return i}return undefined};Array.prototype.push=function(){for(var i=0;i2){var c=b;b={};b[c]=arguments[2]}var d=(typeof b=="function"?Function:Object).prototype;var i=V.length,c;if(W)while(c=V[--i]){var e=b[c];if(e!=d[c]){if(U.test(e)){bf(a,c,e)}else{a[c]=e}}}for(c in b)if(d[c]===undefined){var e=b[c];if(a[c]&&typeof e=="function"&&U.test(e)){bf(a,c,e)}else{a[c]=e}}}return a};function bf(c,d,e){var f=c[d];c[d]=function(){var a=this.base;this.base=f;var b=e.apply(this,arguments);this.base=a;return b}};function bg(a,b){if(!b)b=a;var c={};for(var i in a)c[i]=b[i];return c};function bh(c){var d=arguments;var e=new RegExp("%([1-"+arguments.length+"])","g");return String(c).replace(e,function(a,b){return b 1?2:0;var f=bQ.exec(e[i])||"if(0){";if(bM){f+=bh("if(e%1.nodeName!='!'){",bL)}var g=bO>1?bH:"";f+=bh(g+bI,bL);f+=Array(bi(f,//{/g).length+1).join("}");d+=f}eval(bh(bJ,bK)+bQ.unescape(d)+"return s?null:r}");bP[a]=_1}return bP[a](b||document,c)};var bu=w<6;IE7._2=1;IE7._3=function(a,b){var c=a.all[b]||null;if(!c||c.id==b)return c;for(var i=0;i +~,]|[^(]/+|^)([#.:/[])/g,bz=/(^|,)([^/s>+~])/g,bA=//s*([/s>+~(),]|^|$)/s*/g,bB=//s/*/s/g;var bC=bd.extend({constructor:function(a){this.base(a);this.cache={};this.sorter=new bd;this.sorter.add(/:not/([^)]*/)/,bd.IGNORE);this.sorter.add(/([ >](/*|[/w-]+))([^: >+~]*)(:/w+-child(/([^)]+/))?)([^: >+~]*)/,"$1$3$6$4")},ignoreCase:true,escape:function(a){return this.optimise(this.format(a))},format:function(a){return a.replace(bA,"$1").replace(bz,"$1 $2").replace(by,"$1*$2")},optimise:function(a){return this.sorter.exec(a.replace(bB,">* "))},parse:function(a){return this.cache[a]||(this.cache[a]=this.unescape(this.exec(this.escape(a))))},unescape:function(a){return bZ(a)}});var bD={"":"%1!=null","=":"%1=='%2'","~=":/(^| )%1( |$)/,"|=":/^%1(-|$)/,"^=":/^%1/,"$=":/%1$/,"*=":/%1/};var bE={"first-child":"!IE7._6(e%1)","link":"e%1.currentStyle['ie7-link']=='link'","visited":"e%1.currentStyle['ie7-link']=='visited'"};var bF="var p%2=0,i%2,e%2,n%2=e%1.";var bG="e%1.sourceIndex";var bH="var g="+bG+";if(!p[g]){p[g]=1;";var bI="r[r.length]=e%1;if(s)return e%1;";var bJ="var _1=function(e0,s){IE7._2++;var r=[],p={},reg=[%1],d=document;";var bK;var bL;var bM;var bN;var bO;var bP={};var bQ=new bC({" (//*|[//w-]+)#([//w-]+)":function(a,b,c){bM=false;var d="var e%2=IE7._3(d,'%4');if(e%2&&";if(b!="*")d+="e%2.nodeName=='%3'&&";d+="e%1==d||e%1.contains(e%2)){";if(bN)d+=bh("i%1=n%1.length;",bN);return bh(d,bL++,bL,b.toUpperCase(),c)}," (//*|[//w-]+)":function(a,b){bO++;bM=b=="*";var c=bF;c+=(bM&&bu)?"all":"getElementsByTagName('%3')";c+=";for(i%2=0;(e%2=n%2[i%2]);i%2++){";return bh(c,bL++,bN=bL,b.toUpperCase())},">(//*|[//w-]+)":function(a,b){var c=bN;bM=b=="*";var d=bF;d+=c?"children":"childNodes";if(!bM&&c)d+=".tags('%3')";d+=";for(i%2=0;(e%2=n%2[i%2]);i%2++){";if(bM){d+="if(e%2.nodeType==1){";bM=bu}else{if(!c)d+="if(e%2.nodeName=='%3'){"}return bh(d,bL++,bN=bL,b.toUpperCase())},"//+(//*|[//w-]+)":function(a,b){var c="";if(bM)c+="if(e%1.nodeName!='!'){";bM=false;c+="e%1=IE7._5(e%1);if(e%1";if(b!="*")c+="&&e%1.nodeName=='%2'";c+="){";return bh(c,bL,b.toUpperCase())},"~(//*|[//w-]+)":function(a,b){var c="";if(bM)c+="if(e%1.nodeName!='!'){";bM=false;bO=2;c+="while(e%1=e%1.nextSibling){if(e%1.ie7_adjacent==IE7._2)break;if(";if(b=="*"){c+="e%1.nodeType==1";if(bu)c+="&&e%1.nodeName!='!'"}else c+="e%1.nodeName=='%2'";c+="){e%1.ie7_adjacent=IE7._2;";return bh(c,bL,b.toUpperCase())},"#([//w-]+)":function(a,b){bM=false;var c="if(e%1.id=='%2'){";if(bN)c+=bh("i%1=n%1.length;",bN);return bh(c,bL,b)},"//.([//w-]+)":function(a,b){bM=false;bK.push(new RegExp("(^|//s)"+bj(b)+"(//s|$)"));return bh("if(e%1.className&®[%2].test(e%1.className)){",bL,bK.length-1)},"//[([//w-]+)//s*([^=]?=)?//s*([^//]]*)//]":function(a,b,c,d){var e=bw[b]||b;if(c){var f="e%1.getAttribute('%2',2)";if(!bv.test(b)){f="e%1.%3||"+f}b=bh("("+f+")",bL,b,e)}else{b=bh("IE7._4(e%1,'%2')",bL,b)}var g=bD[c||""];if(g&&g.source){bK.push(new RegExp(bh(g.source,bj(bQ.unescape(d)))));g="reg[%2].test(%1)";d=bK.length-1}return"if("+bh(g,b,d)+"){"},":([//w-]+)(//(([^)]+)//))?":function(a,b,c,d){return"if("+bh(bE[b]||"false",bL,d||"")+"){"}});var bR=/'/g,bS=/^/x01/;var bT=[];var bU=new bs({"":"","/*[^*]*//*+([^///][^*]*//*+)*///":"","@(namespace|import)[^;//n]+[;//n]":"","'(.|[^'])*'":bW,'"(.|[^"])*"':bW,"//s+":" "});function bV(a){return bU.exec(a)};function bW(c){return"/x01"+bT.push(c.replace(///([/da-fA-F]{1,4})/g,function(a,b){return"//u"+"0000".slice(b.length)+a}).slice(1,-1).replace(bR,"//'"))};function bX(a){return bS.test(a)?bT[a.slice(1)-1]:a};var bY=new bs({"//x01(//d+)":function(a,b){return bT[b-1]}});function bZ(a){return bY.exec(a)};var ca=[];function cb(a){bq(a);cc(window,"onresize",a)};function cc(a,b,c){a.attachEvent(b,c);ca.push(arguments)};function cd(a,b,c){try{a.detachEvent(b,c)}catch(ignore){}};cc(window,"onunload",function(){var a;while(a=ca.pop()){cd(a[0],a[1],a[2])}});function ce(a,b,c){if(!a.elements)a.elements={};if(c)a.elements[b.uniqueID]=b;else delete a.elements[b.uniqueID];return c};cc(window,"onbeforeprint",function(){if(!IE7.CSS.print)new cv("print");IE7.CSS.print.recalc()});var cf=/^/d+(px)?$/i;var cg=/^/d+%$/;var ch=function(a,b){if(cf.test(b))return parseInt(b);var c=a.style.left;var d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b||0;b=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return b};function ci(a){var b=document.createElement(a||"object");b.style.cssText="position:absolute;padding:0;display:block;border:none;clip:rect(0 0 0 0);left:-9999";b.ie7_anon=true;return b};var cj="ie7-";function ck(a){return a.currentStyle["ie7-position"]=="fixed"};function cl(a,b){return a.currentStyle[cj+b]||a.currentStyle[b]};function cm(a,b,c){if(a.currentStyle[cj+b]==null){a.runtimeStyle[cj+b]=a.currentStyle[b]}a.runtimeStyle[b]=c};var cn=/a(#[/w-]+)?(/.[/w-]+)?:(hover|active)/i;var co=//s*/{/s*/,cp=//s*/}/s*/,cq=//s*/,/s*/;var cr=/(.*)(:first-(line|letter))/;var cs=/UNKNOWN|([:.])/w+/1/;var ct=":link{ie7-link:link}:visited{ie7-link:visited}";var cu=document.styleSheets;IE7.CSS=new(bn.extend({parser:new bs,screen:"",print:"",styles:[],rules:[],pseudoClasses:w<7?"first//-child":"",dynamicPseudoClasses:{toString:function(){var a=[];for(var b in this)a.push(b);return a.join("|")}},init:function(){var a="^/x01[DISCUZ_RUN_0]quot;;var b=[];if(this.pseudoClasses)b.push(this.pseudoClasses);var c=this.dynamicPseudoClasses.toString();if(c)b.push(c);b=b.join("|");var d=w<7?["[>+~[(]|([:.])//w+//1"]:[];if(b)d.push(":("+b+")");this.UNKNOWN=new RegExp(d.join("|")||a,"i");var e=w<7?["//[[^//]]+//]|[^//s(//[]+//s*[+~]"]:[];var f=e.concat();if(b)f.push(":("+b+")");cx.COMPLEX=new RegExp(f.join("|")||a,"gi");if(c)e.push(":("+c+")");cy.COMPLEX=new RegExp(e.join("|")||a,"gi");cy.MATCH=new RegExp(c?"(.*):("+c+")(.*)":a,"i");this.createStyleSheet();this.refresh()},refresh:function(){this.styleSheet.cssText=ct+this.screen+this.print},getInlineStyles:function(){var a=document.getElementsByTagName("style"),b;for(var i=a.length-1;(b=a[i]);i--){if(!b.disabled&&!b.ie7){this.styles.push(b.innerHTML)}}},apply:function(){this.getInlineStyles();new cv("screen");this.trash()},addFix:function(a,b){this.parser.add(a,b)},recalc:function(){this.screen.recalc();var a=/ie7_recalc/d+/g;var b=ct.match(/[{,]/g).length;var c=b+(this.screen.cssText.match(//{/g)||"").length;var d=this.styleSheet.rules,e;var f,g,h,l,i,j,k,m;for(i=b;i /g,simple:function(a){return a.replace(this.CHILD," ").replace(this.COMPLEX,"").replace()}});var cy=cx.extend({constructor:function(a,b,c,d,e){this.attach=b||"*";this.dynamicPseudoClass=IE7.CSS.dynamicPseudoClasses[c];this.target=d;this.base(a,e)},recalc:function(){var a=bt(this.attach),b;for(var i=0;b=a[i];i++){var c=this.target?bt(this.target,b):[b];if(c.length)this.dynamicPseudoClass.apply(b,c,this)}}});var cz=X.extend({constructor:function(a,b){this.name=a;this.apply=b;this.instances={};IE7.CSS.dynamicPseudoClasses[a]=this},register:function(a){var b=a[2];a.id=b.id+a[0].uniqueID;if(!this.instances[a.id]){var c=a[1],j;for(j=0;j "){var c=""+a.tagName+">",d;while((d=a.nextSibling)&&d.outerHTML!=c){b.appendChild(d)}if(d)d.removeNode()}a.parentNode.replaceChild(b,a)},recalc:function(){for(var i=0;i *:"+(b=="marginTop"?"first":"last")+"-child",a,true);if(d&&d.currentStyle.styleFloat=="none"&&IE7.hasLayout(d)){collapseMargin(d,b);margin=_7(a,a.currentStyle[b]);childMargin=_7(d,d.currentStyle[b]);if(margin<0||childMargin<0){a.runtimeStyle[b]=margin+childMargin}else{a.runtimeStyle[b]=Math.max(childMargin,margin)}d.runtimeStyle[b]="0px"}}};function _7(a,b){return b=="auto"?0:ch(a,b)};var UNIT=/^[./d][/w%]*$/,AUTO=/^(auto|0cm)$/;var applyWidth,applyHeight;IE7.Layout.borderBox=function(a){applyWidth(a);applyHeight(a)};var fixWidth=function(e){applyWidth=function(a){if(!cg.test(a.currentStyle.width))f(a);collapseMargins(a)};function f(a,b){if(!a.runtimeStyle.fixedWidth){if(!b)b=a.currentStyle.width;a.runtimeStyle.fixedWidth=(UNIT.test(b))?Math.max(0,j(a,b)):b;cm(a,"width",a.runtimeStyle.fixedWidth)}};function g(a){if(!ck(a)){var b=a.offsetParent;while(b&&!IE7.hasLayout(b))b=b.offsetParent}return(b||A).clientWidth};function h(a,b){if(cg.test(b))return parseInt(parseFloat(b)/100*g(a));return ch(a,b)};var j=function(a,b){var c=a.currentStyle["box-sizing"]=="border-box";var d=0;if(x&&!c)d+=k(a)+l(a,"padding");else if(!x&&c)d-=k(a)+l(a,"padding");return h(a,b)+d};function k(a){return a.offsetWidth-a.clientWidth};function l(a,b){return h(a,a.currentStyle[b+"Left"])+h(a,a.currentStyle[b+"Right"])};ct+="*{minWidth:none;maxWidth:none;min-width:none;max-width:none}";layout.minWidth=function(a){if(a.currentStyle["min-width"]!=null){a.style.minWidth=a.currentStyle["min-width"]}if(ce(arguments.callee,a,a.currentStyle.minWidth!="none")){layout.boxSizing(a);f(a);m(a)}};eval("IE7.Layout.maxWidth="+String(layout.minWidth).replace(/min/g,"max"));function m(a){var b=a.getBoundingClientRect();var c=b.right-b.left;if(a.currentStyle.minWidth!="none"&&c<=j(a,a.currentStyle.minWidth)){a.runtimeStyle.width=j(a,a.currentStyle.minWidth)}else if(a.currentStyle.maxWidth!="none"&&c>=j(a,a.currentStyle.maxWidth)){a.runtimeStyle.width=j(a,a.currentStyle.maxWidth)}else{a.runtimeStyle.width=a.runtimeStyle.fixedWidth}};function n(a){if(ce(n,a,/^(fixed|absolute)$/.test(a.currentStyle.position)&&cl(a,"left")!="auto"&&cl(a,"right")!="auto"&&AUTO.test(cl(a,"width")))){o(a);IE7.Layout.boxSizing(a)}};IE7.Layout.fixRight=n;function o(a){var b=h(a,a.runtimeStyle._8||a.currentStyle.left);var c=g(a)-h(a,a.currentStyle.right)-b-l(a,"margin");if(parseInt(a.runtimeStyle.width)==c)return;a.runtimeStyle.width="";if(ck(a)||e||a.offsetWidth =5.5&&w<7){var cJ=/background(-image)?/s*:/s*([^/(};]*)url/(([^/)]+)/)([^;}]*)/;IE7.CSS.addFix(cJ,function(a,b,c,d,e){d=bX(d);return cG.test(d)?"filter:"+bh(cF,d,"crop")+";zoom:1;background"+b+":"+c+"none"+e:a});IE7.HTML.addRecalc("img,input",function(a){if(a.tagName=="INPUT"&&a.type!="image")return;cI(a);cc(a,"onpropertychange",function(){if(!cK&&event.propertyName=="src"&&a.src.indexOf(cD)==-1)cI(a)})});var cK=false;cc(window,"onbeforeprint",function(){cK=true;for(var i=0;i =7)return;IE7.CSS.addRecalc("position","fixed",_9,"absolute");IE7.CSS.addRecalc("background(-attachment)?","[^};]*fixed",_10);var $viewport=x?"body":"documentElement";function _11(){if(z.currentStyle.backgroundAttachment!="fixed"){if(z.currentStyle.backgroundImage=="none"){z.runtimeStyle.backgroundRepeat="no-repeat";z.runtimeStyle.backgroundImage="url("+cD+")"}z.runtimeStyle.backgroundAttachment="fixed"}_11=u};var _12=ci("img");function _13(a){return a?ck(a)||_13(a.parentElement):false};function _14(a,b,c){setTimeout("document.all."+a.uniqueID+".runtimeStyle.setExpression('"+b+"','"+c+"')",0)};function _10(a){if(ce(_10,a,a.currentStyle.backgroundAttachment=="fixed"&&!a.contains(z))){_11();bgLeft(a);bgTop(a);_15(a)}};function _15(a){_12.src=a.currentStyle.backgroundImage.slice(5,-2);var b=a.canHaveChildren?a:a.parentElement;b.appendChild(_12);setOffsetLeft(a);setOffsetTop(a);b.removeChild(_12)};function bgLeft(a){a.style.backgroundPositionX=a.currentStyle.backgroundPositionX;if(!_13(a)){_14(a,"backgroundPositionX","(parseInt(runtimeStyle.offsetLeft)+document."+$viewport+".scrollLeft)||0")}};eval(bm(bgLeft));function setOffsetLeft(a){var b=_13(a)?"backgroundPositionX":"offsetLeft";a.runtimeStyle[b]=getOffsetLeft(a,a.style.backgroundPositionX)-a.getBoundingClientRect().left-a.clientLeft+2};eval(bm(setOffsetLeft));function getOffsetLeft(a,b){switch(b){case"left":case"top":return 0;case"right":case"bottom":return A.clientWidth-_12.offsetWidth;case"center":return(A.clientWidth-_12.offsetWidth)/2;default:if(cg.test(b)){return parseInt((A.clientWidth-_12.offsetWidth)*parseFloat(b)/100)}_12.style.left=b;return _12.offsetLeft}};eval(bm(getOffsetLeft));function _9(a){if(ce(_9,a,ck(a))){cm(a,"position","absolute");cm(a,"left",a.currentStyle.left);cm(a,"top",a.currentStyle.top);_11();IE7.Layout.fixRight(a);_16(a)}};function _16(a,b){positionTop(a,b);positionLeft(a,b,true);if(!a.runtimeStyle.autoLeft&&a.currentStyle.marginLeft=="auto"&&a.currentStyle.right!="auto"){var c=A.clientWidth-getPixelWidth(a,a.currentStyle.right)-getPixelWidth(a,a.runtimeStyle._8)-a.clientWidth;if(a.currentStyle.marginRight=="auto")c=parseInt(c/2);if(_13(a.offsetParent))a.runtimeStyle.pixelLeft+=c;else a.runtimeStyle.shiftLeft=c}clipWidth(a);clipHeight(a)};function clipWidth(a){if(a.currentStyle.width!="auto"){var b=a.getBoundingClientRect();var c=a.offsetWidth-A.clientWidth+b.left-2;if(c>=0){c=Math.max(ch(a,a.currentStyle.width)-c,0);cm(a,"width",c)}}};eval(bm(clipWidth));function positionLeft(a,b){if(!b&&cg.test(a.currentStyle.width)){a.runtimeStyle.fixWidth=a.currentStyle.width}if(a.runtimeStyle.fixWidth){a.runtimeStyle.width=getPixelWidth(a,a.runtimeStyle.fixWidth)}if(b){if(!a.runtimeStyle.autoLeft)return}else{a.runtimeStyle.shiftLeft=0;a.runtimeStyle._8=a.currentStyle.left;a.runtimeStyle.autoLeft=a.currentStyle.right!="auto"&&a.currentStyle.left=="auto"}a.runtimeStyle.left="";a.runtimeStyle.screenLeft=getScreenLeft(a);a.runtimeStyle.pixelLeft=a.runtimeStyle.screenLeft;if(!b&&!_13(a.offsetParent)){_14(a,"pixelLeft","runtimeStyle.screenLeft+runtimeStyle.shiftLeft+document."+$viewport+".scrollLeft")}};eval(bm(positionLeft));function getScreenLeft(a){var b=a.offsetLeft,c=1;if(a.runtimeStyle.autoLeft){b=A.clientWidth-a.offsetWidth-getPixelWidth(a,a.currentStyle.right)}if(a.currentStyle.marginLeft!="auto"){b-=getPixelWidth(a,a.currentStyle.marginLeft)}while(a=a.offsetParent){if(a.currentStyle.position!="static")c=-1;b+=a.offsetLeft*c}return b};eval(bm(getScreenLeft));function getPixelWidth(a,b){return cg.test(b)?parseInt(parseFloat(b)/100*A.clientWidth):ch(a,b)};eval(bm(getPixelWidth));function _17(){var a=_10.elements;for(var i in a)_15(a[i]);a=_9.elements;for(i in a){_16(a[i],true);_16(a[i],true)}_18=0};var _18;cb(function(){if(!_18)_18=setTimeout(_17,0)})};var cN={backgroundColor:"transparent",backgroundImage:"none",backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",borderLeftWidth:0,height:null,marginTop:0,marginBottom:0,marginRight:0,marginLeft:0,width:"100%"};IE7.CSS.addRecalc("overflow","visible",function(a){if(a.parentNode.ie7_wrapped)return;if(IE7.Layout&&a.currentStyle["max-height"]!="auto"){IE7.Layout.maxHeight(a)}if(a.currentStyle.marginLeft=="auto")a.style.marginLeft=0;if(a.currentStyle.marginRight=="auto")a.style.marginRight=0;var b=document.createElement(B);b.ie7_wrapped=a;for(var c in cN){b.style[c]=a.currentStyle[c];if(cN[c]!=null){a.runtimeStyle[c]=cN[c]}}b.style.display="block";b.style.position="relative";a.runtimeStyle.position="absolute";a.parentNode.insertBefore(b,a);b.appendChild(a)});function cO(){var e="xx-small,x-small,small,medium,large,x-large,xx-large".split(",");for(var i=0;i /script>");document.all.__ready.onreadystatechange=function(){if(this.readyState=="complete"){this.removeNode();bo()}}})();
IE8.js
/* IE7/IE8.js - copyright 2004-2008, Dean Edwards */2 (function(){IE7={toString:function(){return"IE7 version 2.0 (beta)"}};var u=K();var v=/ie7_debug/.test(top.location.search);var w=IE7.appVersion=navigator.appVersion.match(/MSIE (/d/./d)/)[1];var x=document.compatMode!="CSS1Compat";var y,z,A;var B="!";var C=/^[/w/.]+[^:]*$/;function D(a,b){if(C.test(a))a=(b||"")+a;return a};function E(a,b){a=D(a,b);return a.slice(0,a.lastIndexOf("/")+1)};var F=document.scripts[document.scripts.length-1];try{eval(F.innerHTML)}catch(e){}var G=E(F.src);try{var H=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}var I={};function J(a,b){try{a=D(a,b);if(!I[a]){H.open("GET",a,false);H.send();if(H.status==0||H.status==200){I[a]=H.responseText}}}catch(e){}finally{return I[a]||""}};if(w<5.5){undefined=u();if("".replace(/^/,String)){var L=/(g|gi)$/;var M=String.prototype.replace;String.prototype.replace=function(a,b){if(typeof b=="function"){if(a&&a.constructor==RegExp){var c=a;var d=c.global;if(d==null)d=L.test(c);if(d)c=new RegExp(c.source)}else{c=new RegExp(bj(a))}var e,f=this,g="";while(f&&(e=c.exec(f))){g+=f.slice(0,e.index)+b.apply(this,e);f=f.slice(e.index+e[0].length);if(!d)break}return g+f}return M.apply(this,arguments)}}B="HTML:!";Array.prototype.pop=function(){if(this.length){var i=this[this.length-1];this.length--;return i}return undefined};Array.prototype.push=function(){for(var i=0;i2){var c=b;b={};b[c]=arguments[2]}var d=(typeof b=="function"?Function:Object).prototype;var i=V.length,c;if(W)while(c=V[--i]){var e=b[c];if(e!=d[c]){if(U.test(e)){bf(a,c,e)}else{a[c]=e}}}for(c in b)if(d[c]===undefined){var e=b[c];if(a[c]&&typeof e=="function"&&U.test(e)){bf(a,c,e)}else{a[c]=e}}}return a};function bf(c,d,e){var f=c[d];c[d]=function(){var a=this.base;this.base=f;var b=e.apply(this,arguments);this.base=a;return b}};function bg(a,b){if(!b)b=a;var c={};for(var i in a)c[i]=b[i];return c};function bh(c){var d=arguments;var e=new RegExp("%([1-"+arguments.length+"])","g");return String(c).replace(e,function(a,b){return b 1?2:0;var f=bQ.exec(e[i])||"if(0){";if(bM){f+=bh("if(e%1.nodeName!='!'){",bL)}var g=bO>1?bH:"";f+=bh(g+bI,bL);f+=Array(bi(f,//{/g).length+1).join("}");d+=f}eval(bh(bJ,bK)+bQ.unescape(d)+"return s?null:r}");bP[a]=_1}return bP[a](b||document,c)};var bu=w<6;IE7._2=1;IE7._3=function(a,b){var c=a.all[b]||null;if(!c||c.id==b)return c;for(var i=0;i +~,]|[^(]/+|^)([#.:/[])/g,bz=/(^|,)([^/s>+~])/g,bA=//s*([/s>+~(),]|^|$)/s*/g,bB=//s/*/s/g;var bC=bd.extend({constructor:function(a){this.base(a);this.cache={};this.sorter=new bd;this.sorter.add(/:not/([^)]*/)/,bd.IGNORE);this.sorter.add(/([ >](/*|[/w-]+))([^: >+~]*)(:/w+-child(/([^)]+/))?)([^: >+~]*)/,"$1$3$6$4")},ignoreCase:true,escape:function(a){return this.optimise(this.format(a))},format:function(a){return a.replace(bA,"$1").replace(bz,"$1 $2").replace(by,"$1*$2")},optimise:function(a){return this.sorter.exec(a.replace(bB,">* "))},parse:function(a){return this.cache[a]||(this.cache[a]=this.unescape(this.exec(this.escape(a))))},unescape:function(a){return bZ(a)}});var bD={"":"%1!=null","=":"%1=='%2'","~=":/(^| )%1( |$)/,"|=":/^%1(-|$)/,"^=":/^%1/,"$=":/%1$/,"*=":/%1/};var bE={"first-child":"!IE7._6(e%1)","link":"e%1.currentStyle['ie7-link']=='link'","visited":"e%1.currentStyle['ie7-link']=='visited'"};var bF="var p%2=0,i%2,e%2,n%2=e%1.";var bG="e%1.sourceIndex";var bH="var g="+bG+";if(!p[g]){p[g]=1;";var bI="r[r.length]=e%1;if(s)return e%1;";var bJ="var _1=function(e0,s){IE7._2++;var r=[],p={},reg=[%1],d=document;";var bK;var bL;var bM;var bN;var bO;var bP={};var bQ=new bC({" (//*|[//w-]+)#([//w-]+)":function(a,b,c){bM=false;var d="var e%2=IE7._3(d,'%4');if(e%2&&";if(b!="*")d+="e%2.nodeName=='%3'&&";d+="e%1==d||e%1.contains(e%2)){";if(bN)d+=bh("i%1=n%1.length;",bN);return bh(d,bL++,bL,b.toUpperCase(),c)}," (//*|[//w-]+)":function(a,b){bO++;bM=b=="*";var c=bF;c+=(bM&&bu)?"all":"getElementsByTagName('%3')";c+=";for(i%2=0;(e%2=n%2[i%2]);i%2++){";return bh(c,bL++,bN=bL,b.toUpperCase())},">(//*|[//w-]+)":function(a,b){var c=bN;bM=b=="*";var d=bF;d+=c?"children":"childNodes";if(!bM&&c)d+=".tags('%3')";d+=";for(i%2=0;(e%2=n%2[i%2]);i%2++){";if(bM){d+="if(e%2.nodeType==1){";bM=bu}else{if(!c)d+="if(e%2.nodeName=='%3'){"}return bh(d,bL++,bN=bL,b.toUpperCase())},"//+(//*|[//w-]+)":function(a,b){var c="";if(bM)c+="if(e%1.nodeName!='!'){";bM=false;c+="e%1=IE7._5(e%1);if(e%1";if(b!="*")c+="&&e%1.nodeName=='%2'";c+="){";return bh(c,bL,b.toUpperCase())},"~(//*|[//w-]+)":function(a,b){var c="";if(bM)c+="if(e%1.nodeName!='!'){";bM=false;bO=2;c+="while(e%1=e%1.nextSibling){if(e%1.ie7_adjacent==IE7._2)break;if(";if(b=="*"){c+="e%1.nodeType==1";if(bu)c+="&&e%1.nodeName!='!'"}else c+="e%1.nodeName=='%2'";c+="){e%1.ie7_adjacent=IE7._2;";return bh(c,bL,b.toUpperCase())},"#([//w-]+)":function(a,b){bM=false;var c="if(e%1.id=='%2'){";if(bN)c+=bh("i%1=n%1.length;",bN);return bh(c,bL,b)},"//.([//w-]+)":function(a,b){bM=false;bK.push(new RegExp("(^|//s)"+bj(b)+"(//s|$)"));return bh("if(e%1.className&®[%2].test(e%1.className)){",bL,bK.length-1)},"//[([//w-]+)//s*([^=]?=)?//s*([^//]]*)//]":function(a,b,c,d){var e=bw[b]||b;if(c){var f="e%1.getAttribute('%2',2)";if(!bv.test(b)){f="e%1.%3||"+f}b=bh("("+f+")",bL,b,e)}else{b=bh("IE7._4(e%1,'%2')",bL,b)}var g=bD[c||""];if(g&&g.source){bK.push(new RegExp(bh(g.source,bj(bQ.unescape(d)))));g="reg[%2].test(%1)";d=bK.length-1}return"if("+bh(g,b,d)+"){"},":([//w-]+)(//(([^)]+)//))?":function(a,b,c,d){return"if("+bh(bE[b]||"false",bL,d||"")+"){"}});var bR=/'/g,bS=/^/x01/;var bT=[];var bU=new bs({"":"","/*[^*]*//*+([^///][^*]*//*+)*///":"","@(namespace|import)[^;//n]+[;//n]":"","'(.|[^'])*'":bW,'"(.|[^"])*"':bW,"//s+":" "});function bV(a){return bU.exec(a)};function bW(c){return"/x01"+bT.push(c.replace(///([/da-fA-F]{1,4})/g,function(a,b){return"//u"+"0000".slice(b.length)+a}).slice(1,-1).replace(bR,"//'"))};function bX(a){return bS.test(a)?bT[a.slice(1)-1]:a};var bY=new bs({"//x01(//d+)":function(a,b){return bT[b-1]}});function bZ(a){return bY.exec(a)};var ca=[];function cb(a){bq(a);cc(window,"onresize",a)};function cc(a,b,c){a.attachEvent(b,c);ca.push(arguments)};function cd(a,b,c){try{a.detachEvent(b,c)}catch(ignore){}};cc(window,"onunload",function(){var a;while(a=ca.pop()){cd(a[0],a[1],a[2])}});function ce(a,b,c){if(!a.elements)a.elements={};if(c)a.elements[b.uniqueID]=b;else delete a.elements[b.uniqueID];return c};cc(window,"onbeforeprint",function(){if(!IE7.CSS.print)new cv("print");IE7.CSS.print.recalc()});var cf=/^/d+(px)?$/i;var cg=/^/d+%$/;var ch=function(a,b){if(cf.test(b))return parseInt(b);var c=a.style.left;var d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b||0;b=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return b};function ci(a){var b=document.createElement(a||"object");b.style.cssText="position:absolute;padding:0;display:block;border:none;clip:rect(0 0 0 0);left:-9999";b.ie7_anon=true;return b};var cj="ie7-";function ck(a){return a.currentStyle["ie7-position"]=="fixed"};function cl(a,b){return a.currentStyle[cj+b]||a.currentStyle[b]};function cm(a,b,c){if(a.currentStyle[cj+b]==null){a.runtimeStyle[cj+b]=a.currentStyle[b]}a.runtimeStyle[b]=c};var cn=/a(#[/w-]+)?(/.[/w-]+)?:(hover|active)/i;var co=//s*/{/s*/,cp=//s*/}/s*/,cq=//s*/,/s*/;var cr=/(.*)(:first-(line|letter))/;var cs=/UNKNOWN|([:.])/w+/1/;var ct=":link{ie7-link:link}:visited{ie7-link:visited}";var cu=document.styleSheets;IE7.CSS=new(bn.extend({parser:new bs,screen:"",print:"",styles:[],rules:[],pseudoClasses:w<7?"first//-child":"",dynamicPseudoClasses:{toString:function(){var a=[];for(var b in this)a.push(b);return a.join("|")}},init:function(){var a="^/x01[DISCUZ_RUN_1]quot;;var b=[];if(this.pseudoClasses)b.push(this.pseudoClasses);var c=this.dynamicPseudoClasses.toString();if(c)b.push(c);b=b.join("|");var d=w<7?["[>+~[(]|([:.])//w+//1"]:[];if(b)d.push(":("+b+")");this.UNKNOWN=new RegExp(d.join("|")||a,"i");var e=w<7?["//[[^//]]+//]|[^//s(//[]+//s*[+~]"]:[];var f=e.concat();if(b)f.push(":("+b+")");cx.COMPLEX=new RegExp(f.join("|")||a,"gi");if(c)e.push(":("+c+")");cy.COMPLEX=new RegExp(e.join("|")||a,"gi");cy.MATCH=new RegExp(c?"(.*):("+c+")(.*)":a,"i");this.createStyleSheet();this.refresh()},refresh:function(){this.styleSheet.cssText=ct+this.screen+this.print},getInlineStyles:function(){var a=document.getElementsByTagName("style"),b;for(var i=a.length-1;(b=a[i]);i--){if(!b.disabled&&!b.ie7){this.styles.push(b.innerHTML)}}},apply:function(){this.getInlineStyles();new cv("screen");this.trash()},addFix:function(a,b){this.parser.add(a,b)},recalc:function(){this.screen.recalc();var a=/ie7_recalc/d+/g;var b=ct.match(/[{,]/g).length;var c=b+(this.screen.cssText.match(//{/g)||"").length;var d=this.styleSheet.rules,e;var f,g,h,l,i,j,k,m;for(i=b;i /g,simple:function(a){return a.replace(this.CHILD," ").replace(this.COMPLEX,"").replace()}});var cy=cx.extend({constructor:function(a,b,c,d,e){this.attach=b||"*";this.dynamicPseudoClass=IE7.CSS.dynamicPseudoClasses[c];this.target=d;this.base(a,e)},recalc:function(){var a=bt(this.attach),b;for(var i=0;b=a[i];i++){var c=this.target?bt(this.target,b):[b];if(c.length)this.dynamicPseudoClass.apply(b,c,this)}}});var cz=X.extend({constructor:function(a,b){this.name=a;this.apply=b;this.instances={};IE7.CSS.dynamicPseudoClasses[a]=this},register:function(a){var b=a[2];a.id=b.id+a[0].uniqueID;if(!this.instances[a.id]){var c=a[1],j;for(j=0;j "){var c=""+a.tagName+">",d;while((d=a.nextSibling)&&d.outerHTML!=c){b.appendChild(d)}if(d)d.removeNode()}a.parentNode.replaceChild(b,a)},recalc:function(){for(var i=0;i *:"+(b=="marginTop"?"first":"last")+"-child",a,true);if(d&&d.currentStyle.styleFloat=="none"&&IE7.hasLayout(d)){collapseMargin(d,b);margin=_7(a,a.currentStyle[b]);childMargin=_7(d,d.currentStyle[b]);if(margin<0||childMargin<0){a.runtimeStyle[b]=margin+childMargin}else{a.runtimeStyle[b]=Math.max(childMargin,margin)}d.runtimeStyle[b]="0px"}}};function _7(a,b){return b=="auto"?0:ch(a,b)};var UNIT=/^[./d][/w%]*$/,AUTO=/^(auto|0cm)$/;var applyWidth,applyHeight;IE7.Layout.borderBox=function(a){applyWidth(a);applyHeight(a)};var fixWidth=function(e){applyWidth=function(a){if(!cg.test(a.currentStyle.width))f(a);collapseMargins(a)};function f(a,b){if(!a.runtimeStyle.fixedWidth){if(!b)b=a.currentStyle.width;a.runtimeStyle.fixedWidth=(UNIT.test(b))?Math.max(0,j(a,b)):b;cm(a,"width",a.runtimeStyle.fixedWidth)}};function g(a){if(!ck(a)){var b=a.offsetParent;while(b&&!IE7.hasLayout(b))b=b.offsetParent}return(b||A).clientWidth};function h(a,b){if(cg.test(b))return parseInt(parseFloat(b)/100*g(a));return ch(a,b)};var j=function(a,b){var c=a.currentStyle["box-sizing"]=="border-box";var d=0;if(x&&!c)d+=k(a)+l(a,"padding");else if(!x&&c)d-=k(a)+l(a,"padding");return h(a,b)+d};function k(a){return a.offsetWidth-a.clientWidth};function l(a,b){return h(a,a.currentStyle[b+"Left"])+h(a,a.currentStyle[b+"Right"])};ct+="*{minWidth:none;maxWidth:none;min-width:none;max-width:none}";layout.minWidth=function(a){if(a.currentStyle["min-width"]!=null){a.style.minWidth=a.currentStyle["min-width"]}if(ce(arguments.callee,a,a.currentStyle.minWidth!="none")){layout.boxSizing(a);f(a);m(a)}};eval("IE7.Layout.maxWidth="+String(layout.minWidth).replace(/min/g,"max"));function m(a){var b=a.getBoundingClientRect();var c=b.right-b.left;if(a.currentStyle.minWidth!="none"&&c<=j(a,a.currentStyle.minWidth)){a.runtimeStyle.width=j(a,a.currentStyle.minWidth)}else if(a.currentStyle.maxWidth!="none"&&c>=j(a,a.currentStyle.maxWidth)){a.runtimeStyle.width=j(a,a.currentStyle.maxWidth)}else{a.runtimeStyle.width=a.runtimeStyle.fixedWidth}};function n(a){if(ce(n,a,/^(fixed|absolute)$/.test(a.currentStyle.position)&&cl(a,"left")!="auto"&&cl(a,"right")!="auto"&&AUTO.test(cl(a,"width")))){o(a);IE7.Layout.boxSizing(a)}};IE7.Layout.fixRight=n;function o(a){var b=h(a,a.runtimeStyle._8||a.currentStyle.left);var c=g(a)-h(a,a.currentStyle.right)-b-l(a,"margin");if(parseInt(a.runtimeStyle.width)==c)return;a.runtimeStyle.width="";if(ck(a)||e||a.offsetWidth =5.5&&w<7){var cJ=/background(-image)?/s*:/s*([^/(};]*)url/(([^/)]+)/)([^;}]*)/;IE7.CSS.addFix(cJ,function(a,b,c,d,e){d=bX(d);return cG.test(d)?"filter:"+bh(cF,d,"crop")+";zoom:1;background"+b+":"+c+"none"+e:a});IE7.HTML.addRecalc("img,input",function(a){if(a.tagName=="INPUT"&&a.type!="image")return;cI(a);cc(a,"onpropertychange",function(){if(!cK&&event.propertyName=="src"&&a.src.indexOf(cD)==-1)cI(a)})});var cK=false;cc(window,"onbeforeprint",function(){cK=true;for(var i=0;i =7)return;IE7.CSS.addRecalc("position","fixed",_9,"absolute");IE7.CSS.addRecalc("background(-attachment)?","[^};]*fixed",_10);var $viewport=x?"body":"documentElement";function _11(){if(z.currentStyle.backgroundAttachment!="fixed"){if(z.currentStyle.backgroundImage=="none"){z.runtimeStyle.backgroundRepeat="no-repeat";z.runtimeStyle.backgroundImage="url("+cD+")"}z.runtimeStyle.backgroundAttachment="fixed"}_11=u};var _12=ci("img");function _13(a){return a?ck(a)||_13(a.parentElement):false};function _14(a,b,c){setTimeout("document.all."+a.uniqueID+".runtimeStyle.setExpression('"+b+"','"+c+"')",0)};function _10(a){if(ce(_10,a,a.currentStyle.backgroundAttachment=="fixed"&&!a.contains(z))){_11();bgLeft(a);bgTop(a);_15(a)}};function _15(a){_12.src=a.currentStyle.backgroundImage.slice(5,-2);var b=a.canHaveChildren?a:a.parentElement;b.appendChild(_12);setOffsetLeft(a);setOffsetTop(a);b.removeChild(_12)};function bgLeft(a){a.style.backgroundPositionX=a.currentStyle.backgroundPositionX;if(!_13(a)){_14(a,"backgroundPositionX","(parseInt(runtimeStyle.offsetLeft)+document."+$viewport+".scrollLeft)||0")}};eval(bm(bgLeft));function setOffsetLeft(a){var b=_13(a)?"backgroundPositionX":"offsetLeft";a.runtimeStyle[b]=getOffsetLeft(a,a.style.backgroundPositionX)-a.getBoundingClientRect().left-a.clientLeft+2};eval(bm(setOffsetLeft));function getOffsetLeft(a,b){switch(b){case"left":case"top":return 0;case"right":case"bottom":return A.clientWidth-_12.offsetWidth;case"center":return(A.clientWidth-_12.offsetWidth)/2;default:if(cg.test(b)){return parseInt((A.clientWidth-_12.offsetWidth)*parseFloat(b)/100)}_12.style.left=b;return _12.offsetLeft}};eval(bm(getOffsetLeft));function _9(a){if(ce(_9,a,ck(a))){cm(a,"position","absolute");cm(a,"left",a.currentStyle.left);cm(a,"top",a.currentStyle.top);_11();IE7.Layout.fixRight(a);_16(a)}};function _16(a,b){positionTop(a,b);positionLeft(a,b,true);if(!a.runtimeStyle.autoLeft&&a.currentStyle.marginLeft=="auto"&&a.currentStyle.right!="auto"){var c=A.clientWidth-getPixelWidth(a,a.currentStyle.right)-getPixelWidth(a,a.runtimeStyle._8)-a.clientWidth;if(a.currentStyle.marginRight=="auto")c=parseInt(c/2);if(_13(a.offsetParent))a.runtimeStyle.pixelLeft+=c;else a.runtimeStyle.shiftLeft=c}clipWidth(a);clipHeight(a)};function clipWidth(a){if(a.currentStyle.width!="auto"){var b=a.getBoundingClientRect();var c=a.offsetWidth-A.clientWidth+b.left-2;if(c>=0){c=Math.max(ch(a,a.currentStyle.width)-c,0);cm(a,"width",c)}}};eval(bm(clipWidth));function positionLeft(a,b){if(!b&&cg.test(a.currentStyle.width)){a.runtimeStyle.fixWidth=a.currentStyle.width}if(a.runtimeStyle.fixWidth){a.runtimeStyle.width=getPixelWidth(a,a.runtimeStyle.fixWidth)}if(b){if(!a.runtimeStyle.autoLeft)return}else{a.runtimeStyle.shiftLeft=0;a.runtimeStyle._8=a.currentStyle.left;a.runtimeStyle.autoLeft=a.currentStyle.right!="auto"&&a.currentStyle.left=="auto"}a.runtimeStyle.left="";a.runtimeStyle.screenLeft=getScreenLeft(a);a.runtimeStyle.pixelLeft=a.runtimeStyle.screenLeft;if(!b&&!_13(a.offsetParent)){_14(a,"pixelLeft","runtimeStyle.screenLeft+runtimeStyle.shiftLeft+document."+$viewport+".scrollLeft")}};eval(bm(positionLeft));function getScreenLeft(a){var b=a.offsetLeft,c=1;if(a.runtimeStyle.autoLeft){b=A.clientWidth-a.offsetWidth-getPixelWidth(a,a.currentStyle.right)}if(a.currentStyle.marginLeft!="auto"){b-=getPixelWidth(a,a.currentStyle.marginLeft)}while(a=a.offsetParent){if(a.currentStyle.position!="static")c=-1;b+=a.offsetLeft*c}return b};eval(bm(getScreenLeft));function getPixelWidth(a,b){return cg.test(b)?parseInt(parseFloat(b)/100*A.clientWidth):ch(a,b)};eval(bm(getPixelWidth));function _17(){var a=_10.elements;for(var i in a)_15(a[i]);a=_9.elements;for(i in a){_16(a[i],true);_16(a[i],true)}_18=0};var _18;cb(function(){if(!_18)_18=setTimeout(_17,0)})};var cN={backgroundColor:"transparent",backgroundImage:"none",backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",borderLeftWidth:0,height:null,marginTop:0,marginBottom:0,marginRight:0,marginLeft:0,width:"100%"};IE7.CSS.addRecalc("overflow","visible",function(a){if(a.parentNode.ie7_wrapped)return;if(IE7.Layout&&a.currentStyle["max-height"]!="auto"){IE7.Layout.maxHeight(a)}if(a.currentStyle.marginLeft=="auto")a.style.marginLeft=0;if(a.currentStyle.marginRight=="auto")a.style.marginRight=0;var b=document.createElement(B);b.ie7_wrapped=a;for(var c in cN){b.style[c]=a.currentStyle[c];if(cN[c]!=null){a.runtimeStyle[c]=cN[c]}}b.style.display="block";b.style.position="relative";a.runtimeStyle.position="absolute";a.parentNode.insertBefore(b,a);b.appendChild(a)});function cO(){var e="xx-small,x-small,small,medium,large,x-large,xx-large".split(",");for(var i=0;i =%2",a,b,e,f,"&&","%","==");if(g)h="!("+h+")";return h};bE={"link":"e%1.currentStyle['ie7-link']=='link'","visited":"e%1.currentStyle['ie7-link']=='visited'","checked":"e%1.checked","contains":"e%1.innerText.indexOf('%2')!=-1","disabled":"e%1.isDisabled","empty":"IE7._20(e%1)","enabled":"e%1.disabled===false","first-child":"!IE7._6(e%1)","lang":"IE7._19(e%1,'%2')","last-child":"!IE7._5(e%1)","only-child":"!IE7._6(e%1)&&!IE7._5(e%1)","target":"e%1.id==location.hash.slice(1)","indeterminate":"e%1.indeterminate"};IE7._21=function(a){if(a.rows){a.ie7_length=a.rows.length;a.ie7_lookup="rowIndex"}else if(a.cells){a.ie7_length=a.cells.length;a.ie7_lookup="cellIndex"}else if(a.ie7_indexed!=IE7._2){var b=0;var c=a.firstChild;while(c){if(c.nodeType==1&&c.nodeName!="!"){c.ie7_index=++b}c=c.nextSibling}a.ie7_length=b;a.ie7_lookup="ie7_index"}a.ie7_indexed=IE7._2;return a};var cQ=bQ[Z];var cR=cQ[cQ.length-1];cQ.length--;bQ.merge({":not//((//*|[//w-]+)?([^)]*)//)":function(a,b,c){var d=(b&&b!="*")?bh("if(e%1.nodeName=='%2'){",bL,b.toUpperCase()):"";d+=bQ.exec(c);return"if(!"+d.slice(2,-1).replace(//)/{if/(/g,"&&")+"){"},":nth(-last)?-child//(([^)]+)//)":function(a,b,c){bM=false;b=bh("e%1.parentNode.ie7_length",bL);var d="if(p%1!==e%1.parentNode)p%1=IE7._21(e%1.parentNode);";d+="var i=e%1[p%1.ie7_lookup];if(p%1.ie7_lookup!='ie7_index')i++;if(";return bh(d,bL)+cP(a,c,"i",b)+"){"}});cQ.push(cR);var cS="//([^)]*//)";if(IE7.CSS.pseudoClasses)IE7.CSS.pseudoClasses+="|";IE7.CSS.pseudoClasses+="before|after|last//-child|only//-child|empty|root|"+"not|nth//-child|nth//-last//-child|contains|lang".split("|").join(cS+"|")+cS;var cT=new cz("focus",function(a){var b=arguments;cc(a,"onfocus",function(){cT.unregister(b);cT.register(b)});cc(a,"onblur",function(){cT.unregister(b)});if(a==document.activeElement){cT.register(b)}});var cU=new cz("active",function(a){var b=arguments;cc(a,"onmousedown",function(){cU.register(b)})});cc(document,"onmouseup",function(){var a=cU.instances;for(var i in a)cU.unregister(a[i])});var cV=new cz("checked",function(a){if(typeof a.checked!="boolean")return;var b=arguments;cc(a,"onpropertychange",function(){if(event.propertyName=="checked"){if(a.checked)cV.register(b);else cV.unregister(b)}});if(a.checked)cV.register(b)});var cW=new cz("enabled",function(a){if(typeof a.disabled!="boolean")return;var b=arguments;cc(a,"onpropertychange",function(){if(event.propertyName=="disabled"){if(!a.isDisabled)cW.register(b);else cW.unregister(b)}});if(!a.isDisabled)cW.register(b)});var cX=new cz("disabled",function(a){if(typeof a.disabled!="boolean")return;var b=arguments;cc(a,"onpropertychange",function(){if(event.propertyName=="disabled"){if(a.isDisabled)cX.register(b);else cX.unregister(b)}});if(a.isDisabled)cX.register(b)});var cY=new cz("indeterminate",function(a){if(typeof a.indeterminate!="boolean")return;var b=arguments;cc(a,"onpropertychange",function(){if(event.propertyName=="indeterminate"){if(a.indeterminate)cY.register(b);else cY.unregister(b)}});cc(a,"onclick",function(){cY.unregister(b)})});var cZ=new cz("target",function(a){var b=arguments;if(!a.tabIndex)a.tabIndex=0;cc(document,"onpropertychange",function(){if(event.propertyName=="activeElement"){if(a.id==location.hash.slice(1))cZ.register(b);else cZ.unregister(b)}});if(a.id==location.hash.slice(1))cZ.register(b)});var da=/^attr/;var db=/^url/s*/(/s*([^)]*)/)$/;var dc={before0:"beforeBegin",before1:"afterBegin",after0:"afterEnd",after1:"beforeEnd"};var cw=cx.extend({constructor:function(a,b,c){this.position=b;var d=c.match(cw.CONTENT),e,f;if(d){d=d[1];e=d.split(//s+/);for(var i=0;(f=e[i]);i++){e[i]=da.test(f)?{attr:f.slice(5,-1)}:(f.charAt(0)=="'")?bX(f):bZ(f)}d=e}this.content=d;this.base(a,bZ(c))},init:function(){this.match=bt(this.selector);for(var i=0;i %4",MATCH:/(.*):(before|after).*/,count:0});bU.add(/::/,":");var dd=/^(submit|reset|button)$/;IE7.HTML.addRecalc("button,input",function(a){if(a.tagName=="BUTTON"){var b=a.outerHTML.match(/ value="([^"]*)"/i);a.runtimeStyle.value=(b)?b[1]:""}if(a.type=="submit"){cc(a,"onclick",function(){a.runtimeStyle.clicked=true;setTimeout("document.all."+a.uniqueID+".runtimeStyle.clicked=false",1)})}});IE7.HTML.addRecalc("form",function(b){cc(b,"onsubmit",function(){for(var a,i=0;a=b[i];i++){if(dd.test(a.type)&&!a.disabled&&!a.runtimeStyle.clicked){a.disabled=true;setTimeout("document.all."+a.uniqueID+".disabled=false",1)}else if(a.tagName=="BUTTON"&&a.type=="submit"){setTimeout("document.all."+a.uniqueID+".value='"+a.value+"'",1);a.value=a.runtimeStyle.value}}})});IE7.HTML.addRecalc("img",function(a){if(a.alt&&!a.title)a.title=""});IE7.CSS.addRecalc("border-spacing",cC,function(a){if(a.currentStyle.borderCollapse!="collapse"){a.cellSpacing=ch(a,a.currentStyle["border-spacing"])}});IE7.CSS.addRecalc("box-sizing","content-box",IE7.Layout.boxSizing);IE7.CSS.addRecalc("box-sizing","border-box",IE7.Layout.borderBox);IE7.CSS.addFix(/opacity/s*:/s*([/d.]+)/,function(a,b){return"zoom:1;filter:Alpha(opacity="+((b*100)||1)+")"});var de=/^image/i;IE7.HTML.addRecalc("object",function(a){if(de.test(a.type)){a.body.style.margin="0";a.body.style.padding="0";a.body.style.border="none";a.body.style.overflow="hidden";return a}});document.write("