// JavaScript Document

/*
* @authors:		Alessandro Mazzola, Fabrizio Natoli
* @company:		Marconi Channel WebTV
* @release:		2.0
* @date:			08/06/2011
*/

function getThumb ( path, target )
{
	var xmlhttp;
	if ( window.XMLHttpRequest )
	{
		xmlhttp = new XMLHttpRequest ();
	} else {
		xmlhttp = new ActiveXObject ( 'Microsoft.XMLHTTP' );
	}
	xmlhttp.onreadystatechange = function ()
	{
		if ( xmlhttp.readyState == 4 && xmlhttp.status == 200 )
		{
			document.getElementById( target ).innerHTML = xmlhttp.responseText;
		}
	}
	xmlhttp.open ( 'GET', path, true);
	xmlhttp.send();
	
}
