function setImages(preFix, sTart, fInish) {
	if (document.images) {
	cOunt = sTart
	while (cOunt <= fInish) {
		//preload on images
		tExt = preFix + cOunt + " = new Image()" 
		loCation = "/images/" + preFix + cOunt + ".gif"
		tExtsrc = preFix + cOunt + ".src = \"" + loCation + "\"" 
		eval(tExt)
		eval(tExtsrc)

		cOunt = cOunt + 1
		}
	}
};

setImages('tsn_localnews',0,1);
setImages('tsn_sports',0,1);
setImages('tsn_business',0,1);
setImages('tsn_living',0,1);
setImages('tsn_socialnews',0,1);
setImages('tsn_calendar',0,1);
setImages('tsn_oped',0,1);
setImages('tsn_copscourtfire',0,1);
setImages('tsn_education',0,1);
setImages('tsn_politics',0,1);
setImages('tsn_obituaries',0,1);



// "change" swaps menu images with file names defined above
// and "name=" values set to mX where X is the corresponding number
function change(Name,Num) {
if (document.images) {
document [Name].src = eval(Name + Num + ".src");
	}
}
