// ************************************************************************ // This page contains all the JavaScript required for the index page only // ************************************************************************ // This section controls the image replacement onmouseover for top 4 images var bTranState = new Array(0, 0, 0, 0); function fnToggle(which) { if (bTranState[which] == '0') { bTranState[which] = 1; document.getElementById('pic'+which).src = "images/banpic"+(which+1)+"a.jpg"; document.getElementById('picLb'+which).style.display = 'block'; document.getElementById('picDiv'+which).style.cursor = 'pointer'; } else { bTranState[which] = 0; document.getElementById('pic'+which).src = "images/banpic"+(which+1)+".jpg"; document.getElementById('picLb'+which).style.display = 'none'; document.getElementById('picDiv'+which).style.cursor = 'default'; } } // Preload the onmouseover versions of the top 4 images imgObjArr = new Array(new Image(), new Image(), new Image(), new Image(), new Image()); imgArr = new Array(); imgArr[0] = "http://www.lata.com/images/banpic1a.jpg"; imgArr[1] = "http://www.lata.com/images/banpic2a.jpg"; imgArr[2] = "http://www.lata.com/images/banpic3a.jpg"; imgArr[3] = "http://www.lata.com/images/banpic4a.jpg"; imgArr[4] = "http://www.lata.com/images/mmbg1.jpg"; for(i=0; i<5; i++) { imgObjArr[i].src = imgArr[i]; } // Simple link mechanism when A tags aren't used to perform the actual link function link(where) { window.location = where; } function linkE(where) { window.open(where); } // Main menu event handling var menus = 5; // the actual number of Main Menu items function overMain(which) { // onmouseover's for Main Menu // closes anything that might be open for(i=0; i