jQuery(document).ready(function(e){function i(){var r=e("#progress div.bar"),o=e("#progress").outerWidth(),s=e("#reindexProcessor")[0].contentWindow.indexProgress;return s||(s=0),r.animate({width:Math.ceil(s*o)+"px"},100),1==s?setTimeout(e.fn.colorbox.close,1e3):void setTimeout(i,100)}e("#errorlog").scrollTop(e("#errorlog").attr("scrollHeight"));e("#rebuild-index").click(function(){setTimeout(i,100),e.colorbox({title:$sys.indexing,innerWidth:"250",innerHeight:"50",html:'<div id="progress"><div class="bar"></div><div class="gloss"></div></div><iframe id="reindexProcessor" width="0" height="0" src="'+$sys.indexurl+'"></iframe>'})})});