$(document).ready(function(){if(document.cookie.indexOf("affinage")>=null&&(window.location.href.indexOf("Search?")>=0||window.location.href.indexOf("topdocs?")>=0||window.location.href.indexOf("ebooks")>=0||window.location.href.indexOf("searchInPeriodique?")>=0)){$("#resultatsLeft").css({width:"0px"});
$("#resultatsLeft").css({overflow:"hidden",height:"0px"});
$("#expand2").css("display","block");
if(!$(".mosaiquequatre").size()){$("#corps .recherche_resultats .resultat_desc").css({width:"700px"});
$("#resultatsRight").css({width:"996px"});
$(".fonction1").css({paddingLeft:"31px",width:"204px"})
}else{$("#expand2").css("display","block");
$("#resultatsRight").css({"min-width":"97%"});
$("#resultatsRight").css({width:"auto"});
$("#resultatsRight").css({marginLeft:"0px"});
$(".fonction1").css({paddingLeft:"31px"})
}$("#corps .recherche_resultats .resultat_desc_periodique .liens").each(function(){$(this).css("width","700px")
});
$("#corps .recherche_resultats .resultat_desc .liens").each(function(){$(this).css("width","700px")
});
$("#corps .recherche_resultats .resultat_desc .titre").each(function(){$(this).css("width","700px")
});
$(".recherche_resultats").css("background-image","none");
$(".colGauche_bg").css("background-image","none")
}else{if($(".mosaiquequatre").size()){$("#resultatsRight").css({"min-width":"82%"})
}}$("#site .ui-selectmenu-icon").css({display:"block"});
$("#site .ui-selectmenu-icon-bleu").css({display:"block"});
$("#tri span").css({display:"block"});
$("#trier ul").css({width:"172px",left:"0px"});
$("div#selrespage ul").css({width:"172px",left:"0px"});
$("#trier li").css({display:"block",paddingLeft:"5px",paddingRight:"5px"});
$("#trier ul").css({visibility:"visible"});
$("div#selrespage ul").css({visibility:"visible"});
$("div#selrespage li").css({display:"block",paddingLeft:"5px",paddingRight:"5px"});
$("div#selrespage").css({border:"1px solid #a0a0a0"});
$("#trier").css({border:"1px solid #a0a0a0"});
$(".fonctionBar .fonction2 .boutonOkVert").css({display:"none"});
$(".fonctionBar2 .fonction2 .boutonOkVert").css({display:"none"});
$("#trier").css({overflow:"hidden"});
$("#trier").click(function(A){if($("#trier").css("overflow")=="visible"){$("#trier").css({overflow:"hidden"});
$("#trier ul").css({border:"none","z-index":"0",overflow:"hidden"})
}else{$("#trier").css({overflow:"visible","z-index":"200"});
$("#trier ul").css({border:"1px solid #a0a0a0",overflow:"visible","z-index":"200"})
}if($(A.target).hasClass("ui-selectmenu-icon")){return false
}if($(A.target).hasClass("ui-selectmenu-icon-bleu")){return false
}});
$("#trier ul li a").click(function(A){if($("#trier").css("overflow")!="visible"){$("#trier").css({overflow:"visible"});
$("#trier ul").css({border:"1px solid #a0a0a0","z-index":"200"});
return false
}});
$("div#selrespage").css({overflow:"hidden"});
$("div#selrespage ul li a").click(function(A){if($("div#selrespage").css("overflow")!="visible"){$("div#selrespage").css({overflow:"visible"});
$("div#selrespage ul").css({border:"1px solid #a0a0a0","z-index":"200"});
return false
}});
$(document).bind("click",function(B){var A=B.target.parentNode.id;
if(!(A=="selrespage")||!(A=="trier")){$("div#selrespage").css({overflow:"hidden"});
$("div#selrespage ul").css({border:"none","z-index":"0"});
$("#trier").css({overflow:"hidden"});
$("#trier ul").css({border:"none","z-index":"0"})
}});
$("div#selrespage ul li").tsort({order:"desc",attr:"class"});
$("div#trier ul li").tsort({order:"desc",attr:"class"});
$("div#selrespage").click(function(A){if($("div#selrespage").css("overflow")=="visible"){$("div#selrespage").css({overflow:"hidden"});
$("div#selrespage ul").css({border:"none","z-index":"0"})
}else{$("div#selrespage").css({overflow:"visible"});
$("div#selrespage ul").css({border:"1px solid #a0a0a0","z-index":"200"})
}if($(A.target).hasClass("ui-selectmenu-icon")){return false
}if($(A.target).hasClass("ui-selectmenu-icon-bleu")){return false
}});
$(".inputtxtRecherche").each(function(A){var B=$(this).val();
$(this).click(function(){$(this).val("")
});
$(this).blur(function(){if($(this).val()==""){$(this).val(B)
}})
});
$(function(){$(".fonctionBar img").mouseover(function(){var A=$(this).attr("src").match(/[^\.]+/)+"_over.png";
$(this).attr("src",A)
});
$(".fonctionBar img").mouseout(function(){var A=$(this).attr("src").replace("_over","");
$(this).attr("src",A)
})
});
$(function(){$(".fonctionBarBlank img").mouseover(function(){var A=$(this).attr("src").match(/[^\.]+/)+"_over.png";
$(this).attr("src",A)
});
$(".fonctionBarBlank img").mouseout(function(){var A=$(this).attr("src").replace("_over","");
$(this).attr("src",A)
})
});
$(function(){$(".fonctionBarBlank2 img").mouseover(function(){var A=$(this).attr("src").match(/[^\.]+/)+"_over.png";
$(this).attr("src",A)
});
$(".fonctionBarBlank2 img").mouseout(function(){var A=$(this).attr("src").replace("_over","");
$(this).attr("src",A)
})
});
$(function(){$(".fonctionBar2 img").mouseover(function(){var A=$(this).attr("src").match(/[^\.]+/)+"_over.png";
$(this).attr("src",A)
});
$(".fonctionBar2 img").mouseout(function(){var A=$(this).attr("src").replace("_over","");
$(this).attr("src",A)
})
});
$(function(){$(".recherche_tri .liste_nonactive").each(function(A){if($(this).parent().get(0).tagName=="A"){$(this).mouseover(function(){var B=$(this).attr("src").match(/[^\.]+/)+"_hover.png";
$(this).attr("src",B)
});
$(this).mouseout(function(){var B=$(this).attr("src").replace("_hover","");
$(this).attr("src",B)
})
}})
});
$(".ssMenuGroup").each(function(B){var C=$(".ssMenuGroup")[B];
var D=$(C).find("a").filter(".menuLien").attr("id");
var A=$.cookie(D);
if("show"==A){$(C).find("a").filter(".ssMenuLien").show();
$(C).find(".menuLien").addClass("menuLienOver");
$(C).find("div").show()
}else{if("hide"==A){$(C).find("a").filter(".ssMenuLien").hide();
$(C).find(".menuLien").removeClass("menuLienOver");
$(C).find("div").hide()
}else{$(C).find("a").filter(".ssMenuLien").show();
$(C).find(".menuLien").addClass("menuLienOver");
$(C).find("div").show()
}}$(C).find(".menuLien").click(function(){if($(C).find("a").filter(".ssMenuLien").is(":hidden")){$(C).find("div").show();
$(C).find("a").filter(".ssMenuLien").show();
$(this).addClass("menuLienOver");
$.cookie(D,"show")
}else{$(C).find("div").hide();
$(C).find("a").filter(".ssMenuLien").hide();
$(this).removeClass("menuLienOver");
$.cookie(D,"hide")
}})
});
$("#expand1").click(function(){$("#resultatsLeft").animate({width:"0px"},1200,function(){$("#resultatsLeft").css({overflow:"hidden",height:"0px"});
$("#expand2").css("display","block")
});
if(!$(".mosaiquequatre").size()){$("#corps .recherche_resultats .resultat_desc").animate({width:"700px"},1200);
$("#resultatsRight").animate({width:"996px"},1200);
$(".fonction1").css({paddingLeft:"31px",width:"204px"})
}else{$("#resultatsRight").animate({marginLeft:"0px"},1200);
$(".fonction1").css({paddingLeft:"31px"});
$("#resultatsRight").css({"min-width":"97%",width:"auto"})
}$(".recherche_resultats").css("background-image","none");
$(".colGauche_bg").css("background-image","none");
$("#corps .recherche_resultats .resultat_desc_periodique .liens").each(function(){$(this).css("width","700px")
});
$("#corps .recherche_resultats .resultat_desc .liens").each(function(){$(this).css("width","700px")
});
$("#corps .recherche_resultats .resultat_desc .titre").each(function(){$(this).css("width","700px")
});
$.cookie("affinage","",{path:"/",expires:10});
return false
});
$("#expand2").click(function(){if(!$(".mosaiquequatre").size()){$("#corps .recherche_resultats .resultat_desc").animate({width:"490px"},1200);
$("#resultatsRight").animate({width:"786px"},1200);
$("#resultatsLeft").animate({width:"210px",height:"100%"},1200);
$(".fonction1").css({paddingLeft:"5px",width:"230px"})
}else{$("#resultatsLeft").animate({width:"0px"},1200,function(){$("#resultatsLeft").css({overflow:"visible",height:"100%"})
});
$("#resultatsRight").animate({marginLeft:"213px",width:"82%"},1200);
$(".fonction1").css({paddingLeft:"5px"});
$("#resultatsRight").css({"min-width":"82%"})
}$("#expand2").css("display","none");
$(".recherche_resultats").css("background-image",'url("/images/recherche/bg_colonne_gauche_210.png")');
$(".colGauche_bg").css("background-image",'url("/images/recherche/bas_resultats_left_210.png")');
$("#corps .recherche_resultats .resultat_desc_periodique .liens").each(function(){$(this).css("width","390px")
});
$("#corps .recherche_resultats .resultat_desc .liens").each(function(){$(this).css("width","390px")
});
$("#corps .recherche_resultats .resultat_desc .titre").each(function(){$(this).css("width","500px")
});
$.cookie("affinage",null);
return false
});
$(".tooltip-desc").each(function(A){$(this).css({display:"none"})
});
$(".synth .resultat_desc .titre a").each(function(A){$(this).mouseover(function(){$($(this).attr("href")).css({display:"block",left:"190px",top:parseInt($(this).offset().top-164)+"px"});
$($(this).attr("href")).addClass("Gallicatooltip")
});
$(this).parent().parent().parent().mouseleave(function(){$(this).find(".tooltip-desc").css({display:"none"});
$(this).find(".tooltip-desc").removeClass("Gallicatooltip")
})
});
$(".mosaiquequatre .resultat_img").each(function(A){$(this).parents(".resultats_line").find(".tooltip-desc").addClass("Gallicatooltip");
$(this).parents(".resultats_line").find(".tooltip-desc").css({top:$(this).parents(".resultats_line").offset().top-$("#resultatsRight").offset().top+"px",left:$(this).parents(".resultats_line").offset().left+140-$("#resultatsRight").offset().left+"px"});
$(this).hover(function(){$(this).parents(".resultats_line").find(".tooltip-desc").css({display:"block"}).hover(function(){$(this).css({display:"block"})
},function(){$(this).css({display:"none"})
})
},function(){$(this).parents(".resultats_line").find(".tooltip-desc").css({display:"none"})
})
});
$(".mosaiquequatre .resultat_desc").each(function(A){$(this).parents(".resultats_line").find(".tooltip-desc").addClass("Gallicatooltip");
$(this).hover(function(){$(this).parents(".resultats_line").find(".tooltip-desc").css({display:"block"}).hover(function(){$(this).css({display:"block"})
},function(){$(this).css({display:"none"})
})
},function(){$(this).parents(".resultats_line").find(".tooltip-desc").css({display:"none"})
})
})
});
function checkAnneeInList(A){for(var B=0;
B<=list.length;
B++){if(list[B]==A){return true
}}return false
};
