// function definitions
function toggleWarning()
{
	var oDiv = $("div#InactiveWarning");   
	if ( oDiv.css("display") == "none" )
		oDiv.css("display", "block");
	else
		oDiv.css("display", "none");
}

function submitForm()
{
	var oForm = document.getElementById( "ContactForm" );
	oForm.submit();
	
	return false;
}

// init
$(document).ready(function()
{
	tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
	imgLoader = new Image();// preload image
	imgLoader.src = tb_pathToImage;
	
	$('a.Inactive').hover(toggleWarning, toggleWarning).attr("title","");
	$('img#standard_silos_img').hide();
	$('img#standard_silos_img').fadeIn(2000);
	
	oScroll	= document.getElementById( "ImageScroller" );
	if( oScroll != null )
		initScroll("ImageScroller");
});
