//////////////////////////////////////////////////////////////////////////////////////////////////////// // Function: imgOn() // Arguments: 'imgName' - string value of the img tag // Returns: - // Objective: swaps the src of 'imgName' with preloaded 'imgName' + 'on' .src //////////////////////////////////////////////////////////////////////////////////////////////////////// function SwapOn(imgName) { if (document.images) { KillAll(); document[imgName].src = eval(imgName + "_on.src"); } } //////////////////////////////////////////////////////////////////////////////////////////////////////// // Function: imgOff() // Arguments: 'imgName' - string value of the img tag // Returns: - // Objective: swaps the src of 'imgName' with preloaded 'imgName' + 'off' .src //////////////////////////////////////////////////////////////////////////////////////////////////////// function SwapOff(imgName) { if (document.images) { document[imgName].src = eval(imgName + "_off.src"); } } function KillAll(){ SwapOff('left_about'); SwapOff('left_tested'); SwapOff('left_treated'); SwapOff('left_living'); SwapOff('left_resources'); SwapOff('left_video'); } function MM_findObj(n, d) { var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i