seconds = "30";

function startCirc()
{
      rand_no = Math.ceil(2*Math.random());
      if( rand_no < 2 ){imgOne();}
      else{imgTwo();}
}

function imgOne()
{
        document.getElementById('clink').href = '/index.php/mobile_interop/';
        document.getElementById('myimg').src = '/ee_images/science2.jpg';
 	setTimeout("imgTwo()", seconds * 1000);
}
function imgTwo()
{
        document.getElementById('clink').href = '/index.php/tds/';
        document.getElementById('myimg').src = '/ee_images/failure2.jpg';
        setTimeout("imgOne()", seconds * 1000);
}
function imgThree()
{
	document.myimg.src = 'three.gif';
	setTimeout("imgOne()", seconds * 1000);
}
