$(document).ready(function () {
	createTicker();
}); 

function createTicker(){
	//set the quotes array
	tickerItems = new Array(
	'<img src="tickimages/atat.png"  alt="" border="0" >',
	'<img src="tickimages/belkin.png"  alt="" border="0">', 
	'<img src="tickimages/bt.png"   alt="" border="0">  ', 
	'<i>"Aims were an ideal company for us to do business with. They helped us to clarify our requirements and then demonstrated which products would and wouldn’t fit with our testing needs. Once we had placed the order they helped set up our test lab and provided excellent support on an ongoing basis."</i><br/><br/><b>Greg Cox, <br>Product Technical Consultancy, BT Retail – Product Support Operations </b>',
	'<img src="tickimages/bundas.png"  alt="" border="0">  ', 
	'<img src="tickimages/belkin.png"  alt="" border="0"> ', 
	'<img src="tickimages/cetecom.png" alt="" border="0">', 
	'<img src="tickimages/dTelcom.png" alt="" border="0"> ',
	'<img src="tickimages/fujitsu.png" alt="" border="0"> ',
	'<img src="tickimages/o2.png" alt="" border="0" width="170px" height="170px"> ', 
	'<img src="tickimages/pirelli.jpg"  width="170px" alt="" border="0"> ', 
	'<img src="tickimages/tele2.png"  alt="" border="0">  ',
	'<img src="tickimages/telebyte_logo.jpg" width="170px" alt="" border="0"> ', 
	'<i>"AIMS software complements Telebyte hardware perfectly, giving the customer a fully integrated solution for testing ADSL2+ and VDSL2 equipment"</i><br/><br/><b>Michael Breneisen, CEO Telebyte Inc., USA </b>',
	'<img src="tickimages/tp.png"  border="0">', 
	'<img src="tickimages/tuv.png"alt="" border="0">   ', 
	'<img src="tickimages/wilan.png"  alt="" border="0"> ',
	'<img src="tickimages/tm.png"  alt="" border="0" width="150px" heigh="90px" alt="" border="0"> '
	);
	i = 0;
	tickerIt();
}

function tickerIt(){
	if( i == tickerItems.length ){
		i = 0;
	}
	//change without effect
	//$('#ticker').html(tickerItems[i]);

	//change with effect
	$('#ticker').fadeOut("fast", function(){
		var randomnumber=Math.floor(Math.random()*18)
		$(this).html(tickerItems[randomnumber]).fadeIn("slow");
		//i++;
	});
	
	//repeat - change 5000 - time interval
	setTimeout("tickerIt()", 8200);
}

