function showLoadingBar()
{var i,j=0;
 bar01.style.pixelTop=bar02.style.pixelTop=document.body.clientHeight/2-504;
 bar01.style.pixelLeft=bar02.style.pixelLeft=document.body.clientWidth/2-105;
 for(i=0;i<document.images.length;i++) if(document.images[i].readyState=="complete") j++;
 if (document.images.length>0) j=Math.floor(j*100/document.images.length+0.00001); else j=100;
 loadingBarLeft.style.width=j*2+1; loadingBarRight.style.width=201-j*2;
 loadingBarMsg.innerText="Loading.....("+j+"%)..."
 if(j==100) {loadingBarMsg.innerText="資料載入完成"; setTimeout("hideLoadingBar();",2000);}
 else {setTimeout("showLoadingBar()",50);}
}
function hideLoadingBar() {bar01.style.pixelTop=bar02.style.pixelTop=-999;}