function axome_flash2(swf,l,h,remplace) {
	var html = '<object type="application/x-shockwave-flash" data="'+ swf +'" width="'+ l +'" height="'+ h +'">'+
	'<param name="movie" value="'+ swf +'" />'+
	'<param name="wmode" value="transparent" />'+
	remplace +
	'</object>';
	document.write(html);
}

$(function() { 
	
	$("a.spip_out").attr("target", "_blank");
	
	$("#documents_portfolio a").fancybox();

	$(".texte_article a").each(function() {
		var url = $(this).attr('href');
		var extension = url.substr(url.length-3, url.length);
		if(extension == "pdf") { $(this).attr("target", "_blank"); } 
	});


	// margoulage
	var h2_g = parseInt($('#gauche h2:first').innerHeight());
	var h1_c = parseInt($('#centre h1:first').innerHeight());
	
	if( h2_g>0 && h1_c>0 ) {
		var dekal = '-'+(h1_c-h2_g)+'px';
		if( (h1_c-h2_g)<=15 )
			$('#centre h1').css('margin-top', dekal);
	}





	// home
	
	if( $.browser.msie ) $('body').addClass('ie');
	
	if($.browser.msie && $.browser.version == 6)
		$('body').addClass('ie6');
	if($.browser.msie && $.browser.version == 7)
		$('body').addClass('ie7');
	
	if( $('#liens_home ul').length ) {
		$('#liens_home ul li a').wrapInner('<span>');
		$('#liens_home ul li:last').addClass('dernier');
		
		$('div#liens_home').css('rgba', '180, 180, 144, 0.6');
		
		$('#liens_home ul li a span').each(function() {
			if( $(this).height()>30 )
				$(this).parent().addClass('sur2lignes');
		});
	}
	
	$('#liens_home ul li a').hover(function() {
		$(this).parent().stop().animate({ height: '54px' }, 150);
	}, function() {
		$(this).parent().stop().animate({ height: '64px' }, 150);
	});
	
	
});

