// JavaScript Document

window.addEvent('domready', function(){
	$$('.client-box a img').addEvent( 'mouseover', function(){
		this.src = this.src.contains('-over') ? this.src : this.src.replace('-active.jpg', '-over.jpg');													  
	});
	$$('.client-box a img').addEvent( 'mouseout', function(){
		this.src = this.src.contains('-over') ? this.src.replace('-over', '-active') : this.src;													  
	});
	$$('.client-box a img').each( function(){
		if( !this.src.contains('-over') ){
			new Image().src = this.src.replace('-active.jpg', '-over.jpg');
		}else{
			new Image().src = this.src.replace('-over', '-active');
		}
	});
									 
});