function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } } var curBigImg = null; function csSummaryJs() { curImg = $("focusBigImg_0"); for(j=0;j<5;j++) { var imgId = "focusSmallImg_" + j; var img = $(imgId); if(img) img.onmouseover = ImageMouseoverHandler; else break; } } addLoadEvent(csSummaryJs); // modified Oct.12.2009 end function ImageMouseoverHandler() { var bigImg = $(this.id.replace("Small","Big")); var curSmallImg = $(curImg.id.replace("Big","Small")); curImg.style.display = "none"; bigImg.style.display = "block"; curSmallImg.className = ""; this.className = "current"; curImg = bigImg; }