
//check if browser is capable, NS3+, IE4+

if (document.images) {

//preload images

//base image

img1N= new Image(108,66);

img1N.src= 'Hovern.gif' ;

//hover or rollover image

img1H= new Image(108,66);

img1H.src= 'Hoverna.gif' ;

function myOn(myImgName) {

//we need to name the image in the BODY

//so we can use its name here

document[myImgName].src=eval(myImgName+ 'H' ).src;

}

function myOut(myImgName) {

document[myImgName].src=eval(myImgName+ 'N' ).src;

}

} //end of if document.images

