
function Opinion ( Name, Text, Photo, PhotoWidth, PhotoHeight )
{
	this.length = 5;
	this.Name = Name;
	this.Text = Text;
	this.Photo = Photo;
	this.PhotoWidth = PhotoWidth;
	this.PhotoHeight = PhotoHeight;
}

var Ops = new Array(
new Opinion('Alla Pugacheva','Thanks for your love and hospitality','alla_pugacheva.jpg',130,185),
new Opinion('Lev Leshchenko','There\'re so many wonderful things in our live.<br>But the most precious one is the pleasure. Here we really had it. Thank you!!!','lev_lezhenko.jpg',130,185),
new Opinion('Alexander Buynov','Bear Corner is first of all nice people. Staff here are just the best! Thank you for relaxed atmosphere!','alex_buinov.jpg',130,185),
new Opinion('Alisa, Konstantin Kinchev, tour of 2005','It\'s been the best hotel on our way around the tour. Thank you for everything','konstantin_kinchev.jpg',130,185),
new Opinion('Irina Allegrova','I\'m happy to be with you and I\'m also proud for your "baby". I wish you much happiness and prosperity','irina_alegrova.jpg',130,185)
);


var path_photo = "photos/opinions/";

function PrintOps()
{
	document.write('<table border="0" cellspacing="0" cellpadding="4" class="tbl" width="100%" style="border-width: 0">');	
	for ( i in Ops )  
	{
	var ph = '';
	if ( Ops[i].Photo && Ops[i].Photo.length > 0 )
		ph = '<br><img src="'+path_photo+Ops[i].Photo+'" width="'+Ops[i].PhotoWidth+'" height="'+Ops[i].PhotoHeight+'" alt="'+Ops[i].Name+'"><br>';

	document.write('<tr>');	
	document.write('<td valign="middle" align="center" style="border-width: 0">'+ph+'</td><td valign="middle" align="center" style="border-width: 0"><em>'+Ops[i].Text+'</em><br><b>'+Ops[i].Name+'</b>'+'</td>');	
	document.write('</tr>');	

	}
document.write('</table>');
}
