home = new Image();
home.src = "images/home_r.gif";

contact = new Image();
contact.src = "images/contact_r.gif";

site = new Image();
site.src = "images/site_r.gif";

espanol = new Image();
espanol.src = "images/espanol_r.gif";

nhlbi = new Image();
nhlbi.src = "images/nhlbi_r.gif";

whatis = new Image();
whatis.src = "images/whatis_r.gif";

events = new Image();
events.src = "images/events_r.gif";

partners = new Image();
partners.src = "images/partners_r.gif";

stories = new Image();
stories.src = "images/stories_r.gif";

lower = new Image();
lower.src = "images/lower_r.gif";

therapy = new Image();
therapy.src = "images/therapy_r.gif";

material = new Image();
material.src = "images/material_r.gif";

healthprof = new Image();
healthprof.src = "images/healthprof_r.gif";

press = new Image();
press.src = "images/press_r.gif";


//Rotating banner code
var Img = new Array() 
Img[1] = '/health/hearttruth/images/carousel/hearttruthbanner2.jpg'
Img[2] = '/health/hearttruth/images/carousel/hearttruthbanner3.jpg'
Img[3] = '/health/hearttruth/images/carousel/hearttruthbanner4.jpg'
Img[0] = '/health/hearttruth/images/carousel/hearttruthbanner5.jpg'
var j = 0
var p = Img.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = Img[i]
}
var randomImg = Math.round(Math.random()*(p-1));

function displayImg(){
document.write('<img  border="0" width="775" height="98" src="'+Img[randomImg]+'" alt="National Heart Lung and Blood Institute: The Heart Truth">');
}