var MWJ_progBar=0;function getRefToDivNest(B,C){if(!C){C=document}if(document.layers){if(C.layers[B]){return C.layers[B]}else{for(var A=0,D;!D&&A<C.layers.length;A++){D=getRefToDivNest(B,C.layers[A].document)}return D}}if(document.getElementById){return document.getElementById(B)}if(document.all){return document.all[B]}return document[B]}function progressBar(A,G,F,I,B,E,D){MWJ_progBar++;this.id="MWJ_progBar"+MWJ_progBar;this.dir=D;this.width=B;this.height=E;this.amt=0;var C="";var H=document.getElementById("barText");H.style.position="absolute";H.style.height=E+"px";H.style.width=B+"px";H.style.bottom="40px";H.style.left=(623-B)/2+"px";C+=('<table id="progBarTable" style="margin: 0px 0px 0px 0px;" border="0" cellspacing="0" cellpadding="'+A+'"><tr><td bgcolor="'+G+'"><table border="0" cellspacing="0" cellpadding="0"><tr><td height="'+E+'" width="'+B+'" bgcolor="'+F+'">');if(document.layers){C+=('<ilayer height="'+E+'" width="'+B+'"><layer bgcolor="'+I+'" name="MWJ_progBar'+MWJ_progBar+'"></layer></ilayer>')}else{C+=('<div style="margin: 0px 0px 0px 0px;height:'+E+"px;width:"+B+'px;"><div style="position:absolute;margin: 0px 0px 0px 0px;top:0px;left:0px;height:0px;width:0;font-size:1px;background-color:'+I+';" id="MWJ_progBar'+MWJ_progBar+'"></div></div>')}C+=("</td></tr></table></td></tr></table>\n");H.innerHTML=C;this.setBar=resetBar;this.setCol=setColour}function resetBar(C,B){this.amt=(typeof (B)=="undefined")?C:B?(this.amt+C):(this.amt-C);if(isNaN(this.amt)){this.amt=0}if(this.amt>1){this.amt=1}if(this.amt<0){this.amt=0}var F=Math.round(this.width*((this.dir%2)?this.amt:1));var A=Math.round(this.height*((this.dir%2)?1:this.amt));var D=getRefToDivNest(this.id);if(!D){window.status="Progress: "+Math.round(100*this.amt)+"%";return }if(D.style){D=D.style;D.clip="rect(0px "+F+"px "+A+"px 0px)"}var E=document.childNodes?"px":0;D.width=F+E;D.pixelWidth=F;D.height=A+E;D.pixelHeight=A;if(D.resizeTo){D.resizeTo(F,A)}D.left=((this.dir!=3)?0:this.width-F)+E;D.top=((this.dir!=4)?0:this.height-A)+E}function setColour(A){var B=getRefToDivNest(this.id);if(B.style){B=B.style}B.bgColor=A;B.backgroundColor=A;B.background=A}function transProgressBar(A,H,F,I,C,E,D){document.getElementById("transparencyAdjust").innerHTML="";MWJ_progBar++;this.id="MWJ_progBar"+MWJ_progBar;this.dir=D;this.width=C;this.height=E;this.amt=0;var G="";var B=document.getElementById("transparencyAdjust");B.style.position="absolute";B.style.height=E+"px";B.style.width=C+"px";B.style.bottom="226px";B.style.left="273px";G='<table id="transProgBarTable" style="margin: 0px 0px 0px 0px;" border="0" cellspacing="0" cellpadding="'+A+'"><tr><td bgcolor="'+H+'"><table border="0" cellspacing="0" cellpadding="0"><tr><td height="'+E+'" width="'+C+'" bgcolor="'+F+'">';if(document.layers){G+='<ilayer height="'+E+'" width="'+C+'"><layer bgcolor="'+I+'" name="MWJ_progBar'+MWJ_progBar+'"></layer></ilayer>'}else{G+='<div style="margin: 0px 0px 0px 0px;height:'+E+"px;width:"+C+'px;"><div style="position:absolute;margin: 0px 0px 0px 0px;font-size:1px;background-color:'+I+';" id="MWJ_progBar'+MWJ_progBar+'"></div></div>'}G+="</td></tr></table></td></tr></table>\n";document.getElementById("transparencyAdjust").innerHTML=G;this.setBar=resetBar;this.setCol=setColour}