$(document).ready(function () {
	createTicker();
}); 

function createTicker(){
	//set the quotes array
	tickerItems = new Array(
	  'Please note that we do NOT approve order or provide client support from Friday 13:00 GMT to Sunday 6:00 GMT.',
//'Please note that we will NOT approve order or provide client support from Wed. 19 Oct. 13:00 GMT to Sun. 23 Oct 6:00 GMT.',
   'We remind our Jewish visitors that according to the Halacha it is forbidden to use Internet during Shabbat and Yom Tov.'
//	'Here is the *D806C743* voucher to get a 50% discount on all your purchases!!',
//      'If you are an existing customer, please read our <a href="http://mass-automation.com/blog/2010/dec/2/new-license-keys/">post</a> describing how to transfer your old licenses to our new site'
	);
	i = 0;
	tickerIt();
}

function tickerIt(){
	if( i == tickerItems.length ){
		i = 0;
	}
	//change without effect
	//$('#ticker').html(tickerItems[i]);

	//change with effect
	$('#ticker').fadeOut("slow", function(){
		$(this).html(tickerItems[i]).fadeIn("slow");
		i++;
	});
	
	//repeat - change 5000 - time interval
	setTimeout("tickerIt()", 5000);
}

