function opener( url, didas, titule )
{
	var img_array = url.split ( "," )
	
	var did_array = didas.split ( "," );
	
	var body = document.getElementsByTagName("body")[0];
	
	if ( document.getElementById('divone') )
	{
		body.removeChild ( document.getElementById( 'divone' ) );
	}
	
	var divone = document.createElement('div');
	divone.id = ( 'divone' );
	divone.style.position = 'absolute';
	divone.style.width = '100%'
	divone.style.zIndex = '100';
	divone.style.top = '0px';
	divone.style.left = '0px';
	
	var table = document.createElement("table");
	table.width = "100px";
	table.cellPadding = "0";
	table.cellSpacing = "11";
	table.style.border = "1px solid #074878" ;
	table.bgColor = "#FFFFFF";
	table.align = "center";
	table.style.position= 'relative';
	table.style.top = ( ( document.body.clientHeight / 2 ) - 202 ) + "px";
	
	var tbody = document.createElement("tbody");
	var close_row = document.createElement("tr");
	var close_cell = document.createElement("td");
	close_cell.innerHTML = "<span onclick='closer()' style='cursor: hand; cursor: pointer;'>Chiudi <strong style='cursor: hand; cursor: pointer;'>X</strong></span>";
	close_cell.align = "right";
	close_cell.className = "Testo";
		
	
	if (img_array.length == 1)
	{
		close_row.appendChild ( close_cell );
		tbody.appendChild ( close_row );
		
		var titolo = document.createElement("tr");
	
		var titolo_cell = document.createElement("td");
		titolo_cell.className = "Testo";
		titolo_cell.height = "48";
		titolo_cell.colSpan = "2";
		titolo_cell.innerHTML = "<strong>" + titule.toUpperCase() + "</strong><br>" + did_array[0];
		titolo.appendChild ( titolo_cell );
		
		var immagini = document.createElement ( 'tr' );
		var immagini_cell = document.createElement ( 'td' );
		
		var imago = document.createElement ( 'img' );
		imago.src = "big/" + img_array[0];
		imago.width = "340";
		imago.height = "295";
		
		immagini_cell.appendChild ( imago );
		immagini.appendChild (immagini_cell);
	}
	
	else if (img_array.length == 2)
	{
		close_cell.colSpan = "2";
		close_row.appendChild ( close_cell );
		tbody.appendChild ( close_row );
		
		var titolo = document.createElement("tr");
	
		var titolo_cell = document.createElement("td");
		titolo_cell.className = "Testo";
		titolo_cell.height = "48";
		titolo_cell.colSpan = "2";
		titolo_cell.innerHTML = "<strong>" + titule.toUpperCase() + "</strong><br>" + did_array[0] + "; " + did_array[1];
		titolo.appendChild ( titolo_cell );
		
		var immagini = document.createElement ( 'tr' );
		var immagini_cel_left = document.createElement ( 'td' );
		
		var imago_left = document.createElement ( 'img' );
		imago_left.src = "big/" + img_array[0];
		imago_left.width = "340";
		imago_left.height = "295";
		
		immagini_cel_left.appendChild ( imago_left );
		
		var immagini_cel_right = document.createElement ( 'td' );
		var imago_right = document.createElement ( 'img' );
		imago_right.src = "big/" + img_array[1];
		imago_right.width = "340";
		imago_right.height = "295";
		
		immagini_cel_right.appendChild ( imago_right );
		
		immagini.appendChild (immagini_cel_left);
		immagini.appendChild (immagini_cel_right);

	}
	
	tbody.appendChild(close_row);
	tbody.appendChild(immagini);
	tbody.appendChild(titolo);

	table.appendChild(tbody);
		
	divone.appendChild ( table );
	body.appendChild ( divone );	
}


function closer()
{
	var div = document.getElementById ( "divone" );
	div.style.display = "none";
}