function init()
{

imagePreLoader('images/',
				'splash_starting_up.jpg,splash_downloads.jpg,splash_products.jpg,splash_learn_more.jpg,\
				products_weather.jpg,products_soil_water.jpg,products_forecast.jpg,products_climate.jpg,\
				products_crop.jpg,products_hort.jpg,products_livestock.jpg,products_range_forest.jpg')

}

function goSection(inSection) 
{

	document.getElementById('starting_up').style.display = "none";
	document.getElementById('downloads').style.display = "none";
	document.getElementById('products').style.display = "none";
	document.getElementById('learn_more').style.display = "none";
			
	document.getElementById('a_starting_up').style.backgroundPosition = "bottom";
	document.getElementById('a_downloads').style.backgroundPosition = "bottom";
	document.getElementById('a_products').style.backgroundPosition = "bottom";
	document.getElementById('a_learn_more').style.backgroundPosition = "bottom";
	
	switch(inSection)
	{
		case 'starting_up':
			document.getElementById('starting_up').style.display = "block";	
			document.getElementById('a_starting_up').style.backgroundPosition = "top";
			break;
		case 'downloads':
			document.getElementById('downloads').style.display = "block";	
			document.getElementById('a_downloads').style.backgroundPosition = "top";
			break;
		case 'products':
			document.getElementById('products').style.display = "block";	
			document.getElementById('a_products').style.backgroundPosition = "top";
			break;
		case 'learn_more':
			document.getElementById('learn_more').style.display = "block";	
			document.getElementById('a_learn_more').style.backgroundPosition = "top";
			break;	
		default:
			document.getElementById('starting_up').style.display = "block";	
			document.getElementById('a_starting_up').style.backgroundPosition = "top";
	}

}

function imagePreLoader(inSourceFolder, inImages) 
{
	
	// set image list
	var images_array = inImages.split(",")
	
	// counter
	var i = 0;
	
	// create object
	imageObj = new Image();
	
	// start preloading
	for(i = 0; i < images_array.length; i++) 
	{
	  imageObj.src = inSourceFolder + images_array[i];
	}

}


function showDiv(div)
{
	document.getElementById(div).style.display = 'block';
}

function hideDiv(div)
{
	document.getElementById(div).style.display = 'none';
}






















