var aNews = new Array();

function NewsItem( Y, M, D, lHot, sTitle, sDescription ) {
	this.year = Y;
	this.month = M;
	this.day = D;
	this.title = sTitle || "";
	this.description = sDescription || "";
	this.isHot = lHot || false;

	this.getDateText = function( lLong ) {
		if ( lLong ) {
			return this.day + " " + aMonths[ this.month - 1] + " " + this.year;
		};
		return this.day + "." + this.month + "." + this.year;
	};
}

aNews.add( new NewsItem( 2010, 03, 15, true, "Try these specialties of the Indian Cuisine at our Amaranta Restaurant!", 
	"This past March, Amaranta Restaurant of Matisov Domik Hotel introduced a splendid variety of Indian (Mughlai, Kerala, Punjabi, Bengali) and Chinese cuisine items genuinely cooked by Laurence, the best Indian Cuisine Chef in town. These dishes are available at business lunch, dinner, and are also offered by the room service. Come down and ask Laurence to treat you with your own Oriental specialty!"
));

aNews.add( new NewsItem( 2009, 10, 5, true, "Every Fourth Night at Our Hotels FREE!",
	""
));

aNews.add( new NewsItem( 2009, 9, 1, true, "New Payment Kiosk at Admiralteyskaya.",
	""
));


aNews.add( new NewsItem( 2009, 8, 28, true, "Namesakes are Welcome at a Special Rate!",
	""
));

aNews.add( new NewsItem( 2009, 8, 24, true, "Save on Thursdays!",
	""
));

aNews.add( new NewsItem( 2009, 8, 21, true, "ATM and Currency Exchange Services at Admiralteyskaya and Matisov Domik.",
	""
));

aNews.add( new NewsItem( 2009, 7, 16, true, "Special Discounted Rates for the Elderly.",
	""
));

aNews.add( new NewsItem( 2009, 07, 02, false, "Book a Room upon Arrival to St. Petersburg at a Discounted Rate",
	"" 
));

////////////////////////////////////////////////////////////////////////////////////////////

function news_init() {
	var i, cNews = "", cBullet = '&nbsp;&nbsp;&nbsp;<IMG class="CNewsBulletIMG" src="images/bullet2.gif">&nbsp;&nbsp;&nbsp;';
	for ( i = 0; i < aNews.length; i++ ) {
		if ( aNews[ i ].isHot ) cNews += cBullet + aNews[ i ].getDateText() + " - " + aNews[ i ].title
	}
	cNews += cBullet;
	document.getElementById( "NewsMARQUEE" ).innerHTML = cNews;
}
