classCheck = function(xClassName){
		var result = new Array();
		var elements = (document.all)?document.all:document.getElementsByTagName('*');
		for(var i = 0 ; i < elements.length ; i++){
			if(elements[i].className == xClassName){
				result.push(elements[i]);
			}
 		}
	return result;
}

function over(){
	over.prototype.define('over');
}

over.prototype.define = function(xclassName){
	var objs = classCheck(xclassName);
	for(var i = 0 ; i < objs.length ; i++){
		var pa = objs[i];
		pa.imgPath = objs[i].src;
		pa.imgOver = new Image();
		pa.imgOver.src = imgChange(pa.src);
		pa.onmouseover = function(){this.src=this.imgOver.src};
		pa.onmouseout = function(){this.src=this.imgPath};
	}
}

function imgChange(path){
	tmpPath=(path.indexOf("_o.")<0)?path.substr(path.lastIndexOf("/")).replace(".","_o."):path.substr(path.lastIndexOf("/")).replace("_o.",".");
	return path.substr(0,path.lastIndexOf("/")) + tmpPath;
}
