<!-- //
//check if browser is capable, NS3+, IE4+
if (document.images) {
//preload images
//base image
home2N= new Image(90,60);
home2N.src= 'http://www.customcakesbyteresa.com/images/home2.jpg' ;

galleryN= new Image(90,60);
galleryN.src= 'http://www.customcakesbyteresa.com/images/gallery.jpg' ;

servingsN= new Image(90,60);
servingsN.src= 'http://www.customcakesbyteresa.com/images/servings.jpg' ;

contactmeN = new Image(120,60)
contactmeN.src= 'http://www.customcakesbyteresa.com/images/contactme.jpg' ;

//hover or rollover image
home2H= new Image(90,60);
home2H.src= 'http://www.customcakesbyteresa.com/images/home2h.jpg' ;

galleryH= new Image(90,60);
galleryH.src= 'http://www.customcakesbyteresa.com/images/galleryh.jpg' ;

servingsH= new Image(90,60);
servingsH.src= 'http://www.customcakesbyteresa.com/images/servingsh.jpg' ;

contactmeH = new Image(120,60)
contactmeH.src= 'http://www.customcakesbyteresa.com/images/contactmeh.jpg' ;



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
//-->