// JavaScript Document

var d=0;
var t;

function reveal() {
	var point="point"+d;
	d=d+1;
	document.getElementById(point).style.visibility="visible";
	if(d<10){
		t=setTimeout(reveal, 1000);
	}
}

function init() {
	t=setTimeout(wait, 1500);
}
function wait(){
	clearTimeout(t);
	if(document.getElementById){
		flashMovie = document.getElementById("parts-viewer-flash");
		sendtoflash(0);
	}
}
	
function sendtoflash(id){
	if(flashMovie){
		flashMovie.loadImage(drawings[id]);
		toggledisplay(id);
	}
}
function toggledisplay(id){ 
	for(i=0;i<charts.length;i++){
		document.getElementById("chart"+i).style.display = "none";
	}
	document.getElementById("chart"+id).style.display = "block";
}
	
