$(document).ready(function() {
	$('#scroll a:not(.animflash)').click(function() {
		var strclasse_ajout = $(this).attr('rel');
		var strclasse_presente = $('#scroll>div').attr('class');

		if(strclasse_ajout != strclasse_presente) {
			$('#scroll>div').switchClass(strclasse_presente,strclasse_ajout,'medium');
		}
		return false;
	});
	if($.flash.available) {
		$('a.animflash').click(function() {
			var stranim = $(this).attr('href');
			$('#flash').html('');
			$('#flash').show();
			$('#corp').hide();
			$('#flash').flash({   
				swf: stranim,
				width: 900,
				height: 410,
				wmode: 'opaque'
			});
		
			return false;
		});
	}
	else {
		$('a.animflash').click(function() {
	
			var intpos = $('#menu a.animflash').index(this);
			$('#noflash>div').hide();
			$('#noflash>div:eq(' + intpos + ')').show();
			$('#noflash').show();
			$('#corp').hide();
			return false;
		});	
	}	
	$('#logo').click(function() {
		$('#corp').show();	
		$('#flash').hide();
		$('#noflash').hide();
		$('#flash').html('');
		return false;
	});
	
});
