function axome_flash2(swf,l,h,remplace)
{
var t='<param name="wmode" value="transparent" />';
document.write('<object type="application/x-shockwave-flash" data="'+swf+'" width="'+l+'" height="'+h+'"><param name="movie" value="'+swf+'" />'+t+remplace+'</object>')}
$(function(){
var val_def_recherche=$('input#recherche').val();
$('input#recherche').blur(function(){
if($(this).val()=='')
$(this).val(val_def_recherche)});
$('#tool_imprimer').click(function(){window.print()});
$('#tool_typo_up').click(function(){
var currentFontSize=$('#centre').css('font-size');
var currentFontSizeNum=parseFloat(currentFontSize,10);
var newFontSize=currentFontSizeNum*1.2;
$('#centre').css('font-size',newFontSize+"px");
return false});
$('#tool_typo_down').click(function(){
var currentFontSize=$('#centre').css('font-size');
var currentFontSizeNum=parseFloat(currentFontSize,10);
var newFontSize=currentFontSizeNum*0.8;
$('#centre').css('font-size',newFontSize+"px");
return false});
$('a.spip_out').attr("target","_blank");
$('.texte_article a:not(.jTip)').each(function(){
if($(this).attr('href')!=undefined&&$(this).attr('href')!="undefined"){
var url=$(this).attr('href');
var extension=url.substr(url.length-3,url.length);
if(extension=="pdf")
$(this).attr("target","_blank")}
});
$('#toptop ul li h4').css('opacity',0.92);
$('#toptop ul').innerfade({
speed:'slow',
timeout:3000,
containerheight:'221px'
});
if($('#actu_liste ul').length){
$('div#actu_liste ul li h3 a').css('opacity','0.88');
var mrg=0;
var wli=492;
$("#actu_liste ul").css("width",($('#actu_liste ul li').length)*wli);
var wprog=$("#actu_liste ul").css("width");
wprog=parseInt(wprog.replace(/px/,''));
var eslid=1;
var butee=-1;
var mlmin=-(wprog-wli*eslid);
var d=492;
var eaz='';
$("a#bt_prec").click(function(){
clearInterval(loopy);
mrg+=wli*eslid;
if(butee>0)butee=0;
if(mrg>=0){butee--;mrg=0}
if(butee>=-1){
$("#actu_liste ul").stop().animate({marginLeft:mrg+"px"},d,eaz)}
return false});
$("a#bt_suiv").click(function(){
clearInterval(loopy);
mrg-=wli*eslid;
if(butee<0)butee=0;
if(mrg<=mlmin){butee++;mrg=mlmin}
if(butee>1){
butee=-1;
mrg=0;
$("#actu_liste ul").stop().animate({marginLeft:mrg+"px"},d*2,eaz)}
else{
$("#actu_liste ul").stop().animate({marginLeft:mrg+"px"},d,eaz)}
return false});
function auto_rotation(){
mrg-=wli*eslid;
if(butee<0)butee=0;
if(mrg<=mlmin){butee++;mrg=mlmin}
if(butee>1){
butee=-1;
mrg=0;
$("#actu_liste ul").stop().animate({marginLeft:mrg+"px"},d*2,eaz)}
else{
$("#actu_liste ul").stop().animate({marginLeft:mrg+"px"},d,eaz)}
}
loopy=window.setInterval(auto_rotation,9000)}
$('div#documents_portfolio a img').each(function(){
var papatitre=$(this).parent().attr('title');
var titre=$(this).attr('alt',papatitre)})});
function bookmark(phrase,lien){
if(window.sidebar)
{
window.sidebar.addPanel(phrase,lien,"")}
else if(document.all)
{
window.external.AddFavorite(lien,phrase)}
else
{
alert('Votre navigateur ne gère pas cette fonctionnalité.')}
return false}

