﻿//if syndicator's domain use old player - show AnnouncementNewPlayer
function announcementNewPlayer() {

	var announcementNewPlayer = new Element('div',
		{ 'class': 'AnnouncementNewPlayer' }
		).set('html', 'Over the next couple of weeks, 5min will be rolling out the new and improved Smart Player, which will soon be available on your websites, too. For more info on the new Smart Player, check out the 5min Blog, or the preview available below.<br /><br />If you would like to make any changes to your current player settings, please drop us a line via email at ');

	announcementNewPlayer.injectAfter($('divPreAnnouncementNewPlayer'));

	var email = new Element('a',
		{
			'class': 'lnkInner',
			'href': 'mailto:partnersupport@5min.com'
		}
		).set('text', 'partnersupport@5min.com');

	email.injectInside(announcementNewPlayer);

	var dot = new Element('span', {}).set('text', '.');
	dot.injectInside(announcementNewPlayer);
}