var awards = [
	[
		'http://www.aquila-capital.de/img/awards/hedgefunds.gif',
		'"Highly Commended"',
		'<strong>AC Pharos Evolution Fund</strong> was named &quot;Highly Commended&quot; at Hedge Funds Review European Performance Awards 2009 in the &quot;Best UCITS-Compliant Product&quot; category.'
	],
	[
		'http://www.aquila-capital.de/img/awards/ibc.gif',
		'1st Prize',
		'<strong>Aquila Vol Opportunity</strong> (Pharos Familie) Best German Single Hedge Fund IBC\'s Annual Hedge Fund Award 2008'
	],
	[
		'http://www.aquila-capital.de/img/awards/ibc.gif',
		'3rd Prize',
		'<strong>Aquila Capital Multistrategy Opportunity</strong> Best German Fund of Hedgefunds IBC\'s Annual Hedge Fund Award 2008'
	],
	[
		'http://www.aquila-capital.de/img/awards/aaa.gif',
		'Telos AAA- Rating ',
		'In January 2009, the <strong>AC Statistical Value Market Neutral 7 Vol Fund</strong> received a coveted AAA- Rating from the renowned rating agency TELOS. '
	],
	[
		'http://www.aquila-capital.de/img/awards/aa.gif',
		'Telos AA+ Rating',
		'The <strong>TRANA - Triple Alpha Fund</strong> has recently received a rating by TELOS. On a scale from A to AAA (highest score), the Triple Alpha Fund has been rated with &quot;AA+&quot; which certifies a very high quality standard. '
	],
	[
		'http://www.aquila-capital.de/img/awards/scope.gif',
		'5 stars from Scope',
		'In the course of its Investment Rating in January 2009, Scope Analysis (a leading German rating institution) has awarded the <strong>AC Pharos Certificate</strong> with &quot;5 Stars for Excellent Quality&quot;.'
	],
	[
		'',
		'Fund Award 2009',
		'The editors of &euro;uro, &euro;uro-fondsxpress and &euro;uro am Sonntag have awarded the best German funds with the &quot;&euro;uro Fund Award 2009&quot;. The <strong>AC Hedge Multistrategy Opportunity Fund</strong> placed 3rd in the &quot;Alternative Investments&quot; category.'
	],
	[
		'http://www.aquila-capital.de/img/awards/aaa.gif',
		'Telos AAA- Rating ',
		'In July 2009, the <strong>AC Pharos Evolution Fund</strong> received a coveted AAA- Rating from the renowned rating agency TELOS. '
	]
];
var current_award = 0;

function initAward() {
	var div = new Element('div', {'id':'footer-awards'});
	
	var p = new Element('p', {'id':'footer-awards-header', 'html':'Awards &amp; Ratings'});
	div.adopt(p);
	
	var d = new Element('div', {'id':'footer-awards-content'});
	div.adopt(d);
	
	$$('body')[0].adopt(div);
	
	setInterval('doAward()', 5000);
	doAward();
}
function doAward() {
	
	var c = awards[current_award];
	
	
	
	var html = '<table>';
	html += '<tr>';
	html += '<td valign="middle" align="center" width="120">';
	// Logo
	if(c[0] != '') {
		html += '<img src="'+c[0]+'" alt="" />';
	} else {
		html += '&nbsp;';
	}
	html += '</td>';
	html += '<td valign="middle">';
	html += '<h2>'+c[1]+'</h2>';
	html += '<p>'+c[2]+'</p>';
	html += '</td>';
	html += '</tr>';
	html += '</table>';
	
	var div = new Element('div', {'html':html});
	//var table = new Element('table', {'html':html});
	
	//div.adopt(table);
	
	if($('footer-awards-content').getElement('div')) {
		var el = $('footer-awards-content').getElement('div');
		el.get('tween', {
			'property':'opacity',
			'onComplete':function() {
				el.destroy();
			}
		}).start(0);
	}
	$('footer-awards-content').adopt(div);
	div.fade('hide').fade('in');
	
	
	current_award++;
	if(current_award > awards.length - 1) {
		current_award = 0;
	}

	return;
}

window.addEvent('domready', function() {
	initAward();
});