var w3c=(document.getElementById)?true:false;var ie=(document.all)?true:false;var N=-1;function createBar(L,F,C,J,H,K,D,A,I,E){if(ie||w3c){var M='<div id="_xpbar'+(++N)+'" style="visibility:visible; position:relative; overflow:hidden; width:'+L+"px; height:"+F+"px; background-color:"+C+"; border-color:"+H+"; border-width:"+J+'px; border-style:solid; font-size:1px;">';M+='<span id="blocks'+N+'" style="left:-'+(F*2+1)+'px; position:absolute; font-size:1px">';for(i=0;i<A;i++){M+='<span style="background-color:'+K+"; left:-"+((F*i)+i)+"px; font-size:1px; position:absolute; width:"+F+"px; height:"+F+"px; ";M+=(ie)?"filter:alpha(opacity="+(100-i*(100/A))+")":"-Moz-opacity:"+((100-i*(100/A))/100);M+='"></span>';}M+="</span></div>";var G=document.getElementById("initProgressBarBox");G.innerHTML=M;var B=(ie)?document.all["blocks"+N]:document.getElementById("blocks"+N);B.bar=(ie)?document.all["_xpbar"+N]:document.getElementById("_xpbar"+N);B.blocks=A;B.N=N;B.w=L;B.h=F;B.speed=D;B.ctr=0;B.count=I;B.action=E;B.togglePause=togglePause;B.showBar=function(){this.bar.style.visibility="visible";};B.hideBar=function(){this.bar.style.visibility="hidden";};B.tid=setInterval("startBar("+N+")",D);return B;}}function createMultipleBar(M,G,C,K,I,L,D,A,J,F,E){if(ie||w3c){var O='<div id="_xpbar'+(++N)+'" style="visibility:visible; position:relative; overflow:hidden; width:'+M+"px; height:"+G+"px; background-color:"+C+"; border-color:"+I+"; border-width:"+K+'px; border-style:solid; font-size:1px;">';O+='<span id="blocks'+N+'" style="left:-'+(G*2+1)+'px; position:absolute; font-size:1px">';for(i=0;i<A;i++){O+='<span style="background-color:'+L+"; left:-"+((G*i)+i)+"px; font-size:1px; position:absolute; width:"+G+"px; height:"+G+"px; ";O+=(ie)?"filter:alpha(opacity="+(100-i*(100/A))+")":"-Moz-opacity:"+((100-i*(100/A))/100);O+='"></span>';}O+="</span></div>";var H=document.getElementById("initProgressBarBox"+E);H.innerHTML=O;var B=(ie)?document.all["blocks"+N]:document.getElementById("blocks"+N);B.bar=(ie)?document.all["_xpbar"+N]:document.getElementById("_xpbar"+N);B.blocks=A;B.N=N;B.w=M;B.h=G;B.speed=D;B.ctr=0;B.count=J;B.action=F;B.togglePause=togglePause;B.showBar=function(){this.bar.style.visibility="visible";};B.hideBar=function(){this.bar.style.visibility="hidden";};B.tid=setInterval("startBar("+N+")",D);return B;}}function startBar(bn){var t=(ie)?document.all["blocks"+bn]:document.getElementById("blocks"+bn);if(parseInt(t.style.left)+t.h+1-(t.blocks*t.h+t.blocks)>t.w){t.style.left=-(t.h*2+1)+"px";t.ctr++;if(t.ctr>=t.count){eval(t.action);t.ctr=0;}}else{t.style.left=(parseInt(t.style.left)+t.h+1)+"px";}}function togglePause(){if(this.tid==0){this.tid=setInterval("startBar("+this.N+")",this.speed);}else{clearInterval(this.tid);this.tid=0;}}function togglePause(){if(this.tid==0){this.tid=setInterval("startBar("+this.N+")",this.speed);}else{clearInterval(this.tid);this.tid=0;}}