function smf_codeBoxFix(){for(var a=document.getElementsByTagName("code"),b=a.length-1;b>=0;b--)is_webkit&&a[b].offsetHeight<20?a[b].style.height=a[b].offsetHeight+20+"px":is_ff&&(a[b].scrollWidth>a[b].clientWidth||0==a[b].clientWidth)?a[b].style.overflow="scroll":"currentStyle"in a[b]&&"auto"==a[b].currentStyle.overflow&&(""==a[b].currentStyle.height||"auto"==a[b].currentStyle.height)&&(a[b].scrollWidth>a[b].clientWidth||0==a[b].clientWidth)&&0!=a[b].offsetHeight&&(a[b].style.height=a[b].offsetHeight+24+"px")}function smc_toggleImageDimensions(){var a=document.getElementsByTagName("IMG");for(oImage in a)void 0!=a[oImage].className&&-1!=a[oImage].className.indexOf("bbc_img resized")&&(a[oImage].style.cursor="pointer",a[oImage].onclick=function(){this.style.width=this.style.height="auto"==this.style.width?null:"auto"})}function smf_addButton(a,b,c){var d=document.getElementById(a),e=d.getElementsByTagName("span");if(e.length>0){var f=e[e.length-1];f.className=f.className.replace(/\s*last/,"position_holder")}var g=d.getElementsByTagName("ul")[0],h=document.createElement("li");setInnerHTML(h,'<a href="'+c.sUrl+'" '+("sCustom"in c?c.sCustom:"")+'><span class="last"'+("sId"in c?' id="'+c.sId+'"':"")+">"+c.sText+"</span></a>"),g.appendChild(h)}(is_ie&&!is_ie4||is_webkit||is_ff)&&addLoadEvent(smf_codeBoxFix),addLoadEvent(smc_toggleImageDimensions);var smf_addListItemHoverEvents=function(){for(var c=0;c<document.styleSheets.length;c++)for(var d=0;d<document.styleSheets[c].rules.length;d++)oCssRule=document.styleSheets[c].rules[d],-1!=oCssRule.selectorText.indexOf("LI:hover")&&(sNewSelector=oCssRule.selectorText.replace(/LI:hover/gi,"LI.iehover"),document.styleSheets[c].addRule(sNewSelector,oCssRule.style.cssText));var e=document.getElementsByTagName("LI");for(oListItem in e)e[oListItem].onmouseover=function(){this.className+=" iehover"},e[oListItem].onmouseout=function(){this.className=this.className.replace(new RegExp(" iehover\\b"),"")}};is_ie7down&&"attachEvent"in window&&window.attachEvent("onload",smf_addListItemHoverEvents);