
var ipinterval, iptotimg, ipwidth=169, ipheight=3;

function iprogress()
{
	document.write('<div id="ipdiv" style="margin: 6px 9px 0 0; width: '+ipwidth+'px; height: '+ipheight+'px;'
	              +' border: solid #112244 1px; text-align: left;">'
	              +'<img id="ipimg" src="/img/iprogress.png" border=0 alt=""'
	              +' height='+ipheight+' width=1></div>');
}

function iprogress_timer(kill)
{
	var iptotloaded = 0;
	
	for (var a=0; a<iptotimg; a++) if (imgs1[a].complete) iptotloaded++;
	if (iptotloaded < iptotimg && (!kill))
		document.getElementById('ipimg').width = (iptotloaded / iptotimg)*ipwidth;
	else {
		document.getElementById('loader').className = 'invisible';
		window.clearInterval(ipinterval);
		document.getElementById('content').className = 'visible';
		tipptest_init(0);
	}
}

function iprogress_init()
{
	iptotimg = imgs1.length;
	ipinterval = window.setInterval('iprogress_timer(0);', 200);
}

