function setTitles(){
	var content = document.getElementById('content');
	var h2 = content.getElementsByTagName('H2');
	for(var i = 0; i < h2.length; i++){
		h2[i].style.backgroundImage = 'url("gd/h2/'+encodeURIComponent(h2[i].innerHTML.clean())+'.png")';
		h2[i].className = 'image';
	}
	var h3 = content.getElementsByTagName('H3');
	for(var i = 0; i < h3.length; i++){
		h3[i].style.backgroundImage = 'url("gd/h3/'+encodeURIComponent(h3[i].innerHTML.clean())+'.png")';
		h3[i].className = 'image';
	}
	var h4 = content.getElementsByTagName('H4');
	for(var i = 0; i < h4.length; i++){
		h4[i].style.backgroundImage = 'url("gd/h4/'+encodeURIComponent(h4[i].innerHTML.clean())+'.png")';
		h4[i].className = 'image';
	}
}

window.addEvent('domready', function(){
	setTitles();
	var outils = $$('#outils a');
	var timer = 0;
	outils.each(function(outil, i){
		//if(window.ie6) var out = {height: outil.getStyle('height'), width: outil.getStyle('width'), marginBottom: '4px'};
		var out = {height: outil.getStyle('height'), width: outil.getStyle('width')};
		outil.addClass('js');
		//if(window.ie6) var over = {height: outil.getStyle('height'), width: outil.getStyle('width'), marginBottom: '-9px'};
		var over = {height: outil.getStyle('height'), width: outil.getStyle('width')};
		
		var fx = new Fx.Styles(outil, {duration:200, wait:false});	
		timer += 150;
		fx.start.delay(timer, fx, out);
		outil.addEvent('mouseenter', function(){
			fx.start(over);
		});
		outil.addEvent('mouseleave', function(){
			fx.start(out);
		});
	});
	if($('form-newsletter-type')){
		$('form-newsletter-type').addEvent('change', function(){
			$('form-newsletter').removeProperty('class');						 
			$('form-newsletter').addClass(this.options[this.selectedIndex].value);
		});
	}
	$$('a.blank').each(function(lien, i){
		lien.onclick = function(){
			window.open(this.href);
			return false;
		};
	});
});