var imageObj=new Array();
function smartRollover()
{
	var j=0;
	$('img').each(function(i)
	{
		if(this.src.match("_off."))
		{
			imageObj[j]=new Image();
			imageObj[j].src=this.src.replace("_off.", "_on.");
			j++;
			this.onmouseover=function(){this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));};
			this.onmouseout = function() {this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));};
		}
	});
}
if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}
