var focuson=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
focuson[0]=["/images/focuson/FO-OPORO-HP.gif", "/conditions/osteoporosis/index.php", ""] //plain image syntax
focuson[1]=["/images/focuson/FO-Fibro-HP.gif", "/conditions/fibromyalgia/index.php", ""] //plain image syntax
focuson[2]=["/images/focuson/FO-OA-HP.gif", "/conditions/osteoarthritis/index.php", ""] //plain image syntax
focuson[3]=["/images/focuson/FO-RA-HP.gif", "/conditions/rheumatoid-arthritis/index.php", ""] //plain image syntax
focuson[4]=["/asset-upload-file484-1350.gif", "/conditions/just-diagnosed/index.php", ""] //plain image syntax
function openIt_Pause(name1,name2,name3,name4,name5,name6,name7,name8,name9,name10,name11,name12) {

pause = true;
openIt(name1,name2,name3,name4,name5,name6,name7,name8,name9,name10,name11,name12);

}

var i = 1;
var pause = false;

function setPause(){

pause = true;

}

function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=3; // How many seconds until the next banner rotation

Timer();

}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (4 > i){
i++;
}
else{
i = 1;
}

if(pause == false) {
switch (i)
{
case 1:
   openIt('onebig','twobig','threebig','fourbig','onesmall','twosmall','threesmall','foursmall','promo1','promo2','promo3','promo4');
   break;
case 2:
openIt('twobig','onebig','threebig','fourbig','twosmall','onesmall','threesmall','foursmall','promo2','promo1','promo3','promo4');
   break;
case 3:
openIt('threebig','twobig','onebig','fourbig','threesmall','twosmall','onesmall','foursmall','promo3','promo2','promo1','promo4');
   break;
case 4:
   openIt('fourbig','twobig','threebig','onebig','foursmall','twosmall','threesmall','onesmall','promo4','promo2','promo3','promo1');   
   break;
default:
  openIt('onebig','twobig','threebig','fourbig','onesmall','twosmall','threesmall','foursmall','promo1','promo2','promo3','promo4');
}
}

startTime();
}
else{
window.setTimeout("Timer()",1000);
}
}

