
function randomize( l, t ){
	t -= 1;
	return Math.floor( Math.random() * ( t - l + 1 ) ) + l;
}
function rotateimage(num)
{
var index = randomize( 0, num) + 1;
var arr = new Array();
var brr = new Array();
var cnt;
cnt = 0;


arr[cnt]="/ukadvantage/images/rotate/rotate_image1.jpg";
brr[cnt]="We train more skilled engineers in the uk than any other company – link to the  campaign page";
cnt = cnt + 1;

arr[cnt]="/ukadvantage/images/rotate/rotate_image2.jpg";
brr[cnt]="Last year we spent over £2.65 billion with our UK suppliers – link to the  campaign page";
cnt = cnt + 1;

arr[cnt]="/ukadvantage/images/rotate/rotate_image3.jpg";
brr[cnt]="Our firsts in engineering help the UK stay a world leader in innovation – link to the  campaign page";
cnt = cnt + 1;


document.getElementById('rotatingimage').src=arr[index-1];
document.getElementById('rotatingimage').alt=brr[index-1];
}