
Element.implement({
	oe:function(id,opup,opent,fold){
		this.set('opacity', opup).addEvents({
			mouseenter: function(){ this.morph({'opacity':opent,'height':'300px','background-image':'url(img/oeuvres/'+fold+'/'+id+'.jpg)','background-repeat':'repeat'}); },
			mouseleave: function(){ this.morph({'opacity':opup,'height':'100px','background-image':'url(img/oeuvres/bac.png)','background-repeat':'repeat'}); }
		});
	}
});
/****/

window.addEvent('domready', function() {					 
									 
	var w = {
		'one_id':$('wb_one'),'one':'wb_one',
		'two_id':$('wb_two'),'two':'wb_two',
		'three_id':$('wb_three'),'three':'wb_three',
		'four_id':$('wb_four'),'four':'wb_four',
		'five_id':$('wb_five'),'five':'wb_five',
		'six_id':$('wb_six'),'six':'wb_six'		
	}
	var f = {
		'w':'webdesign',
		'p':'photos'
	}
	
	w['one_id'].oe(w['one'],.2,1,f['w']);
	w['two_id'].oe(w['two'],.6,1,f['w']);
	w['three_id'].oe(w['three'],.2,1,f['w']);
	w['four_id'].oe(w['four'],.6,1,f['w']);
	w['five_id'].oe(w['five'],.2,1,f['w']);
	w['six_id'].oe(w['six'],.6,1,f['w']);
});
