painon = new Image();
painon.src = "/layout/NewSiteImages/BtnPainFree_f2.gif";
painoff = new Image();
painoff.src = "/layout/NewSiteImages/BtnPainFree.gif";


myon = new Image();
myon.src = "/layout/NewSiteImages/BtnMyEgoscue_f2.gif";
myoff = new Image();
myoff.src = "/layout/NewSiteImages/BtnMyEgoscue.gif";

fiton = new Image();
fiton.src = "/layout/NewSiteImages/BtnPatch_f2.gif";
fitoff = new Image();
fitoff.src = "/layout/NewSiteImages/BtnPatch.gif";

prodon = new Image();
prodon.src = "/layout/NewSiteImages/BtnProducts_f2.gif";
prodoff = new Image();
prodoff.src = "/layout/NewSiteImages/BtnProducts.gif";

euon = new Image();
euon.src = "/layout/NewSiteImages/BtnEU_f2.gif";
euoff = new Image();
euoff.src = "/layout/NewSiteImages/BtnEU.gif";

radioon = new Image();
radioon.src = "/layout/NewSiteImages/BtnRadio_f2.gif";
radiooff = new Image();
radiooff.src = "/layout/NewSiteImages/BtnRadio.gif";

findon = new Image();
findon.src = "/layout/NewSiteImages/BtnFindClinic_f2.gif";
findoff = new Image();
findoff.src = "/layout/NewSiteImages/BtnFindClinic.gif";

affon = new Image();
affon.src = "/layout/NewSiteImages/BtnRecAffiliates_f2.gif";
affoff = new Image();
affoff.src = "/layout/NewSiteImages/BtnRecAffiliates.gif";

abouton = new Image();
abouton.src = "/layout/NewSiteImages/BtnAbout_f2.gif";
aboutoff = new Image();
aboutoff.src = "/layout/NewSiteImages/BtnAbout.gif";

contacton = new Image();
contacton.src = "/layout/NewSiteImages/BtnContact_f2.gif";
contactoff = new Image();
contactoff.src = "/layout/NewSiteImages/BtnContact.gif";



function off(image) {
if (parseInt(navigator.appVersion.substring(0,1))>=3) {
document[image].src = eval(image + "off.src");
}
}

function on(image) {
if (parseInt(navigator.appVersion.substring(0,1))>=3) {
document[image].src = eval(image + "on.src");
}
}

function control(page_){
if(document[page_]){
if(page_){
document[page_].src = eval(page_+"on.src")
eval(page_+"off.src ="+page_+"on.src")
}
}
}

<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = '/layout/NewSiteImages/NavBanner_01.jpg'
theImages[1] = '/layout/NewSiteImages/NavBanner_02.jpg'
theImages[2] = '/layout/NewSiteImages/NavBanner_03.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
	document.write('<img id="NavBanner" src="'+theImages[whichImage]+'" onclick=\"window.location=\'/wherePain.php\'\" width="594px" height="137px">');
}

//  End -->