// JScript File

function activateRollovers(){
var rollovers = document.getElementsByClassName('rollover');
for(var i=0;i<rollovers.length;i++){
rollovers[i].onmouseover  = function(){
var strImgSrc = this.src
var intPos = strImgSrc.lastIndexOf(".")
//Get the first bit of the string
var strStart = strImgSrc.substring(0,intPos)
var strRoll = strStart + "_over" + strImgSrc.substring(intPos,strImgSrc.length)
//var strRoll = strImgSrc.replace("_over.",".")

this.src= strRoll 

};
rollovers[i].onmouseout = function(){
// remove ‘_over’ in image name before image extension
var strImgSrc = this.src
var strRoll = strImgSrc.replace("_over.",".")
this.src= strRoll 

}
}
}

//window.onContextMenu = function() { return false; }  
