/*-------------------------
Rollover
-------------------------*/

$(function(){

	$('.rollover').each(function(){
		this.originalSrc = $(this).attr('src');
		this.rolloverSrc = this.originalSrc.replace(/(\.gif|\.jpg|\.png)$/, '_on'+"$1");
		this.rolloverImg = new Image();
		this.rolloverImg.src = this.rolloverSrc;

	}).hover(function(){
		$(this).attr('src',this.rolloverSrc);

	},function(){
		$(this).attr('src',this.originalSrc);

	});
});

/*-------------------------

conf = {
       className : 'rollover',
       postfix : '_on'
};
function setMouseOverImages() {
       $A(document.getElementsByClassName(conf.className)).each(function (node){
               node.onmouseout = changeSrcFunction(node.src);
               node.onmouseover =
			    changeSrcFunction(node.src.replace(/(\.gif|\.jpg|\.png)/, conf.postfix+"$1"));
       });
}
function changeSrcFunction(data){
       return function(){ this.src = data; }
}
Event.observe(window, 'load', setMouseOverImages, false);

-------------------------*/