/**
 * Rollover images
 */
function smartRollover(){
	if(document.getElementsByTagName){
		var imageTags = document.getElementsByTagName('img');
		for(var i=0; i < imageTags.length; i++){
			if(imageTags[i].className == 'rollover'){
				if(imageTags[i].getAttribute('src').match('_off.')){
					imageTags[i].onmouseover = function(){
						this.setAttribute('src',this.getAttribute('src').replace('_off.','_on.'));
					}
					imageTags[i].onmouseout = function(){
						this.setAttribute('src',this.getAttribute('src').replace('_on.','_off.'));
					}
				}
			}
		}
	}
}
$(function(){ smartRollover()});