$(document).ready(function() {
	initRotator(0);
});

$.fn.wait = function(time, type) {
	time = time || 5000;
	type = type || "fx";
	return this.queue(type, function() {
		var self = this;
		setTimeout(function() {
			$(self).dequeue();
		}, time);
	});
};

function initRotator(ind){
	var msg = new Array();
	msg[0] = '<a title="Open Risk Audit Plus" href="/en/manage-risk/understand-your-customers-credit-and-risk-issues/risk-audit-plus.aspx">RISK AUDIT PLUS FROM EXPERIAN</a>';
	msg[1] = '<a href="/en/generate-business/find-new-prospects/b2b-prospector.aspx">B2B PROSPECTOR FROM EXPERIAN</a>';
	msg[2] = '<a href="/en/generate-business/find-new-prospects/b2b-researcher.aspx">B2B RESEARCHER FROM EXPERIAN</a>';
	msg[3] = '<a href="/en/contact.aspx">CLICK HERE TO CONTACT US</a>';
	
	for (i=0; i<5; i++){
		$('#rotator').html(msg[i]).wait().hide(5000);
	}
	
}
	
	



