var preload_status = false;

function preloadPlan() 
{
	if (document.images) 
	{
		human_orthodontics = new Image();
		human_orthodontics = "../images/medical/human/human_orthodontics.png";
		
		human_traumatology = new Image();
		human_traumatology = "../images/medical/human/human_traumatology.png";
		
		preload_status = true;
	}
}

function plan(image)
{			
	if (document.getElementById('human'))
	{
		if (!image || preload_status == false)
		{
			document.getElementById('human').src = '../images/medical/human/human.png';
		}
		else
		{
			switch(image)
			{
				case 1	:	document.getElementById('human').src = human_orthodontics;
				break;
				
				case 2	:	document.getElementById('human').src = human_traumatology;
				break;
				
				default	:	document.getElementById('human').src = human;
			}
		}
	}
}	
