(function ($) { // custom css expression for a case-insensitive contains() jQuery.expr[':'].Contains = function(a,i,m){ return (a.textContent || a.innerText || "").toUpperCase().indexOf(m[3].toUpperCase())>=0; }; function listFilter(header, list) { // header is any element, list is an unordered list // create and add the filter form to the header var form = jQuery("
").attr({"class":"filterform","action":"#"}), input = jQuery("").attr({"class":"filterinput","type":"text"}); jQuery(form).append(input).appendTo(header); jQuery(input) .change( function () { var filter = jQuery(this).val(); if(filter) { // this finds all links in a list that contain the input, // and hide the ones not containing the input while showing the ones that do jQuerymatches = jQuery(list).find('a:Contains(' + filter + ')').parent(); jQuery('li', list).not(jQuerymatches).slideUp(); jQuerymatches.slideDown(); } else { jQuery(list).find("li").slideDown(); } return false; }) .keyup( function () { // fire the above change event after every letter jQuery(this).change(); }); } //ondomready jQuery(function () { listFilter(jQuery("#head_list"), jQuery("#full_list")); }); }(jQuery)); jQuery(document).ready(function() { var wouverte = false; jQuery('a#menu2').mouseover(function() { jQuery('div#smenu2').show(); jQuery('a#menu2').removeClass().addClass("a-propos-actif"); wouverte = true; }); jQuery('a#menu2').mouseout(function() { wouverte = false; setTimeout(function(){ if(!wouverte) { jQuery('div#smenu2').hide(); jQuery('a#menu2').removeClass().addClass("a-propos"); } },200); }); jQuery('div#smenu2').mouseover(function() { wouverte = true; }); jQuery('div#smenu2').mouseout(function() { wouverte = false; setTimeout(function(){ if(!wouverte) { jQuery('div#smenu2').hide(); jQuery('a#menu2').removeClass().addClass("a-propos"); } },200); }); }); function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; }