var sc_project=4676894; 
var sc_invisible=1; 
var sc_partition=56; 
var sc_click_stat=1; 
var sc_security="6f3ac55b"; 


function theantho_HoverImagesOnLoad()
{
	var list = document.getElementsByTagName("img");
	for (var i=0; i<list.length; i++)
	{
		if (list[i].className == 'hoverImage')
		{
			// preload hover image
			theantho_ImagePreload(list[i].src.replace('_up_','_down_'));
			// create events
			list[i].onmouseover = function() { this.src = this.src.replace('_up_','_down_'); }
			list[i].onmouseout 	= function() { this.src = this.src.replace('_down_','_up_'); }
		}
	}	
}


var theantho_ImagePreloadArray = new Array();
function theantho_ImagePreload(img_src)
{
	theantho_ImagePreloadArray.push(img_src); 	
}

function theantho_ImagePreloadOnLoad()
{
	var image_objects = new Array(theantho_ImagePreloadArray.length);
	for (var i = 0; i<theantho_ImagePreloadArray.length; i++)
	{
		image_objects[i] = Image(100,100);
		image_objects[i].src = theantho_ImagePreloadArray[i];
	}
}


//--------------------------------------------------------------------------
// DEFINE EVENT LISTENERS
//--------------------------------------------------------------------------
if (document.addEventListener)
{
	window.addEventListener("load", theantho_HoverImagesOnLoad, false);
	// things that should run last
	window.addEventListener("load", theantho_ImagePreloadOnLoad, false);	
}
else if (window.attachEvent)
{
	window.attachEvent("load", theantho_HoverImagesOnLoad);
	// things that should run last
	window.attachEvent("load", theantho_ImagePreloadOnLoad);
}

