	var pics=picimage.concat(piclinks);
	var total = pics.length;
	var loaded = 0; 
	var cpercent=0
	function updateBar() {

	var percent = Math.round(loaded/total * 100);
	if (document.images('loadimg')!=null) {
		if (cpercent != percent) {
			cpercent = percent;
			document.images('loadimg').width = Math.round(cpercent)*4.8
			window.status = 'loading: '+cpercent+'%'
		}
	} 

<!--	if (loaded >= total) { switchon() } -->
	}
	
	function preloadpics() {
	var picno,imgObjs = new Array(total);
		if (pics.length==0) { updateBar() }
		if (document.getElementById || document.all) {
			for (picno=0; picno<total; picno++) {
				imgObjs[picno] = new Image();
				imgObjs[picno].onload = imgLoaded;
				imgObjs[picno].onerror = imgFailed;
				imgObjs[picno].src = pics[picno]
			}
		}
	}
	function imgFailed() { loaded++; updateBar(); }
	function imgLoaded() { loaded++; updateBar(); }

