// JavaScript Document
adapt = function() {
	
for (var i=1; i <= 5; i++) { // opacité menu
$(('rub' + i)).setOpacity(0.5);
$(('rub' + i)).addEvent('mouseover', function() {hundred(this)});
$(('rub' + i)).addEvent('mouseout', function() {light(this)});
}	
	
interactif(); // adapt interactif

var hauteur = $('texte').getStyle('height').toInt(); // adapt fond
$('fond').setStyle('height', hauteur+30 + 'px');

var interactiftexte = $('interactiftexte').getStyle('height').toInt();
if (hauteur < interactiftexte) {
	$('fond').setStyle('height', interactiftexte+170 + 'px'); // adapt fond
	}
	
var toppied = $('fond').getStyle('height').toInt() + $('fond').getStyle('top').toInt();
$('pied').setStyle('top', toppied + 'px'); // adapt idpro

}

// fonctions transparence

light = function(obj) {
	$(obj).setOpacity(0.5)
}

hundred = function(obj) {
	$(obj).setOpacity(1.0)
}
	

// fonction adapt interactif
interactif = function() {
var interactiftexte = $('interactiftexte').getStyle('height').toInt();
$('interactif').setStyle('height', interactiftexte+40 + 'px'); // adapt interactif
}