current = start; thewidth=window.innerWidth-16 || document.body.offsetWidth-20; theheight=window.innerHeight-220 || document.documentElement.clientHeight-220; dtop=(theheight/2)+80; dleft=(thewidth/2)-(250/2); function complete()
{ document.getElementById("loader").style.display = "none"; document.getElementById("loadmain").style.display = "block"; window.status='';}
document.write("<div width='250' id='loader' style='border: 1px solid black; display: none; position: absolute;' align='center'>&nbsp;</div>"); document.getElementById("loader").style.top=dtop + "px" ; document.getElementById("loader").style.left=dleft + "px" ; function load()
{ lastone = end; percent = (100 / lastone); current += 1; crnt = (current*percent); crnt = Math.round(crnt); if(crnt < 100)
{ window.status = "Loading: " + crnt + "%"; document.getElementById("loader").style.display = "block"; document.getElementById("loadmain").style.display = "none"; document.getElementById("loader").innerHTML = "<table border='0' width='250' height='15'>\n<tr>\n<td colspan='2' align='center'>Loading: " + crnt + "%...</td></tr><tr>\n<td bgcolor='#768DB4' width='" + crnt + "%'>&nbsp;</td>\n<td>&nbsp;</td>\n</tr></table>";} else { window.status = "Loading Complete..."; document.getElementById("loader").innerHTML = "<table border='0' width='250' height='15'>\n<tr>\n<td align='center'>Loading Complete...</td></tr><tr>\n<td>&nbsp;</td></tr></table>"; setTimeout("complete()", 800);}
}